diff --git a/CHANGELOG b/CHANGELOG index caba8eb37..22aac0686 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-20 Version: 1.34.55 +1, Update the Dependency + 2019-03-20 Version: 1.34.54 1, Update the Dependency diff --git a/VERSION b/VERSION index 1ae74cf1f..6c484a63f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.54 \ No newline at end of file +1.34.55 \ No newline at end of file diff --git a/cms/CMakeLists.txt b/cms/CMakeLists.txt index b44f0c605..54a8b6100 100644 --- a/cms/CMakeLists.txt +++ b/cms/CMakeLists.txt @@ -23,24 +23,136 @@ set(cms_public_header set(cms_public_header_model include/alibabacloud/cms/model/ProfileSetRequest.h include/alibabacloud/cms/model/ProfileSetResult.h - include/alibabacloud/cms/model/ListProductOfActiceAlertRequest.h - include/alibabacloud/cms/model/ListProductOfActiceAlertResult.h include/alibabacloud/cms/model/DeleteCustomMetricRequest.h include/alibabacloud/cms/model/DeleteCustomMetricResult.h - include/alibabacloud/cms/model/GetNotifyPolicyRequest.h - include/alibabacloud/cms/model/GetNotifyPolicyResult.h - include/alibabacloud/cms/model/NodeUninstallRequest.h - include/alibabacloud/cms/model/NodeUninstallResult.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/DescribeISPAreaCityRequest.h + include/alibabacloud/cms/model/DescribeISPAreaCityResult.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/ProfileGetRequest.h include/alibabacloud/cms/model/ProfileGetResult.h - include/alibabacloud/cms/model/PutSystemEventRequest.h - include/alibabacloud/cms/model/PutSystemEventResult.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/PutEventRuleRequest.h + include/alibabacloud/cms/model/PutEventRuleResult.h + include/alibabacloud/cms/model/NodeListRequest.h + include/alibabacloud/cms/model/NodeListResult.h + include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h + include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h + include/alibabacloud/cms/model/NodeProcessesRequest.h + include/alibabacloud/cms/model/NodeProcessesResult.h + include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h + include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h + include/alibabacloud/cms/model/QueryMetricListRequest.h + include/alibabacloud/cms/model/QueryMetricListResult.h + include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h + include/alibabacloud/cms/model/QuerySystemEventDemoResult.h + include/alibabacloud/cms/model/DisableAlarmRequest.h + include/alibabacloud/cms/model/DisableAlarmResult.h + include/alibabacloud/cms/model/PutCustomMetricRequest.h + include/alibabacloud/cms/model/PutCustomMetricResult.h + include/alibabacloud/cms/model/QueryMetricLastRequest.h + include/alibabacloud/cms/model/QueryMetricLastResult.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/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/CreateMyGroupsRequest.h + include/alibabacloud/cms/model/CreateMyGroupsResult.h + include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h + include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h + include/alibabacloud/cms/model/DescribeTasksRequest.h + include/alibabacloud/cms/model/DescribeTasksResult.h + include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h + include/alibabacloud/cms/model/ListActiveAlertRuleResult.h + include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h + include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h + include/alibabacloud/cms/model/QueryMetricTopRequest.h + include/alibabacloud/cms/model/QueryMetricTopResult.h + include/alibabacloud/cms/model/AccessKeyGetRequest.h + include/alibabacloud/cms/model/AccessKeyGetResult.h + include/alibabacloud/cms/model/QueryTaskConfigRequest.h + include/alibabacloud/cms/model/QueryTaskConfigResult.h + include/alibabacloud/cms/model/QueryProjectMetaRequest.h + include/alibabacloud/cms/model/QueryProjectMetaResult.h + include/alibabacloud/cms/model/QueryMetricDataRequest.h + include/alibabacloud/cms/model/QueryMetricDataResult.h + include/alibabacloud/cms/model/DisableActiveAlertRequest.h + include/alibabacloud/cms/model/DisableActiveAlertResult.h + include/alibabacloud/cms/model/PutEventRequest.h + include/alibabacloud/cms/model/PutEventResult.h + include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h + include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h + include/alibabacloud/cms/model/ListAlarmHistoryRequest.h + include/alibabacloud/cms/model/ListAlarmHistoryResult.h + include/alibabacloud/cms/model/DeleteTasksRequest.h + include/alibabacloud/cms/model/DeleteTasksResult.h + include/alibabacloud/cms/model/TaskConfigModifyRequest.h + include/alibabacloud/cms/model/TaskConfigModifyResult.h + include/alibabacloud/cms/model/GetMyGroupsRequest.h + include/alibabacloud/cms/model/GetMyGroupsResult.h + include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h + include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h + include/alibabacloud/cms/model/StopTasksRequest.h + include/alibabacloud/cms/model/StopTasksResult.h + include/alibabacloud/cms/model/UpdateAlarmRequest.h + include/alibabacloud/cms/model/UpdateAlarmResult.h + include/alibabacloud/cms/model/ModifyTaskRequest.h + 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/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/GetNotifyPolicyRequest.h + include/alibabacloud/cms/model/GetNotifyPolicyResult.h + include/alibabacloud/cms/model/NodeUninstallRequest.h + include/alibabacloud/cms/model/NodeUninstallResult.h + include/alibabacloud/cms/model/QueryErrorDistributionRequest.h + include/alibabacloud/cms/model/QueryErrorDistributionResult.h + include/alibabacloud/cms/model/EnableEventRuleRequest.h + 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/ApplyTemplateRequest.h + include/alibabacloud/cms/model/ApplyTemplateResult.h include/alibabacloud/cms/model/EnableActiveAlertRequest.h include/alibabacloud/cms/model/EnableActiveAlertResult.h include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h @@ -49,46 +161,42 @@ set(cms_public_header_model include/alibabacloud/cms/model/CreateNotifyPolicyResult.h include/alibabacloud/cms/model/DeleteAlarmRequest.h include/alibabacloud/cms/model/DeleteAlarmResult.h - include/alibabacloud/cms/model/NodeListRequest.h - include/alibabacloud/cms/model/NodeListResult.h - include/alibabacloud/cms/model/NodeProcessesRequest.h - include/alibabacloud/cms/model/NodeProcessesResult.h + include/alibabacloud/cms/model/TaskConfigListRequest.h + include/alibabacloud/cms/model/TaskConfigListResult.h + include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h + include/alibabacloud/cms/model/GetMonitoringTemplateResult.h include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h - include/alibabacloud/cms/model/QueryMetricListRequest.h - include/alibabacloud/cms/model/QueryMetricListResult.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/ListMyGroupInstancesDetailsRequest.h include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h - include/alibabacloud/cms/model/DisableAlarmRequest.h - include/alibabacloud/cms/model/DisableAlarmResult.h - include/alibabacloud/cms/model/PutCustomMetricRequest.h - include/alibabacloud/cms/model/PutCustomMetricResult.h include/alibabacloud/cms/model/DeleteMyGroupsRequest.h include/alibabacloud/cms/model/DeleteMyGroupsResult.h - include/alibabacloud/cms/model/QueryMetricLastRequest.h - include/alibabacloud/cms/model/QueryMetricLastResult.h - include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h - include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h include/alibabacloud/cms/model/DescribeAlarmHistoryRequest.h include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h + include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h + include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h include/alibabacloud/cms/model/NodeStatusRequest.h include/alibabacloud/cms/model/NodeStatusResult.h + include/alibabacloud/cms/model/DescribeAlarmsRequest.h + include/alibabacloud/cms/model/DescribeAlarmsResult.h include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h - include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h - include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h - include/alibabacloud/cms/model/CreateMyGroupsRequest.h - include/alibabacloud/cms/model/CreateMyGroupsResult.h + include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h + include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h + include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h + include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h include/alibabacloud/cms/model/CreateAlarmRequest.h include/alibabacloud/cms/model/CreateAlarmResult.h - include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h - include/alibabacloud/cms/model/ListActiveAlertRuleResult.h include/alibabacloud/cms/model/ListMyGroupsRequest.h include/alibabacloud/cms/model/ListMyGroupsResult.h - include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h - include/alibabacloud/cms/model/DeleteNotifyPolicyResult.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/NodeProcessDeleteRequest.h include/alibabacloud/cms/model/NodeProcessDeleteResult.h include/alibabacloud/cms/model/UpdateMyGroupsRequest.h @@ -97,65 +205,169 @@ set(cms_public_header_model include/alibabacloud/cms/model/QuerySystemEventCountResult.h include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h include/alibabacloud/cms/model/ListMyGroupInstancesResult.h - include/alibabacloud/cms/model/AccessKeyGetRequest.h - include/alibabacloud/cms/model/AccessKeyGetResult.h - include/alibabacloud/cms/model/EnableActiceAlertRequest.h - include/alibabacloud/cms/model/EnableActiceAlertResult.h - include/alibabacloud/cms/model/PutMetricDataRequest.h - include/alibabacloud/cms/model/PutMetricDataResult.h - include/alibabacloud/cms/model/DisableActiveAlertRequest.h - include/alibabacloud/cms/model/DisableActiveAlertResult.h - include/alibabacloud/cms/model/DisableActiceAlertRequest.h - include/alibabacloud/cms/model/DisableActiceAlertResult.h + include/alibabacloud/cms/model/GetContactsRequest.h + include/alibabacloud/cms/model/GetContactsResult.h + include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h + include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h + include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h + include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h + include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h + include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h include/alibabacloud/cms/model/ListAlarmRequest.h include/alibabacloud/cms/model/ListAlarmResult.h include/alibabacloud/cms/model/NodeInstallRequest.h include/alibabacloud/cms/model/NodeInstallResult.h - include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h - include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h - include/alibabacloud/cms/model/PutEventRequest.h - include/alibabacloud/cms/model/PutEventResult.h - include/alibabacloud/cms/model/ListAlarmHistoryRequest.h - include/alibabacloud/cms/model/ListAlarmHistoryResult.h + include/alibabacloud/cms/model/GetMyGroupAlertRequest.h + include/alibabacloud/cms/model/GetMyGroupAlertResult.h + include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h + include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h include/alibabacloud/cms/model/NodeStatusListRequest.h include/alibabacloud/cms/model/NodeStatusListResult.h include/alibabacloud/cms/model/ListContactGroupRequest.h include/alibabacloud/cms/model/ListContactGroupResult.h - include/alibabacloud/cms/model/GetMyGroupsRequest.h - include/alibabacloud/cms/model/GetMyGroupsResult.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/ListNotifyPolicyRequest.h include/alibabacloud/cms/model/ListNotifyPolicyResult.h - include/alibabacloud/cms/model/UpdateAlarmRequest.h - include/alibabacloud/cms/model/UpdateAlarmResult.h - include/alibabacloud/cms/model/NodeProcessCreateRequest.h - include/alibabacloud/cms/model/NodeProcessCreateResult.h include/alibabacloud/cms/model/EnableAlarmRequest.h - include/alibabacloud/cms/model/EnableAlarmResult.h - include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h - include/alibabacloud/cms/model/QueryCustomEventDetailResult.h ) + include/alibabacloud/cms/model/EnableAlarmResult.h ) set(cms_src src/CmsClient.cc src/model/ProfileSetRequest.cc src/model/ProfileSetResult.cc - src/model/ListProductOfActiceAlertRequest.cc - src/model/ListProductOfActiceAlertResult.cc src/model/DeleteCustomMetricRequest.cc src/model/DeleteCustomMetricResult.cc - src/model/GetNotifyPolicyRequest.cc - src/model/GetNotifyPolicyResult.cc - src/model/NodeUninstallRequest.cc - src/model/NodeUninstallResult.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/DescribeISPAreaCityRequest.cc + src/model/DescribeISPAreaCityResult.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/ProfileGetRequest.cc src/model/ProfileGetResult.cc - src/model/PutSystemEventRequest.cc - src/model/PutSystemEventResult.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/PutEventRuleRequest.cc + src/model/PutEventRuleResult.cc + src/model/NodeListRequest.cc + src/model/NodeListResult.cc + src/model/QueryStaticsAvailabilityRequest.cc + src/model/QueryStaticsAvailabilityResult.cc + src/model/NodeProcessesRequest.cc + src/model/NodeProcessesResult.cc + src/model/ListMonitoringTemplatesRequest.cc + src/model/ListMonitoringTemplatesResult.cc + src/model/QueryMetricListRequest.cc + src/model/QueryMetricListResult.cc + src/model/QuerySystemEventDemoRequest.cc + src/model/QuerySystemEventDemoResult.cc + src/model/DisableAlarmRequest.cc + src/model/DisableAlarmResult.cc + src/model/PutCustomMetricRequest.cc + src/model/PutCustomMetricResult.cc + src/model/QueryMetricLastRequest.cc + src/model/QueryMetricLastResult.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/ListProductOfActiveAlertRequest.cc + src/model/ListProductOfActiveAlertResult.cc + src/model/UpdateMyGroupAlertRequest.cc + src/model/UpdateMyGroupAlertResult.cc + src/model/CreateMonitoringTemplateRequest.cc + src/model/CreateMonitoringTemplateResult.cc + src/model/CreateMyGroupsRequest.cc + src/model/CreateMyGroupsResult.cc + src/model/CreateMyGroupAlertBatchRequest.cc + src/model/CreateMyGroupAlertBatchResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/ListActiveAlertRuleRequest.cc + src/model/ListActiveAlertRuleResult.cc + src/model/DeleteNotifyPolicyRequest.cc + src/model/DeleteNotifyPolicyResult.cc + src/model/QueryMetricTopRequest.cc + src/model/QueryMetricTopResult.cc + src/model/AccessKeyGetRequest.cc + src/model/AccessKeyGetResult.cc + src/model/QueryTaskConfigRequest.cc + src/model/QueryTaskConfigResult.cc + src/model/QueryProjectMetaRequest.cc + src/model/QueryProjectMetaResult.cc + src/model/QueryMetricDataRequest.cc + src/model/QueryMetricDataResult.cc + src/model/DisableActiveAlertRequest.cc + src/model/DisableActiveAlertResult.cc + src/model/PutEventRequest.cc + src/model/PutEventResult.cc + src/model/QueryCustomEventHistogramRequest.cc + src/model/QueryCustomEventHistogramResult.cc + src/model/ListAlarmHistoryRequest.cc + src/model/ListAlarmHistoryResult.cc + src/model/DeleteTasksRequest.cc + src/model/DeleteTasksResult.cc + src/model/TaskConfigModifyRequest.cc + src/model/TaskConfigModifyResult.cc + src/model/GetMyGroupsRequest.cc + src/model/GetMyGroupsResult.cc + src/model/QueryTaskMonitorDataRequest.cc + src/model/QueryTaskMonitorDataResult.cc + src/model/StopTasksRequest.cc + src/model/StopTasksResult.cc + src/model/UpdateAlarmRequest.cc + src/model/UpdateAlarmResult.cc + src/model/ModifyTaskRequest.cc + 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/TaskConfigEnableRequest.cc + src/model/TaskConfigEnableResult.cc + src/model/QueryMetricMetaRequest.cc + src/model/QueryMetricMetaResult.cc + src/model/TaskConfigCreateRequest.cc + src/model/TaskConfigCreateResult.cc + src/model/GetNotifyPolicyRequest.cc + src/model/GetNotifyPolicyResult.cc + src/model/NodeUninstallRequest.cc + src/model/NodeUninstallResult.cc + src/model/QueryErrorDistributionRequest.cc + src/model/QueryErrorDistributionResult.cc + src/model/EnableEventRuleRequest.cc + 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/ApplyTemplateRequest.cc + src/model/ApplyTemplateResult.cc src/model/EnableActiveAlertRequest.cc src/model/EnableActiveAlertResult.cc src/model/QuerySystemEventDetailRequest.cc @@ -164,46 +376,42 @@ set(cms_src src/model/CreateNotifyPolicyResult.cc src/model/DeleteAlarmRequest.cc src/model/DeleteAlarmResult.cc - src/model/NodeListRequest.cc - src/model/NodeListResult.cc - src/model/NodeProcessesRequest.cc - src/model/NodeProcessesResult.cc + src/model/TaskConfigListRequest.cc + src/model/TaskConfigListResult.cc + src/model/GetMonitoringTemplateRequest.cc + src/model/GetMonitoringTemplateResult.cc src/model/ListMyGroupCategoriesRequest.cc src/model/ListMyGroupCategoriesResult.cc - src/model/QueryMetricListRequest.cc - src/model/QueryMetricListResult.cc + src/model/DeleteGroupDynamicRuleRequest.cc + src/model/DeleteGroupDynamicRuleResult.cc + src/model/CreateTaskRequest.cc + src/model/CreateTaskResult.cc src/model/ListMyGroupInstancesDetailsRequest.cc src/model/ListMyGroupInstancesDetailsResult.cc - src/model/DisableAlarmRequest.cc - src/model/DisableAlarmResult.cc - src/model/PutCustomMetricRequest.cc - src/model/PutCustomMetricResult.cc src/model/DeleteMyGroupsRequest.cc src/model/DeleteMyGroupsResult.cc - src/model/QueryMetricLastRequest.cc - src/model/QueryMetricLastResult.cc - src/model/QuerySystemEventHistogramRequest.cc - src/model/QuerySystemEventHistogramResult.cc src/model/DescribeAlarmHistoryRequest.cc src/model/DescribeAlarmHistoryResult.cc + src/model/ApplyMonitoringTemplateRequest.cc + src/model/ApplyMonitoringTemplateResult.cc src/model/NodeStatusRequest.cc src/model/NodeStatusResult.cc + src/model/DescribeAlarmsRequest.cc + src/model/DescribeAlarmsResult.cc src/model/DeleteMyGroupInstancesRequest.cc src/model/DeleteMyGroupInstancesResult.cc - src/model/ListProductOfActiveAlertRequest.cc - src/model/ListProductOfActiveAlertResult.cc - src/model/CreateMyGroupsRequest.cc - src/model/CreateMyGroupsResult.cc + src/model/DescribeAlarmsForResourcesRequest.cc + src/model/DescribeAlarmsForResourcesResult.cc + src/model/QueryStaticsResponseTimeRequest.cc + src/model/QueryStaticsResponseTimeResult.cc src/model/CreateAlarmRequest.cc src/model/CreateAlarmResult.cc - src/model/ListActiveAlertRuleRequest.cc - src/model/ListActiveAlertRuleResult.cc src/model/ListMyGroupsRequest.cc src/model/ListMyGroupsResult.cc - src/model/DeleteNotifyPolicyRequest.cc - src/model/DeleteNotifyPolicyResult.cc src/model/AddMyGroupInstancesRequest.cc src/model/AddMyGroupInstancesResult.cc + src/model/SendDryRunSystemEventRequest.cc + src/model/SendDryRunSystemEventResult.cc src/model/NodeProcessDeleteRequest.cc src/model/NodeProcessDeleteResult.cc src/model/UpdateMyGroupsRequest.cc @@ -212,42 +420,34 @@ set(cms_src src/model/QuerySystemEventCountResult.cc src/model/ListMyGroupInstancesRequest.cc src/model/ListMyGroupInstancesResult.cc - src/model/AccessKeyGetRequest.cc - src/model/AccessKeyGetResult.cc - src/model/EnableActiceAlertRequest.cc - src/model/EnableActiceAlertResult.cc - src/model/PutMetricDataRequest.cc - src/model/PutMetricDataResult.cc - src/model/DisableActiveAlertRequest.cc - src/model/DisableActiveAlertResult.cc - src/model/DisableActiceAlertRequest.cc - src/model/DisableActiceAlertResult.cc + src/model/GetContactsRequest.cc + src/model/GetContactsResult.cc + src/model/UpdateMyGroupMembersRequest.cc + src/model/UpdateMyGroupMembersResult.cc + src/model/QueryStaticsErrorRateRequest.cc + src/model/QueryStaticsErrorRateResult.cc + src/model/ListGroupDynamicRuleRequest.cc + src/model/ListGroupDynamicRuleResult.cc src/model/ListAlarmRequest.cc src/model/ListAlarmResult.cc src/model/NodeInstallRequest.cc src/model/NodeInstallResult.cc - src/model/QueryCustomEventHistogramRequest.cc - src/model/QueryCustomEventHistogramResult.cc - src/model/PutEventRequest.cc - src/model/PutEventResult.cc - src/model/ListAlarmHistoryRequest.cc - src/model/ListAlarmHistoryResult.cc + src/model/GetMyGroupAlertRequest.cc + src/model/GetMyGroupAlertResult.cc + src/model/DeleteMonitoringTemplateRequest.cc + src/model/DeleteMonitoringTemplateResult.cc src/model/NodeStatusListRequest.cc src/model/NodeStatusListResult.cc src/model/ListContactGroupRequest.cc src/model/ListContactGroupResult.cc - src/model/GetMyGroupsRequest.cc - src/model/GetMyGroupsResult.cc + src/model/DescribeContactRequest.cc + src/model/DescribeContactResult.cc + src/model/PutMetricAlarmRequest.cc + src/model/PutMetricAlarmResult.cc src/model/ListNotifyPolicyRequest.cc src/model/ListNotifyPolicyResult.cc - src/model/UpdateAlarmRequest.cc - src/model/UpdateAlarmResult.cc - src/model/NodeProcessCreateRequest.cc - src/model/NodeProcessCreateResult.cc src/model/EnableAlarmRequest.cc - src/model/EnableAlarmResult.cc - src/model/QueryCustomEventDetailRequest.cc - src/model/QueryCustomEventDetailResult.cc ) + src/model/EnableAlarmResult.cc ) add_library(cms ${LIB_TYPE} ${cms_public_header} diff --git a/cms/include/alibabacloud/cms/CmsClient.h b/cms/include/alibabacloud/cms/CmsClient.h index 8fe775b9f..b9972732d 100644 --- a/cms/include/alibabacloud/cms/CmsClient.h +++ b/cms/include/alibabacloud/cms/CmsClient.h @@ -24,24 +24,136 @@ #include "CmsExport.h" #include "model/ProfileSetRequest.h" #include "model/ProfileSetResult.h" -#include "model/ListProductOfActiceAlertRequest.h" -#include "model/ListProductOfActiceAlertResult.h" #include "model/DeleteCustomMetricRequest.h" #include "model/DeleteCustomMetricResult.h" -#include "model/GetNotifyPolicyRequest.h" -#include "model/GetNotifyPolicyResult.h" -#include "model/NodeUninstallRequest.h" -#include "model/NodeUninstallResult.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/DescribeISPAreaCityRequest.h" +#include "model/DescribeISPAreaCityResult.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/ProfileGetRequest.h" #include "model/ProfileGetResult.h" -#include "model/PutSystemEventRequest.h" -#include "model/PutSystemEventResult.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/PutEventRuleRequest.h" +#include "model/PutEventRuleResult.h" +#include "model/NodeListRequest.h" +#include "model/NodeListResult.h" +#include "model/QueryStaticsAvailabilityRequest.h" +#include "model/QueryStaticsAvailabilityResult.h" +#include "model/NodeProcessesRequest.h" +#include "model/NodeProcessesResult.h" +#include "model/ListMonitoringTemplatesRequest.h" +#include "model/ListMonitoringTemplatesResult.h" +#include "model/QueryMetricListRequest.h" +#include "model/QueryMetricListResult.h" +#include "model/QuerySystemEventDemoRequest.h" +#include "model/QuerySystemEventDemoResult.h" +#include "model/DisableAlarmRequest.h" +#include "model/DisableAlarmResult.h" +#include "model/PutCustomMetricRequest.h" +#include "model/PutCustomMetricResult.h" +#include "model/QueryMetricLastRequest.h" +#include "model/QueryMetricLastResult.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/ListProductOfActiveAlertRequest.h" +#include "model/ListProductOfActiveAlertResult.h" +#include "model/UpdateMyGroupAlertRequest.h" +#include "model/UpdateMyGroupAlertResult.h" +#include "model/CreateMonitoringTemplateRequest.h" +#include "model/CreateMonitoringTemplateResult.h" +#include "model/CreateMyGroupsRequest.h" +#include "model/CreateMyGroupsResult.h" +#include "model/CreateMyGroupAlertBatchRequest.h" +#include "model/CreateMyGroupAlertBatchResult.h" +#include "model/DescribeTasksRequest.h" +#include "model/DescribeTasksResult.h" +#include "model/ListActiveAlertRuleRequest.h" +#include "model/ListActiveAlertRuleResult.h" +#include "model/DeleteNotifyPolicyRequest.h" +#include "model/DeleteNotifyPolicyResult.h" +#include "model/QueryMetricTopRequest.h" +#include "model/QueryMetricTopResult.h" +#include "model/AccessKeyGetRequest.h" +#include "model/AccessKeyGetResult.h" +#include "model/QueryTaskConfigRequest.h" +#include "model/QueryTaskConfigResult.h" +#include "model/QueryProjectMetaRequest.h" +#include "model/QueryProjectMetaResult.h" +#include "model/QueryMetricDataRequest.h" +#include "model/QueryMetricDataResult.h" +#include "model/DisableActiveAlertRequest.h" +#include "model/DisableActiveAlertResult.h" +#include "model/PutEventRequest.h" +#include "model/PutEventResult.h" +#include "model/QueryCustomEventHistogramRequest.h" +#include "model/QueryCustomEventHistogramResult.h" +#include "model/ListAlarmHistoryRequest.h" +#include "model/ListAlarmHistoryResult.h" +#include "model/DeleteTasksRequest.h" +#include "model/DeleteTasksResult.h" +#include "model/TaskConfigModifyRequest.h" +#include "model/TaskConfigModifyResult.h" +#include "model/GetMyGroupsRequest.h" +#include "model/GetMyGroupsResult.h" +#include "model/QueryTaskMonitorDataRequest.h" +#include "model/QueryTaskMonitorDataResult.h" +#include "model/StopTasksRequest.h" +#include "model/StopTasksResult.h" +#include "model/UpdateAlarmRequest.h" +#include "model/UpdateAlarmResult.h" +#include "model/ModifyTaskRequest.h" +#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/TaskConfigEnableRequest.h" +#include "model/TaskConfigEnableResult.h" +#include "model/QueryMetricMetaRequest.h" +#include "model/QueryMetricMetaResult.h" +#include "model/TaskConfigCreateRequest.h" +#include "model/TaskConfigCreateResult.h" +#include "model/GetNotifyPolicyRequest.h" +#include "model/GetNotifyPolicyResult.h" +#include "model/NodeUninstallRequest.h" +#include "model/NodeUninstallResult.h" +#include "model/QueryErrorDistributionRequest.h" +#include "model/QueryErrorDistributionResult.h" +#include "model/EnableEventRuleRequest.h" +#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/ApplyTemplateRequest.h" +#include "model/ApplyTemplateResult.h" #include "model/EnableActiveAlertRequest.h" #include "model/EnableActiveAlertResult.h" #include "model/QuerySystemEventDetailRequest.h" @@ -50,46 +162,42 @@ #include "model/CreateNotifyPolicyResult.h" #include "model/DeleteAlarmRequest.h" #include "model/DeleteAlarmResult.h" -#include "model/NodeListRequest.h" -#include "model/NodeListResult.h" -#include "model/NodeProcessesRequest.h" -#include "model/NodeProcessesResult.h" +#include "model/TaskConfigListRequest.h" +#include "model/TaskConfigListResult.h" +#include "model/GetMonitoringTemplateRequest.h" +#include "model/GetMonitoringTemplateResult.h" #include "model/ListMyGroupCategoriesRequest.h" #include "model/ListMyGroupCategoriesResult.h" -#include "model/QueryMetricListRequest.h" -#include "model/QueryMetricListResult.h" +#include "model/DeleteGroupDynamicRuleRequest.h" +#include "model/DeleteGroupDynamicRuleResult.h" +#include "model/CreateTaskRequest.h" +#include "model/CreateTaskResult.h" #include "model/ListMyGroupInstancesDetailsRequest.h" #include "model/ListMyGroupInstancesDetailsResult.h" -#include "model/DisableAlarmRequest.h" -#include "model/DisableAlarmResult.h" -#include "model/PutCustomMetricRequest.h" -#include "model/PutCustomMetricResult.h" #include "model/DeleteMyGroupsRequest.h" #include "model/DeleteMyGroupsResult.h" -#include "model/QueryMetricLastRequest.h" -#include "model/QueryMetricLastResult.h" -#include "model/QuerySystemEventHistogramRequest.h" -#include "model/QuerySystemEventHistogramResult.h" #include "model/DescribeAlarmHistoryRequest.h" #include "model/DescribeAlarmHistoryResult.h" +#include "model/ApplyMonitoringTemplateRequest.h" +#include "model/ApplyMonitoringTemplateResult.h" #include "model/NodeStatusRequest.h" #include "model/NodeStatusResult.h" +#include "model/DescribeAlarmsRequest.h" +#include "model/DescribeAlarmsResult.h" #include "model/DeleteMyGroupInstancesRequest.h" #include "model/DeleteMyGroupInstancesResult.h" -#include "model/ListProductOfActiveAlertRequest.h" -#include "model/ListProductOfActiveAlertResult.h" -#include "model/CreateMyGroupsRequest.h" -#include "model/CreateMyGroupsResult.h" +#include "model/DescribeAlarmsForResourcesRequest.h" +#include "model/DescribeAlarmsForResourcesResult.h" +#include "model/QueryStaticsResponseTimeRequest.h" +#include "model/QueryStaticsResponseTimeResult.h" #include "model/CreateAlarmRequest.h" #include "model/CreateAlarmResult.h" -#include "model/ListActiveAlertRuleRequest.h" -#include "model/ListActiveAlertRuleResult.h" #include "model/ListMyGroupsRequest.h" #include "model/ListMyGroupsResult.h" -#include "model/DeleteNotifyPolicyRequest.h" -#include "model/DeleteNotifyPolicyResult.h" #include "model/AddMyGroupInstancesRequest.h" #include "model/AddMyGroupInstancesResult.h" +#include "model/SendDryRunSystemEventRequest.h" +#include "model/SendDryRunSystemEventResult.h" #include "model/NodeProcessDeleteRequest.h" #include "model/NodeProcessDeleteResult.h" #include "model/UpdateMyGroupsRequest.h" @@ -98,42 +206,34 @@ #include "model/QuerySystemEventCountResult.h" #include "model/ListMyGroupInstancesRequest.h" #include "model/ListMyGroupInstancesResult.h" -#include "model/AccessKeyGetRequest.h" -#include "model/AccessKeyGetResult.h" -#include "model/EnableActiceAlertRequest.h" -#include "model/EnableActiceAlertResult.h" -#include "model/PutMetricDataRequest.h" -#include "model/PutMetricDataResult.h" -#include "model/DisableActiveAlertRequest.h" -#include "model/DisableActiveAlertResult.h" -#include "model/DisableActiceAlertRequest.h" -#include "model/DisableActiceAlertResult.h" +#include "model/GetContactsRequest.h" +#include "model/GetContactsResult.h" +#include "model/UpdateMyGroupMembersRequest.h" +#include "model/UpdateMyGroupMembersResult.h" +#include "model/QueryStaticsErrorRateRequest.h" +#include "model/QueryStaticsErrorRateResult.h" +#include "model/ListGroupDynamicRuleRequest.h" +#include "model/ListGroupDynamicRuleResult.h" #include "model/ListAlarmRequest.h" #include "model/ListAlarmResult.h" #include "model/NodeInstallRequest.h" #include "model/NodeInstallResult.h" -#include "model/QueryCustomEventHistogramRequest.h" -#include "model/QueryCustomEventHistogramResult.h" -#include "model/PutEventRequest.h" -#include "model/PutEventResult.h" -#include "model/ListAlarmHistoryRequest.h" -#include "model/ListAlarmHistoryResult.h" +#include "model/GetMyGroupAlertRequest.h" +#include "model/GetMyGroupAlertResult.h" +#include "model/DeleteMonitoringTemplateRequest.h" +#include "model/DeleteMonitoringTemplateResult.h" #include "model/NodeStatusListRequest.h" #include "model/NodeStatusListResult.h" #include "model/ListContactGroupRequest.h" #include "model/ListContactGroupResult.h" -#include "model/GetMyGroupsRequest.h" -#include "model/GetMyGroupsResult.h" +#include "model/DescribeContactRequest.h" +#include "model/DescribeContactResult.h" +#include "model/PutMetricAlarmRequest.h" +#include "model/PutMetricAlarmResult.h" #include "model/ListNotifyPolicyRequest.h" #include "model/ListNotifyPolicyResult.h" -#include "model/UpdateAlarmRequest.h" -#include "model/UpdateAlarmResult.h" -#include "model/NodeProcessCreateRequest.h" -#include "model/NodeProcessCreateResult.h" #include "model/EnableAlarmRequest.h" #include "model/EnableAlarmResult.h" -#include "model/QueryCustomEventDetailRequest.h" -#include "model/QueryCustomEventDetailResult.h" namespace AlibabaCloud @@ -143,347 +243,647 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT CmsClient : public RpcServiceClient { public: - typedef Outcome ProfileSetOutcome; - typedef std::future ProfileSetOutcomeCallable; + typedef Outcome ProfileSetOutcome; + typedef std::future ProfileSetOutcomeCallable; typedef std::function&)> ProfileSetAsyncHandler; - typedef Outcome ListProductOfActiceAlertOutcome; - typedef std::future ListProductOfActiceAlertOutcomeCallable; - typedef std::function&)> ListProductOfActiceAlertAsyncHandler; - typedef Outcome DeleteCustomMetricOutcome; - typedef std::future DeleteCustomMetricOutcomeCallable; + typedef Outcome DeleteCustomMetricOutcome; + typedef std::future DeleteCustomMetricOutcomeCallable; typedef std::function&)> DeleteCustomMetricAsyncHandler; - typedef Outcome GetNotifyPolicyOutcome; - typedef std::future GetNotifyPolicyOutcomeCallable; - typedef std::function&)> GetNotifyPolicyAsyncHandler; - typedef Outcome NodeUninstallOutcome; - typedef std::future NodeUninstallOutcomeCallable; - typedef std::function&)> NodeUninstallAsyncHandler; - typedef Outcome QueryCustomEventCountOutcome; - typedef std::future QueryCustomEventCountOutcomeCallable; + 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 DescribeISPAreaCityOutcome; + typedef std::future DescribeISPAreaCityOutcomeCallable; + typedef std::function&)> DescribeISPAreaCityAsyncHandler; + typedef Outcome QueryCustomEventCountOutcome; + typedef std::future QueryCustomEventCountOutcomeCallable; typedef std::function&)> QueryCustomEventCountAsyncHandler; - typedef Outcome UpdateMyGroupInstancesOutcome; - typedef std::future UpdateMyGroupInstancesOutcomeCallable; + typedef Outcome ListEventRulesOutcome; + typedef std::future ListEventRulesOutcomeCallable; + typedef std::function&)> ListEventRulesAsyncHandler; + typedef Outcome UpdateMyGroupInstancesOutcome; + typedef std::future UpdateMyGroupInstancesOutcomeCallable; typedef std::function&)> UpdateMyGroupInstancesAsyncHandler; - typedef Outcome ProfileGetOutcome; - typedef std::future ProfileGetOutcomeCallable; + typedef Outcome ProfileGetOutcome; + typedef std::future ProfileGetOutcomeCallable; typedef std::function&)> ProfileGetAsyncHandler; - typedef Outcome PutSystemEventOutcome; - typedef std::future PutSystemEventOutcomeCallable; - typedef std::function&)> PutSystemEventAsyncHandler; - typedef Outcome QueryCustomMetricListOutcome; - typedef std::future QueryCustomMetricListOutcomeCallable; - typedef std::function&)> QueryCustomMetricListAsyncHandler; - typedef Outcome EnableActiveAlertOutcome; - typedef std::future EnableActiveAlertOutcomeCallable; - typedef std::function&)> EnableActiveAlertAsyncHandler; - typedef Outcome QuerySystemEventDetailOutcome; - typedef std::future QuerySystemEventDetailOutcomeCallable; - typedef std::function&)> QuerySystemEventDetailAsyncHandler; - typedef Outcome CreateNotifyPolicyOutcome; - typedef std::future CreateNotifyPolicyOutcomeCallable; - typedef std::function&)> CreateNotifyPolicyAsyncHandler; - typedef Outcome DeleteAlarmOutcome; - typedef std::future DeleteAlarmOutcomeCallable; - typedef std::function&)> DeleteAlarmAsyncHandler; - typedef Outcome NodeListOutcome; - typedef std::future NodeListOutcomeCallable; + 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 PutEventRuleOutcome; + typedef std::future PutEventRuleOutcomeCallable; + typedef std::function&)> PutEventRuleAsyncHandler; + typedef Outcome NodeListOutcome; + typedef std::future NodeListOutcomeCallable; typedef std::function&)> NodeListAsyncHandler; - typedef Outcome NodeProcessesOutcome; - typedef std::future NodeProcessesOutcomeCallable; + typedef Outcome QueryStaticsAvailabilityOutcome; + typedef std::future QueryStaticsAvailabilityOutcomeCallable; + typedef std::function&)> QueryStaticsAvailabilityAsyncHandler; + typedef Outcome NodeProcessesOutcome; + typedef std::future NodeProcessesOutcomeCallable; typedef std::function&)> NodeProcessesAsyncHandler; - typedef Outcome ListMyGroupCategoriesOutcome; - typedef std::future ListMyGroupCategoriesOutcomeCallable; - typedef std::function&)> ListMyGroupCategoriesAsyncHandler; - typedef Outcome QueryMetricListOutcome; - typedef std::future QueryMetricListOutcomeCallable; + typedef Outcome ListMonitoringTemplatesOutcome; + typedef std::future ListMonitoringTemplatesOutcomeCallable; + typedef std::function&)> ListMonitoringTemplatesAsyncHandler; + typedef Outcome QueryMetricListOutcome; + typedef std::future QueryMetricListOutcomeCallable; typedef std::function&)> QueryMetricListAsyncHandler; - typedef Outcome ListMyGroupInstancesDetailsOutcome; - typedef std::future ListMyGroupInstancesDetailsOutcomeCallable; - typedef std::function&)> ListMyGroupInstancesDetailsAsyncHandler; - typedef Outcome DisableAlarmOutcome; - typedef std::future DisableAlarmOutcomeCallable; + typedef Outcome QuerySystemEventDemoOutcome; + typedef std::future QuerySystemEventDemoOutcomeCallable; + typedef std::function&)> QuerySystemEventDemoAsyncHandler; + typedef Outcome DisableAlarmOutcome; + typedef std::future DisableAlarmOutcomeCallable; typedef std::function&)> DisableAlarmAsyncHandler; - typedef Outcome PutCustomMetricOutcome; - typedef std::future PutCustomMetricOutcomeCallable; + typedef Outcome PutCustomMetricOutcome; + typedef std::future PutCustomMetricOutcomeCallable; typedef std::function&)> PutCustomMetricAsyncHandler; - typedef Outcome DeleteMyGroupsOutcome; - typedef std::future DeleteMyGroupsOutcomeCallable; - typedef std::function&)> DeleteMyGroupsAsyncHandler; - typedef Outcome QueryMetricLastOutcome; - typedef std::future QueryMetricLastOutcomeCallable; + typedef Outcome QueryMetricLastOutcome; + typedef std::future QueryMetricLastOutcomeCallable; typedef std::function&)> QueryMetricLastAsyncHandler; - typedef Outcome QuerySystemEventHistogramOutcome; - typedef std::future QuerySystemEventHistogramOutcomeCallable; + typedef Outcome QuerySystemEventHistogramOutcome; + typedef std::future QuerySystemEventHistogramOutcomeCallable; typedef std::function&)> QuerySystemEventHistogramAsyncHandler; - typedef Outcome DescribeAlarmHistoryOutcome; - typedef std::future DescribeAlarmHistoryOutcomeCallable; - typedef std::function&)> DescribeAlarmHistoryAsyncHandler; - typedef Outcome NodeStatusOutcome; - typedef std::future NodeStatusOutcomeCallable; - typedef std::function&)> NodeStatusAsyncHandler; - typedef Outcome DeleteMyGroupInstancesOutcome; - typedef std::future DeleteMyGroupInstancesOutcomeCallable; - typedef std::function&)> DeleteMyGroupInstancesAsyncHandler; - typedef Outcome ListProductOfActiveAlertOutcome; - typedef std::future ListProductOfActiveAlertOutcomeCallable; + 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 ListProductOfActiveAlertOutcome; + typedef std::future ListProductOfActiveAlertOutcomeCallable; typedef std::function&)> ListProductOfActiveAlertAsyncHandler; - typedef Outcome CreateMyGroupsOutcome; - typedef std::future CreateMyGroupsOutcomeCallable; + typedef Outcome UpdateMyGroupAlertOutcome; + typedef std::future UpdateMyGroupAlertOutcomeCallable; + typedef std::function&)> UpdateMyGroupAlertAsyncHandler; + typedef Outcome CreateMonitoringTemplateOutcome; + typedef std::future CreateMonitoringTemplateOutcomeCallable; + typedef std::function&)> CreateMonitoringTemplateAsyncHandler; + typedef Outcome CreateMyGroupsOutcome; + typedef std::future CreateMyGroupsOutcomeCallable; typedef std::function&)> CreateMyGroupsAsyncHandler; - typedef Outcome CreateAlarmOutcome; - typedef std::future CreateAlarmOutcomeCallable; - typedef std::function&)> CreateAlarmAsyncHandler; - typedef Outcome ListActiveAlertRuleOutcome; - typedef std::future ListActiveAlertRuleOutcomeCallable; + typedef Outcome CreateMyGroupAlertBatchOutcome; + typedef std::future CreateMyGroupAlertBatchOutcomeCallable; + typedef std::function&)> CreateMyGroupAlertBatchAsyncHandler; + typedef Outcome DescribeTasksOutcome; + typedef std::future DescribeTasksOutcomeCallable; + typedef std::function&)> DescribeTasksAsyncHandler; + typedef Outcome ListActiveAlertRuleOutcome; + typedef std::future ListActiveAlertRuleOutcomeCallable; typedef std::function&)> ListActiveAlertRuleAsyncHandler; - typedef Outcome ListMyGroupsOutcome; - typedef std::future ListMyGroupsOutcomeCallable; - typedef std::function&)> ListMyGroupsAsyncHandler; - typedef Outcome DeleteNotifyPolicyOutcome; - typedef std::future DeleteNotifyPolicyOutcomeCallable; + typedef Outcome DeleteNotifyPolicyOutcome; + typedef std::future DeleteNotifyPolicyOutcomeCallable; typedef std::function&)> DeleteNotifyPolicyAsyncHandler; - typedef Outcome AddMyGroupInstancesOutcome; - typedef std::future AddMyGroupInstancesOutcomeCallable; - typedef std::function&)> AddMyGroupInstancesAsyncHandler; - typedef Outcome NodeProcessDeleteOutcome; - typedef std::future NodeProcessDeleteOutcomeCallable; - typedef std::function&)> NodeProcessDeleteAsyncHandler; - typedef Outcome UpdateMyGroupsOutcome; - typedef std::future UpdateMyGroupsOutcomeCallable; - typedef std::function&)> UpdateMyGroupsAsyncHandler; - typedef Outcome QuerySystemEventCountOutcome; - typedef std::future QuerySystemEventCountOutcomeCallable; - typedef std::function&)> QuerySystemEventCountAsyncHandler; - typedef Outcome ListMyGroupInstancesOutcome; - typedef std::future ListMyGroupInstancesOutcomeCallable; - typedef std::function&)> ListMyGroupInstancesAsyncHandler; - typedef Outcome AccessKeyGetOutcome; - typedef std::future AccessKeyGetOutcomeCallable; + typedef Outcome QueryMetricTopOutcome; + typedef std::future QueryMetricTopOutcomeCallable; + typedef std::function&)> QueryMetricTopAsyncHandler; + typedef Outcome AccessKeyGetOutcome; + typedef std::future AccessKeyGetOutcomeCallable; typedef std::function&)> AccessKeyGetAsyncHandler; - typedef Outcome EnableActiceAlertOutcome; - typedef std::future EnableActiceAlertOutcomeCallable; - typedef std::function&)> EnableActiceAlertAsyncHandler; - typedef Outcome PutMetricDataOutcome; - typedef std::future PutMetricDataOutcomeCallable; - typedef std::function&)> PutMetricDataAsyncHandler; - typedef Outcome DisableActiveAlertOutcome; - typedef std::future DisableActiveAlertOutcomeCallable; + typedef Outcome QueryTaskConfigOutcome; + typedef std::future QueryTaskConfigOutcomeCallable; + typedef std::function&)> QueryTaskConfigAsyncHandler; + typedef Outcome QueryProjectMetaOutcome; + typedef std::future QueryProjectMetaOutcomeCallable; + typedef std::function&)> QueryProjectMetaAsyncHandler; + typedef Outcome QueryMetricDataOutcome; + typedef std::future QueryMetricDataOutcomeCallable; + typedef std::function&)> QueryMetricDataAsyncHandler; + typedef Outcome DisableActiveAlertOutcome; + typedef std::future DisableActiveAlertOutcomeCallable; typedef std::function&)> DisableActiveAlertAsyncHandler; - typedef Outcome DisableActiceAlertOutcome; - typedef std::future DisableActiceAlertOutcomeCallable; - typedef std::function&)> DisableActiceAlertAsyncHandler; - typedef Outcome ListAlarmOutcome; - typedef std::future ListAlarmOutcomeCallable; - typedef std::function&)> ListAlarmAsyncHandler; - typedef Outcome NodeInstallOutcome; - typedef std::future NodeInstallOutcomeCallable; - typedef std::function&)> NodeInstallAsyncHandler; - typedef Outcome QueryCustomEventHistogramOutcome; - typedef std::future QueryCustomEventHistogramOutcomeCallable; - typedef std::function&)> QueryCustomEventHistogramAsyncHandler; - typedef Outcome PutEventOutcome; - typedef std::future PutEventOutcomeCallable; + typedef Outcome PutEventOutcome; + typedef std::future PutEventOutcomeCallable; typedef std::function&)> PutEventAsyncHandler; - typedef Outcome ListAlarmHistoryOutcome; - typedef std::future ListAlarmHistoryOutcomeCallable; + typedef Outcome QueryCustomEventHistogramOutcome; + typedef std::future QueryCustomEventHistogramOutcomeCallable; + typedef std::function&)> QueryCustomEventHistogramAsyncHandler; + typedef Outcome ListAlarmHistoryOutcome; + typedef std::future ListAlarmHistoryOutcomeCallable; typedef std::function&)> ListAlarmHistoryAsyncHandler; - typedef Outcome NodeStatusListOutcome; - typedef std::future NodeStatusListOutcomeCallable; - typedef std::function&)> NodeStatusListAsyncHandler; - typedef Outcome ListContactGroupOutcome; - typedef std::future ListContactGroupOutcomeCallable; - typedef std::function&)> ListContactGroupAsyncHandler; - typedef Outcome GetMyGroupsOutcome; - typedef std::future GetMyGroupsOutcomeCallable; + typedef Outcome DeleteTasksOutcome; + typedef std::future DeleteTasksOutcomeCallable; + typedef std::function&)> DeleteTasksAsyncHandler; + typedef Outcome TaskConfigModifyOutcome; + typedef std::future TaskConfigModifyOutcomeCallable; + typedef std::function&)> TaskConfigModifyAsyncHandler; + typedef Outcome GetMyGroupsOutcome; + typedef std::future GetMyGroupsOutcomeCallable; typedef std::function&)> GetMyGroupsAsyncHandler; - typedef Outcome ListNotifyPolicyOutcome; - typedef std::future ListNotifyPolicyOutcomeCallable; - typedef std::function&)> ListNotifyPolicyAsyncHandler; - typedef Outcome UpdateAlarmOutcome; - typedef std::future UpdateAlarmOutcomeCallable; + typedef Outcome QueryTaskMonitorDataOutcome; + typedef std::future QueryTaskMonitorDataOutcomeCallable; + typedef std::function&)> QueryTaskMonitorDataAsyncHandler; + typedef Outcome StopTasksOutcome; + typedef std::future StopTasksOutcomeCallable; + typedef std::function&)> StopTasksAsyncHandler; + typedef Outcome UpdateAlarmOutcome; + typedef std::future UpdateAlarmOutcomeCallable; typedef std::function&)> UpdateAlarmAsyncHandler; - typedef Outcome NodeProcessCreateOutcome; - typedef std::future NodeProcessCreateOutcomeCallable; - typedef std::function&)> NodeProcessCreateAsyncHandler; - typedef Outcome EnableAlarmOutcome; - typedef std::future EnableAlarmOutcomeCallable; - typedef std::function&)> EnableAlarmAsyncHandler; - typedef Outcome QueryCustomEventDetailOutcome; - typedef std::future QueryCustomEventDetailOutcomeCallable; + typedef Outcome ModifyTaskOutcome; + typedef std::future ModifyTaskOutcomeCallable; + typedef std::function&)> ModifyTaskAsyncHandler; + 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 TaskConfigEnableOutcome; + typedef std::future TaskConfigEnableOutcomeCallable; + typedef std::function&)> TaskConfigEnableAsyncHandler; + typedef Outcome QueryMetricMetaOutcome; + typedef std::future QueryMetricMetaOutcomeCallable; + typedef std::function&)> QueryMetricMetaAsyncHandler; + typedef Outcome TaskConfigCreateOutcome; + typedef std::future TaskConfigCreateOutcomeCallable; + typedef std::function&)> TaskConfigCreateAsyncHandler; + typedef Outcome GetNotifyPolicyOutcome; + typedef std::future GetNotifyPolicyOutcomeCallable; + typedef std::function&)> GetNotifyPolicyAsyncHandler; + typedef Outcome NodeUninstallOutcome; + typedef std::future NodeUninstallOutcomeCallable; + typedef std::function&)> NodeUninstallAsyncHandler; + typedef Outcome QueryErrorDistributionOutcome; + typedef std::future QueryErrorDistributionOutcomeCallable; + typedef std::function&)> QueryErrorDistributionAsyncHandler; + typedef Outcome EnableEventRuleOutcome; + typedef std::future EnableEventRuleOutcomeCallable; + typedef std::function&)> EnableEventRuleAsyncHandler; + 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 ApplyTemplateOutcome; + typedef std::future ApplyTemplateOutcomeCallable; + typedef std::function&)> ApplyTemplateAsyncHandler; + typedef Outcome EnableActiveAlertOutcome; + typedef std::future EnableActiveAlertOutcomeCallable; + typedef std::function&)> EnableActiveAlertAsyncHandler; + typedef Outcome QuerySystemEventDetailOutcome; + typedef std::future QuerySystemEventDetailOutcomeCallable; + typedef std::function&)> QuerySystemEventDetailAsyncHandler; + typedef Outcome CreateNotifyPolicyOutcome; + typedef std::future CreateNotifyPolicyOutcomeCallable; + typedef std::function&)> CreateNotifyPolicyAsyncHandler; + typedef Outcome DeleteAlarmOutcome; + typedef std::future DeleteAlarmOutcomeCallable; + typedef std::function&)> DeleteAlarmAsyncHandler; + typedef Outcome TaskConfigListOutcome; + typedef std::future TaskConfigListOutcomeCallable; + typedef std::function&)> TaskConfigListAsyncHandler; + typedef Outcome GetMonitoringTemplateOutcome; + typedef std::future GetMonitoringTemplateOutcomeCallable; + typedef std::function&)> GetMonitoringTemplateAsyncHandler; + 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 ListMyGroupInstancesDetailsOutcome; + typedef std::future ListMyGroupInstancesDetailsOutcomeCallable; + typedef std::function&)> ListMyGroupInstancesDetailsAsyncHandler; + typedef Outcome DeleteMyGroupsOutcome; + typedef std::future DeleteMyGroupsOutcomeCallable; + typedef std::function&)> DeleteMyGroupsAsyncHandler; + typedef Outcome DescribeAlarmHistoryOutcome; + typedef std::future DescribeAlarmHistoryOutcomeCallable; + typedef std::function&)> DescribeAlarmHistoryAsyncHandler; + typedef Outcome ApplyMonitoringTemplateOutcome; + typedef std::future ApplyMonitoringTemplateOutcomeCallable; + typedef std::function&)> ApplyMonitoringTemplateAsyncHandler; + typedef Outcome NodeStatusOutcome; + typedef std::future NodeStatusOutcomeCallable; + typedef std::function&)> NodeStatusAsyncHandler; + typedef Outcome DescribeAlarmsOutcome; + typedef std::future DescribeAlarmsOutcomeCallable; + typedef std::function&)> DescribeAlarmsAsyncHandler; + typedef Outcome DeleteMyGroupInstancesOutcome; + typedef std::future DeleteMyGroupInstancesOutcomeCallable; + typedef std::function&)> DeleteMyGroupInstancesAsyncHandler; + typedef Outcome DescribeAlarmsForResourcesOutcome; + typedef std::future DescribeAlarmsForResourcesOutcomeCallable; + typedef std::function&)> DescribeAlarmsForResourcesAsyncHandler; + typedef Outcome QueryStaticsResponseTimeOutcome; + typedef std::future QueryStaticsResponseTimeOutcomeCallable; + typedef std::function&)> QueryStaticsResponseTimeAsyncHandler; + typedef Outcome CreateAlarmOutcome; + typedef std::future CreateAlarmOutcomeCallable; + typedef std::function&)> CreateAlarmAsyncHandler; + 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 NodeProcessDeleteOutcome; + typedef std::future NodeProcessDeleteOutcomeCallable; + typedef std::function&)> NodeProcessDeleteAsyncHandler; + typedef Outcome UpdateMyGroupsOutcome; + typedef std::future UpdateMyGroupsOutcomeCallable; + typedef std::function&)> UpdateMyGroupsAsyncHandler; + typedef Outcome QuerySystemEventCountOutcome; + typedef std::future QuerySystemEventCountOutcomeCallable; + typedef std::function&)> QuerySystemEventCountAsyncHandler; + typedef Outcome ListMyGroupInstancesOutcome; + typedef std::future ListMyGroupInstancesOutcomeCallable; + typedef std::function&)> ListMyGroupInstancesAsyncHandler; + typedef Outcome GetContactsOutcome; + typedef std::future GetContactsOutcomeCallable; + typedef std::function&)> GetContactsAsyncHandler; + typedef Outcome UpdateMyGroupMembersOutcome; + typedef std::future UpdateMyGroupMembersOutcomeCallable; + typedef std::function&)> UpdateMyGroupMembersAsyncHandler; + typedef Outcome QueryStaticsErrorRateOutcome; + typedef std::future QueryStaticsErrorRateOutcomeCallable; + typedef std::function&)> QueryStaticsErrorRateAsyncHandler; + typedef Outcome ListGroupDynamicRuleOutcome; + typedef std::future ListGroupDynamicRuleOutcomeCallable; + typedef std::function&)> ListGroupDynamicRuleAsyncHandler; + typedef Outcome ListAlarmOutcome; + typedef std::future ListAlarmOutcomeCallable; + typedef std::function&)> ListAlarmAsyncHandler; + typedef Outcome NodeInstallOutcome; + typedef std::future NodeInstallOutcomeCallable; + typedef std::function&)> NodeInstallAsyncHandler; + typedef Outcome GetMyGroupAlertOutcome; + typedef std::future GetMyGroupAlertOutcomeCallable; + typedef std::function&)> GetMyGroupAlertAsyncHandler; + typedef Outcome DeleteMonitoringTemplateOutcome; + typedef std::future DeleteMonitoringTemplateOutcomeCallable; + typedef std::function&)> DeleteMonitoringTemplateAsyncHandler; + typedef Outcome NodeStatusListOutcome; + typedef std::future NodeStatusListOutcomeCallable; + typedef std::function&)> NodeStatusListAsyncHandler; + 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 ListNotifyPolicyOutcome; + typedef std::future ListNotifyPolicyOutcomeCallable; + typedef std::function&)> ListNotifyPolicyAsyncHandler; + typedef Outcome EnableAlarmOutcome; + typedef std::future EnableAlarmOutcomeCallable; + typedef std::function&)> EnableAlarmAsyncHandler; CmsClient(const Credentials &credentials, const ClientConfiguration &configuration); CmsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CmsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CmsClient(); - ProfileSetOutcome profileSet(const Model::ProfileSetRequest &request)const; - void profileSetAsync(const Model::ProfileSetRequest& request, const ProfileSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ProfileSetOutcomeCallable profileSetCallable(const Model::ProfileSetRequest& request) const; - ListProductOfActiceAlertOutcome listProductOfActiceAlert(const Model::ListProductOfActiceAlertRequest &request)const; - void listProductOfActiceAlertAsync(const Model::ListProductOfActiceAlertRequest& request, const ListProductOfActiceAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListProductOfActiceAlertOutcomeCallable listProductOfActiceAlertCallable(const Model::ListProductOfActiceAlertRequest& request) const; - DeleteCustomMetricOutcome deleteCustomMetric(const Model::DeleteCustomMetricRequest &request)const; - void deleteCustomMetricAsync(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCustomMetricOutcomeCallable deleteCustomMetricCallable(const Model::DeleteCustomMetricRequest& 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; - NodeUninstallOutcome nodeUninstall(const Model::NodeUninstallRequest &request)const; - void nodeUninstallAsync(const Model::NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeUninstallOutcomeCallable nodeUninstallCallable(const Model::NodeUninstallRequest& 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; - 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; - 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; - PutSystemEventOutcome putSystemEvent(const Model::PutSystemEventRequest &request)const; - void putSystemEventAsync(const Model::PutSystemEventRequest& request, const PutSystemEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutSystemEventOutcomeCallable putSystemEventCallable(const Model::PutSystemEventRequest& 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; - QuerySystemEventDetailOutcome querySystemEventDetail(const Model::QuerySystemEventDetailRequest &request)const; - void querySystemEventDetailAsync(const Model::QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventDetailOutcomeCallable querySystemEventDetailCallable(const Model::QuerySystemEventDetailRequest& request) const; - CreateNotifyPolicyOutcome createNotifyPolicy(const Model::CreateNotifyPolicyRequest &request)const; - void createNotifyPolicyAsync(const Model::CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNotifyPolicyOutcomeCallable createNotifyPolicyCallable(const Model::CreateNotifyPolicyRequest& request) const; - DeleteAlarmOutcome deleteAlarm(const Model::DeleteAlarmRequest &request)const; - void deleteAlarmAsync(const Model::DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAlarmOutcomeCallable deleteAlarmCallable(const Model::DeleteAlarmRequest& request) const; - NodeListOutcome nodeList(const Model::NodeListRequest &request)const; - void nodeListAsync(const Model::NodeListRequest& request, const NodeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeListOutcomeCallable nodeListCallable(const Model::NodeListRequest& request) const; - 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; - 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; - QueryMetricListOutcome queryMetricList(const Model::QueryMetricListRequest &request)const; - void queryMetricListAsync(const Model::QueryMetricListRequest& request, const QueryMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricListOutcomeCallable queryMetricListCallable(const Model::QueryMetricListRequest& 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; - DisableAlarmOutcome disableAlarm(const Model::DisableAlarmRequest &request)const; - void disableAlarmAsync(const Model::DisableAlarmRequest& request, const DisableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableAlarmOutcomeCallable disableAlarmCallable(const Model::DisableAlarmRequest& request) const; - PutCustomMetricOutcome putCustomMetric(const Model::PutCustomMetricRequest &request)const; - void putCustomMetricAsync(const Model::PutCustomMetricRequest& request, const PutCustomMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutCustomMetricOutcomeCallable putCustomMetricCallable(const Model::PutCustomMetricRequest& request) const; - DeleteMyGroupsOutcome deleteMyGroups(const Model::DeleteMyGroupsRequest &request)const; - void deleteMyGroupsAsync(const Model::DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMyGroupsOutcomeCallable deleteMyGroupsCallable(const Model::DeleteMyGroupsRequest& request) const; - 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; - 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; - DescribeAlarmHistoryOutcome describeAlarmHistory(const Model::DescribeAlarmHistoryRequest &request)const; - void describeAlarmHistoryAsync(const Model::DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAlarmHistoryOutcomeCallable describeAlarmHistoryCallable(const Model::DescribeAlarmHistoryRequest& request) const; - NodeStatusOutcome nodeStatus(const Model::NodeStatusRequest &request)const; - void nodeStatusAsync(const Model::NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeStatusOutcomeCallable nodeStatusCallable(const Model::NodeStatusRequest& request) const; - DeleteMyGroupInstancesOutcome deleteMyGroupInstances(const Model::DeleteMyGroupInstancesRequest &request)const; - void deleteMyGroupInstancesAsync(const Model::DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMyGroupInstancesOutcomeCallable deleteMyGroupInstancesCallable(const Model::DeleteMyGroupInstancesRequest& 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; - 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; - CreateAlarmOutcome createAlarm(const Model::CreateAlarmRequest &request)const; - void createAlarmAsync(const Model::CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAlarmOutcomeCallable createAlarmCallable(const Model::CreateAlarmRequest& request) const; - ListActiveAlertRuleOutcome listActiveAlertRule(const Model::ListActiveAlertRuleRequest &request)const; - void listActiveAlertRuleAsync(const Model::ListActiveAlertRuleRequest& request, const ListActiveAlertRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListActiveAlertRuleOutcomeCallable listActiveAlertRuleCallable(const Model::ListActiveAlertRuleRequest& request) const; - 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; - DeleteNotifyPolicyOutcome deleteNotifyPolicy(const Model::DeleteNotifyPolicyRequest &request)const; - void deleteNotifyPolicyAsync(const Model::DeleteNotifyPolicyRequest& request, const DeleteNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNotifyPolicyOutcomeCallable deleteNotifyPolicyCallable(const Model::DeleteNotifyPolicyRequest& 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; - UpdateMyGroupsOutcome updateMyGroups(const Model::UpdateMyGroupsRequest &request)const; - void updateMyGroupsAsync(const Model::UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupsOutcomeCallable updateMyGroupsCallable(const Model::UpdateMyGroupsRequest& request) const; - QuerySystemEventCountOutcome querySystemEventCount(const Model::QuerySystemEventCountRequest &request)const; - void querySystemEventCountAsync(const Model::QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventCountOutcomeCallable querySystemEventCountCallable(const Model::QuerySystemEventCountRequest& request) const; - ListMyGroupInstancesOutcome listMyGroupInstances(const Model::ListMyGroupInstancesRequest &request)const; - void listMyGroupInstancesAsync(const Model::ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMyGroupInstancesOutcomeCallable listMyGroupInstancesCallable(const Model::ListMyGroupInstancesRequest& request) const; - AccessKeyGetOutcome accessKeyGet(const Model::AccessKeyGetRequest &request)const; - void accessKeyGetAsync(const Model::AccessKeyGetRequest& request, const AccessKeyGetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AccessKeyGetOutcomeCallable accessKeyGetCallable(const Model::AccessKeyGetRequest& request) const; - EnableActiceAlertOutcome enableActiceAlert(const Model::EnableActiceAlertRequest &request)const; - void enableActiceAlertAsync(const Model::EnableActiceAlertRequest& request, const EnableActiceAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableActiceAlertOutcomeCallable enableActiceAlertCallable(const Model::EnableActiceAlertRequest& request) const; - PutMetricDataOutcome putMetricData(const Model::PutMetricDataRequest &request)const; - void putMetricDataAsync(const Model::PutMetricDataRequest& request, const PutMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutMetricDataOutcomeCallable putMetricDataCallable(const Model::PutMetricDataRequest& request) const; - 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; - DisableActiceAlertOutcome disableActiceAlert(const Model::DisableActiceAlertRequest &request)const; - void disableActiceAlertAsync(const Model::DisableActiceAlertRequest& request, const DisableActiceAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableActiceAlertOutcomeCallable disableActiceAlertCallable(const Model::DisableActiceAlertRequest& request) const; - ListAlarmOutcome listAlarm(const Model::ListAlarmRequest &request)const; - void listAlarmAsync(const Model::ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmOutcomeCallable listAlarmCallable(const Model::ListAlarmRequest& request) const; - NodeInstallOutcome nodeInstall(const Model::NodeInstallRequest &request)const; - void nodeInstallAsync(const Model::NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeInstallOutcomeCallable nodeInstallCallable(const Model::NodeInstallRequest& request) const; - QueryCustomEventHistogramOutcome queryCustomEventHistogram(const Model::QueryCustomEventHistogramRequest &request)const; - void queryCustomEventHistogramAsync(const Model::QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomEventHistogramOutcomeCallable queryCustomEventHistogramCallable(const Model::QueryCustomEventHistogramRequest& 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; - ListAlarmHistoryOutcome listAlarmHistory(const Model::ListAlarmHistoryRequest &request)const; - void listAlarmHistoryAsync(const Model::ListAlarmHistoryRequest& request, const ListAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmHistoryOutcomeCallable listAlarmHistoryCallable(const Model::ListAlarmHistoryRequest& request) const; - NodeStatusListOutcome nodeStatusList(const Model::NodeStatusListRequest &request)const; - void nodeStatusListAsync(const Model::NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeStatusListOutcomeCallable nodeStatusListCallable(const Model::NodeStatusListRequest& request) const; - 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; - GetMyGroupsOutcome getMyGroups(const Model::GetMyGroupsRequest &request)const; - void getMyGroupsAsync(const Model::GetMyGroupsRequest& request, const GetMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMyGroupsOutcomeCallable getMyGroupsCallable(const Model::GetMyGroupsRequest& 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; - UpdateAlarmOutcome updateAlarm(const Model::UpdateAlarmRequest &request)const; - void updateAlarmAsync(const Model::UpdateAlarmRequest& request, const UpdateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateAlarmOutcomeCallable updateAlarmCallable(const Model::UpdateAlarmRequest& 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; - EnableAlarmOutcome enableAlarm(const Model::EnableAlarmRequest &request)const; - void enableAlarmAsync(const Model::EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableAlarmOutcomeCallable enableAlarmCallable(const Model::EnableAlarmRequest& 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; + ProfileSetOutcome profileSet(const Model::ProfileSetRequest &request)const; + void profileSetAsync(const Model::ProfileSetRequest& request, const ProfileSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ProfileSetOutcomeCallable profileSetCallable(const Model::ProfileSetRequest& request) const; + DeleteCustomMetricOutcome deleteCustomMetric(const Model::DeleteCustomMetricRequest &request)const; + void deleteCustomMetricAsync(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomMetricOutcomeCallable deleteCustomMetricCallable(const Model::DeleteCustomMetricRequest& request) const; + 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; + 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; + 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; + 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; + 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; + NodeListOutcome nodeList(const Model::NodeListRequest &request)const; + void nodeListAsync(const Model::NodeListRequest& request, const NodeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NodeListOutcomeCallable nodeListCallable(const Model::NodeListRequest& request) const; + QueryStaticsAvailabilityOutcome queryStaticsAvailability(const Model::QueryStaticsAvailabilityRequest &request)const; + void queryStaticsAvailabilityAsync(const Model::QueryStaticsAvailabilityRequest& request, const QueryStaticsAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStaticsAvailabilityOutcomeCallable queryStaticsAvailabilityCallable(const Model::QueryStaticsAvailabilityRequest& request) const; + 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; + 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; + QueryMetricListOutcome queryMetricList(const Model::QueryMetricListRequest &request)const; + void queryMetricListAsync(const Model::QueryMetricListRequest& request, const QueryMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMetricListOutcomeCallable queryMetricListCallable(const Model::QueryMetricListRequest& request) const; + QuerySystemEventDemoOutcome querySystemEventDemo(const Model::QuerySystemEventDemoRequest &request)const; + void querySystemEventDemoAsync(const Model::QuerySystemEventDemoRequest& request, const QuerySystemEventDemoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySystemEventDemoOutcomeCallable querySystemEventDemoCallable(const Model::QuerySystemEventDemoRequest& request) const; + DisableAlarmOutcome disableAlarm(const Model::DisableAlarmRequest &request)const; + void disableAlarmAsync(const Model::DisableAlarmRequest& request, const DisableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableAlarmOutcomeCallable disableAlarmCallable(const Model::DisableAlarmRequest& request) const; + PutCustomMetricOutcome putCustomMetric(const Model::PutCustomMetricRequest &request)const; + void putCustomMetricAsync(const Model::PutCustomMetricRequest& request, const PutCustomMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutCustomMetricOutcomeCallable putCustomMetricCallable(const Model::PutCustomMetricRequest& request) const; + 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; + 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; + 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; + 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; + CreateMyGroupAlertBatchOutcome createMyGroupAlertBatch(const Model::CreateMyGroupAlertBatchRequest &request)const; + void createMyGroupAlertBatchAsync(const Model::CreateMyGroupAlertBatchRequest& request, const CreateMyGroupAlertBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMyGroupAlertBatchOutcomeCallable createMyGroupAlertBatchCallable(const Model::CreateMyGroupAlertBatchRequest& 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; + ListActiveAlertRuleOutcome listActiveAlertRule(const Model::ListActiveAlertRuleRequest &request)const; + void listActiveAlertRuleAsync(const Model::ListActiveAlertRuleRequest& request, const ListActiveAlertRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListActiveAlertRuleOutcomeCallable listActiveAlertRuleCallable(const Model::ListActiveAlertRuleRequest& request) const; + DeleteNotifyPolicyOutcome deleteNotifyPolicy(const Model::DeleteNotifyPolicyRequest &request)const; + void deleteNotifyPolicyAsync(const Model::DeleteNotifyPolicyRequest& request, const DeleteNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNotifyPolicyOutcomeCallable deleteNotifyPolicyCallable(const Model::DeleteNotifyPolicyRequest& request) const; + QueryMetricTopOutcome queryMetricTop(const Model::QueryMetricTopRequest &request)const; + void queryMetricTopAsync(const Model::QueryMetricTopRequest& request, const QueryMetricTopAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMetricTopOutcomeCallable queryMetricTopCallable(const Model::QueryMetricTopRequest& request) const; + AccessKeyGetOutcome accessKeyGet(const Model::AccessKeyGetRequest &request)const; + void accessKeyGetAsync(const Model::AccessKeyGetRequest& request, const AccessKeyGetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AccessKeyGetOutcomeCallable accessKeyGetCallable(const Model::AccessKeyGetRequest& request) const; + QueryTaskConfigOutcome queryTaskConfig(const Model::QueryTaskConfigRequest &request)const; + void queryTaskConfigAsync(const Model::QueryTaskConfigRequest& request, const QueryTaskConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTaskConfigOutcomeCallable queryTaskConfigCallable(const Model::QueryTaskConfigRequest& request) const; + QueryProjectMetaOutcome queryProjectMeta(const Model::QueryProjectMetaRequest &request)const; + void queryProjectMetaAsync(const Model::QueryProjectMetaRequest& request, const QueryProjectMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryProjectMetaOutcomeCallable queryProjectMetaCallable(const Model::QueryProjectMetaRequest& request) const; + QueryMetricDataOutcome queryMetricData(const Model::QueryMetricDataRequest &request)const; + void queryMetricDataAsync(const Model::QueryMetricDataRequest& request, const QueryMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMetricDataOutcomeCallable queryMetricDataCallable(const Model::QueryMetricDataRequest& request) const; + 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; + 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; + QueryCustomEventHistogramOutcome queryCustomEventHistogram(const Model::QueryCustomEventHistogramRequest &request)const; + void queryCustomEventHistogramAsync(const Model::QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCustomEventHistogramOutcomeCallable queryCustomEventHistogramCallable(const Model::QueryCustomEventHistogramRequest& request) const; + ListAlarmHistoryOutcome listAlarmHistory(const Model::ListAlarmHistoryRequest &request)const; + void listAlarmHistoryAsync(const Model::ListAlarmHistoryRequest& request, const ListAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmHistoryOutcomeCallable listAlarmHistoryCallable(const Model::ListAlarmHistoryRequest& request) const; + DeleteTasksOutcome deleteTasks(const Model::DeleteTasksRequest &request)const; + void deleteTasksAsync(const Model::DeleteTasksRequest& request, const DeleteTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTasksOutcomeCallable deleteTasksCallable(const Model::DeleteTasksRequest& request) const; + TaskConfigModifyOutcome taskConfigModify(const Model::TaskConfigModifyRequest &request)const; + void taskConfigModifyAsync(const Model::TaskConfigModifyRequest& request, const TaskConfigModifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TaskConfigModifyOutcomeCallable taskConfigModifyCallable(const Model::TaskConfigModifyRequest& request) const; + GetMyGroupsOutcome getMyGroups(const Model::GetMyGroupsRequest &request)const; + void getMyGroupsAsync(const Model::GetMyGroupsRequest& request, const GetMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMyGroupsOutcomeCallable getMyGroupsCallable(const Model::GetMyGroupsRequest& request) const; + QueryTaskMonitorDataOutcome queryTaskMonitorData(const Model::QueryTaskMonitorDataRequest &request)const; + void queryTaskMonitorDataAsync(const Model::QueryTaskMonitorDataRequest& request, const QueryTaskMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTaskMonitorDataOutcomeCallable queryTaskMonitorDataCallable(const Model::QueryTaskMonitorDataRequest& request) const; + StopTasksOutcome stopTasks(const Model::StopTasksRequest &request)const; + void stopTasksAsync(const Model::StopTasksRequest& request, const StopTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopTasksOutcomeCallable stopTasksCallable(const Model::StopTasksRequest& request) const; + UpdateAlarmOutcome updateAlarm(const Model::UpdateAlarmRequest &request)const; + void updateAlarmAsync(const Model::UpdateAlarmRequest& request, const UpdateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAlarmOutcomeCallable updateAlarmCallable(const Model::UpdateAlarmRequest& request) const; + ModifyTaskOutcome modifyTask(const Model::ModifyTaskRequest &request)const; + void modifyTaskAsync(const Model::ModifyTaskRequest& request, const ModifyTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTaskOutcomeCallable modifyTaskCallable(const Model::ModifyTaskRequest& request) const; + 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; + 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; + QueryMetricMetaOutcome queryMetricMeta(const Model::QueryMetricMetaRequest &request)const; + void queryMetricMetaAsync(const Model::QueryMetricMetaRequest& request, const QueryMetricMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMetricMetaOutcomeCallable queryMetricMetaCallable(const Model::QueryMetricMetaRequest& request) const; + 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; + 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; + NodeUninstallOutcome nodeUninstall(const Model::NodeUninstallRequest &request)const; + void nodeUninstallAsync(const Model::NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NodeUninstallOutcomeCallable nodeUninstallCallable(const Model::NodeUninstallRequest& request) const; + QueryErrorDistributionOutcome queryErrorDistribution(const Model::QueryErrorDistributionRequest &request)const; + void queryErrorDistributionAsync(const Model::QueryErrorDistributionRequest& request, const QueryErrorDistributionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryErrorDistributionOutcomeCallable queryErrorDistributionCallable(const Model::QueryErrorDistributionRequest& request) const; + EnableEventRuleOutcome enableEventRule(const Model::EnableEventRuleRequest &request)const; + void enableEventRuleAsync(const Model::EnableEventRuleRequest& request, const EnableEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableEventRuleOutcomeCallable enableEventRuleCallable(const Model::EnableEventRuleRequest& request) const; + 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; + 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; + 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; + QuerySystemEventDetailOutcome querySystemEventDetail(const Model::QuerySystemEventDetailRequest &request)const; + void querySystemEventDetailAsync(const Model::QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySystemEventDetailOutcomeCallable querySystemEventDetailCallable(const Model::QuerySystemEventDetailRequest& request) const; + CreateNotifyPolicyOutcome createNotifyPolicy(const Model::CreateNotifyPolicyRequest &request)const; + void createNotifyPolicyAsync(const Model::CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNotifyPolicyOutcomeCallable createNotifyPolicyCallable(const Model::CreateNotifyPolicyRequest& request) const; + DeleteAlarmOutcome deleteAlarm(const Model::DeleteAlarmRequest &request)const; + void deleteAlarmAsync(const Model::DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAlarmOutcomeCallable deleteAlarmCallable(const Model::DeleteAlarmRequest& request) const; + TaskConfigListOutcome taskConfigList(const Model::TaskConfigListRequest &request)const; + void taskConfigListAsync(const Model::TaskConfigListRequest& request, const TaskConfigListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TaskConfigListOutcomeCallable taskConfigListCallable(const Model::TaskConfigListRequest& request) const; + GetMonitoringTemplateOutcome getMonitoringTemplate(const Model::GetMonitoringTemplateRequest &request)const; + void getMonitoringTemplateAsync(const Model::GetMonitoringTemplateRequest& request, const GetMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMonitoringTemplateOutcomeCallable getMonitoringTemplateCallable(const Model::GetMonitoringTemplateRequest& request) const; + 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; + 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; + DeleteMyGroupsOutcome deleteMyGroups(const Model::DeleteMyGroupsRequest &request)const; + void deleteMyGroupsAsync(const Model::DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMyGroupsOutcomeCallable deleteMyGroupsCallable(const Model::DeleteMyGroupsRequest& request) const; + DescribeAlarmHistoryOutcome describeAlarmHistory(const Model::DescribeAlarmHistoryRequest &request)const; + void describeAlarmHistoryAsync(const Model::DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmHistoryOutcomeCallable describeAlarmHistoryCallable(const Model::DescribeAlarmHistoryRequest& request) const; + ApplyMonitoringTemplateOutcome applyMonitoringTemplate(const Model::ApplyMonitoringTemplateRequest &request)const; + void applyMonitoringTemplateAsync(const Model::ApplyMonitoringTemplateRequest& request, const ApplyMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyMonitoringTemplateOutcomeCallable applyMonitoringTemplateCallable(const Model::ApplyMonitoringTemplateRequest& request) const; + NodeStatusOutcome nodeStatus(const Model::NodeStatusRequest &request)const; + void nodeStatusAsync(const Model::NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NodeStatusOutcomeCallable nodeStatusCallable(const Model::NodeStatusRequest& request) const; + DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const; + void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const; + DeleteMyGroupInstancesOutcome deleteMyGroupInstances(const Model::DeleteMyGroupInstancesRequest &request)const; + void deleteMyGroupInstancesAsync(const Model::DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMyGroupInstancesOutcomeCallable deleteMyGroupInstancesCallable(const Model::DeleteMyGroupInstancesRequest& request) const; + DescribeAlarmsForResourcesOutcome describeAlarmsForResources(const Model::DescribeAlarmsForResourcesRequest &request)const; + void describeAlarmsForResourcesAsync(const Model::DescribeAlarmsForResourcesRequest& request, const DescribeAlarmsForResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmsForResourcesOutcomeCallable describeAlarmsForResourcesCallable(const Model::DescribeAlarmsForResourcesRequest& request) const; + QueryStaticsResponseTimeOutcome queryStaticsResponseTime(const Model::QueryStaticsResponseTimeRequest &request)const; + void queryStaticsResponseTimeAsync(const Model::QueryStaticsResponseTimeRequest& request, const QueryStaticsResponseTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStaticsResponseTimeOutcomeCallable queryStaticsResponseTimeCallable(const Model::QueryStaticsResponseTimeRequest& request) const; + CreateAlarmOutcome createAlarm(const Model::CreateAlarmRequest &request)const; + void createAlarmAsync(const Model::CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlarmOutcomeCallable createAlarmCallable(const Model::CreateAlarmRequest& request) const; + 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; + 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; + UpdateMyGroupsOutcome updateMyGroups(const Model::UpdateMyGroupsRequest &request)const; + void updateMyGroupsAsync(const Model::UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMyGroupsOutcomeCallable updateMyGroupsCallable(const Model::UpdateMyGroupsRequest& request) const; + QuerySystemEventCountOutcome querySystemEventCount(const Model::QuerySystemEventCountRequest &request)const; + void querySystemEventCountAsync(const Model::QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySystemEventCountOutcomeCallable querySystemEventCountCallable(const Model::QuerySystemEventCountRequest& request) const; + ListMyGroupInstancesOutcome listMyGroupInstances(const Model::ListMyGroupInstancesRequest &request)const; + void listMyGroupInstancesAsync(const Model::ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMyGroupInstancesOutcomeCallable listMyGroupInstancesCallable(const Model::ListMyGroupInstancesRequest& request) const; + GetContactsOutcome getContacts(const Model::GetContactsRequest &request)const; + void getContactsAsync(const Model::GetContactsRequest& request, const GetContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactsOutcomeCallable getContactsCallable(const Model::GetContactsRequest& request) const; + UpdateMyGroupMembersOutcome updateMyGroupMembers(const Model::UpdateMyGroupMembersRequest &request)const; + void updateMyGroupMembersAsync(const Model::UpdateMyGroupMembersRequest& request, const UpdateMyGroupMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMyGroupMembersOutcomeCallable updateMyGroupMembersCallable(const Model::UpdateMyGroupMembersRequest& request) const; + 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; + 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; + ListAlarmOutcome listAlarm(const Model::ListAlarmRequest &request)const; + void listAlarmAsync(const Model::ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmOutcomeCallable listAlarmCallable(const Model::ListAlarmRequest& request) const; + NodeInstallOutcome nodeInstall(const Model::NodeInstallRequest &request)const; + void nodeInstallAsync(const Model::NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NodeInstallOutcomeCallable nodeInstallCallable(const Model::NodeInstallRequest& request) const; + GetMyGroupAlertOutcome getMyGroupAlert(const Model::GetMyGroupAlertRequest &request)const; + void getMyGroupAlertAsync(const Model::GetMyGroupAlertRequest& request, const GetMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMyGroupAlertOutcomeCallable getMyGroupAlertCallable(const Model::GetMyGroupAlertRequest& request) const; + DeleteMonitoringTemplateOutcome deleteMonitoringTemplate(const Model::DeleteMonitoringTemplateRequest &request)const; + void deleteMonitoringTemplateAsync(const Model::DeleteMonitoringTemplateRequest& request, const DeleteMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitoringTemplateOutcomeCallable deleteMonitoringTemplateCallable(const Model::DeleteMonitoringTemplateRequest& request) const; + NodeStatusListOutcome nodeStatusList(const Model::NodeStatusListRequest &request)const; + void nodeStatusListAsync(const Model::NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NodeStatusListOutcomeCallable nodeStatusListCallable(const Model::NodeStatusListRequest& request) const; + 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; + 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; + EnableAlarmOutcome enableAlarm(const Model::EnableAlarmRequest &request)const; + void enableAlarmAsync(const Model::EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableAlarmOutcomeCallable enableAlarmCallable(const Model::EnableAlarmRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h b/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h index fb75c9f60..d3b2fb57f 100644 --- a/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h +++ b/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h @@ -37,22 +37,22 @@ namespace AlibabaCloud AccessKeyGetResult(); explicit AccessKeyGetResult(const std::string &payload); ~AccessKeyGetResult(); - std::string getSecretKey()const; - long getUserId()const; - int getErrorCode()const; - std::string getAccessKey()const; - std::string getErrorMessage()const; - bool getSuccess()const; + std::string getSecretKey()const; + long getUserId()const; + int getErrorCode()const; + std::string getAccessKey()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string secretKey_; - long userId_; - int errorCode_; - std::string accessKey_; - std::string errorMessage_; - bool success_; + std::string secretKey_; + long userId_; + int errorCode_; + std::string accessKey_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h index 23a48f781..51b792ee1 100644 --- a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h +++ b/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud AddMyGroupInstancesResult(); explicit AddMyGroupInstancesResult(const std::string &payload); ~AddMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h new file mode 100644 index 000000000..bf32ad82c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.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_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ApplyMonitoringTemplateRequest : public RpcServiceRequest + { + + public: + ApplyMonitoringTemplateRequest(); + ~ApplyMonitoringTemplateRequest(); + + long getEnableStartTime()const; + void setEnableStartTime(long enableStartTime); + std::string getApplyMode()const; + void setApplyMode(const std::string& applyMode); + std::string getWebhook()const; + void setWebhook(const std::string& webhook); + std::string getTemplateIds()const; + void setTemplateIds(const std::string& templateIds); + long getEnableEndTime()const; + void setEnableEndTime(long enableEndTime); + long getGroupId()const; + void setGroupId(long groupId); + long getNotifyLevel()const; + void setNotifyLevel(long notifyLevel); + long getSilenceTime()const; + void setSilenceTime(long silenceTime); + + private: + long enableStartTime_; + std::string applyMode_; + std::string webhook_; + std::string templateIds_; + long enableEndTime_; + long groupId_; + long notifyLevel_; + long silenceTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h new file mode 100644 index 000000000..099dad956 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.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_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ApplyMonitoringTemplateResult : public ServiceResult + { + public: + struct Resource + { + struct Result + { + std::string message; + std::string displayName; + int code; + bool success; + long groupId; + std::string name; + }; + struct Result + { + std::string message; + std::string displayName; + int code; + bool success; + long groupId; + std::string name; + }; + std::vector eventResults; + std::vector alertResults; + long groupId; + }; + + + ApplyMonitoringTemplateResult(); + explicit ApplyMonitoringTemplateResult(const std::string &payload); + ~ApplyMonitoringTemplateResult(); + Resource getResource()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Resource resource_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.h b/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.h new file mode 100644 index 000000000..031a141bd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.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_APPLYTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ApplyTemplateRequest : public RpcServiceRequest + { + + public: + ApplyTemplateRequest(); + ~ApplyTemplateRequest(); + + long getEnableStartTime()const; + void setEnableStartTime(long enableStartTime); + std::string getApplyMode()const; + void setApplyMode(const std::string& applyMode); + std::string getTemplateIds()const; + void setTemplateIds(const std::string& templateIds); + long getEnableEndTime()const; + void setEnableEndTime(long enableEndTime); + long getGroupId()const; + void setGroupId(long groupId); + long getNotifyLevel()const; + void setNotifyLevel(long notifyLevel); + long getSilenceTime()const; + void setSilenceTime(long silenceTime); + + private: + long enableStartTime_; + std::string applyMode_; + std::string templateIds_; + long enableEndTime_; + long groupId_; + long notifyLevel_; + long silenceTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyTemplateResult.h new file mode 100644 index 000000000..0c9207e57 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ApplyTemplateResult.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_CMS_MODEL_APPLYTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ApplyTemplateResult : public ServiceResult + { + public: + struct Resource + { + struct AlertResult + { + std::string metricName; + std::string message; + std::string displayName; + std::string metricNamespace; + std::string success; + std::string name; + }; + std::vector createAlertResults; + }; + + + ApplyTemplateResult(); + explicit ApplyTemplateResult(const std::string &payload); + ~ApplyTemplateResult(); + Resource getResource()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Resource resource_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h b/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h index 7a800673d..678d373d7 100644 --- a/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h @@ -35,12 +35,12 @@ namespace AlibabaCloud CreateAlarmRequest(); ~CreateAlarmRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); int getPeriod()const; void setPeriod(int period); std::string getWebhook()const; void setWebhook(const std::string& webhook); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getContactGroups()const; void setContactGroups(const std::string& contactGroups); int getEndTime()const; @@ -69,9 +69,9 @@ namespace AlibabaCloud void setStatistics(const std::string& statistics); private: - std::string callby_cms_owner_; int period_; std::string webhook_; + bool dryRun_; std::string contactGroups_; int endTime_; std::string threshold_; diff --git a/cms/include/alibabacloud/cms/model/CreateAlarmResult.h b/cms/include/alibabacloud/cms/model/CreateAlarmResult.h index e2f811778..2cce0a639 100644 --- a/cms/include/alibabacloud/cms/model/CreateAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/CreateAlarmResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud CreateAlarmResult(); explicit CreateAlarmResult(const std::string &payload); ~CreateAlarmResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; - bool success_; + std::string message_; + std::string data_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h new file mode 100644 index 000000000..1e33df3a8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.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_CREATEMONITORINGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitoringTemplateRequest : public RpcServiceRequest + { + + public: + CreateMonitoringTemplateRequest(); + ~CreateMonitoringTemplateRequest(); + + std::string getEventRuleTemplatesJson()const; + void setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson); + std::string getName()const; + void setName(const std::string& name); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAlertTemplatesJson()const; + void setAlertTemplatesJson(const std::string& alertTemplatesJson); + + private: + std::string eventRuleTemplatesJson_; + std::string name_; + std::string _namespace_; + std::string description_; + std::string alertTemplatesJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h new file mode 100644 index 000000000..9165dd3af --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.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_CREATEMONITORINGTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitoringTemplateResult : public ServiceResult + { + public: + + + CreateMonitoringTemplateResult(); + explicit CreateMonitoringTemplateResult(const std::string &payload); + ~CreateMonitoringTemplateResult(); + int getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + long id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h b/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h new file mode 100644 index 000000000..30af39d61 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.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_CREATEMYGROUPALERTBATCHREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMyGroupAlertBatchRequest : public RpcServiceRequest + { + + public: + CreateMyGroupAlertBatchRequest(); + ~CreateMyGroupAlertBatchRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::string getGroupAlertJsonArray()const; + void setGroupAlertJsonArray(const std::string& groupAlertJsonArray); + + private: + long groupId_; + std::string groupAlertJsonArray_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h b/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h new file mode 100644 index 000000000..34c90b2b2 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.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_CREATEMYGROUPALERTBATCHRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMyGroupAlertBatchResult : public ServiceResult + { + public: + struct AlertResult + { + std::string metricName; + std::string alertName; + std::string message; + std::string displayName; + std::string metricNamespace; + int code; + bool success; + long groupId; + }; + + + CreateMyGroupAlertBatchResult(); + explicit CreateMyGroupAlertBatchResult(const std::string &payload); + ~CreateMyGroupAlertBatchResult(); + std::vector getResources()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resources_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h index 2008842ad..52cb7361d 100644 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h @@ -37,10 +37,12 @@ namespace AlibabaCloud std::string getContactGroups()const; void setContactGroups(const std::string& contactGroups); - long getServiceId()const; - void setServiceId(long serviceId); + std::string getOptions()const; + void setOptions(const std::string& options); std::string getType()const; void setType(const std::string& type); + long getServiceId()const; + void setServiceId(long serviceId); std::string getGroupName()const; void setGroupName(const std::string& groupName); std::string getBindUrl()const; @@ -48,8 +50,9 @@ namespace AlibabaCloud private: std::string contactGroups_; - long serviceId_; + std::string options_; std::string type_; + long serviceId_; std::string groupName_; std::string bindUrl_; diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h b/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h index fc8efa85d..4385555ba 100644 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud CreateMyGroupsResult(); explicit CreateMyGroupsResult(const std::string &payload); ~CreateMyGroupsResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - long getGroupId()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + long getGroupId()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; - long groupId_; + int errorCode_; + std::string errorMessage_; + bool success_; + long groupId_; }; } diff --git a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h index 590d9dfbd..35d55271f 100644 --- a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setPolicyType(const std::string& policyType); std::string getAlertName()const; void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); long getEndTime()const; void setEndTime(long endTime); long getStartTime()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string policyType_; std::string alertName_; + std::string groupId_; long endTime_; long startTime_; std::string dimensions_; diff --git a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h index 11d73c4ff..29ea3d06d 100644 --- a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h @@ -37,20 +37,18 @@ namespace AlibabaCloud CreateNotifyPolicyResult(); explicit CreateNotifyPolicyResult(const std::string &payload); ~CreateNotifyPolicyResult(); - std::string getMessage()const; - std::string getTraceId()const; - std::string getCode()const; - std::string getSuccess()const; - int getResult()const; + std::string getMessage()const; + std::string getCode()const; + std::string getSuccess()const; + int getResult()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string traceId_; - std::string code_; - std::string success_; - int result_; + std::string message_; + std::string code_; + std::string success_; + int result_; }; } diff --git a/cms/include/alibabacloud/cms/model/CreateTaskRequest.h b/cms/include/alibabacloud/cms/model/CreateTaskRequest.h new file mode 100644 index 000000000..baebf19fd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateTaskRequest.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_CMS_MODEL_CREATETASKREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateTaskRequest : public RpcServiceRequest + { + + public: + CreateTaskRequest(); + ~CreateTaskRequest(); + + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getAddress()const; + void setAddress(const std::string& address); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getIspCity()const; + void setIspCity(const std::string& ispCity); + std::string getAlertIds()const; + void setAlertIds(const std::string& alertIds); + std::string getOptions()const; + void setOptions(const std::string& options); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getAlertRule()const; + void setAlertRule(const std::string& alertRule); + + private: + std::string caller_; + std::string address_; + std::string taskType_; + std::string ispCity_; + std::string alertIds_; + std::string options_; + std::string taskName_; + std::string interval_; + std::string alertRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATETASKREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateTaskResult.h b/cms/include/alibabacloud/cms/model/CreateTaskResult.h new file mode 100644 index 000000000..e3055245f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateTaskResult.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_CMS_MODEL_CREATETASKRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateTaskResult : public ServiceResult + { + public: + + + CreateTaskResult(); + explicit CreateTaskResult(const std::string &payload); + ~CreateTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + std::string getAlertRule()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + std::string alertRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATETASKRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h b/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h index c22fde7a1..c2eb5bb76 100644 --- a/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud DeleteAlarmRequest(); ~DeleteAlarmRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); std::string getId()const; void setId(const std::string& id); private: - std::string callby_cms_owner_; std::string id_; }; diff --git a/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h b/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h index 475e2a814..2b320be20 100644 --- a/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DeleteAlarmResult(); explicit DeleteAlarmResult(const std::string &payload); ~DeleteAlarmResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h b/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h index 15f196a1d..a4162a1c4 100644 --- a/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DeleteCustomMetricResult(); explicit DeleteCustomMetricResult(const std::string &payload); ~DeleteCustomMetricResult(); - std::string getMessage()const; - std::string getCode()const; - std::string getResult()const; + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - std::string result_; + std::string message_; + std::string code_; + std::string result_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.h new file mode 100644 index 000000000..7e12959d8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.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_DELETEEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleRequest : public RpcServiceRequest + { + + public: + DeleteEventRuleRequest(); + ~DeleteEventRuleRequest(); + + std::vector getRuleNames()const; + void setRuleNames(const std::vector& ruleNames); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::vector ruleNames_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricDataResult.h b/cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/PutMetricDataResult.h rename to cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h index d36108053..85556951f 100644 --- a/cms/include/alibabacloud/cms/model/PutMetricDataResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICDATARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMETRICDATARESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutMetricDataResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleResult : public ServiceResult { public: - PutMetricDataResult(); - explicit PutMetricDataResult(const std::string &payload); - ~PutMetricDataResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + DeleteEventRuleResult(); + explicit DeleteEventRuleResult(const std::string &payload); + ~DeleteEventRuleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICDATARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.h new file mode 100644 index 000000000..f30207d2f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.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_DELETEEVENTTARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteEventTargetsRequest : public RpcServiceRequest + { + + public: + DeleteEventTargetsRequest(); + ~DeleteEventTargetsRequest(); + + std::vector getIds()const; + void setIds(const std::vector& ids); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::vector ids_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableActiceAlertResult.h b/cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/DisableActiceAlertResult.h rename to cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h index f54ed9709..ebd93eb0d 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiceAlertResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableActiceAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteEventTargetsResult : public ServiceResult { public: - DisableActiceAlertResult(); - explicit DisableActiceAlertResult(const std::string &payload); - ~DisableActiceAlertResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + DeleteEventTargetsResult(); + explicit DeleteEventTargetsResult(const std::string &payload); + ~DeleteEventTargetsResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h new file mode 100644 index 000000000..ad237b02b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.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_DELETEGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteGroupDynamicRuleRequest : public RpcServiceRequest + { + + public: + DeleteGroupDynamicRuleRequest(); + ~DeleteGroupDynamicRuleRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::string getCategory()const; + void setCategory(const std::string& category); + + private: + long groupId_; + std::string category_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h new file mode 100644 index 000000000..c8cf60cb7 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.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_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteGroupDynamicRuleResult : public ServiceResult + { + public: + + + DeleteGroupDynamicRuleResult(); + explicit DeleteGroupDynamicRuleResult(const std::string &payload); + ~DeleteGroupDynamicRuleResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListProductOfActiceAlertRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h similarity index 67% rename from cms/include/alibabacloud/cms/model/ListProductOfActiceAlertRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h index 4c0a055fe..c241f296a 100644 --- a/cms/include/alibabacloud/cms/model/ListProductOfActiceAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListProductOfActiceAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringTemplateRequest : public RpcServiceRequest { public: - ListProductOfActiceAlertRequest(); - ~ListProductOfActiceAlertRequest(); + DeleteMonitoringTemplateRequest(); + ~DeleteMonitoringTemplateRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); + std::string getId()const; + void setId(const std::string& id); private: - std::string userId_; + std::string id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h new file mode 100644 index 000000000..5e00d7863 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.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_DELETEMONITORINGTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringTemplateResult : public ServiceResult + { + public: + struct Resource + { + std::string description; + std::string alertTemplatesJson; + std::string restVersion; + std::string _namespace; + std::string id; + std::string eventRuleTemplatesJson; + std::string name; + }; + + + DeleteMonitoringTemplateResult(); + explicit DeleteMonitoringTemplateResult(const std::string &payload); + ~DeleteMonitoringTemplateResult(); + Resource getResource()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Resource resource_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h index 32c0662fd..8dc5bc5fa 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h @@ -37,12 +37,18 @@ namespace AlibabaCloud std::string getInstanceIds()const; void setInstanceIds(const std::string& instanceIds); + std::string getInstanceIdList()const; + void setInstanceIdList(const std::string& instanceIdList); long getGroupId()const; void setGroupId(long groupId); + std::string getCategory()const; + void setCategory(const std::string& category); private: std::string instanceIds_; + std::string instanceIdList_; long groupId_; + std::string category_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h index 85189cae5..004d57464 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DeleteMyGroupInstancesResult(); explicit DeleteMyGroupInstancesResult(const std::string &payload); ~DeleteMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h b/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h index 0086ce976..9f483ad7f 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h @@ -32,36 +32,36 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT DeleteMyGroupsResult : public ServiceResult { public: - struct Group - { - struct ContactGroup - { - std::string name; - }; - std::string groupName; - std::vector contactGroups; - std::string type; - std::string bindUrls; - long groupId; - std::string serviceId; - }; + struct Group + { + struct ContactGroup + { + std::string name; + }; + std::string groupName; + std::vector contactGroups; + std::string type; + std::string bindUrls; + long groupId; + std::string serviceId; + }; DeleteMyGroupsResult(); explicit DeleteMyGroupsResult(const std::string &payload); ~DeleteMyGroupsResult(); - std::vector getGroup()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + Group getGroup()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector group_; - int errorCode_; - std::string errorMessage_; - bool success_; + Group group_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h index 9272e2abb..d00f7f7b9 100644 --- a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setPolicyType(const std::string& policyType); std::string getAlertName()const; void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getId()const; void setId(const std::string& id); std::string getDimensions()const; @@ -49,6 +51,7 @@ namespace AlibabaCloud private: std::string policyType_; std::string alertName_; + std::string groupId_; std::string id_; std::string dimensions_; std::string accessKeyId_; diff --git a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h index 64f083fdb..565df44b4 100644 --- a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h @@ -37,20 +37,18 @@ namespace AlibabaCloud DeleteNotifyPolicyResult(); explicit DeleteNotifyPolicyResult(const std::string &payload); ~DeleteNotifyPolicyResult(); - std::string getMessage()const; - std::string getTraceId()const; - std::string getCode()const; - std::string getSuccess()const; - int getResult()const; + std::string getMessage()const; + std::string getCode()const; + std::string getSuccess()const; + int getResult()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string traceId_; - std::string code_; - std::string success_; - int result_; + std::string message_; + std::string code_; + std::string success_; + int result_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutMetricDataRequest.h b/cms/include/alibabacloud/cms/model/DeleteTasksRequest.h similarity index 61% rename from cms/include/alibabacloud/cms/model/PutMetricDataRequest.h rename to cms/include/alibabacloud/cms/model/DeleteTasksRequest.h index 6c713983a..4cae3829d 100644 --- a/cms/include/alibabacloud/cms/model/PutMetricDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteTasksRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMETRICDATAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutMetricDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteTasksRequest : public RpcServiceRequest { public: - PutMetricDataRequest(); - ~PutMetricDataRequest(); + DeleteTasksRequest(); + ~DeleteTasksRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); - std::string getBody()const; - void setBody(const std::string& body); + int getIsDeleteAlarms()const; + void setIsDeleteAlarms(int isDeleteAlarms); + std::string getTaskIds()const; + void setTaskIds(const std::string& taskIds); private: - std::string callby_cms_owner_; - std::string body_; + int isDeleteAlarms_; + std::string taskIds_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteTasksResult.h b/cms/include/alibabacloud/cms/model/DeleteTasksResult.h new file mode 100644 index 000000000..864fb1ec8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteTasksResult.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_DELETETASKSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteTasksResult : public ServiceResult + { + public: + + + DeleteTasksResult(); + explicit DeleteTasksResult(const std::string &payload); + ~DeleteTasksResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETETASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h b/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h index c7ba600dc..d89156539 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h @@ -32,51 +32,52 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT DescribeAlarmHistoryResult : 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 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; - }; + 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; + }; DescribeAlarmHistoryResult(); explicit DescribeAlarmHistoryResult(const std::string &payload); ~DescribeAlarmHistoryResult(); - std::vector getAlarmHistoryList()const; - std::string getMessage()const; - std::string getTotal()const; - std::string getCode()const; - bool getSuccess()const; + 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_; + std::vector alarmHistoryList_; + std::string message_; + std::string total_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h new file mode 100644 index 000000000..2fc02f910 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.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_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsForResourcesRequest : public RpcServiceRequest + { + + public: + DescribeAlarmsForResourcesRequest(); + ~DescribeAlarmsForResourcesRequest(); + + bool getEnableState()const; + void setEnableState(bool enableState); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getAlertState()const; + void setAlertState(const std::string& alertState); + std::string getPage()const; + void setPage(const std::string& page); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + + private: + bool enableState_; + std::string groupId_; + std::string _namespace_; + std::string pageSize_; + std::string alertState_; + std::string page_; + std::string metricName_; + std::string dimensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h new file mode 100644 index 000000000..e43c681db --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsForResourcesResult : public ServiceResult + { + public: + struct Alarm + { + struct Escalations + { + struct Info + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + struct Warn + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + struct Critical + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + Critical critical; + Info info; + Warn warn; + }; + std::string groupName; + std::string noEffectiveInterval; + std::string silenceTime; + std::string contactGroups; + std::string comparisonOperator; + std::string period; + std::string evaluationCount; + std::string _namespace; + std::string effectiveInterval; + std::string statistics; + std::string subject; + std::string name; + std::string groupId; + std::string metricName; + std::string uuid; + std::string state; + Escalations escalations; + std::string displayName; + bool enable; + std::string webhook; + std::string level; + std::string resources; + std::string threshold; + }; + + + DescribeAlarmsForResourcesResult(); + explicit DescribeAlarmsForResourcesResult(const std::string &payload); + ~DescribeAlarmsForResourcesResult(); + std::string getMessage()const; + std::string getTotal()const; + std::string getTraceId()const; + std::string getDimensions()const; + std::vector getDatapoints()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string total_; + std::string traceId_; + std::string dimensions_; + std::vector datapoints_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.h new file mode 100644 index 000000000..472ae92dd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.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_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsRequest : public RpcServiceRequest + { + + public: + DescribeAlarmsRequest(); + ~DescribeAlarmsRequest(); + + bool getEnableState()const; + void setEnableState(bool enableState); + std::string getNames()const; + void setNames(const std::string& names); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getAlertState()const; + void setAlertState(const std::string& alertState); + std::string getNameKeyword()const; + void setNameKeyword(const std::string& nameKeyword); + std::string getGroupBy()const; + void setGroupBy(const std::string& groupBy); + std::string getPage()const; + void setPage(const std::string& page); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + + private: + bool enableState_; + std::string names_; + std::string displayName_; + std::string groupId_; + std::string _namespace_; + std::string pageSize_; + std::string alertState_; + std::string nameKeyword_; + std::string groupBy_; + std::string page_; + std::string metricName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h new file mode 100644 index 000000000..eaf162be5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsResult : public ServiceResult + { + public: + struct Alarm + { + struct Escalations + { + struct Info + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + struct Warn + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + struct Critical + { + std::string comparisonOperator; + std::string times; + std::string statistics; + std::string threshold; + }; + Critical critical; + Info info; + Warn warn; + }; + std::string groupName; + std::string noEffectiveInterval; + std::string comparisonOperator; + std::string evaluationCount; + std::string name; + std::string metricName; + std::string displayName; + bool enable; + std::string ruleName; + std::string threshold; + std::string silenceTime; + std::string contactGroups; + std::string period; + std::string dimensions; + std::string _namespace; + std::string effectiveInterval; + std::string statistics; + std::string subject; + std::string groupId; + std::string uuid; + std::string state; + Escalations escalations; + std::string webhook; + std::string level; + std::string resources; + }; + + + DescribeAlarmsResult(); + explicit DescribeAlarmsResult(const std::string &payload); + ~DescribeAlarmsResult(); + std::string getMessage()const; + std::string getTotal()const; + std::string getTraceId()const; + std::vector getDatapoints()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string total_; + std::string traceId_; + std::vector datapoints_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactRequest.h new file mode 100644 index 000000000..291da28ca --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeContactRequest.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_DESCRIBECONTACTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeContactRequest : public RpcServiceRequest + { + + public: + DescribeContactRequest(); + ~DescribeContactRequest(); + + std::string getContactName()const; + void setContactName(const std::string& contactName); + + private: + std::string contactName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactResult.h b/cms/include/alibabacloud/cms/model/DescribeContactResult.h new file mode 100644 index 000000000..986af4fad --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeContactResult.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_DESCRIBECONTACTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeContactResult : public ServiceResult + { + public: + struct Datapoints + { + struct Channel + { + std::string type; + std::string value; + }; + std::vector channels; + std::string name; + }; + + + DescribeContactResult(); + explicit DescribeContactResult(const std::string &payload); + ~DescribeContactResult(); + std::string getMessage()const; + Datapoints getDatapoints()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Datapoints datapoints_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiceAlertRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h similarity index 62% rename from cms/include/alibabacloud/cms/model/EnableActiceAlertRequest.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h index 25ecfb769..e6135ce63 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiceAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableActiceAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleRequest : public RpcServiceRequest { public: - EnableActiceAlertRequest(); - ~EnableActiceAlertRequest(); + DescribeEventRuleRequest(); + ~DescribeEventRuleRequest(); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getUserId()const; - void setUserId(const std::string& userId); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); private: - std::string product_; - std::string userId_; + std::string ruleName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleResult.h new file mode 100644 index 000000000..0f36e0d9f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleResult.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_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleResult : public ServiceResult + { + public: + struct Result + { + struct EventPattern + { + std::vector nameList; + std::vector levelList; + std::vector statusList; + std::string product; + }; + EventPattern eventPattern; + std::string description; + std::string eventType; + std::string state; + std::string name; + std::string groupId; + }; + + + DescribeEventRuleResult(); + explicit DescribeEventRuleResult(const std::string &payload); + ~DescribeEventRuleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h b/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h new file mode 100644 index 000000000..9f2105f43 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.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_DESCRIBEISPAREACITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeISPAreaCityRequest : public RpcServiceRequest + { + + public: + DescribeISPAreaCityRequest(); + ~DescribeISPAreaCityRequest(); + + 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_DESCRIBEISPAREACITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.h b/cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.h new file mode 100644 index 000000000..ecec637fe --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.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_DESCRIBEISPAREACITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeISPAreaCityResult : public ServiceResult + { + public: + + + DescribeISPAreaCityResult(); + explicit DescribeISPAreaCityResult(const std::string &payload); + ~DescribeISPAreaCityResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.h b/cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.h new file mode 100644 index 000000000..c1f2b5125 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.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_DESCRIBETASKDETAILREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTaskDetailRequest : public RpcServiceRequest + { + + public: + DescribeTaskDetailRequest(); + ~DescribeTaskDetailRequest(); + + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.h b/cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.h new file mode 100644 index 000000000..fa5c60d63 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.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_DESCRIBETASKDETAILRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTaskDetailResult : public ServiceResult + { + public: + + + DescribeTaskDetailResult(); + explicit DescribeTaskDetailResult(const std::string &payload); + ~DescribeTaskDetailResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTasksRequest.h b/cms/include/alibabacloud/cms/model/DescribeTasksRequest.h new file mode 100644 index 000000000..76df931e5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTasksRequest.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_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTasksRequest : public RpcServiceRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + int getPageSize()const; + void setPageSize(int pageSize); + int getPage()const; + void setPage(int page); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string taskType_; + int pageSize_; + int page_; + std::string keyword_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTasksResult.h b/cms/include/alibabacloud/cms/model/DescribeTasksResult.h new file mode 100644 index 000000000..bcd4061d6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTasksResult.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_CMS_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTasksResult : public ServiceResult + { + public: + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h b/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h index 6119a1a52..698081af8 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DisableActiveAlertResult(); explicit DisableActiveAlertResult(const std::string &payload); ~DisableActiveAlertResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h b/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h index b9b9cef5d..f16caacac 100644 --- a/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud DisableAlarmRequest(); ~DisableAlarmRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); std::string getId()const; void setId(const std::string& id); private: - std::string callby_cms_owner_; std::string id_; }; diff --git a/cms/include/alibabacloud/cms/model/DisableAlarmResult.h b/cms/include/alibabacloud/cms/model/DisableAlarmResult.h index 6e2783675..6207c97da 100644 --- a/cms/include/alibabacloud/cms/model/DisableAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DisableAlarmResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DisableAlarmResult(); explicit DisableAlarmResult(const std::string &payload); ~DisableAlarmResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DisableEventRuleRequest.h b/cms/include/alibabacloud/cms/model/DisableEventRuleRequest.h new file mode 100644 index 000000000..85200180e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DisableEventRuleRequest.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_DISABLEEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DisableEventRuleRequest : public RpcServiceRequest + { + + public: + DisableEventRuleRequest(); + ~DisableEventRuleRequest(); + + std::vector getRuleNames()const; + void setRuleNames(const std::vector& ruleNames); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::vector ruleNames_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiceAlertResult.h b/cms/include/alibabacloud/cms/model/DisableEventRuleResult.h similarity index 73% rename from cms/include/alibabacloud/cms/model/EnableActiceAlertResult.h rename to cms/include/alibabacloud/cms/model/DisableEventRuleResult.h index 8ac6cf22d..ca58422b0 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiceAlertResult.h +++ b/cms/include/alibabacloud/cms/model/DisableEventRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableActiceAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DisableEventRuleResult : public ServiceResult { public: - EnableActiceAlertResult(); - explicit EnableActiceAlertResult(const std::string &payload); - ~EnableActiceAlertResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + DisableEventRuleResult(); + explicit DisableEventRuleResult(const std::string &payload); + ~DisableEventRuleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTICEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h b/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h index 72d9ec5fa..7c5d875c1 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud EnableActiveAlertResult(); explicit EnableActiveAlertResult(const std::string &payload); ~EnableActiveAlertResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h b/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h index f6d1ea4e2..e5aca4d4c 100644 --- a/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud EnableAlarmRequest(); ~EnableAlarmRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); std::string getId()const; void setId(const std::string& id); private: - std::string callby_cms_owner_; std::string id_; }; diff --git a/cms/include/alibabacloud/cms/model/EnableAlarmResult.h b/cms/include/alibabacloud/cms/model/EnableAlarmResult.h index e43c50bae..1789b29f2 100644 --- a/cms/include/alibabacloud/cms/model/EnableAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/EnableAlarmResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud EnableAlarmResult(); explicit EnableAlarmResult(const std::string &payload); ~EnableAlarmResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/EnableEventRuleRequest.h b/cms/include/alibabacloud/cms/model/EnableEventRuleRequest.h new file mode 100644 index 000000000..6b1896d56 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableEventRuleRequest.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_ENABLEEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableEventRuleRequest : public RpcServiceRequest + { + + public: + EnableEventRuleRequest(); + ~EnableEventRuleRequest(); + + std::vector getRuleNames()const; + void setRuleNames(const std::vector& ruleNames); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::vector ruleNames_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableEventRuleResult.h b/cms/include/alibabacloud/cms/model/EnableEventRuleResult.h new file mode 100644 index 000000000..d0e9d8b17 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableEventRuleResult.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_CMS_MODEL_ENABLEEVENTRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableEventRuleResult : public ServiceResult + { + public: + + + EnableEventRuleResult(); + explicit EnableEventRuleResult(const std::string &payload); + ~EnableEventRuleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutSystemEventRequest.h b/cms/include/alibabacloud/cms/model/GetContactsRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/PutSystemEventRequest.h rename to cms/include/alibabacloud/cms/model/GetContactsRequest.h index edc54a371..11430b281 100644 --- a/cms/include/alibabacloud/cms/model/PutSystemEventRequest.h +++ b/cms/include/alibabacloud/cms/model/GetContactsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutSystemEventRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT GetContactsRequest : public RpcServiceRequest { public: - PutSystemEventRequest(); - ~PutSystemEventRequest(); + GetContactsRequest(); + ~GetContactsRequest(); - std::string getEventInfo()const; - void setEventInfo(const std::string& eventInfo); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); private: - std::string eventInfo_; + std::string groupName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetContactsResult.h b/cms/include/alibabacloud/cms/model/GetContactsResult.h new file mode 100644 index 000000000..21ad6107d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/GetContactsResult.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_CMS_MODEL_GETCONTACTSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_GETCONTACTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT GetContactsResult : public ServiceResult + { + public: + struct Datapoints + { + std::vector contacts; + std::string name; + }; + + + GetContactsResult(); + explicit GetContactsResult(const std::string &payload); + ~GetContactsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Datapoints getDatapoints()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Datapoints datapoints_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_GETCONTACTSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h new file mode 100644 index 000000000..f529f60a5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.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_GETMONITORINGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT GetMonitoringTemplateRequest : public RpcServiceRequest + { + + public: + GetMonitoringTemplateRequest(); + ~GetMonitoringTemplateRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::string getId()const; + void setId(const std::string& id); + + private: + std::string name_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.h new file mode 100644 index 000000000..33df31b4a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.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_GETMONITORINGTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT GetMonitoringTemplateResult : public ServiceResult + { + public: + struct Resource + { + std::string description; + std::string alertTemplatesJson; + std::string restVersion; + std::string _namespace; + std::string id; + std::string eventRuleTemplatesJson; + std::string name; + }; + + + GetMonitoringTemplateResult(); + explicit GetMonitoringTemplateResult(const std::string &payload); + ~GetMonitoringTemplateResult(); + Resource getResource()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Resource resource_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.h b/cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.h new file mode 100644 index 000000000..0f6ff9352 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.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_GETMYGROUPALERTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT GetMyGroupAlertRequest : public RpcServiceRequest + { + + public: + GetMyGroupAlertRequest(); + ~GetMyGroupAlertRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::string getAlertName()const; + void setAlertName(const std::string& alertName); + + private: + long groupId_; + std::string alertName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.h b/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.h new file mode 100644 index 000000000..55f58602c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.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_CMS_MODEL_GETMYGROUPALERTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT GetMyGroupAlertResult : public ServiceResult + { + public: + struct GroupAlert + { + struct Escalations + { + struct Info + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + struct Warn + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + struct Critical + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + Critical critical; + Info info; + Warn warn; + }; + int silenceTime; + std::string alertName; + std::string category; + std::string description; + int period; + std::string enableEndTime; + std::string _namespace; + std::string subject; + std::string groupId; + std::string metricName; + std::string state; + Escalations escalations; + std::string displayName; + bool enable; + std::string webhook; + std::string enableStartTime; + std::string selector; + }; + + + GetMyGroupAlertResult(); + explicit GetMyGroupAlertResult(const std::string &payload); + ~GetMyGroupAlertResult(); + GroupAlert getGroupAlert()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + GroupAlert groupAlert_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h b/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h index 1c563be6e..d003f4462 100644 --- a/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h @@ -32,36 +32,36 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT GetMyGroupsResult : public ServiceResult { public: - struct Group - { - struct ContactGroup - { - std::string name; - }; - std::string groupName; - std::vector contactGroups; - std::string type; - std::string bindUrl; - long groupId; - long serviceId; - }; + struct Group + { + struct ContactGroup + { + std::string name; + }; + std::string groupName; + std::vector contactGroups; + std::string type; + std::string bindUrl; + long groupId; + long serviceId; + }; GetMyGroupsResult(); explicit GetMyGroupsResult(const std::string &payload); ~GetMyGroupsResult(); - std::vector getGroup()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + Group getGroup()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector group_; - int errorCode_; - std::string errorMessage_; - bool success_; + Group group_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h index cb12283f5..51c40716a 100644 --- a/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setPolicyType(const std::string& policyType); std::string getAlertName()const; void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getId()const; void setId(const std::string& id); std::string getDimensions()const; @@ -49,6 +51,7 @@ namespace AlibabaCloud private: std::string policyType_; std::string alertName_; + std::string groupId_; std::string id_; std::string dimensions_; std::string accessKeyId_; diff --git a/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h index aa905cf59..811052c48 100644 --- a/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h @@ -32,34 +32,33 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT GetNotifyPolicyResult : public ServiceResult { public: - struct Result - { - std::string type; - std::string alertName; - long endTime; - long startTime; - std::string dimensions; - std::string id; - }; + struct Result + { + std::string type; + std::string alertName; + long endTime; + long startTime; + std::string dimensions; + std::string id; + std::string groupId; + }; GetNotifyPolicyResult(); explicit GetNotifyPolicyResult(const std::string &payload); ~GetNotifyPolicyResult(); - std::string getMessage()const; - std::string getTraceId()const; - std::string getCode()const; - std::string getSuccess()const; - std::vector getResult()const; + std::string getMessage()const; + std::string getCode()const; + std::string getSuccess()const; + Result getResult()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string traceId_; - std::string code_; - std::string success_; - std::vector result_; + std::string message_; + std::string code_; + std::string success_; + Result result_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h b/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h index 8d2e575ff..d5e314914 100644 --- a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h +++ b/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h @@ -32,44 +32,44 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListActiveAlertRuleResult : public ServiceResult { public: - struct Alarm - { - std::string silenceTime; - std::string notifyType; - std::string contactGroups; - std::string comparisonOperator; - std::string endTime; - std::string startTime; - std::string period; - std::string evaluationCount; - std::string _namespace; - std::string statistics; - std::string name; - std::string metricName; - std::string uuid; - std::string state; - std::string enable; - std::string webhook; - std::string ruleName; - std::string threshold; - }; + struct Alarm + { + std::string silenceTime; + std::string notifyType; + std::string contactGroups; + std::string comparisonOperator; + std::string endTime; + std::string startTime; + std::string period; + std::string evaluationCount; + std::string _namespace; + std::string statistics; + std::string name; + std::string metricName; + std::string uuid; + std::string state; + std::string enable; + std::string webhook; + std::string ruleName; + std::string threshold; + }; ListActiveAlertRuleResult(); explicit ListActiveAlertRuleResult(const std::string &payload); ~ListActiveAlertRuleResult(); - std::string getMessage()const; - std::vector getDatapoints()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::vector getDatapoints()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::vector datapoints_; - std::string code_; - bool success_; + std::string message_; + std::vector datapoints_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h b/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h index 6d8d8b110..c86f634b4 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h +++ b/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud std::string getCursor()const; void setCursor(const std::string& cursor); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); int getSize()const; void setSize(int size); std::string getEndTime()const; @@ -52,7 +50,6 @@ namespace AlibabaCloud private: std::string cursor_; - std::string callby_cms_owner_; int size_; std::string endTime_; std::string id_; diff --git a/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h b/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h index 78ee7c453..021cb6e6c 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h +++ b/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h @@ -32,40 +32,41 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListAlarmHistoryResult : public ServiceResult { public: - struct AlarmHistory - { - int status; - std::string metricName; - std::string contactGroups; - long alarmTime; - std::string state; - std::string value; - int evaluationCount; - std::string _namespace; - std::string id; - std::string dimension; - long lastTime; - std::string name; - }; + struct AlarmHistory + { + int status; + std::string contactGroups; + int evaluationCount; + std::string _namespace; + std::string dimension; + std::string name; + std::string instanceName; + std::string metricName; + long alarmTime; + std::string state; + std::string value; + std::string id; + long lastTime; + }; ListAlarmHistoryResult(); explicit ListAlarmHistoryResult(const std::string &payload); ~ListAlarmHistoryResult(); - std::vector getAlarmHistoryList()const; - std::string getMessage()const; - std::string getCursor()const; - std::string getCode()const; - bool getSuccess()const; + std::vector getAlarmHistoryList()const; + std::string getMessage()const; + std::string getCursor()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector alarmHistoryList_; - std::string message_; - std::string cursor_; - std::string code_; - bool success_; + std::vector alarmHistoryList_; + std::string message_; + std::string cursor_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListAlarmRequest.h b/cms/include/alibabacloud/cms/model/ListAlarmRequest.h index 596677b28..81fcf9751 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/ListAlarmRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud bool getIsEnable()const; void setIsEnable(bool isEnable); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); std::string getName()const; void setName(const std::string& name); std::string get_Namespace()const; @@ -56,7 +54,6 @@ namespace AlibabaCloud private: bool isEnable_; - std::string callby_cms_owner_; std::string name_; std::string _namespace_; int pageSize_; diff --git a/cms/include/alibabacloud/cms/model/ListAlarmResult.h b/cms/include/alibabacloud/cms/model/ListAlarmResult.h index 006ca954c..2b9333416 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/ListAlarmResult.h @@ -32,48 +32,48 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListAlarmResult : public ServiceResult { public: - struct Alarm - { - int silenceTime; - int notifyType; - std::string contactGroups; - std::string comparisonOperator; - int endTime; - int startTime; - std::string dimensions; - int period; - int evaluationCount; - std::string _namespace; - std::string statistics; - std::string name; - std::string metricName; - std::string state; - bool enable; - std::string webhook; - std::string id; - std::string threshold; - }; + struct Alarm + { + int silenceTime; + int notifyType; + std::string contactGroups; + std::string comparisonOperator; + int endTime; + int startTime; + std::string dimensions; + int period; + int evaluationCount; + std::string _namespace; + std::string statistics; + std::string name; + std::string metricName; + std::string state; + bool enable; + std::string webhook; + std::string id; + std::string threshold; + }; ListAlarmResult(); explicit ListAlarmResult(const std::string &payload); ~ListAlarmResult(); - std::string getMessage()const; - int getNextToken()const; - std::vector getAlarmList()const; - int getTotal()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getNextToken()const; + std::vector getAlarmList()const; + int getTotal()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int nextToken_; - std::vector alarmList_; - int total_; - std::string code_; - bool success_; + std::string message_; + int nextToken_; + std::vector alarmList_; + int total_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h b/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h index 69dbbeb0b..635872555 100644 --- a/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud ListContactGroupRequest(); ~ListContactGroupRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); int getPageSize()const; void setPageSize(int pageSize); int getPageNumber()const; void setPageNumber(int pageNumber); private: - std::string callby_cms_owner_; int pageSize_; int pageNumber_; diff --git a/cms/include/alibabacloud/cms/model/ListContactGroupResult.h b/cms/include/alibabacloud/cms/model/ListContactGroupResult.h index 3b2921276..c0d544a63 100644 --- a/cms/include/alibabacloud/cms/model/ListContactGroupResult.h +++ b/cms/include/alibabacloud/cms/model/ListContactGroupResult.h @@ -37,22 +37,22 @@ namespace AlibabaCloud ListContactGroupResult(); explicit ListContactGroupResult(const std::string &payload); ~ListContactGroupResult(); - std::vector getContactGroups()const; - std::string getMessage()const; - int getNextToken()const; - int getTotal()const; - std::string getCode()const; - bool getSuccess()const; + std::vector getContactGroups()const; + std::string getMessage()const; + int getNextToken()const; + int getTotal()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector contactGroups_; - std::string message_; - int nextToken_; - int total_; - std::string code_; - bool success_; + std::vector contactGroups_; + std::string message_; + int nextToken_; + int total_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListEventRulesRequest.h b/cms/include/alibabacloud/cms/model/ListEventRulesRequest.h new file mode 100644 index 000000000..cd25eeea9 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListEventRulesRequest.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_LISTEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListEventRulesRequest : public RpcServiceRequest + { + + public: + ListEventRulesRequest(); + ~ListEventRulesRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getNamePrefix()const; + void setNamePrefix(const std::string& namePrefix); + std::string getPage()const; + void setPage(const std::string& page); + + private: + std::string groupId_; + std::string pageSize_; + std::string namePrefix_; + std::string page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventRulesResult.h b/cms/include/alibabacloud/cms/model/ListEventRulesResult.h new file mode 100644 index 000000000..de52775bb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListEventRulesResult.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_CMS_MODEL_LISTEVENTRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListEventRulesResult : public ServiceResult + { + public: + struct EventRule + { + struct EventPatternItem + { + std::vector nameList; + std::vector levelList; + std::vector statusList; + std::vector eventTypeList; + std::string product; + }; + std::vector eventPattern; + std::string description; + std::string eventType; + std::string state; + std::string name; + std::string groupId; + }; + + + ListEventRulesResult(); + explicit ListEventRulesResult(const std::string &payload); + ~ListEventRulesResult(); + std::string getMessage()const; + std::string getNextToken()const; + int getCurrentPage()const; + int getTotal()const; + std::vector getDatapoints()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string nextToken_; + int currentPage_; + int total_; + std::vector datapoints_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h b/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h new file mode 100644 index 000000000..1c61f9e8d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.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_LISTEVENTTARGETSBYRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListEventTargetsByRuleRequest : public RpcServiceRequest + { + + public: + ListEventTargetsByRuleRequest(); + ~ListEventTargetsByRuleRequest(); + + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h b/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h new file mode 100644 index 000000000..e4c459c60 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.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_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListEventTargetsByRuleResult : public ServiceResult + { + public: + struct ContactParameter + { + std::string contactGroupName; + std::string level; + std::string id; + }; + struct FCParameter + { + std::string functionName; + std::string serviceName; + std::string region; + std::string id; + }; + struct MnsParameter + { + std::string region; + std::string id; + std::string queue; + }; + struct WebhookParameter + { + std::string id; + std::string method; + std::string protocol; + std::string url; + }; + struct SlsParameter + { + std::string project; + std::string logStore; + std::string region; + std::string id; + }; + + + ListEventTargetsByRuleResult(); + explicit ListEventTargetsByRuleResult(const std::string &payload); + ~ListEventTargetsByRuleResult(); + int getParameterCount()const; + std::vector getContactParameters()const; + std::string getMessage()const; + std::vector getSlsParameters()const; + std::vector getWebhookParameters()const; + std::vector getFcParameters()const; + std::string getCode()const; + std::vector getMnsParameters()const; + + protected: + void parse(const std::string &payload); + private: + int parameterCount_; + std::vector contactParameters_; + std::string message_; + std::vector slsParameters_; + std::vector webhookParameters_; + std::vector fcParameters_; + std::string code_; + std::vector mnsParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h new file mode 100644 index 000000000..c5a4b1b7c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.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_LISTGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListGroupDynamicRuleRequest : public RpcServiceRequest + { + + public: + ListGroupDynamicRuleRequest(); + ~ListGroupDynamicRuleRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + + private: + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h new file mode 100644 index 000000000..cd94734dd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.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_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListGroupDynamicRuleResult : public ServiceResult + { + public: + struct ResourceItem + { + struct Filter + { + std::string function; + std::string value; + std::string name; + }; + std::vector filters; + std::string filterRelation; + std::string category; + long groupId; + }; + + + ListGroupDynamicRuleResult(); + explicit ListGroupDynamicRuleResult(const std::string &payload); + ~ListGroupDynamicRuleResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getResource()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector resource_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h b/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h new file mode 100644 index 000000000..e5bf866af --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.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_LISTMONITORINGTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListMonitoringTemplatesRequest : public RpcServiceRequest + { + + public: + ListMonitoringTemplatesRequest(); + ~ListMonitoringTemplatesRequest(); + + bool getTotal()const; + void setTotal(bool total); + std::string getName()const; + void setName(const std::string& name); + long getPageSize()const; + void setPageSize(long pageSize); + long getId()const; + void setId(long id); + bool getHistory()const; + void setHistory(bool history); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + long getPageNumber()const; + void setPageNumber(long pageNumber); + + private: + bool total_; + std::string name_; + long pageSize_; + long id_; + bool history_; + std::string keyword_; + long pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h b/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h new file mode 100644 index 000000000..5b5816793 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.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_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ListMonitoringTemplatesResult : public ServiceResult + { + public: + struct Resource + { + struct ApplyHistory + { + std::string groupName; + long applyTime; + long groupId; + }; + long gmtCreate; + std::string description; + std::string alertTemplatesJson; + long gmtModified; + std::string _namespace; + long restVersion; + long id; + std::vector applyHistories; + std::string eventRuleTemplatesJson; + std::string name; + }; + + + ListMonitoringTemplatesResult(); + explicit ListMonitoringTemplatesResult(const std::string &payload); + ~ListMonitoringTemplatesResult(); + long getPageSize()const; + long getPageNumber()const; + long getTotal()const; + std::vector getResources()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long pageNumber_; + long total_; + std::vector resources_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h b/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h index 1dc340736..ff590a9ce 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h @@ -32,33 +32,33 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListMyGroupCategoriesResult : public ServiceResult { public: - struct Category - { - struct CategoryItem - { - std::string category; - int count; - }; - std::vector categoryItems; - long groupId; - }; + struct Category + { + struct CategoryItem + { + std::string category; + int count; + }; + std::vector categoryItems; + long groupId; + }; ListMyGroupCategoriesResult(); explicit ListMyGroupCategoriesResult(const std::string &payload); ~ListMyGroupCategoriesResult(); - std::vector getCategory()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + Category getCategory()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector category_; - int errorCode_; - std::string errorMessage_; - bool success_; + Category category_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h index 163a8afff..9f04c051f 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h @@ -37,20 +37,26 @@ namespace AlibabaCloud bool getTotal()const; void setTotal(bool total); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); long getGroupId()const; void setGroupId(long groupId); int getPageSize()const; void setPageSize(int pageSize); std::string getCategory()const; void setCategory(const std::string& category); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); int getPageNumber()const; void setPageNumber(int pageNumber); private: bool total_; + std::string instanceIds_; long groupId_; int pageSize_; std::string category_; + std::string keyword_; int pageNumber_; }; diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h index 89d53ec32..db2900981 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h @@ -32,56 +32,57 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesDetailsResult : public ServiceResult { public: - struct Resource - { - struct Region - { - std::string availabilityZone; - std::string regionId; - }; - struct Vpc - { - std::string vswitchInstanceId; - std::string vpcInstanceId; - }; - struct Tag - { - std::string value; - std::string key; - }; - std::string instanceName; - std::string desc; - std::string category; - std::string instanceId; - std::string networkType; - std::vector vpc; - std::vector region; - std::vector tags; - long aliUid; - }; + struct Resource + { + struct Region + { + std::string availabilityZone; + std::string regionId; + }; + struct Vpc + { + std::string vswitchInstanceId; + std::string vpcInstanceId; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string instanceName; + std::string desc; + std::string category; + std::string instanceId; + std::string networkType; + Vpc vpc; + Region region; + std::string dimension; + std::vector tags; + long aliUid; + }; ListMyGroupInstancesDetailsResult(); explicit ListMyGroupInstancesDetailsResult(const std::string &payload); ~ListMyGroupInstancesDetailsResult(); - int getPageSize()const; - int getPageNumber()const; - int getTotal()const; - std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getResources()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; - int total_; - std::vector resources_; - int errorCode_; - std::string errorMessage_; - bool success_; + int pageSize_; + int pageNumber_; + int total_; + std::vector resources_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h index 86504c281..4f95f3acf 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h @@ -37,20 +37,26 @@ namespace AlibabaCloud bool getTotal()const; void setTotal(bool total); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); long getGroupId()const; void setGroupId(long groupId); int getPageSize()const; void setPageSize(int pageSize); std::string getCategory()const; void setCategory(const std::string& category); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); int getPageNumber()const; void setPageNumber(int pageNumber); private: bool total_; + std::string instanceIds_; long groupId_; int pageSize_; std::string category_; + std::string keyword_; int pageNumber_; }; diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h index 986e44414..a5b404f96 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h @@ -32,37 +32,38 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesResult : public ServiceResult { public: - struct Resource - { - std::string category; - std::string instanceId; - long id; - std::string regionId; - long aliUid; - }; + struct Resource + { + std::string instanceName; + std::string category; + std::string instanceId; + long id; + std::string regionId; + long aliUid; + }; ListMyGroupInstancesResult(); explicit ListMyGroupInstancesResult(const std::string &payload); ~ListMyGroupInstancesResult(); - int getPageSize()const; - int getPageNumber()const; - int getTotal()const; - std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getResources()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; - int total_; - std::vector resources_; - int errorCode_; - std::string errorMessage_; - bool success_; + int pageSize_; + int pageNumber_; + int total_; + std::vector resources_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h index 3aa7693bf..c25de6751 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h @@ -41,10 +41,10 @@ namespace AlibabaCloud void setInstanceId(const std::string& instanceId); int getPageSize()const; void setPageSize(int pageSize); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); std::string getType()const; void setType(const std::string& type); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); std::string getGroupName()const; void setGroupName(const std::string& groupName); int getPageNumber()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud bool selectContactGroups_; std::string instanceId_; int pageSize_; - std::string keyword_; std::string type_; + std::string keyword_; std::string groupName_; int pageNumber_; std::string bindUrls_; diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h b/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h index b7ac0bf50..fcd545276 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h @@ -32,42 +32,45 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListMyGroupsResult : public ServiceResult { public: - struct Resource - { - struct ContactGroup - { - std::string name; - }; - std::string groupName; - std::vector contactGroups; - std::string type; - std::string bindUrls; - long groupId; - std::string serviceId; - }; + struct Resource + { + struct ContactGroup + { + std::string name; + }; + std::string groupName; + std::vector contactGroups; + std::string type; + long gmtCreate; + std::string bindUrl; + long gmtModified; + std::string bindUrls; + long groupId; + std::string serviceId; + }; ListMyGroupsResult(); explicit ListMyGroupsResult(const std::string &payload); ~ListMyGroupsResult(); - int getPageSize()const; - int getPageNumber()const; - int getTotal()const; - std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getResources()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; - int total_; - std::vector resources_; - int errorCode_; - std::string errorMessage_; - bool success_; + int pageSize_; + int pageNumber_; + int total_; + std::vector resources_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h index 51c7d0f6e..016331030 100644 --- a/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setPolicyType(const std::string& policyType); std::string getAlertName()const; void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); int getPageSize()const; void setPageSize(int pageSize); std::string getId()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string policyType_; std::string alertName_; + std::string groupId_; int pageSize_; std::string id_; std::string dimensions_; diff --git a/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h index 0956fe7b0..ccbdcc672 100644 --- a/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h @@ -32,36 +32,35 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT ListNotifyPolicyResult : public ServiceResult { public: - struct NotifyPolicy - { - std::string type; - std::string alertName; - long endTime; - long startTime; - std::string dimensions; - std::string id; - }; + struct NotifyPolicy + { + std::string type; + std::string alertName; + long endTime; + long startTime; + std::string dimensions; + std::string id; + std::string groupId; + }; ListNotifyPolicyResult(); explicit ListNotifyPolicyResult(const std::string &payload); ~ListNotifyPolicyResult(); - std::vector getNotifyPolicyList()const; - std::string getMessage()const; - int getTotal()const; - std::string getTraceId()const; - std::string getCode()const; - std::string getSuccess()const; + std::vector getNotifyPolicyList()const; + std::string getMessage()const; + int getTotal()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector notifyPolicyList_; - std::string message_; - int total_; - std::string traceId_; - std::string code_; - std::string success_; + std::vector notifyPolicyList_; + std::string message_; + int total_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h b/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h index 6837b2c9b..226c9cedb 100644 --- a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud ListProductOfActiveAlertResult(); explicit ListProductOfActiveAlertResult(const std::string &payload); ~ListProductOfActiveAlertResult(); - std::string getMessage()const; - std::string getDatapoints()const; - int getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getDatapoints()const; + int getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string datapoints_; - int code_; - bool success_; + std::string message_; + std::string datapoints_; + int code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ModifyTaskRequest.h b/cms/include/alibabacloud/cms/model/ModifyTaskRequest.h new file mode 100644 index 000000000..3467de669 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyTaskRequest.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_CMS_MODEL_MODIFYTASKREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyTaskRequest : public RpcServiceRequest + { + + public: + ModifyTaskRequest(); + ~ModifyTaskRequest(); + + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getAddress()const; + void setAddress(const std::string& address); + std::string getIspCity()const; + void setIspCity(const std::string& ispCity); + std::string getAlertIds()const; + void setAlertIds(const std::string& alertIds); + std::string getOptions()const; + void setOptions(const std::string& options); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getAlertRule()const; + void setAlertRule(const std::string& alertRule); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string caller_; + std::string address_; + std::string ispCity_; + std::string alertIds_; + std::string options_; + std::string taskName_; + std::string interval_; + std::string alertRule_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYTASKREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyTaskResult.h b/cms/include/alibabacloud/cms/model/ModifyTaskResult.h new file mode 100644 index 000000000..0328346ef --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyTaskResult.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_MODIFYTASKRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyTaskResult : public ServiceResult + { + public: + + + ModifyTaskResult(); + explicit ModifyTaskResult(const std::string &payload); + ~ModifyTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYTASKRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeInstallResult.h b/cms/include/alibabacloud/cms/model/NodeInstallResult.h index a62e2164a..621d5484f 100644 --- a/cms/include/alibabacloud/cms/model/NodeInstallResult.h +++ b/cms/include/alibabacloud/cms/model/NodeInstallResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud NodeInstallResult(); explicit NodeInstallResult(const std::string &payload); ~NodeInstallResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeListRequest.h b/cms/include/alibabacloud/cms/model/NodeListRequest.h index 202b975fd..5aeed864d 100644 --- a/cms/include/alibabacloud/cms/model/NodeListRequest.h +++ b/cms/include/alibabacloud/cms/model/NodeListRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setHostName(const std::string& hostName); std::string getInstanceIds()const; void setInstanceIds(const std::string& instanceIds); + std::string getInstanceRegionId()const; + void setInstanceRegionId(const std::string& instanceRegionId); int getPageSize()const; void setPageSize(int pageSize); std::string getKeyWord()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud private: std::string hostName_; std::string instanceIds_; + std::string instanceRegionId_; int pageSize_; std::string keyWord_; long userId_; diff --git a/cms/include/alibabacloud/cms/model/NodeListResult.h b/cms/include/alibabacloud/cms/model/NodeListResult.h index 1126914cd..46bbc4117 100644 --- a/cms/include/alibabacloud/cms/model/NodeListResult.h +++ b/cms/include/alibabacloud/cms/model/NodeListResult.h @@ -32,47 +32,48 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT NodeListResult : public ServiceResult { public: - struct Node - { - std::string operatingSystem; - std::string tianjimonVersion; - std::string instanceId; - std::string natIp; - std::string serialNumber; - bool aliyunHost; - std::string networkType; - std::string eipAddress; - std::string region; - std::string eipId; - std::string ipGroup; - std::string hostName; - long aliUid; - }; + struct Node + { + std::string operatingSystem; + std::string tianjimonVersion; + std::string instanceId; + std::string instanceTypeFamily; + std::string natIp; + std::string serialNumber; + bool aliyunHost; + std::string networkType; + std::string eipAddress; + std::string region; + std::string eipId; + std::string ipGroup; + std::string hostName; + long aliUid; + }; NodeListResult(); explicit NodeListResult(const std::string &payload); ~NodeListResult(); - int getPageSize()const; - int getPageNumber()const; - int getPageTotal()const; - int getTotal()const; - int getErrorCode()const; - std::string getErrorMessage()const; - std::vector getNodes()const; - bool getSuccess()const; + int getPageSize()const; + int getPageNumber()const; + int getPageTotal()const; + int getTotal()const; + int getErrorCode()const; + std::string getErrorMessage()const; + std::vector getNodes()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; - int pageTotal_; - int total_; - int errorCode_; - std::string errorMessage_; - std::vector nodes_; - bool success_; + int pageSize_; + int pageNumber_; + int pageTotal_; + int total_; + int errorCode_; + std::string errorMessage_; + std::vector nodes_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h b/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h index 43266ad85..7d984e094 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h +++ b/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud NodeProcessCreateResult(); explicit NodeProcessCreateResult(const std::string &payload); ~NodeProcessCreateResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + long id_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h b/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h index 36b49fdce..b43b9a2dd 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h +++ b/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud NodeProcessDeleteResult(); explicit NodeProcessDeleteResult(const std::string &payload); ~NodeProcessDeleteResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeProcessesResult.h b/cms/include/alibabacloud/cms/model/NodeProcessesResult.h index 44cd24933..0d8091473 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessesResult.h +++ b/cms/include/alibabacloud/cms/model/NodeProcessesResult.h @@ -32,32 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT NodeProcessesResult : public ServiceResult { public: - struct NodeProcess - { - std::string processName; - std::string instanceId; - std::string command; - std::string processUser; - long id; - std::string name; - }; + struct NodeProcess + { + std::string processName; + std::string instanceId; + std::string command; + std::string processUser; + long id; + std::string name; + }; NodeProcessesResult(); explicit NodeProcessesResult(const std::string &payload); ~NodeProcessesResult(); - std::vector getNodeProcesses()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + std::vector getNodeProcesses()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector nodeProcesses_; - int errorCode_; - std::string errorMessage_; - bool success_; + std::vector nodeProcesses_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeStatusListResult.h b/cms/include/alibabacloud/cms/model/NodeStatusListResult.h index 5e06337e9..f1ce96997 100644 --- a/cms/include/alibabacloud/cms/model/NodeStatusListResult.h +++ b/cms/include/alibabacloud/cms/model/NodeStatusListResult.h @@ -32,29 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT NodeStatusListResult : public ServiceResult { public: - struct NodeStatus - { - std::string status; - bool autoInstall; - std::string instanceId; - }; + struct NodeStatus + { + std::string status; + bool autoInstall; + std::string instanceId; + }; NodeStatusListResult(); explicit NodeStatusListResult(const std::string &payload); ~NodeStatusListResult(); - std::vector getNodeStatusList()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + std::vector getNodeStatusList()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector nodeStatusList_; - int errorCode_; - std::string errorMessage_; - bool success_; + std::vector nodeStatusList_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeStatusResult.h b/cms/include/alibabacloud/cms/model/NodeStatusResult.h index 9276833b6..a67f24ac6 100644 --- a/cms/include/alibabacloud/cms/model/NodeStatusResult.h +++ b/cms/include/alibabacloud/cms/model/NodeStatusResult.h @@ -37,22 +37,22 @@ namespace AlibabaCloud NodeStatusResult(); explicit NodeStatusResult(const std::string &payload); ~NodeStatusResult(); - std::string getStatus()const; - bool getAutoInstall()const; - std::string getInstanceId()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + std::string getStatus()const; + bool getAutoInstall()const; + std::string getInstanceId()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string status_; - bool autoInstall_; - std::string instanceId_; - int errorCode_; - std::string errorMessage_; - bool success_; + std::string status_; + bool autoInstall_; + std::string instanceId_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/NodeUninstallResult.h b/cms/include/alibabacloud/cms/model/NodeUninstallResult.h index b5414be99..60d21c952 100644 --- a/cms/include/alibabacloud/cms/model/NodeUninstallResult.h +++ b/cms/include/alibabacloud/cms/model/NodeUninstallResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud NodeUninstallResult(); explicit NodeUninstallResult(const std::string &payload); ~NodeUninstallResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ProfileGetResult.h b/cms/include/alibabacloud/cms/model/ProfileGetResult.h index 6883e7162..ca1a557b5 100644 --- a/cms/include/alibabacloud/cms/model/ProfileGetResult.h +++ b/cms/include/alibabacloud/cms/model/ProfileGetResult.h @@ -37,24 +37,24 @@ namespace AlibabaCloud ProfileGetResult(); explicit ProfileGetResult(const std::string &payload); ~ProfileGetResult(); - bool getAutoInstall()const; - std::string getEnableActiveAlert()const; - bool getEnableInstallAgentNewECS()const; - long getUserId()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + bool getAutoInstall()const; + std::string getEnableActiveAlert()const; + bool getEnableInstallAgentNewECS()const; + long getUserId()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - bool autoInstall_; - std::string enableActiveAlert_; - bool enableInstallAgentNewECS_; - long userId_; - int errorCode_; - std::string errorMessage_; - bool success_; + bool autoInstall_; + std::string enableActiveAlert_; + bool enableInstallAgentNewECS_; + long userId_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/ProfileSetResult.h b/cms/include/alibabacloud/cms/model/ProfileSetResult.h index 453c56fc0..518c5be6e 100644 --- a/cms/include/alibabacloud/cms/model/ProfileSetResult.h +++ b/cms/include/alibabacloud/cms/model/ProfileSetResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud ProfileSetResult(); explicit ProfileSetResult(const std::string &payload); ~ProfileSetResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h b/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h index 316746586..23de19392 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud PutCustomMetricResult(); explicit PutCustomMetricResult(const std::string &payload); ~PutCustomMetricResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + 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_; + std::string message_; + std::string data_; + std::string code_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutEventResult.h b/cms/include/alibabacloud/cms/model/PutEventResult.h index 68858805c..b4eee0ccd 100644 --- a/cms/include/alibabacloud/cms/model/PutEventResult.h +++ b/cms/include/alibabacloud/cms/model/PutEventResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud PutEventResult(); explicit PutEventResult(const std::string &payload); ~PutEventResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + 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_; + std::string message_; + std::string data_; + std::string code_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h new file mode 100644 index 000000000..1b2161168 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.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_CMS_MODEL_PUTEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutEventRuleRequest : public RpcServiceRequest + { + struct EventPattern + { + std::vector levelList; + std::string product; + std::vector statusList; + std::vector nameList; + std::vector eventTypeList; + }; + + public: + PutEventRuleRequest(); + ~PutEventRuleRequest(); + + std::vector getEventPattern()const; + void setEventPattern(const std::vector& eventPattern); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getState()const; + void setState(const std::string& state); + + private: + std::vector eventPattern_; + std::string groupId_; + std::string name_; + std::string description_; + std::string eventType_; + std::string state_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventRuleResult.h b/cms/include/alibabacloud/cms/model/PutEventRuleResult.h new file mode 100644 index 000000000..fef9c557d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutEventRuleResult.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_PUTEVENTRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutEventRuleResult : public ServiceResult + { + public: + + + PutEventRuleResult(); + explicit PutEventRuleResult(const std::string &payload); + ~PutEventRuleResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutEventTargetsRequest.h new file mode 100644 index 000000000..600374b3c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutEventTargetsRequest.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_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutEventTargetsRequest : public RpcServiceRequest + { + struct WebhookParameters + { + std::string protocol; + std::string method; + std::string id; + std::string url; + }; + struct ContactParameters + { + std::string level; + std::string id; + std::string contactGroupName; + }; + struct SlsParameters + { + std::string project; + std::string id; + std::string region; + std::string logStore; + }; + struct FcParameters + { + std::string functionName; + std::string serviceName; + std::string id; + std::string region; + }; + struct MnsParameters + { + std::string id; + std::string region; + std::string queue; + }; + + public: + PutEventTargetsRequest(); + ~PutEventTargetsRequest(); + + std::vector getWebhookParameters()const; + void setWebhookParameters(const std::vector& webhookParameters); + std::vector getContactParameters()const; + void setContactParameters(const std::vector& contactParameters); + std::vector getSlsParameters()const; + void setSlsParameters(const std::vector& slsParameters); + std::vector getFcParameters()const; + void setFcParameters(const std::vector& fcParameters); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::vector getMnsParameters()const; + void setMnsParameters(const std::vector& mnsParameters); + + private: + std::vector webhookParameters_; + std::vector contactParameters_; + std::vector slsParameters_; + std::vector fcParameters_; + std::string ruleName_; + std::vector mnsParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventTargetsResult.h b/cms/include/alibabacloud/cms/model/PutEventTargetsResult.h new file mode 100644 index 000000000..25a4c1614 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutEventTargetsResult.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_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutEventTargetsResult : public ServiceResult + { + public: + struct ContactParameter + { + std::string contactGroupName; + std::string level; + int id; + }; + struct MnsParameter + { + std::string region; + int id; + std::string queue; + }; + struct FcParameter + { + std::string functionName; + std::string serviceName; + std::string region; + int id; + }; + struct FailedSlsParameter + { + std::string project; + std::string logStore; + std::string region; + std::string id; + }; + + + PutEventTargetsResult(); + explicit PutEventTargetsResult(const std::string &payload); + ~PutEventTargetsResult(); + std::string getParameterCount()const; + std::vector getContactParameters()const; + std::string getMessage()const; + std::vector getFailedMnsParameters()const; + std::vector getFailedFcParameters()const; + std::vector getFcParameters()const; + std::string getFailedParameterCount()const; + std::vector getFailedContactParameters()const; + std::string getCode()const; + std::vector getFailedSlsParameters()const; + bool getSuccess()const; + std::vector getMnsParameters()const; + + protected: + void parse(const std::string &payload); + private: + std::string parameterCount_; + std::vector contactParameters_; + std::string message_; + std::vector failedMnsParameters_; + std::vector failedFcParameters_; + std::vector fcParameters_; + std::string failedParameterCount_; + std::vector failedContactParameters_; + std::string code_; + std::vector failedSlsParameters_; + bool success_; + std::vector mnsParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h new file mode 100644 index 000000000..0e573b229 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.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_PUTGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutGroupDynamicRuleRequest : public RpcServiceRequest + { + + public: + PutGroupDynamicRuleRequest(); + ~PutGroupDynamicRuleRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::string getGroupRuleArrayJson()const; + void setGroupRuleArrayJson(const std::string& groupRuleArrayJson); + + private: + long groupId_; + std::string groupRuleArrayJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h new file mode 100644 index 000000000..bed3f01fb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.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_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutGroupDynamicRuleResult : public ServiceResult + { + public: + + + PutGroupDynamicRuleResult(); + explicit PutGroupDynamicRuleResult(const std::string &payload); + ~PutGroupDynamicRuleResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.h b/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.h new file mode 100644 index 000000000..350cffdd3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.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_CMS_MODEL_PUTMETRICALARMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMetricAlarmRequest : public RpcServiceRequest + { + + public: + PutMetricAlarmRequest(); + ~PutMetricAlarmRequest(); + + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getWebhook()const; + void setWebhook(const std::string& webhook); + std::string getContactGroups()const; + void setContactGroups(const std::string& contactGroups); + int getLevel()const; + void setLevel(int level); + std::string getSubject()const; + void setSubject(const std::string& subject); + std::string getAlertName()const; + void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getResources()const; + void setResources(const std::string& resources); + std::string getThreshold()const; + void setThreshold(const std::string& threshold); + std::string getEffectiveInterval()const; + void setEffectiveInterval(const std::string& effectiveInterval); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getFilter()const; + void setFilter(const std::string& filter); + std::string getNoEffectiveInterval()const; + void setNoEffectiveInterval(const std::string& noEffectiveInterval); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + int getEvaluationCount()const; + void setEvaluationCount(int evaluationCount); + int getSilenceTime()const; + void setSilenceTime(int silenceTime); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getDeepDive()const; + void setDeepDive(const std::string& deepDive); + std::string getComparisonOperator()const; + void setComparisonOperator(const std::string& comparisonOperator); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + std::string getStatistics()const; + void setStatistics(const std::string& statistics); + + private: + std::string period_; + std::string webhook_; + std::string contactGroups_; + int level_; + std::string subject_; + std::string alertName_; + std::string groupId_; + std::string description_; + std::string resources_; + std::string threshold_; + std::string effectiveInterval_; + std::string groupName_; + std::string filter_; + std::string noEffectiveInterval_; + std::string displayName_; + std::string _namespace_; + int evaluationCount_; + int silenceTime_; + std::string interval_; + std::string metricName_; + std::string deepDive_; + std::string comparisonOperator_; + std::string dimensions_; + std::string statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListProductOfActiceAlertResult.h b/cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h similarity index 69% rename from cms/include/alibabacloud/cms/model/ListProductOfActiceAlertResult.h rename to cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h index ccbac5bd0..176d4f704 100644 --- a/cms/include/alibabacloud/cms/model/ListProductOfActiceAlertResult.h +++ b/cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListProductOfActiceAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutMetricAlarmResult : public ServiceResult { public: - ListProductOfActiceAlertResult(); - explicit ListProductOfActiceAlertResult(const std::string &payload); - ~ListProductOfActiceAlertResult(); - std::string getMessage()const; - std::string getDatapoints()const; - int getCode()const; - bool getSuccess()const; + PutMetricAlarmResult(); + explicit PutMetricAlarmResult(const std::string &payload); + ~PutMetricAlarmResult(); + std::string getMessage()const; + std::string getDatapoints()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string datapoints_; - int code_; - bool success_; + std::string message_; + std::string datapoints_; + std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTICEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h index c83f28fc1..4f3221c04 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h +++ b/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QueryCustomEventCountResult(); explicit QueryCustomEventCountResult(const std::string &payload); ~QueryCustomEventCountResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h index 10efec2e5..5503815b4 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h +++ b/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QueryCustomEventDetailResult(); explicit QueryCustomEventDetailResult(const std::string &payload); ~QueryCustomEventDetailResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h index d1383e50e..c019b3055 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h +++ b/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QueryCustomEventHistogramResult(); explicit QueryCustomEventHistogramResult(const std::string &payload); ~QueryCustomEventHistogramResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h b/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h index 5b6c0ffa8..60080de44 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setMetricName(const std::string& metricName); std::string getDimension()const; void setDimension(const std::string& dimension); - std::string getUUID()const; - void setUUID(const std::string& uUID); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); std::string getMd5()const; @@ -58,7 +56,6 @@ namespace AlibabaCloud std::string page_; std::string metricName_; std::string dimension_; - std::string uUID_; std::string accessKeyId_; std::string md5_; diff --git a/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h b/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h index 646642ef5..3912b4c94 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h +++ b/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud QueryCustomMetricListResult(); explicit QueryCustomMetricListResult(const std::string &payload); ~QueryCustomMetricListResult(); - std::string getMessage()const; - std::string getCode()const; - std::string getResult()const; + std::string getMessage()const; + std::string getCode()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - std::string result_; + std::string message_; + std::string code_; + std::string result_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.h b/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.h new file mode 100644 index 000000000..6953b0998 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.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_QUERYERRORDISTRIBUTIONREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryErrorDistributionRequest : public RpcServiceRequest + { + + public: + QueryErrorDistributionRequest(); + ~QueryErrorDistributionRequest(); + + std::string getTimeRange()const; + void setTimeRange(const std::string& timeRange); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string timeRange_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.h b/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.h new file mode 100644 index 000000000..108fb6b8f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.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_QUERYERRORDISTRIBUTIONRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryErrorDistributionResult : public ServiceResult + { + public: + + + QueryErrorDistributionResult(); + explicit QueryErrorDistributionResult(const std::string &payload); + ~QueryErrorDistributionResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricDataRequest.h b/cms/include/alibabacloud/cms/model/QueryMetricDataRequest.h new file mode 100644 index 000000000..8dcfbb326 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricDataRequest.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_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricDataRequest : public RpcServiceRequest + { + + public: + QueryMetricDataRequest(); + ~QueryMetricDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getLength()const; + void setLength(const std::string& length); + std::string getProject()const; + void setProject(const std::string& project); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getExpress()const; + void setExpress(const std::string& express); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + + private: + long resourceOwnerId_; + std::string period_; + std::string metric_; + std::string length_; + std::string project_; + std::string endTime_; + std::string express_; + std::string startTime_; + std::string accessKeyId_; + std::string dimensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricDataResult.h b/cms/include/alibabacloud/cms/model/QueryMetricDataResult.h new file mode 100644 index 000000000..dd87d5a6c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricDataResult.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_QUERYMETRICDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricDataResult : public ServiceResult + { + public: + + + QueryMetricDataResult(); + explicit QueryMetricDataResult(const std::string &payload); + ~QueryMetricDataResult(); + std::string getMessage()const; + std::string getPeriod()const; + std::string getDatapoints()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string period_; + std::string datapoints_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h b/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h index fdbb7497f..46b03b59b 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h +++ b/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud std::string getCursor()const; void setCursor(const std::string& cursor); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getPeriod()const; @@ -64,7 +62,6 @@ namespace AlibabaCloud private: std::string cursor_; - std::string callby_cms_owner_; long resourceOwnerId_; std::string period_; std::string length_; diff --git a/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h b/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h index 3384fad1e..3116f5d5d 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h +++ b/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h @@ -37,22 +37,22 @@ namespace AlibabaCloud QueryMetricLastResult(); explicit QueryMetricLastResult(const std::string &payload); ~QueryMetricLastResult(); - std::string getMessage()const; - std::string getPeriod()const; - std::string getCursor()const; - std::string getDatapoints()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getPeriod()const; + std::string getCursor()const; + std::string getDatapoints()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string period_; - std::string cursor_; - std::string datapoints_; - std::string code_; - bool success_; + std::string message_; + std::string period_; + std::string cursor_; + std::string datapoints_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h b/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h index 31373de81..464295426 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h @@ -37,12 +37,12 @@ namespace AlibabaCloud std::string getCursor()const; void setCursor(const std::string& cursor); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getPeriod()const; void setPeriod(const std::string& period); + std::string getMetric()const; + void setMetric(const std::string& metric); std::string getLength()const; void setLength(const std::string& length); std::string getProject()const; @@ -55,26 +55,20 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - std::string getMetric()const; - void setMetric(const std::string& metric); - std::string getPage()const; - void setPage(const std::string& page); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: std::string cursor_; - std::string callby_cms_owner_; long resourceOwnerId_; std::string period_; + std::string metric_; std::string length_; std::string project_; std::string endTime_; std::string express_; std::string startTime_; std::string accessKeyId_; - std::string metric_; - std::string page_; std::string dimensions_; }; diff --git a/cms/include/alibabacloud/cms/model/QueryMetricListResult.h b/cms/include/alibabacloud/cms/model/QueryMetricListResult.h index 248a25d9f..977cc043e 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricListResult.h +++ b/cms/include/alibabacloud/cms/model/QueryMetricListResult.h @@ -37,22 +37,22 @@ namespace AlibabaCloud QueryMetricListResult(); explicit QueryMetricListResult(const std::string &payload); ~QueryMetricListResult(); - std::string getMessage()const; - std::string getPeriod()const; - std::string getCursor()const; - std::string getDatapoints()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getPeriod()const; + std::string getCursor()const; + std::string getDatapoints()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string period_; - std::string cursor_; - std::string datapoints_; - std::string code_; - bool success_; + std::string message_; + std::string period_; + std::string cursor_; + std::string datapoints_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.h b/cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.h new file mode 100644 index 000000000..08c9dbe25 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.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_QUERYMETRICMETAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricMetaRequest : public RpcServiceRequest + { + + public: + QueryMetricMetaRequest(); + ~QueryMetricMetaRequest(); + + std::string getMetric()const; + void setMetric(const std::string& metric); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getProject()const; + void setProject(const std::string& project); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getLabels()const; + void setLabels(const std::string& labels); + + private: + std::string metric_; + int pageSize_; + std::string project_; + int pageNumber_; + std::string labels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricMetaResult.h b/cms/include/alibabacloud/cms/model/QueryMetricMetaResult.h new file mode 100644 index 000000000..806f957cb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricMetaResult.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_QUERYMETRICMETARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricMetaResult : public ServiceResult + { + public: + struct Resource + { + std::string project; + std::string periods; + std::string description; + std::string dimensions; + std::string metric; + std::string labels; + std::string unit; + std::string statistics; + }; + + + QueryMetricMetaResult(); + explicit QueryMetricMetaResult(const std::string &payload); + ~QueryMetricMetaResult(); + std::vector getResources()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resources_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricTopRequest.h b/cms/include/alibabacloud/cms/model/QueryMetricTopRequest.h new file mode 100644 index 000000000..67d1375c3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricTopRequest.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_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricTopRequest : public RpcServiceRequest + { + + public: + QueryMetricTopRequest(); + ~QueryMetricTopRequest(); + + std::string getPeriod()const; + void setPeriod(const std::string& period); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getLength()const; + void setLength(const std::string& length); + std::string getProject()const; + void setProject(const std::string& project); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getOrderby()const; + void setOrderby(const std::string& orderby); + std::string getExpress()const; + void setExpress(const std::string& express); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + std::string getOrderDesc()const; + void setOrderDesc(const std::string& orderDesc); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string period_; + long resourceOwnerId_; + std::string metric_; + std::string length_; + std::string project_; + std::string endTime_; + std::string orderby_; + std::string express_; + std::string startTime_; + std::string dimensions_; + std::string orderDesc_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricTopResult.h b/cms/include/alibabacloud/cms/model/QueryMetricTopResult.h new file mode 100644 index 000000000..92895168a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMetricTopResult.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_QUERYMETRICTOPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMetricTopResult : public ServiceResult + { + public: + + + QueryMetricTopResult(); + explicit QueryMetricTopResult(const std::string &payload); + ~QueryMetricTopResult(); + std::string getMessage()const; + std::string getPeriod()const; + std::string getDatapoints()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string period_; + std::string datapoints_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.h b/cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.h new file mode 100644 index 000000000..22f782b67 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.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_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMonitorDataRequest : public RpcServiceRequest + { + + public: + QueryMonitorDataRequest(); + ~QueryMonitorDataRequest(); + + std::string getCursor()const; + void setCursor(const std::string& cursor); + std::string getPeriod()const; + void setPeriod(const std::string& period); + int getLength()const; + void setLength(int length); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getType()const; + void setType(const std::string& type); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string cursor_; + std::string period_; + int length_; + std::string endTime_; + std::string startTime_; + std::string type_; + std::string metricName_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.h b/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.h new file mode 100644 index 000000000..e0e85127f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.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_QUERYMONITORDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryMonitorDataResult : public ServiceResult + { + public: + + + QueryMonitorDataResult(); + explicit QueryMonitorDataResult(const std::string &payload); + ~QueryMonitorDataResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getData()const; + std::string getCursor()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string data_; + std::string cursor_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.h b/cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.h new file mode 100644 index 000000000..2c3943d5b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.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_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryProjectMetaRequest : public RpcServiceRequest + { + + public: + QueryProjectMetaRequest(); + ~QueryProjectMetaRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getLabels()const; + void setLabels(const std::string& labels); + + private: + int pageSize_; + int pageNumber_; + std::string labels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryProjectMetaResult.h b/cms/include/alibabacloud/cms/model/QueryProjectMetaResult.h new file mode 100644 index 000000000..4cba3882b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryProjectMetaResult.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_CMS_MODEL_QUERYPROJECTMETARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryProjectMetaResult : public ServiceResult + { + public: + struct Resource + { + std::string project; + std::string description; + std::string labels; + }; + + + QueryProjectMetaResult(); + explicit QueryProjectMetaResult(const std::string &payload); + ~QueryProjectMetaResult(); + std::vector getResources()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resources_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h new file mode 100644 index 000000000..53220d94b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.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_QUERYSTATICSAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsAvailabilityRequest : public RpcServiceRequest + { + + public: + QueryStaticsAvailabilityRequest(); + ~QueryStaticsAvailabilityRequest(); + + std::string getTimeRange()const; + void setTimeRange(const std::string& timeRange); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string timeRange_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h b/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h new file mode 100644 index 000000000..2ddd36cd5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.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_QUERYSTATICSAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsAvailabilityResult : public ServiceResult + { + public: + + + QueryStaticsAvailabilityResult(); + explicit QueryStaticsAvailabilityResult(const std::string &payload); + ~QueryStaticsAvailabilityResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h new file mode 100644 index 000000000..6c76c0130 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.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_QUERYSTATICSERRORRATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsErrorRateRequest : public RpcServiceRequest + { + + public: + QueryStaticsErrorRateRequest(); + ~QueryStaticsErrorRateRequest(); + + std::string getTimeRange()const; + void setTimeRange(const std::string& timeRange); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string timeRange_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h new file mode 100644 index 000000000..53ccdf2bc --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.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_QUERYSTATICSERRORRATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsErrorRateResult : public ServiceResult + { + public: + + + QueryStaticsErrorRateResult(); + explicit QueryStaticsErrorRateResult(const std::string &payload); + ~QueryStaticsErrorRateResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h b/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h new file mode 100644 index 000000000..19bb5d6b2 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.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_QUERYSTATICSRESPONSETIMEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsResponseTimeRequest : public RpcServiceRequest + { + + public: + QueryStaticsResponseTimeRequest(); + ~QueryStaticsResponseTimeRequest(); + + std::string getTimeRange()const; + void setTimeRange(const std::string& timeRange); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string timeRange_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h b/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h new file mode 100644 index 000000000..d1fb85b15 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.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_QUERYSTATICSRESPONSETIMERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryStaticsResponseTimeResult : public ServiceResult + { + public: + + + QueryStaticsResponseTimeResult(); + explicit QueryStaticsResponseTimeResult(const std::string &payload); + ~QueryStaticsResponseTimeResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h index 9a1ff5961..37f160e2b 100644 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h +++ b/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QuerySystemEventCountResult(); explicit QuerySystemEventCountResult(const std::string &payload); ~QuerySystemEventCountResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/DisableActiceAlertRequest.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h similarity index 67% rename from cms/include/alibabacloud/cms/model/DisableActiceAlertRequest.h rename to cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h index cc17e02f6..5388bc1f2 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiceAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableActiceAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDemoRequest : public RpcServiceRequest { public: - DisableActiceAlertRequest(); - ~DisableActiceAlertRequest(); + QuerySystemEventDemoRequest(); + ~QuerySystemEventDemoRequest(); std::string getProduct()const; void setProduct(const std::string& product); - std::string getUserId()const; - void setUserId(const std::string& userId); + std::string getEventName()const; + void setEventName(const std::string& eventName); private: std::string product_; - std::string userId_; + std::string eventName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTICEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.h new file mode 100644 index 000000000..2bbb2c697 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.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_QUERYSYSTEMEVENTDEMORESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDemoResult : public ServiceResult + { + public: + + + QuerySystemEventDemoResult(); + explicit QuerySystemEventDemoResult(const std::string &payload); + ~QuerySystemEventDemoResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMORESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h index c8c99a6e9..091c9d958 100644 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h +++ b/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QuerySystemEventDetailResult(); explicit QuerySystemEventDetailResult(const std::string &payload); ~QuerySystemEventDetailResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h index a929bb67b..2210b108b 100644 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h +++ b/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h @@ -37,16 +37,18 @@ namespace AlibabaCloud QuerySystemEventHistogramResult(); explicit QuerySystemEventHistogramResult(const std::string &payload); ~QuerySystemEventHistogramResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } diff --git a/cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.h b/cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.h new file mode 100644 index 000000000..f6f19414e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.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_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryTaskConfigRequest : public RpcServiceRequest + { + + public: + QueryTaskConfigRequest(); + ~QueryTaskConfigRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskConfigResult.h b/cms/include/alibabacloud/cms/model/QueryTaskConfigResult.h new file mode 100644 index 000000000..d22c4e196 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryTaskConfigResult.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_QUERYTASKCONFIGRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryTaskConfigResult : public ServiceResult + { + public: + + + QueryTaskConfigResult(); + explicit QueryTaskConfigResult(const std::string &payload); + ~QueryTaskConfigResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h b/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h new file mode 100644 index 000000000..bd69ca07a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.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_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryTaskMonitorDataRequest : public RpcServiceRequest + { + + public: + QueryTaskMonitorDataRequest(); + ~QueryTaskMonitorDataRequest(); + + std::string getCursor()const; + void setCursor(const std::string& cursor); + std::string getPeriod()const; + void setPeriod(const std::string& period); + int getLength()const; + void setLength(int length); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getType()const; + void setType(const std::string& type); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string cursor_; + std::string period_; + int length_; + std::string endTime_; + std::string startTime_; + std::string type_; + std::string metricName_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h b/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h new file mode 100644 index 000000000..00c7e7bb6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.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_QUERYTASKMONITORDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT QueryTaskMonitorDataResult : public ServiceResult + { + public: + + + QueryTaskMonitorDataResult(); + explicit QueryTaskMonitorDataResult(const std::string &payload); + ~QueryTaskMonitorDataResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getData()const; + std::string getCursor()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string data_; + std::string cursor_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h new file mode 100644 index 000000000..db5a49298 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.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_SENDDRYRUNSYSTEMEVENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT SendDryRunSystemEventRequest : public RpcServiceRequest + { + + public: + SendDryRunSystemEventRequest(); + ~SendDryRunSystemEventRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getEventName()const; + void setEventName(const std::string& eventName); + std::string getEventContent()const; + void setEventContent(const std::string& eventContent); + + private: + std::string product_; + std::string groupId_; + std::string eventName_; + std::string eventContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h new file mode 100644 index 000000000..f5e764d8e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.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_SENDDRYRUNSYSTEMEVENTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT SendDryRunSystemEventResult : public ServiceResult + { + public: + + + SendDryRunSystemEventResult(); + explicit SendDryRunSystemEventResult(const std::string &payload); + ~SendDryRunSystemEventResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StartTasksRequest.h b/cms/include/alibabacloud/cms/model/StartTasksRequest.h new file mode 100644 index 000000000..fdd9298c9 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/StartTasksRequest.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_STARTTASKSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_STARTTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT StartTasksRequest : public RpcServiceRequest + { + + public: + StartTasksRequest(); + ~StartTasksRequest(); + + std::string getTaskIds()const; + void setTaskIds(const std::string& taskIds); + + private: + std::string taskIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_STARTTASKSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StartTasksResult.h b/cms/include/alibabacloud/cms/model/StartTasksResult.h new file mode 100644 index 000000000..2ca85d9c3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/StartTasksResult.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_STARTTASKSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_STARTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT StartTasksResult : public ServiceResult + { + public: + + + StartTasksResult(); + explicit StartTasksResult(const std::string &payload); + ~StartTasksResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_STARTTASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StopTasksRequest.h b/cms/include/alibabacloud/cms/model/StopTasksRequest.h new file mode 100644 index 000000000..2cc4a5af1 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/StopTasksRequest.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_STOPTASKSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_STOPTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT StopTasksRequest : public RpcServiceRequest + { + + public: + StopTasksRequest(); + ~StopTasksRequest(); + + std::string getTaskIds()const; + void setTaskIds(const std::string& taskIds); + + private: + std::string taskIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_STOPTASKSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutSystemEventResult.h b/cms/include/alibabacloud/cms/model/StopTasksResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/PutSystemEventResult.h rename to cms/include/alibabacloud/cms/model/StopTasksResult.h index 9249a31a6..87cc9fe3a 100644 --- a/cms/include/alibabacloud/cms/model/PutSystemEventResult.h +++ b/cms/include/alibabacloud/cms/model/StopTasksResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ #include #include @@ -29,27 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutSystemEventResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT StopTasksResult : public ServiceResult { public: - PutSystemEventResult(); - explicit PutSystemEventResult(const std::string &payload); - ~PutSystemEventResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; + StopTasksResult(); + explicit StopTasksResult(const std::string &payload); + ~StopTasksResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string data_; - std::string code_; + std::string message_; + std::string data_; + std::string code_; + std::string success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTSYSTEMEVENTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.h new file mode 100644 index 000000000..9cda67308 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.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_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigCreateRequest : public RpcServiceRequest + { + + public: + TaskConfigCreateRequest(); + ~TaskConfigCreateRequest(); + + std::vector getInstanceList()const; + void setInstanceList(const std::vector& instanceList); + std::string getJsonData()const; + void setJsonData(const std::string& jsonData); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getTaskScope()const; + void setTaskScope(const std::string& taskScope); + std::string getAlertConfig()const; + void setAlertConfig(const std::string& alertConfig); + long getGroupId()const; + void setGroupId(long groupId); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::vector instanceList_; + std::string jsonData_; + std::string taskType_; + std::string taskScope_; + std::string alertConfig_; + long groupId_; + std::string taskName_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.h b/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.h new file mode 100644 index 000000000..3e0444025 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.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_TASKCONFIGCREATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigCreateResult : public ServiceResult + { + public: + + + TaskConfigCreateResult(); + explicit TaskConfigCreateResult(const std::string &payload); + ~TaskConfigCreateResult(); + long getTaskId()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.h new file mode 100644 index 000000000..9f7ca425c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.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_TASKCONFIGDELETEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigDeleteRequest : public RpcServiceRequest + { + + public: + TaskConfigDeleteRequest(); + ~TaskConfigDeleteRequest(); + + std::vector getIdList()const; + void setIdList(const std::vector& idList); + + private: + std::vector idList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.h b/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.h new file mode 100644 index 000000000..f8a6fb905 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.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_CMS_MODEL_TASKCONFIGDELETERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigDeleteResult : public ServiceResult + { + public: + + + TaskConfigDeleteResult(); + explicit TaskConfigDeleteResult(const std::string &payload); + ~TaskConfigDeleteResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.h new file mode 100644 index 000000000..bce832445 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.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_TASKCONFIGENABLEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigEnableRequest : public RpcServiceRequest + { + + public: + TaskConfigEnableRequest(); + ~TaskConfigEnableRequest(); + + std::vector getIdList()const; + void setIdList(const std::vector& idList); + bool getEnabled()const; + void setEnabled(bool enabled); + + private: + std::vector idList_; + bool enabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.h b/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.h new file mode 100644 index 000000000..2c7b7407a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.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_CMS_MODEL_TASKCONFIGENABLERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigEnableResult : public ServiceResult + { + public: + + + TaskConfigEnableResult(); + explicit TaskConfigEnableResult(const std::string &payload); + ~TaskConfigEnableResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigListRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigListRequest.h new file mode 100644 index 000000000..c52b764df --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigListRequest.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_TASKCONFIGLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigListRequest : public RpcServiceRequest + { + + public: + TaskConfigListRequest(); + ~TaskConfigListRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + long getId()const; + void setId(long id); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long groupId_; + int pageSize_; + std::string taskName_; + long id_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigListResult.h b/cms/include/alibabacloud/cms/model/TaskConfigListResult.h new file mode 100644 index 000000000..e0f6a978d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigListResult.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_CMS_MODEL_TASKCONFIGLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigListResult : public ServiceResult + { + public: + struct NodeTaskConfig + { + std::string groupName; + std::string alertConfig; + std::string taskName; + std::string taskScope; + std::string taskType; + long id; + bool disabled; + std::vector instanceList; + std::string jsonData; + long groupId; + }; + + + TaskConfigListResult(); + explicit TaskConfigListResult(const std::string &payload); + ~TaskConfigListResult(); + int getPageSize()const; + int getPageNumber()const; + int getPageTotal()const; + std::vector getTaskList()const; + int getTotal()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int pageTotal_; + std::vector taskList_; + int total_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.h new file mode 100644 index 000000000..3dad6c2e5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.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_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigModifyRequest : public RpcServiceRequest + { + + public: + TaskConfigModifyRequest(); + ~TaskConfigModifyRequest(); + + std::vector getInstanceList()const; + void setInstanceList(const std::vector& instanceList); + std::string getJsonData()const; + void setJsonData(const std::string& jsonData); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getTaskScope()const; + void setTaskScope(const std::string& taskScope); + std::string getAlertConfig()const; + void setAlertConfig(const std::string& alertConfig); + long getGroupId()const; + void setGroupId(long groupId); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + long getId()const; + void setId(long id); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::vector instanceList_; + std::string jsonData_; + std::string taskType_; + std::string taskScope_; + std::string alertConfig_; + long groupId_; + std::string taskName_; + long id_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.h b/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.h new file mode 100644 index 000000000..5d46fc9b6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.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_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigModifyResult : public ServiceResult + { + public: + + + TaskConfigModifyResult(); + explicit TaskConfigModifyResult(const std::string &payload); + ~TaskConfigModifyResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h new file mode 100644 index 000000000..ebf493755 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.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_TASKCONFIGUNHEALTHYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigUnhealthyRequest : public RpcServiceRequest + { + + public: + TaskConfigUnhealthyRequest(); + ~TaskConfigUnhealthyRequest(); + + std::vector getTaskIdList()const; + void setTaskIdList(const std::vector& taskIdList); + + private: + std::vector taskIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h b/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h new file mode 100644 index 000000000..ff2f344a8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.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_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT TaskConfigUnhealthyResult : public ServiceResult + { + public: + struct NodeTaskInstance + { + long taskId; + std::vector instanceList; + }; + + + TaskConfigUnhealthyResult(); + explicit TaskConfigUnhealthyResult(const std::string &payload); + ~TaskConfigUnhealthyResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + std::vector getUnhealthyList()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + std::vector unhealthyList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h b/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h index c7d9cc02a..672895313 100644 --- a/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h @@ -35,12 +35,12 @@ namespace AlibabaCloud UpdateAlarmRequest(); ~UpdateAlarmRequest(); - std::string getCallby_cms_owner()const; - void setCallby_cms_owner(const std::string& callby_cms_owner); int getPeriod()const; void setPeriod(int period); std::string getWebhook()const; void setWebhook(const std::string& webhook); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getContactGroups()const; void setContactGroups(const std::string& contactGroups); int getEndTime()const; @@ -65,9 +65,9 @@ namespace AlibabaCloud void setStatistics(const std::string& statistics); private: - std::string callby_cms_owner_; int period_; std::string webhook_; + bool dryRun_; std::string contactGroups_; int endTime_; std::string threshold_; diff --git a/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h b/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h index b1a16d9d6..2985a92d3 100644 --- a/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud UpdateAlarmResult(); explicit UpdateAlarmResult(const std::string &payload); ~UpdateAlarmResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::string code_; - bool success_; + std::string message_; + std::string code_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h new file mode 100644 index 000000000..fdfa292dd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.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_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMonitoringTemplateRequest : public RpcServiceRequest + { + + public: + UpdateMonitoringTemplateRequest(); + ~UpdateMonitoringTemplateRequest(); + + std::string getEventRuleTemplatesJson()const; + void setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson); + std::string getName()const; + void setName(const std::string& name); + long getRestVersion()const; + void setRestVersion(long restVersion); + std::string getDescription()const; + void setDescription(const std::string& description); + long getId()const; + void setId(long id); + std::string getAlertTemplatesJson()const; + void setAlertTemplatesJson(const std::string& alertTemplatesJson); + + private: + std::string eventRuleTemplatesJson_; + std::string name_; + long restVersion_; + std::string description_; + long id_; + std::string alertTemplatesJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h new file mode 100644 index 000000000..eeae5c074 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.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_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMonitoringTemplateResult : public ServiceResult + { + public: + + + UpdateMonitoringTemplateResult(); + explicit UpdateMonitoringTemplateResult(const std::string &payload); + ~UpdateMonitoringTemplateResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h new file mode 100644 index 000000000..2cc93316e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.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_UPDATEMYGROUPALERTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupAlertRequest : public RpcServiceRequest + { + + public: + UpdateMyGroupAlertRequest(); + ~UpdateMyGroupAlertRequest(); + + std::string getGroupAlertJson()const; + void setGroupAlertJson(const std::string& groupAlertJson); + + private: + std::string groupAlertJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h new file mode 100644 index 000000000..c86575368 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.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_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupAlertResult : public ServiceResult + { + public: + + + UpdateMyGroupAlertResult(); + explicit UpdateMyGroupAlertResult(const std::string &payload); + ~UpdateMyGroupAlertResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h index 86c88080a..7a6723ec4 100644 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud UpdateMyGroupInstancesResult(); explicit UpdateMyGroupInstancesResult(const std::string &payload); ~UpdateMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h new file mode 100644 index 000000000..3a402631a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.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_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupMembersRequest : public RpcServiceRequest + { + + public: + UpdateMyGroupMembersRequest(); + ~UpdateMyGroupMembersRequest(); + + std::string getReaders()const; + void setReaders(const std::string& readers); + long getGroupId()const; + void setGroupId(long groupId); + std::string getMasters()const; + void setMasters(const std::string& masters); + + private: + std::string readers_; + long groupId_; + std::string masters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h new file mode 100644 index 000000000..4d7817455 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.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_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupMembersResult : public ServiceResult + { + public: + + + UpdateMyGroupMembersResult(); + explicit UpdateMyGroupMembersResult(const std::string &payload); + ~UpdateMyGroupMembersResult(); + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h index dac77e900..411ff8bd7 100644 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud UpdateMyGroupsResult(); explicit UpdateMyGroupsResult(const std::string &payload); ~UpdateMyGroupsResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; - bool success_; + int errorCode_; + std::string errorMessage_; + bool success_; }; } diff --git a/cms/src/CmsClient.cc b/cms/src/CmsClient.cc index 301495980..e010cc801 100644 --- a/cms/src/CmsClient.cc +++ b/cms/src/CmsClient.cc @@ -24,7 +24,7 @@ using namespace AlibabaCloud::Cms::Model; namespace { - const std::string SERVICE_NAME = "Cms"; + const std::string SERVICE_NAME = "Cms"; } CmsClient::CmsClient(const Credentials &credentials, const ClientConfiguration &configuration) : @@ -86,43 +86,7 @@ CmsClient::ProfileSetOutcomeCallable CmsClient::profileSetCallable(const Profile asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListProductOfActiceAlertOutcome CmsClient::listProductOfActiceAlert(const ListProductOfActiceAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListProductOfActiceAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListProductOfActiceAlertOutcome(ListProductOfActiceAlertResult(outcome.result())); - else - return ListProductOfActiceAlertOutcome(outcome.error()); -} - -void CmsClient::listProductOfActiceAlertAsync(const ListProductOfActiceAlertRequest& request, const ListProductOfActiceAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listProductOfActiceAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ListProductOfActiceAlertOutcomeCallable CmsClient::listProductOfActiceAlertCallable(const ListProductOfActiceAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listProductOfActiceAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::DeleteCustomMetricOutcome CmsClient::deleteCustomMetric(const DeleteCustomMetricRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -158,79 +122,151 @@ CmsClient::DeleteCustomMetricOutcomeCallable CmsClient::deleteCustomMetricCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const + +CmsClient::DisableEventRuleOutcome CmsClient::disableEventRule(const DisableEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNotifyPolicyOutcome(endpointOutcome.error()); + return DisableEventRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNotifyPolicyOutcome(GetNotifyPolicyResult(outcome.result())); + return DisableEventRuleOutcome(DisableEventRuleResult(outcome.result())); else - return GetNotifyPolicyOutcome(outcome.error()); + return DisableEventRuleOutcome(outcome.error()); } -void CmsClient::getNotifyPolicyAsync(const GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableEventRuleAsync(const DisableEventRuleRequest& request, const DisableEventRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNotifyPolicy(request), context); + handler(this, request, disableEventRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetNotifyPolicyOutcomeCallable CmsClient::getNotifyPolicyCallable(const GetNotifyPolicyRequest &request) const +CmsClient::DisableEventRuleOutcomeCallable CmsClient::disableEventRuleCallable(const DisableEventRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNotifyPolicy(request); + return this->disableEventRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::NodeUninstallOutcome CmsClient::nodeUninstall(const NodeUninstallRequest &request) const + +CmsClient::DescribeEventRuleOutcome CmsClient::describeEventRule(const DescribeEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeUninstallOutcome(endpointOutcome.error()); + return DescribeEventRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeUninstallOutcome(NodeUninstallResult(outcome.result())); + return DescribeEventRuleOutcome(DescribeEventRuleResult(outcome.result())); else - return NodeUninstallOutcome(outcome.error()); + return DescribeEventRuleOutcome(outcome.error()); } -void CmsClient::nodeUninstallAsync(const NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeEventRuleAsync(const DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeUninstall(request), context); + handler(this, request, describeEventRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeUninstallOutcomeCallable CmsClient::nodeUninstallCallable(const NodeUninstallRequest &request) const +CmsClient::DescribeEventRuleOutcomeCallable CmsClient::describeEventRuleCallable(const DescribeEventRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeUninstall(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(); + if (!endpointOutcome.isSuccess()) + return StartTasksOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartTasksOutcome(StartTasksResult(outcome.result())); + else + return StartTasksOutcome(outcome.error()); +} + +void CmsClient::startTasksAsync(const StartTasksRequest& request, const StartTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::StartTasksOutcomeCallable CmsClient::startTasksCallable(const StartTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeISPAreaCityOutcome CmsClient::describeISPAreaCity(const DescribeISPAreaCityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeISPAreaCityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeISPAreaCityOutcome(DescribeISPAreaCityResult(outcome.result())); + else + return DescribeISPAreaCityOutcome(outcome.error()); +} + +void CmsClient::describeISPAreaCityAsync(const DescribeISPAreaCityRequest& request, const DescribeISPAreaCityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeISPAreaCity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeISPAreaCityOutcomeCallable CmsClient::describeISPAreaCityCallable(const DescribeISPAreaCityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeISPAreaCity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::QueryCustomEventCountOutcome CmsClient::queryCustomEventCount(const QueryCustomEventCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -266,7 +302,43 @@ CmsClient::QueryCustomEventCountOutcomeCallable CmsClient::queryCustomEventCount asyncExecute(new Runnable([task]() { (*task)(); })); 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(); @@ -302,7 +374,7 @@ CmsClient::UpdateMyGroupInstancesOutcomeCallable CmsClient::updateMyGroupInstanc asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::ProfileGetOutcome CmsClient::profileGet(const ProfileGetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -338,223 +410,151 @@ CmsClient::ProfileGetOutcomeCallable CmsClient::profileGetCallable(const Profile asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::PutSystemEventOutcome CmsClient::putSystemEvent(const PutSystemEventRequest &request) const + +CmsClient::PutEventTargetsOutcome CmsClient::putEventTargets(const PutEventTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutSystemEventOutcome(endpointOutcome.error()); + return PutEventTargetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutSystemEventOutcome(PutSystemEventResult(outcome.result())); + return PutEventTargetsOutcome(PutEventTargetsResult(outcome.result())); else - return PutSystemEventOutcome(outcome.error()); + return PutEventTargetsOutcome(outcome.error()); } -void CmsClient::putSystemEventAsync(const PutSystemEventRequest& request, const PutSystemEventAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putEventTargetsAsync(const PutEventTargetsRequest& request, const PutEventTargetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putSystemEvent(request), context); + handler(this, request, putEventTargets(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::PutSystemEventOutcomeCallable CmsClient::putSystemEventCallable(const PutSystemEventRequest &request) const +CmsClient::PutEventTargetsOutcomeCallable CmsClient::putEventTargetsCallable(const PutEventTargetsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putSystemEvent(request); + return this->putEventTargets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::QueryCustomMetricListOutcome CmsClient::queryCustomMetricList(const QueryCustomMetricListRequest &request) const + +CmsClient::PutGroupDynamicRuleOutcome CmsClient::putGroupDynamicRule(const PutGroupDynamicRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomMetricListOutcome(endpointOutcome.error()); + return PutGroupDynamicRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomMetricListOutcome(QueryCustomMetricListResult(outcome.result())); + return PutGroupDynamicRuleOutcome(PutGroupDynamicRuleResult(outcome.result())); else - return QueryCustomMetricListOutcome(outcome.error()); + return PutGroupDynamicRuleOutcome(outcome.error()); } -void CmsClient::queryCustomMetricListAsync(const QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putGroupDynamicRuleAsync(const PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomMetricList(request), context); + handler(this, request, putGroupDynamicRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricListCallable(const QueryCustomMetricListRequest &request) const +CmsClient::PutGroupDynamicRuleOutcomeCallable CmsClient::putGroupDynamicRuleCallable(const PutGroupDynamicRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomMetricList(request); + return this->putGroupDynamicRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const + +CmsClient::UpdateMonitoringTemplateOutcome CmsClient::updateMonitoringTemplate(const UpdateMonitoringTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableActiveAlertOutcome(endpointOutcome.error()); + return UpdateMonitoringTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableActiveAlertOutcome(EnableActiveAlertResult(outcome.result())); + return UpdateMonitoringTemplateOutcome(UpdateMonitoringTemplateResult(outcome.result())); else - return EnableActiveAlertOutcome(outcome.error()); + return UpdateMonitoringTemplateOutcome(outcome.error()); } -void CmsClient::enableActiveAlertAsync(const EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::updateMonitoringTemplateAsync(const UpdateMonitoringTemplateRequest& request, const UpdateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableActiveAlert(request), context); + handler(this, request, updateMonitoringTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableActiveAlertOutcomeCallable CmsClient::enableActiveAlertCallable(const EnableActiveAlertRequest &request) const +CmsClient::UpdateMonitoringTemplateOutcomeCallable CmsClient::updateMonitoringTemplateCallable(const UpdateMonitoringTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableActiveAlert(request); + return this->updateMonitoringTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::QuerySystemEventDetailOutcome CmsClient::querySystemEventDetail(const QuerySystemEventDetailRequest &request) const + +CmsClient::PutEventRuleOutcome CmsClient::putEventRule(const PutEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QuerySystemEventDetailOutcome(endpointOutcome.error()); + return PutEventRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QuerySystemEventDetailOutcome(QuerySystemEventDetailResult(outcome.result())); + return PutEventRuleOutcome(PutEventRuleResult(outcome.result())); else - return QuerySystemEventDetailOutcome(outcome.error()); + return PutEventRuleOutcome(outcome.error()); } -void CmsClient::querySystemEventDetailAsync(const QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putEventRuleAsync(const PutEventRuleRequest& request, const PutEventRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, querySystemEventDetail(request), context); + handler(this, request, putEventRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QuerySystemEventDetailOutcomeCallable CmsClient::querySystemEventDetailCallable(const QuerySystemEventDetailRequest &request) const +CmsClient::PutEventRuleOutcomeCallable CmsClient::putEventRuleCallable(const PutEventRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->querySystemEventDetail(request); + return this->putEventRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::CreateNotifyPolicyOutcome CmsClient::createNotifyPolicy(const CreateNotifyPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNotifyPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNotifyPolicyOutcome(CreateNotifyPolicyResult(outcome.result())); - else - return CreateNotifyPolicyOutcome(outcome.error()); -} - -void CmsClient::createNotifyPolicyAsync(const CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNotifyPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::CreateNotifyPolicyOutcomeCallable CmsClient::createNotifyPolicyCallable(const CreateNotifyPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNotifyPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::DeleteAlarmOutcome CmsClient::deleteAlarm(const DeleteAlarmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAlarmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAlarmOutcome(DeleteAlarmResult(outcome.result())); - else - return DeleteAlarmOutcome(outcome.error()); -} - -void CmsClient::deleteAlarmAsync(const DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAlarm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DeleteAlarmOutcomeCallable CmsClient::deleteAlarmCallable(const DeleteAlarmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAlarm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::NodeListOutcome CmsClient::nodeList(const NodeListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -590,7 +590,43 @@ CmsClient::NodeListOutcomeCallable CmsClient::nodeListCallable(const NodeListReq asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::QueryStaticsAvailabilityOutcome CmsClient::queryStaticsAvailability(const QueryStaticsAvailabilityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStaticsAvailabilityOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStaticsAvailabilityOutcome(QueryStaticsAvailabilityResult(outcome.result())); + else + return QueryStaticsAvailabilityOutcome(outcome.error()); +} + +void CmsClient::queryStaticsAvailabilityAsync(const QueryStaticsAvailabilityRequest& request, const QueryStaticsAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStaticsAvailability(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryStaticsAvailabilityOutcomeCallable CmsClient::queryStaticsAvailabilityCallable(const QueryStaticsAvailabilityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStaticsAvailability(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::NodeProcessesOutcome CmsClient::nodeProcesses(const NodeProcessesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -626,43 +662,43 @@ CmsClient::NodeProcessesOutcomeCallable CmsClient::nodeProcessesCallable(const N asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListMyGroupCategoriesOutcome CmsClient::listMyGroupCategories(const ListMyGroupCategoriesRequest &request) const + +CmsClient::ListMonitoringTemplatesOutcome CmsClient::listMonitoringTemplates(const ListMonitoringTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupCategoriesOutcome(endpointOutcome.error()); + return ListMonitoringTemplatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupCategoriesOutcome(ListMyGroupCategoriesResult(outcome.result())); + return ListMonitoringTemplatesOutcome(ListMonitoringTemplatesResult(outcome.result())); else - return ListMyGroupCategoriesOutcome(outcome.error()); + return ListMonitoringTemplatesOutcome(outcome.error()); } -void CmsClient::listMyGroupCategoriesAsync(const ListMyGroupCategoriesRequest& request, const ListMyGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::listMonitoringTemplatesAsync(const ListMonitoringTemplatesRequest& request, const ListMonitoringTemplatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroupCategories(request), context); + handler(this, request, listMonitoringTemplates(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupCategoriesOutcomeCallable CmsClient::listMyGroupCategoriesCallable(const ListMyGroupCategoriesRequest &request) const +CmsClient::ListMonitoringTemplatesOutcomeCallable CmsClient::listMonitoringTemplatesCallable(const ListMonitoringTemplatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroupCategories(request); + return this->listMonitoringTemplates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::QueryMetricListOutcome CmsClient::queryMetricList(const QueryMetricListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -698,43 +734,43 @@ CmsClient::QueryMetricListOutcomeCallable CmsClient::queryMetricListCallable(con asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListMyGroupInstancesDetailsOutcome CmsClient::listMyGroupInstancesDetails(const ListMyGroupInstancesDetailsRequest &request) const + +CmsClient::QuerySystemEventDemoOutcome CmsClient::querySystemEventDemo(const QuerySystemEventDemoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupInstancesDetailsOutcome(endpointOutcome.error()); + return QuerySystemEventDemoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupInstancesDetailsOutcome(ListMyGroupInstancesDetailsResult(outcome.result())); + return QuerySystemEventDemoOutcome(QuerySystemEventDemoResult(outcome.result())); else - return ListMyGroupInstancesDetailsOutcome(outcome.error()); + return QuerySystemEventDemoOutcome(outcome.error()); } -void CmsClient::listMyGroupInstancesDetailsAsync(const ListMyGroupInstancesDetailsRequest& request, const ListMyGroupInstancesDetailsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::querySystemEventDemoAsync(const QuerySystemEventDemoRequest& request, const QuerySystemEventDemoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroupInstancesDetails(request), context); + handler(this, request, querySystemEventDemo(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupInstancesDetailsOutcomeCallable CmsClient::listMyGroupInstancesDetailsCallable(const ListMyGroupInstancesDetailsRequest &request) const +CmsClient::QuerySystemEventDemoOutcomeCallable CmsClient::querySystemEventDemoCallable(const QuerySystemEventDemoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroupInstancesDetails(request); + return this->querySystemEventDemo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::DisableAlarmOutcome CmsClient::disableAlarm(const DisableAlarmRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -770,7 +806,7 @@ CmsClient::DisableAlarmOutcomeCallable CmsClient::disableAlarmCallable(const Dis asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::PutCustomMetricOutcome CmsClient::putCustomMetric(const PutCustomMetricRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -806,43 +842,7 @@ CmsClient::PutCustomMetricOutcomeCallable CmsClient::putCustomMetricCallable(con asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::DeleteMyGroupsOutcome CmsClient::deleteMyGroups(const DeleteMyGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMyGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMyGroupsOutcome(DeleteMyGroupsResult(outcome.result())); - else - return DeleteMyGroupsOutcome(outcome.error()); -} - -void CmsClient::deleteMyGroupsAsync(const DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMyGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DeleteMyGroupsOutcomeCallable CmsClient::deleteMyGroupsCallable(const DeleteMyGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMyGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::QueryMetricLastOutcome CmsClient::queryMetricLast(const QueryMetricLastRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -878,7 +878,7 @@ CmsClient::QueryMetricLastOutcomeCallable CmsClient::queryMetricLastCallable(con asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::QuerySystemEventHistogramOutcome CmsClient::querySystemEventHistogram(const QuerySystemEventHistogramRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -914,115 +914,115 @@ CmsClient::QuerySystemEventHistogramOutcomeCallable CmsClient::querySystemEventH asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::DescribeAlarmHistoryOutcome CmsClient::describeAlarmHistory(const DescribeAlarmHistoryRequest &request) const + +CmsClient::DeleteEventRuleOutcome CmsClient::deleteEventRule(const DeleteEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAlarmHistoryOutcome(endpointOutcome.error()); + return DeleteEventRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAlarmHistoryOutcome(DescribeAlarmHistoryResult(outcome.result())); + return DeleteEventRuleOutcome(DeleteEventRuleResult(outcome.result())); else - return DescribeAlarmHistoryOutcome(outcome.error()); + return DeleteEventRuleOutcome(outcome.error()); } -void CmsClient::describeAlarmHistoryAsync(const DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteEventRuleAsync(const DeleteEventRuleRequest& request, const DeleteEventRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAlarmHistory(request), context); + handler(this, request, deleteEventRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeAlarmHistoryOutcomeCallable CmsClient::describeAlarmHistoryCallable(const DescribeAlarmHistoryRequest &request) const +CmsClient::DeleteEventRuleOutcomeCallable CmsClient::deleteEventRuleCallable(const DeleteEventRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAlarmHistory(request); + return this->deleteEventRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::NodeStatusOutcome CmsClient::nodeStatus(const NodeStatusRequest &request) const + +CmsClient::TaskConfigUnhealthyOutcome CmsClient::taskConfigUnhealthy(const TaskConfigUnhealthyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeStatusOutcome(endpointOutcome.error()); + return TaskConfigUnhealthyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeStatusOutcome(NodeStatusResult(outcome.result())); + return TaskConfigUnhealthyOutcome(TaskConfigUnhealthyResult(outcome.result())); else - return NodeStatusOutcome(outcome.error()); + return TaskConfigUnhealthyOutcome(outcome.error()); } -void CmsClient::nodeStatusAsync(const NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::taskConfigUnhealthyAsync(const TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeStatus(request), context); + handler(this, request, taskConfigUnhealthy(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeStatusOutcomeCallable CmsClient::nodeStatusCallable(const NodeStatusRequest &request) const +CmsClient::TaskConfigUnhealthyOutcomeCallable CmsClient::taskConfigUnhealthyCallable(const TaskConfigUnhealthyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeStatus(request); + return this->taskConfigUnhealthy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::DeleteMyGroupInstancesOutcome CmsClient::deleteMyGroupInstances(const DeleteMyGroupInstancesRequest &request) const + +CmsClient::DeleteEventTargetsOutcome CmsClient::deleteEventTargets(const DeleteEventTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteMyGroupInstancesOutcome(endpointOutcome.error()); + return DeleteEventTargetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteMyGroupInstancesOutcome(DeleteMyGroupInstancesResult(outcome.result())); + return DeleteEventTargetsOutcome(DeleteEventTargetsResult(outcome.result())); else - return DeleteMyGroupInstancesOutcome(outcome.error()); + return DeleteEventTargetsOutcome(outcome.error()); } -void CmsClient::deleteMyGroupInstancesAsync(const DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteEventTargetsAsync(const DeleteEventTargetsRequest& request, const DeleteEventTargetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteMyGroupInstances(request), context); + handler(this, request, deleteEventTargets(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteMyGroupInstancesOutcomeCallable CmsClient::deleteMyGroupInstancesCallable(const DeleteMyGroupInstancesRequest &request) const +CmsClient::DeleteEventTargetsOutcomeCallable CmsClient::deleteEventTargetsCallable(const DeleteEventTargetsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteMyGroupInstances(request); + return this->deleteEventTargets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::ListProductOfActiveAlertOutcome CmsClient::listProductOfActiveAlert(const ListProductOfActiveAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1058,7 +1058,79 @@ CmsClient::ListProductOfActiveAlertOutcomeCallable CmsClient::listProductOfActiv asyncExecute(new Runnable([task]() { (*task)(); })); 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(); + if (!endpointOutcome.isSuccess()) + return CreateMonitoringTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMonitoringTemplateOutcome(CreateMonitoringTemplateResult(outcome.result())); + else + return CreateMonitoringTemplateOutcome(outcome.error()); +} + +void CmsClient::createMonitoringTemplateAsync(const CreateMonitoringTemplateRequest& request, const CreateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMonitoringTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateMonitoringTemplateOutcomeCallable CmsClient::createMonitoringTemplateCallable(const CreateMonitoringTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMonitoringTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::CreateMyGroupsOutcome CmsClient::createMyGroups(const CreateMyGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1094,43 +1166,79 @@ CmsClient::CreateMyGroupsOutcomeCallable CmsClient::createMyGroupsCallable(const asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::CreateAlarmOutcome CmsClient::createAlarm(const CreateAlarmRequest &request) const + +CmsClient::CreateMyGroupAlertBatchOutcome CmsClient::createMyGroupAlertBatch(const CreateMyGroupAlertBatchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAlarmOutcome(endpointOutcome.error()); + return CreateMyGroupAlertBatchOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAlarmOutcome(CreateAlarmResult(outcome.result())); + return CreateMyGroupAlertBatchOutcome(CreateMyGroupAlertBatchResult(outcome.result())); else - return CreateAlarmOutcome(outcome.error()); + return CreateMyGroupAlertBatchOutcome(outcome.error()); } -void CmsClient::createAlarmAsync(const CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMyGroupAlertBatchAsync(const CreateMyGroupAlertBatchRequest& request, const CreateMyGroupAlertBatchAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAlarm(request), context); + handler(this, request, createMyGroupAlertBatch(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateAlarmOutcomeCallable CmsClient::createAlarmCallable(const CreateAlarmRequest &request) const +CmsClient::CreateMyGroupAlertBatchOutcomeCallable CmsClient::createMyGroupAlertBatchCallable(const CreateMyGroupAlertBatchRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAlarm(request); + return this->createMyGroupAlertBatch(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::DescribeTasksOutcome CmsClient::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 CmsClient::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)); +} + +CmsClient::DescribeTasksOutcomeCallable CmsClient::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(); +} + CmsClient::ListActiveAlertRuleOutcome CmsClient::listActiveAlertRule(const ListActiveAlertRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1166,43 +1274,7 @@ CmsClient::ListActiveAlertRuleOutcomeCallable CmsClient::listActiveAlertRuleCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListMyGroupsOutcome CmsClient::listMyGroups(const ListMyGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListMyGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListMyGroupsOutcome(ListMyGroupsResult(outcome.result())); - else - return ListMyGroupsOutcome(outcome.error()); -} - -void CmsClient::listMyGroupsAsync(const ListMyGroupsRequest& request, const ListMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listMyGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ListMyGroupsOutcomeCallable CmsClient::listMyGroupsCallable(const ListMyGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listMyGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::DeleteNotifyPolicyOutcome CmsClient::deleteNotifyPolicy(const DeleteNotifyPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1238,187 +1310,43 @@ CmsClient::DeleteNotifyPolicyOutcomeCallable CmsClient::deleteNotifyPolicyCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::AddMyGroupInstancesOutcome CmsClient::addMyGroupInstances(const AddMyGroupInstancesRequest &request) const + +CmsClient::QueryMetricTopOutcome CmsClient::queryMetricTop(const QueryMetricTopRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddMyGroupInstancesOutcome(endpointOutcome.error()); + return QueryMetricTopOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddMyGroupInstancesOutcome(AddMyGroupInstancesResult(outcome.result())); + return QueryMetricTopOutcome(QueryMetricTopResult(outcome.result())); else - return AddMyGroupInstancesOutcome(outcome.error()); + return QueryMetricTopOutcome(outcome.error()); } -void CmsClient::addMyGroupInstancesAsync(const AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::queryMetricTopAsync(const QueryMetricTopRequest& request, const QueryMetricTopAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addMyGroupInstances(request), context); + handler(this, request, queryMetricTop(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::AddMyGroupInstancesOutcomeCallable CmsClient::addMyGroupInstancesCallable(const AddMyGroupInstancesRequest &request) const +CmsClient::QueryMetricTopOutcomeCallable CmsClient::queryMetricTopCallable(const QueryMetricTopRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addMyGroupInstances(request); + return this->queryMetricTop(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::NodeProcessDeleteOutcome CmsClient::nodeProcessDelete(const NodeProcessDeleteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeProcessDeleteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeProcessDeleteOutcome(NodeProcessDeleteResult(outcome.result())); - else - return NodeProcessDeleteOutcome(outcome.error()); -} - -void CmsClient::nodeProcessDeleteAsync(const NodeProcessDeleteRequest& request, const NodeProcessDeleteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeProcessDelete(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeProcessDeleteOutcomeCallable CmsClient::nodeProcessDeleteCallable(const NodeProcessDeleteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeProcessDelete(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMyGroupsOutcome CmsClient::updateMyGroups(const UpdateMyGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupsOutcome(UpdateMyGroupsResult(outcome.result())); - else - return UpdateMyGroupsOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupsAsync(const UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupsOutcomeCallable CmsClient::updateMyGroupsCallable(const UpdateMyGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QuerySystemEventCountOutcome CmsClient::querySystemEventCount(const QuerySystemEventCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySystemEventCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySystemEventCountOutcome(QuerySystemEventCountResult(outcome.result())); - else - return QuerySystemEventCountOutcome(outcome.error()); -} - -void CmsClient::querySystemEventCountAsync(const QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySystemEventCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QuerySystemEventCountOutcomeCallable CmsClient::querySystemEventCountCallable(const QuerySystemEventCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySystemEventCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::ListMyGroupInstancesOutcome CmsClient::listMyGroupInstances(const ListMyGroupInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListMyGroupInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListMyGroupInstancesOutcome(ListMyGroupInstancesResult(outcome.result())); - else - return ListMyGroupInstancesOutcome(outcome.error()); -} - -void CmsClient::listMyGroupInstancesAsync(const ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listMyGroupInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ListMyGroupInstancesOutcomeCallable CmsClient::listMyGroupInstancesCallable(const ListMyGroupInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listMyGroupInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::AccessKeyGetOutcome CmsClient::accessKeyGet(const AccessKeyGetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1454,79 +1382,115 @@ CmsClient::AccessKeyGetOutcomeCallable CmsClient::accessKeyGetCallable(const Acc asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::EnableActiceAlertOutcome CmsClient::enableActiceAlert(const EnableActiceAlertRequest &request) const + +CmsClient::QueryTaskConfigOutcome CmsClient::queryTaskConfig(const QueryTaskConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableActiceAlertOutcome(endpointOutcome.error()); + return QueryTaskConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableActiceAlertOutcome(EnableActiceAlertResult(outcome.result())); + return QueryTaskConfigOutcome(QueryTaskConfigResult(outcome.result())); else - return EnableActiceAlertOutcome(outcome.error()); + return QueryTaskConfigOutcome(outcome.error()); } -void CmsClient::enableActiceAlertAsync(const EnableActiceAlertRequest& request, const EnableActiceAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::queryTaskConfigAsync(const QueryTaskConfigRequest& request, const QueryTaskConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableActiceAlert(request), context); + handler(this, request, queryTaskConfig(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableActiceAlertOutcomeCallable CmsClient::enableActiceAlertCallable(const EnableActiceAlertRequest &request) const +CmsClient::QueryTaskConfigOutcomeCallable CmsClient::queryTaskConfigCallable(const QueryTaskConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableActiceAlert(request); + return this->queryTaskConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::PutMetricDataOutcome CmsClient::putMetricData(const PutMetricDataRequest &request) const + +CmsClient::QueryProjectMetaOutcome CmsClient::queryProjectMeta(const QueryProjectMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutMetricDataOutcome(endpointOutcome.error()); + return QueryProjectMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutMetricDataOutcome(PutMetricDataResult(outcome.result())); + return QueryProjectMetaOutcome(QueryProjectMetaResult(outcome.result())); else - return PutMetricDataOutcome(outcome.error()); + return QueryProjectMetaOutcome(outcome.error()); } -void CmsClient::putMetricDataAsync(const PutMetricDataRequest& request, const PutMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::queryProjectMetaAsync(const QueryProjectMetaRequest& request, const QueryProjectMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putMetricData(request), context); + handler(this, request, queryProjectMeta(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::PutMetricDataOutcomeCallable CmsClient::putMetricDataCallable(const PutMetricDataRequest &request) const +CmsClient::QueryProjectMetaOutcomeCallable CmsClient::queryProjectMetaCallable(const QueryProjectMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putMetricData(request); + return this->queryProjectMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::QueryMetricDataOutcome CmsClient::queryMetricData(const QueryMetricDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMetricDataOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMetricDataOutcome(QueryMetricDataResult(outcome.result())); + else + return QueryMetricDataOutcome(outcome.error()); +} + +void CmsClient::queryMetricDataAsync(const QueryMetricDataRequest& request, const QueryMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMetricData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryMetricDataOutcomeCallable CmsClient::queryMetricDataCallable(const QueryMetricDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMetricData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::DisableActiveAlertOutcome CmsClient::disableActiveAlert(const DisableActiveAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1562,151 +1526,7 @@ CmsClient::DisableActiveAlertOutcomeCallable CmsClient::disableActiveAlertCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::DisableActiceAlertOutcome CmsClient::disableActiceAlert(const DisableActiceAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisableActiceAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisableActiceAlertOutcome(DisableActiceAlertResult(outcome.result())); - else - return DisableActiceAlertOutcome(outcome.error()); -} - -void CmsClient::disableActiceAlertAsync(const DisableActiceAlertRequest& request, const DisableActiceAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disableActiceAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DisableActiceAlertOutcomeCallable CmsClient::disableActiceAlertCallable(const DisableActiceAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disableActiceAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::ListAlarmOutcome CmsClient::listAlarm(const ListAlarmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlarmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlarmOutcome(ListAlarmResult(outcome.result())); - else - return ListAlarmOutcome(outcome.error()); -} - -void CmsClient::listAlarmAsync(const ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlarm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ListAlarmOutcomeCallable CmsClient::listAlarmCallable(const ListAlarmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlarm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeInstallOutcome CmsClient::nodeInstall(const NodeInstallRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeInstallOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeInstallOutcome(NodeInstallResult(outcome.result())); - else - return NodeInstallOutcome(outcome.error()); -} - -void CmsClient::nodeInstallAsync(const NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeInstall(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeInstallOutcomeCallable CmsClient::nodeInstallCallable(const NodeInstallRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeInstall(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryCustomEventHistogramOutcome CmsClient::queryCustomEventHistogram(const QueryCustomEventHistogramRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCustomEventHistogramOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCustomEventHistogramOutcome(QueryCustomEventHistogramResult(outcome.result())); - else - return QueryCustomEventHistogramOutcome(outcome.error()); -} - -void CmsClient::queryCustomEventHistogramAsync(const QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCustomEventHistogram(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryCustomEventHistogramOutcomeCallable CmsClient::queryCustomEventHistogramCallable(const QueryCustomEventHistogramRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCustomEventHistogram(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CmsClient::PutEventOutcome CmsClient::putEvent(const PutEventRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1742,7 +1562,43 @@ CmsClient::PutEventOutcomeCallable CmsClient::putEventCallable(const PutEventReq asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::QueryCustomEventHistogramOutcome CmsClient::queryCustomEventHistogram(const QueryCustomEventHistogramRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCustomEventHistogramOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCustomEventHistogramOutcome(QueryCustomEventHistogramResult(outcome.result())); + else + return QueryCustomEventHistogramOutcome(outcome.error()); +} + +void CmsClient::queryCustomEventHistogramAsync(const QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCustomEventHistogram(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryCustomEventHistogramOutcomeCallable CmsClient::queryCustomEventHistogramCallable(const QueryCustomEventHistogramRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCustomEventHistogram(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListAlarmHistoryOutcome CmsClient::listAlarmHistory(const ListAlarmHistoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1778,79 +1634,79 @@ CmsClient::ListAlarmHistoryOutcomeCallable CmsClient::listAlarmHistoryCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::NodeStatusListOutcome CmsClient::nodeStatusList(const NodeStatusListRequest &request) const + +CmsClient::DeleteTasksOutcome CmsClient::deleteTasks(const DeleteTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeStatusListOutcome(endpointOutcome.error()); + return DeleteTasksOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeStatusListOutcome(NodeStatusListResult(outcome.result())); + return DeleteTasksOutcome(DeleteTasksResult(outcome.result())); else - return NodeStatusListOutcome(outcome.error()); + return DeleteTasksOutcome(outcome.error()); } -void CmsClient::nodeStatusListAsync(const NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteTasksAsync(const DeleteTasksRequest& request, const DeleteTasksAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeStatusList(request), context); + handler(this, request, deleteTasks(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeStatusListOutcomeCallable CmsClient::nodeStatusListCallable(const NodeStatusListRequest &request) const +CmsClient::DeleteTasksOutcomeCallable CmsClient::deleteTasksCallable(const DeleteTasksRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeStatusList(request); + return this->deleteTasks(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListContactGroupOutcome CmsClient::listContactGroup(const ListContactGroupRequest &request) const + +CmsClient::TaskConfigModifyOutcome CmsClient::taskConfigModify(const TaskConfigModifyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContactGroupOutcome(endpointOutcome.error()); + return TaskConfigModifyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContactGroupOutcome(ListContactGroupResult(outcome.result())); + return TaskConfigModifyOutcome(TaskConfigModifyResult(outcome.result())); else - return ListContactGroupOutcome(outcome.error()); + return TaskConfigModifyOutcome(outcome.error()); } -void CmsClient::listContactGroupAsync(const ListContactGroupRequest& request, const ListContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::taskConfigModifyAsync(const TaskConfigModifyRequest& request, const TaskConfigModifyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContactGroup(request), context); + handler(this, request, taskConfigModify(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListContactGroupOutcomeCallable CmsClient::listContactGroupCallable(const ListContactGroupRequest &request) const +CmsClient::TaskConfigModifyOutcomeCallable CmsClient::taskConfigModifyCallable(const TaskConfigModifyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContactGroup(request); + return this->taskConfigModify(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::GetMyGroupsOutcome CmsClient::getMyGroups(const GetMyGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1886,43 +1742,79 @@ CmsClient::GetMyGroupsOutcomeCallable CmsClient::getMyGroupsCallable(const GetMy asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::ListNotifyPolicyOutcome CmsClient::listNotifyPolicy(const ListNotifyPolicyRequest &request) const + +CmsClient::QueryTaskMonitorDataOutcome CmsClient::queryTaskMonitorData(const QueryTaskMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListNotifyPolicyOutcome(endpointOutcome.error()); + return QueryTaskMonitorDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListNotifyPolicyOutcome(ListNotifyPolicyResult(outcome.result())); + return QueryTaskMonitorDataOutcome(QueryTaskMonitorDataResult(outcome.result())); else - return ListNotifyPolicyOutcome(outcome.error()); + return QueryTaskMonitorDataOutcome(outcome.error()); } -void CmsClient::listNotifyPolicyAsync(const ListNotifyPolicyRequest& request, const ListNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::queryTaskMonitorDataAsync(const QueryTaskMonitorDataRequest& request, const QueryTaskMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listNotifyPolicy(request), context); + handler(this, request, queryTaskMonitorData(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListNotifyPolicyOutcomeCallable CmsClient::listNotifyPolicyCallable(const ListNotifyPolicyRequest &request) const +CmsClient::QueryTaskMonitorDataOutcomeCallable CmsClient::queryTaskMonitorDataCallable(const QueryTaskMonitorDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listNotifyPolicy(request); + return this->queryTaskMonitorData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::StopTasksOutcome CmsClient::stopTasks(const StopTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopTasksOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopTasksOutcome(StopTasksResult(outcome.result())); + else + return StopTasksOutcome(outcome.error()); +} + +void CmsClient::stopTasksAsync(const StopTasksRequest& request, const StopTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::StopTasksOutcomeCallable CmsClient::stopTasksCallable(const StopTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::UpdateAlarmOutcome CmsClient::updateAlarm(const UpdateAlarmRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1958,79 +1850,79 @@ CmsClient::UpdateAlarmOutcomeCallable CmsClient::updateAlarmCallable(const Updat asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::NodeProcessCreateOutcome CmsClient::nodeProcessCreate(const NodeProcessCreateRequest &request) const + +CmsClient::ModifyTaskOutcome CmsClient::modifyTask(const ModifyTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeProcessCreateOutcome(endpointOutcome.error()); + return ModifyTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeProcessCreateOutcome(NodeProcessCreateResult(outcome.result())); + return ModifyTaskOutcome(ModifyTaskResult(outcome.result())); else - return NodeProcessCreateOutcome(outcome.error()); + return ModifyTaskOutcome(outcome.error()); } -void CmsClient::nodeProcessCreateAsync(const NodeProcessCreateRequest& request, const NodeProcessCreateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyTaskAsync(const ModifyTaskRequest& request, const ModifyTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeProcessCreate(request), context); + handler(this, request, modifyTask(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeProcessCreateOutcomeCallable CmsClient::nodeProcessCreateCallable(const NodeProcessCreateRequest &request) const +CmsClient::ModifyTaskOutcomeCallable CmsClient::modifyTaskCallable(const ModifyTaskRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeProcessCreate(request); + return this->modifyTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CmsClient::EnableAlarmOutcome CmsClient::enableAlarm(const EnableAlarmRequest &request) const + +CmsClient::TaskConfigDeleteOutcome CmsClient::taskConfigDelete(const TaskConfigDeleteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableAlarmOutcome(endpointOutcome.error()); + return TaskConfigDeleteOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableAlarmOutcome(EnableAlarmResult(outcome.result())); + return TaskConfigDeleteOutcome(TaskConfigDeleteResult(outcome.result())); else - return EnableAlarmOutcome(outcome.error()); + return TaskConfigDeleteOutcome(outcome.error()); } -void CmsClient::enableAlarmAsync(const EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::taskConfigDeleteAsync(const TaskConfigDeleteRequest& request, const TaskConfigDeleteAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableAlarm(request), context); + handler(this, request, taskConfigDelete(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableAlarmOutcomeCallable CmsClient::enableAlarmCallable(const EnableAlarmRequest &request) const +CmsClient::TaskConfigDeleteOutcomeCallable CmsClient::taskConfigDeleteCallable(const TaskConfigDeleteRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableAlarm(request); + return this->taskConfigDelete(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + CmsClient::QueryCustomEventDetailOutcome CmsClient::queryCustomEventDetail(const QueryCustomEventDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2066,4 +1958,1912 @@ CmsClient::QueryCustomEventDetailOutcomeCallable CmsClient::queryCustomEventDeta asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CmsClient::NodeProcessCreateOutcome CmsClient::nodeProcessCreate(const NodeProcessCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeProcessCreateOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeProcessCreateOutcome(NodeProcessCreateResult(outcome.result())); + else + return NodeProcessCreateOutcome(outcome.error()); +} + +void CmsClient::nodeProcessCreateAsync(const NodeProcessCreateRequest& request, const NodeProcessCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeProcessCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeProcessCreateOutcomeCallable CmsClient::nodeProcessCreateCallable(const NodeProcessCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeProcessCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::TaskConfigEnableOutcome CmsClient::taskConfigEnable(const TaskConfigEnableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TaskConfigEnableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TaskConfigEnableOutcome(TaskConfigEnableResult(outcome.result())); + else + return TaskConfigEnableOutcome(outcome.error()); +} + +void CmsClient::taskConfigEnableAsync(const TaskConfigEnableRequest& request, const TaskConfigEnableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, taskConfigEnable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::TaskConfigEnableOutcomeCallable CmsClient::taskConfigEnableCallable(const TaskConfigEnableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->taskConfigEnable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QueryMetricMetaOutcome CmsClient::queryMetricMeta(const QueryMetricMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMetricMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMetricMetaOutcome(QueryMetricMetaResult(outcome.result())); + else + return QueryMetricMetaOutcome(outcome.error()); +} + +void CmsClient::queryMetricMetaAsync(const QueryMetricMetaRequest& request, const QueryMetricMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMetricMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryMetricMetaOutcomeCallable CmsClient::queryMetricMetaCallable(const QueryMetricMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMetricMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::TaskConfigCreateOutcome CmsClient::taskConfigCreate(const TaskConfigCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TaskConfigCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TaskConfigCreateOutcome(TaskConfigCreateResult(outcome.result())); + else + return TaskConfigCreateOutcome(outcome.error()); +} + +void CmsClient::taskConfigCreateAsync(const TaskConfigCreateRequest& request, const TaskConfigCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, taskConfigCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::TaskConfigCreateOutcomeCallable CmsClient::taskConfigCreateCallable(const TaskConfigCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->taskConfigCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNotifyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNotifyPolicyOutcome(GetNotifyPolicyResult(outcome.result())); + else + return GetNotifyPolicyOutcome(outcome.error()); +} + +void CmsClient::getNotifyPolicyAsync(const GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNotifyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::GetNotifyPolicyOutcomeCallable CmsClient::getNotifyPolicyCallable(const GetNotifyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNotifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::NodeUninstallOutcome CmsClient::nodeUninstall(const NodeUninstallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeUninstallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeUninstallOutcome(NodeUninstallResult(outcome.result())); + else + return NodeUninstallOutcome(outcome.error()); +} + +void CmsClient::nodeUninstallAsync(const NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeUninstall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeUninstallOutcomeCallable CmsClient::nodeUninstallCallable(const NodeUninstallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeUninstall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QueryErrorDistributionOutcome CmsClient::queryErrorDistribution(const QueryErrorDistributionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryErrorDistributionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryErrorDistributionOutcome(QueryErrorDistributionResult(outcome.result())); + else + return QueryErrorDistributionOutcome(outcome.error()); +} + +void CmsClient::queryErrorDistributionAsync(const QueryErrorDistributionRequest& request, const QueryErrorDistributionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryErrorDistribution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryErrorDistributionOutcomeCallable CmsClient::queryErrorDistributionCallable(const QueryErrorDistributionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryErrorDistribution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::EnableEventRuleOutcome CmsClient::enableEventRule(const EnableEventRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableEventRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableEventRuleOutcome(EnableEventRuleResult(outcome.result())); + else + return EnableEventRuleOutcome(outcome.error()); +} + +void CmsClient::enableEventRuleAsync(const EnableEventRuleRequest& request, const EnableEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableEventRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::EnableEventRuleOutcomeCallable CmsClient::enableEventRuleCallable(const EnableEventRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableEventRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListEventTargetsByRuleOutcome CmsClient::listEventTargetsByRule(const ListEventTargetsByRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEventTargetsByRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEventTargetsByRuleOutcome(ListEventTargetsByRuleResult(outcome.result())); + else + return ListEventTargetsByRuleOutcome(outcome.error()); +} + +void CmsClient::listEventTargetsByRuleAsync(const ListEventTargetsByRuleRequest& request, const ListEventTargetsByRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEventTargetsByRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListEventTargetsByRuleOutcomeCallable CmsClient::listEventTargetsByRuleCallable(const ListEventTargetsByRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEventTargetsByRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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(); + if (!endpointOutcome.isSuccess()) + return QueryMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMonitorDataOutcome(QueryMonitorDataResult(outcome.result())); + else + return QueryMonitorDataOutcome(outcome.error()); +} + +void CmsClient::queryMonitorDataAsync(const QueryMonitorDataRequest& request, const QueryMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryMonitorDataOutcomeCallable CmsClient::queryMonitorDataCallable(const QueryMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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::ApplyTemplateOutcome CmsClient::applyTemplate(const ApplyTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyTemplateOutcome(ApplyTemplateResult(outcome.result())); + else + return ApplyTemplateOutcome(outcome.error()); +} + +void CmsClient::applyTemplateAsync(const ApplyTemplateRequest& request, const ApplyTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ApplyTemplateOutcomeCallable CmsClient::applyTemplateCallable(const ApplyTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableActiveAlertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableActiveAlertOutcome(EnableActiveAlertResult(outcome.result())); + else + return EnableActiveAlertOutcome(outcome.error()); +} + +void CmsClient::enableActiveAlertAsync(const EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableActiveAlert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::EnableActiveAlertOutcomeCallable CmsClient::enableActiveAlertCallable(const EnableActiveAlertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableActiveAlert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QuerySystemEventDetailOutcome CmsClient::querySystemEventDetail(const QuerySystemEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySystemEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySystemEventDetailOutcome(QuerySystemEventDetailResult(outcome.result())); + else + return QuerySystemEventDetailOutcome(outcome.error()); +} + +void CmsClient::querySystemEventDetailAsync(const QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySystemEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QuerySystemEventDetailOutcomeCallable CmsClient::querySystemEventDetailCallable(const QuerySystemEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySystemEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::CreateNotifyPolicyOutcome CmsClient::createNotifyPolicy(const CreateNotifyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNotifyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNotifyPolicyOutcome(CreateNotifyPolicyResult(outcome.result())); + else + return CreateNotifyPolicyOutcome(outcome.error()); +} + +void CmsClient::createNotifyPolicyAsync(const CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNotifyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateNotifyPolicyOutcomeCallable CmsClient::createNotifyPolicyCallable(const CreateNotifyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNotifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteAlarmOutcome CmsClient::deleteAlarm(const DeleteAlarmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAlarmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAlarmOutcome(DeleteAlarmResult(outcome.result())); + else + return DeleteAlarmOutcome(outcome.error()); +} + +void CmsClient::deleteAlarmAsync(const DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAlarm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteAlarmOutcomeCallable CmsClient::deleteAlarmCallable(const DeleteAlarmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAlarm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::TaskConfigListOutcome CmsClient::taskConfigList(const TaskConfigListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TaskConfigListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TaskConfigListOutcome(TaskConfigListResult(outcome.result())); + else + return TaskConfigListOutcome(outcome.error()); +} + +void CmsClient::taskConfigListAsync(const TaskConfigListRequest& request, const TaskConfigListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, taskConfigList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::TaskConfigListOutcomeCallable CmsClient::taskConfigListCallable(const TaskConfigListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->taskConfigList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::GetMonitoringTemplateOutcome CmsClient::getMonitoringTemplate(const GetMonitoringTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMonitoringTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMonitoringTemplateOutcome(GetMonitoringTemplateResult(outcome.result())); + else + return GetMonitoringTemplateOutcome(outcome.error()); +} + +void CmsClient::getMonitoringTemplateAsync(const GetMonitoringTemplateRequest& request, const GetMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMonitoringTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::GetMonitoringTemplateOutcomeCallable CmsClient::getMonitoringTemplateCallable(const GetMonitoringTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMonitoringTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListMyGroupCategoriesOutcome CmsClient::listMyGroupCategories(const ListMyGroupCategoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMyGroupCategoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMyGroupCategoriesOutcome(ListMyGroupCategoriesResult(outcome.result())); + else + return ListMyGroupCategoriesOutcome(outcome.error()); +} + +void CmsClient::listMyGroupCategoriesAsync(const ListMyGroupCategoriesRequest& request, const ListMyGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMyGroupCategories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListMyGroupCategoriesOutcomeCallable CmsClient::listMyGroupCategoriesCallable(const ListMyGroupCategoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMyGroupCategories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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(); + if (!endpointOutcome.isSuccess()) + return CreateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTaskOutcome(CreateTaskResult(outcome.result())); + else + return CreateTaskOutcome(outcome.error()); +} + +void CmsClient::createTaskAsync(const CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateTaskOutcomeCallable CmsClient::createTaskCallable(const CreateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListMyGroupInstancesDetailsOutcome CmsClient::listMyGroupInstancesDetails(const ListMyGroupInstancesDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMyGroupInstancesDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMyGroupInstancesDetailsOutcome(ListMyGroupInstancesDetailsResult(outcome.result())); + else + return ListMyGroupInstancesDetailsOutcome(outcome.error()); +} + +void CmsClient::listMyGroupInstancesDetailsAsync(const ListMyGroupInstancesDetailsRequest& request, const ListMyGroupInstancesDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMyGroupInstancesDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListMyGroupInstancesDetailsOutcomeCallable CmsClient::listMyGroupInstancesDetailsCallable(const ListMyGroupInstancesDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMyGroupInstancesDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteMyGroupsOutcome CmsClient::deleteMyGroups(const DeleteMyGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMyGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMyGroupsOutcome(DeleteMyGroupsResult(outcome.result())); + else + return DeleteMyGroupsOutcome(outcome.error()); +} + +void CmsClient::deleteMyGroupsAsync(const DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMyGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteMyGroupsOutcomeCallable CmsClient::deleteMyGroupsCallable(const DeleteMyGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMyGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeAlarmHistoryOutcome CmsClient::describeAlarmHistory(const DescribeAlarmHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmHistoryOutcome(DescribeAlarmHistoryResult(outcome.result())); + else + return DescribeAlarmHistoryOutcome(outcome.error()); +} + +void CmsClient::describeAlarmHistoryAsync(const DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarmHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeAlarmHistoryOutcomeCallable CmsClient::describeAlarmHistoryCallable(const DescribeAlarmHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarmHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ApplyMonitoringTemplateOutcome CmsClient::applyMonitoringTemplate(const ApplyMonitoringTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyMonitoringTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyMonitoringTemplateOutcome(ApplyMonitoringTemplateResult(outcome.result())); + else + return ApplyMonitoringTemplateOutcome(outcome.error()); +} + +void CmsClient::applyMonitoringTemplateAsync(const ApplyMonitoringTemplateRequest& request, const ApplyMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyMonitoringTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ApplyMonitoringTemplateOutcomeCallable CmsClient::applyMonitoringTemplateCallable(const ApplyMonitoringTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyMonitoringTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::NodeStatusOutcome CmsClient::nodeStatus(const NodeStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeStatusOutcome(NodeStatusResult(outcome.result())); + else + return NodeStatusOutcome(outcome.error()); +} + +void CmsClient::nodeStatusAsync(const NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeStatusOutcomeCallable CmsClient::nodeStatusCallable(const NodeStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeAlarmsOutcome CmsClient::describeAlarms(const DescribeAlarmsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmsOutcome(DescribeAlarmsResult(outcome.result())); + else + return DescribeAlarmsOutcome(outcome.error()); +} + +void CmsClient::describeAlarmsAsync(const DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeAlarmsOutcomeCallable CmsClient::describeAlarmsCallable(const DescribeAlarmsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteMyGroupInstancesOutcome CmsClient::deleteMyGroupInstances(const DeleteMyGroupInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMyGroupInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMyGroupInstancesOutcome(DeleteMyGroupInstancesResult(outcome.result())); + else + return DeleteMyGroupInstancesOutcome(outcome.error()); +} + +void CmsClient::deleteMyGroupInstancesAsync(const DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMyGroupInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteMyGroupInstancesOutcomeCallable CmsClient::deleteMyGroupInstancesCallable(const DeleteMyGroupInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMyGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeAlarmsForResourcesOutcome CmsClient::describeAlarmsForResources(const DescribeAlarmsForResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmsForResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmsForResourcesOutcome(DescribeAlarmsForResourcesResult(outcome.result())); + else + return DescribeAlarmsForResourcesOutcome(outcome.error()); +} + +void CmsClient::describeAlarmsForResourcesAsync(const DescribeAlarmsForResourcesRequest& request, const DescribeAlarmsForResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarmsForResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeAlarmsForResourcesOutcomeCallable CmsClient::describeAlarmsForResourcesCallable(const DescribeAlarmsForResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarmsForResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QueryStaticsResponseTimeOutcome CmsClient::queryStaticsResponseTime(const QueryStaticsResponseTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStaticsResponseTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStaticsResponseTimeOutcome(QueryStaticsResponseTimeResult(outcome.result())); + else + return QueryStaticsResponseTimeOutcome(outcome.error()); +} + +void CmsClient::queryStaticsResponseTimeAsync(const QueryStaticsResponseTimeRequest& request, const QueryStaticsResponseTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStaticsResponseTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryStaticsResponseTimeOutcomeCallable CmsClient::queryStaticsResponseTimeCallable(const QueryStaticsResponseTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStaticsResponseTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::CreateAlarmOutcome CmsClient::createAlarm(const CreateAlarmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAlarmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAlarmOutcome(CreateAlarmResult(outcome.result())); + else + return CreateAlarmOutcome(outcome.error()); +} + +void CmsClient::createAlarmAsync(const CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAlarm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateAlarmOutcomeCallable CmsClient::createAlarmCallable(const CreateAlarmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAlarm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListMyGroupsOutcome CmsClient::listMyGroups(const ListMyGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMyGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMyGroupsOutcome(ListMyGroupsResult(outcome.result())); + else + return ListMyGroupsOutcome(outcome.error()); +} + +void CmsClient::listMyGroupsAsync(const ListMyGroupsRequest& request, const ListMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMyGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListMyGroupsOutcomeCallable CmsClient::listMyGroupsCallable(const ListMyGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMyGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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(); + if (!endpointOutcome.isSuccess()) + return SendDryRunSystemEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendDryRunSystemEventOutcome(SendDryRunSystemEventResult(outcome.result())); + else + return SendDryRunSystemEventOutcome(outcome.error()); +} + +void CmsClient::sendDryRunSystemEventAsync(const SendDryRunSystemEventRequest& request, const SendDryRunSystemEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendDryRunSystemEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::SendDryRunSystemEventOutcomeCallable CmsClient::sendDryRunSystemEventCallable(const SendDryRunSystemEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendDryRunSystemEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::NodeProcessDeleteOutcome CmsClient::nodeProcessDelete(const NodeProcessDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeProcessDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeProcessDeleteOutcome(NodeProcessDeleteResult(outcome.result())); + else + return NodeProcessDeleteOutcome(outcome.error()); +} + +void CmsClient::nodeProcessDeleteAsync(const NodeProcessDeleteRequest& request, const NodeProcessDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeProcessDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeProcessDeleteOutcomeCallable CmsClient::nodeProcessDeleteCallable(const NodeProcessDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeProcessDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::UpdateMyGroupsOutcome CmsClient::updateMyGroups(const UpdateMyGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMyGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMyGroupsOutcome(UpdateMyGroupsResult(outcome.result())); + else + return UpdateMyGroupsOutcome(outcome.error()); +} + +void CmsClient::updateMyGroupsAsync(const UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMyGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::UpdateMyGroupsOutcomeCallable CmsClient::updateMyGroupsCallable(const UpdateMyGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMyGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QuerySystemEventCountOutcome CmsClient::querySystemEventCount(const QuerySystemEventCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySystemEventCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySystemEventCountOutcome(QuerySystemEventCountResult(outcome.result())); + else + return QuerySystemEventCountOutcome(outcome.error()); +} + +void CmsClient::querySystemEventCountAsync(const QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySystemEventCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QuerySystemEventCountOutcomeCallable CmsClient::querySystemEventCountCallable(const QuerySystemEventCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySystemEventCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListMyGroupInstancesOutcome CmsClient::listMyGroupInstances(const ListMyGroupInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMyGroupInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMyGroupInstancesOutcome(ListMyGroupInstancesResult(outcome.result())); + else + return ListMyGroupInstancesOutcome(outcome.error()); +} + +void CmsClient::listMyGroupInstancesAsync(const ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMyGroupInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListMyGroupInstancesOutcomeCallable CmsClient::listMyGroupInstancesCallable(const ListMyGroupInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMyGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::GetContactsOutcome CmsClient::getContacts(const GetContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactsOutcome(GetContactsResult(outcome.result())); + else + return GetContactsOutcome(outcome.error()); +} + +void CmsClient::getContactsAsync(const GetContactsRequest& request, const GetContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::GetContactsOutcomeCallable CmsClient::getContactsCallable(const GetContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContacts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::UpdateMyGroupMembersOutcome CmsClient::updateMyGroupMembers(const UpdateMyGroupMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMyGroupMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMyGroupMembersOutcome(UpdateMyGroupMembersResult(outcome.result())); + else + return UpdateMyGroupMembersOutcome(outcome.error()); +} + +void CmsClient::updateMyGroupMembersAsync(const UpdateMyGroupMembersRequest& request, const UpdateMyGroupMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMyGroupMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::UpdateMyGroupMembersOutcomeCallable CmsClient::updateMyGroupMembersCallable(const UpdateMyGroupMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMyGroupMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::QueryStaticsErrorRateOutcome CmsClient::queryStaticsErrorRate(const QueryStaticsErrorRateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStaticsErrorRateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStaticsErrorRateOutcome(QueryStaticsErrorRateResult(outcome.result())); + else + return QueryStaticsErrorRateOutcome(outcome.error()); +} + +void CmsClient::queryStaticsErrorRateAsync(const QueryStaticsErrorRateRequest& request, const QueryStaticsErrorRateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStaticsErrorRate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryStaticsErrorRateOutcomeCallable CmsClient::queryStaticsErrorRateCallable(const QueryStaticsErrorRateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStaticsErrorRate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListGroupDynamicRuleOutcome CmsClient::listGroupDynamicRule(const ListGroupDynamicRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupDynamicRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupDynamicRuleOutcome(ListGroupDynamicRuleResult(outcome.result())); + else + return ListGroupDynamicRuleOutcome(outcome.error()); +} + +void CmsClient::listGroupDynamicRuleAsync(const ListGroupDynamicRuleRequest& request, const ListGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroupDynamicRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListGroupDynamicRuleOutcomeCallable CmsClient::listGroupDynamicRuleCallable(const ListGroupDynamicRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroupDynamicRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListAlarmOutcome CmsClient::listAlarm(const ListAlarmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmOutcome(ListAlarmResult(outcome.result())); + else + return ListAlarmOutcome(outcome.error()); +} + +void CmsClient::listAlarmAsync(const ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListAlarmOutcomeCallable CmsClient::listAlarmCallable(const ListAlarmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::NodeInstallOutcome CmsClient::nodeInstall(const NodeInstallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeInstallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeInstallOutcome(NodeInstallResult(outcome.result())); + else + return NodeInstallOutcome(outcome.error()); +} + +void CmsClient::nodeInstallAsync(const NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeInstall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeInstallOutcomeCallable CmsClient::nodeInstallCallable(const NodeInstallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeInstall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::GetMyGroupAlertOutcome CmsClient::getMyGroupAlert(const GetMyGroupAlertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMyGroupAlertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMyGroupAlertOutcome(GetMyGroupAlertResult(outcome.result())); + else + return GetMyGroupAlertOutcome(outcome.error()); +} + +void CmsClient::getMyGroupAlertAsync(const GetMyGroupAlertRequest& request, const GetMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMyGroupAlert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::GetMyGroupAlertOutcomeCallable CmsClient::getMyGroupAlertCallable(const GetMyGroupAlertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMyGroupAlert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteMonitoringTemplateOutcome CmsClient::deleteMonitoringTemplate(const DeleteMonitoringTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMonitoringTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMonitoringTemplateOutcome(DeleteMonitoringTemplateResult(outcome.result())); + else + return DeleteMonitoringTemplateOutcome(outcome.error()); +} + +void CmsClient::deleteMonitoringTemplateAsync(const DeleteMonitoringTemplateRequest& request, const DeleteMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMonitoringTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteMonitoringTemplateOutcomeCallable CmsClient::deleteMonitoringTemplateCallable(const DeleteMonitoringTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMonitoringTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::NodeStatusListOutcome CmsClient::nodeStatusList(const NodeStatusListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NodeStatusListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NodeStatusListOutcome(NodeStatusListResult(outcome.result())); + else + return NodeStatusListOutcome(outcome.error()); +} + +void CmsClient::nodeStatusListAsync(const NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, nodeStatusList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::NodeStatusListOutcomeCallable CmsClient::nodeStatusListCallable(const NodeStatusListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->nodeStatusList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListContactGroupOutcome CmsClient::listContactGroup(const ListContactGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContactGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContactGroupOutcome(ListContactGroupResult(outcome.result())); + else + return ListContactGroupOutcome(outcome.error()); +} + +void CmsClient::listContactGroupAsync(const ListContactGroupRequest& request, const ListContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContactGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListContactGroupOutcomeCallable CmsClient::listContactGroupCallable(const ListContactGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContactGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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(); + if (!endpointOutcome.isSuccess()) + return PutMetricAlarmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutMetricAlarmOutcome(PutMetricAlarmResult(outcome.result())); + else + return PutMetricAlarmOutcome(outcome.error()); +} + +void CmsClient::putMetricAlarmAsync(const PutMetricAlarmRequest& request, const PutMetricAlarmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putMetricAlarm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::PutMetricAlarmOutcomeCallable CmsClient::putMetricAlarmCallable(const PutMetricAlarmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putMetricAlarm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::ListNotifyPolicyOutcome CmsClient::listNotifyPolicy(const ListNotifyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNotifyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNotifyPolicyOutcome(ListNotifyPolicyResult(outcome.result())); + else + return ListNotifyPolicyOutcome(outcome.error()); +} + +void CmsClient::listNotifyPolicyAsync(const ListNotifyPolicyRequest& request, const ListNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNotifyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListNotifyPolicyOutcomeCallable CmsClient::listNotifyPolicyCallable(const ListNotifyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNotifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::EnableAlarmOutcome CmsClient::enableAlarm(const EnableAlarmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableAlarmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableAlarmOutcome(EnableAlarmResult(outcome.result())); + else + return EnableAlarmOutcome(outcome.error()); +} + +void CmsClient::enableAlarmAsync(const EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableAlarm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::EnableAlarmOutcomeCallable CmsClient::enableAlarmCallable(const EnableAlarmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableAlarm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cms/src/model/AccessKeyGetRequest.cc b/cms/src/model/AccessKeyGetRequest.cc index 12b989b32..a753f8799 100644 --- a/cms/src/model/AccessKeyGetRequest.cc +++ b/cms/src/model/AccessKeyGetRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::AccessKeyGetRequest; AccessKeyGetRequest::AccessKeyGetRequest() : - RpcServiceRequest("cms", "2017-03-01", "AccessKeyGet") + RpcServiceRequest("cms", "2018-03-08", "AccessKeyGet") {} AccessKeyGetRequest::~AccessKeyGetRequest() diff --git a/cms/src/model/AccessKeyGetResult.cc b/cms/src/model/AccessKeyGetResult.cc index f35f0c1fd..8cd9e26a3 100644 --- a/cms/src/model/AccessKeyGetResult.cc +++ b/cms/src/model/AccessKeyGetResult.cc @@ -40,48 +40,48 @@ void AccessKeyGetResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["UserId"].isNull()) - userId_ = std::stol(value["UserId"].asString()); - if(!value["AccessKey"].isNull()) - accessKey_ = value["AccessKey"].asString(); - if(!value["SecretKey"].isNull()) - secretKey_ = value["SecretKey"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["UserId"].isNull()) + userId_ = std::stol(value["UserId"].asString()); + if(!value["AccessKey"].isNull()) + accessKey_ = value["AccessKey"].asString(); + if(!value["SecretKey"].isNull()) + secretKey_ = value["SecretKey"].asString(); } -std::string AccessKeyGetResult::getSecretKey()const -{ - return secretKey_; -} - -long AccessKeyGetResult::getUserId()const -{ - return userId_; -} - -int AccessKeyGetResult::getErrorCode()const -{ - return errorCode_; -} - -std::string AccessKeyGetResult::getAccessKey()const -{ - return accessKey_; -} - -std::string AccessKeyGetResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool AccessKeyGetResult::getSuccess()const -{ - return success_; -} - +std::string AccessKeyGetResult::getSecretKey()const +{ + return secretKey_; +} + +long AccessKeyGetResult::getUserId()const +{ + return userId_; +} + +int AccessKeyGetResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AccessKeyGetResult::getAccessKey()const +{ + return accessKey_; +} + +std::string AccessKeyGetResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AccessKeyGetResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/AddMyGroupInstancesRequest.cc b/cms/src/model/AddMyGroupInstancesRequest.cc index 301125f49..654156bbf 100644 --- a/cms/src/model/AddMyGroupInstancesRequest.cc +++ b/cms/src/model/AddMyGroupInstancesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::AddMyGroupInstancesRequest; AddMyGroupInstancesRequest::AddMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2017-03-01", "AddMyGroupInstances") + RpcServiceRequest("cms", "2018-03-08", "AddMyGroupInstances") {} AddMyGroupInstancesRequest::~AddMyGroupInstancesRequest() diff --git a/cms/src/model/AddMyGroupInstancesResult.cc b/cms/src/model/AddMyGroupInstancesResult.cc index f9516ef48..267f77aa0 100644 --- a/cms/src/model/AddMyGroupInstancesResult.cc +++ b/cms/src/model/AddMyGroupInstancesResult.cc @@ -40,27 +40,27 @@ void AddMyGroupInstancesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -int AddMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string AddMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool AddMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - +int AddMyGroupInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddMyGroupInstancesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddMyGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ApplyMonitoringTemplateRequest.cc b/cms/src/model/ApplyMonitoringTemplateRequest.cc new file mode 100644 index 000000000..92fd9936d --- /dev/null +++ b/cms/src/model/ApplyMonitoringTemplateRequest.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::Cms::Model::ApplyMonitoringTemplateRequest; + +ApplyMonitoringTemplateRequest::ApplyMonitoringTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "ApplyMonitoringTemplate") +{} + +ApplyMonitoringTemplateRequest::~ApplyMonitoringTemplateRequest() +{} + +long ApplyMonitoringTemplateRequest::getEnableStartTime()const +{ + return enableStartTime_; +} + +void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime) +{ + enableStartTime_ = enableStartTime; + setParameter("EnableStartTime", std::to_string(enableStartTime)); +} + +std::string ApplyMonitoringTemplateRequest::getApplyMode()const +{ + return applyMode_; +} + +void ApplyMonitoringTemplateRequest::setApplyMode(const std::string& applyMode) +{ + applyMode_ = applyMode; + setParameter("ApplyMode", applyMode); +} + +std::string ApplyMonitoringTemplateRequest::getWebhook()const +{ + return webhook_; +} + +void ApplyMonitoringTemplateRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setParameter("Webhook", webhook); +} + +std::string ApplyMonitoringTemplateRequest::getTemplateIds()const +{ + return templateIds_; +} + +void ApplyMonitoringTemplateRequest::setTemplateIds(const std::string& templateIds) +{ + templateIds_ = templateIds; + setParameter("TemplateIds", templateIds); +} + +long ApplyMonitoringTemplateRequest::getEnableEndTime()const +{ + return enableEndTime_; +} + +void ApplyMonitoringTemplateRequest::setEnableEndTime(long enableEndTime) +{ + enableEndTime_ = enableEndTime; + setParameter("EnableEndTime", std::to_string(enableEndTime)); +} + +long ApplyMonitoringTemplateRequest::getGroupId()const +{ + return groupId_; +} + +void ApplyMonitoringTemplateRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +long ApplyMonitoringTemplateRequest::getNotifyLevel()const +{ + return notifyLevel_; +} + +void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel) +{ + notifyLevel_ = notifyLevel; + setParameter("NotifyLevel", std::to_string(notifyLevel)); +} + +long ApplyMonitoringTemplateRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void ApplyMonitoringTemplateRequest::setSilenceTime(long silenceTime) +{ + silenceTime_ = silenceTime; + setParameter("SilenceTime", std::to_string(silenceTime)); +} + diff --git a/cms/src/model/ApplyMonitoringTemplateResult.cc b/cms/src/model/ApplyMonitoringTemplateResult.cc new file mode 100644 index 000000000..0f03d8814 --- /dev/null +++ b/cms/src/model/ApplyMonitoringTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult() : + ServiceResult() +{} + +ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult() +{} + +void ApplyMonitoringTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resourceNode = value["Resource"]; + if(!resourceNode["GroupId"].isNull()) + resource_.groupId = std::stol(resourceNode["GroupId"].asString()); + auto allEventResults = value["EventResults"]["Result"]; + for (auto value : allEventResults) + { + Resource::Result resultObject; + if(!value["GroupId"].isNull()) + resultObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["Name"].isNull()) + resultObject.name = value["Name"].asString(); + if(!value["Message"].isNull()) + resultObject.message = value["Message"].asString(); + if(!value["DisplayName"].isNull()) + resultObject.displayName = value["DisplayName"].asString(); + if(!value["Code"].isNull()) + resultObject.code = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + resultObject.success = value["Success"].asString() == "true"; + resource_.eventResults.push_back(resultObject); + } + auto allAlertResults = value["AlertResults"]["Result"]; + for (auto value : allAlertResults) + { + Resource::Result resultObject; + if(!value["GroupId"].isNull()) + resultObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["Name"].isNull()) + resultObject.name = value["Name"].asString(); + if(!value["Message"].isNull()) + resultObject.message = value["Message"].asString(); + if(!value["DisplayName"].isNull()) + resultObject.displayName = value["DisplayName"].asString(); + if(!value["Code"].isNull()) + resultObject.code = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + resultObject.success = value["Success"].asString() == "true"; + resource_.alertResults.push_back(resultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +ApplyMonitoringTemplateResult::Resource ApplyMonitoringTemplateResult::getResource()const +{ + return resource_; +} + +int ApplyMonitoringTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ApplyMonitoringTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ApplyMonitoringTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ApplyTemplateRequest.cc b/cms/src/model/ApplyTemplateRequest.cc new file mode 100644 index 000000000..495c6d32b --- /dev/null +++ b/cms/src/model/ApplyTemplateRequest.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::Cms::Model::ApplyTemplateRequest; + +ApplyTemplateRequest::ApplyTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "ApplyTemplate") +{} + +ApplyTemplateRequest::~ApplyTemplateRequest() +{} + +long ApplyTemplateRequest::getEnableStartTime()const +{ + return enableStartTime_; +} + +void ApplyTemplateRequest::setEnableStartTime(long enableStartTime) +{ + enableStartTime_ = enableStartTime; + setParameter("EnableStartTime", std::to_string(enableStartTime)); +} + +std::string ApplyTemplateRequest::getApplyMode()const +{ + return applyMode_; +} + +void ApplyTemplateRequest::setApplyMode(const std::string& applyMode) +{ + applyMode_ = applyMode; + setParameter("ApplyMode", applyMode); +} + +std::string ApplyTemplateRequest::getTemplateIds()const +{ + return templateIds_; +} + +void ApplyTemplateRequest::setTemplateIds(const std::string& templateIds) +{ + templateIds_ = templateIds; + setParameter("TemplateIds", templateIds); +} + +long ApplyTemplateRequest::getEnableEndTime()const +{ + return enableEndTime_; +} + +void ApplyTemplateRequest::setEnableEndTime(long enableEndTime) +{ + enableEndTime_ = enableEndTime; + setParameter("EnableEndTime", std::to_string(enableEndTime)); +} + +long ApplyTemplateRequest::getGroupId()const +{ + return groupId_; +} + +void ApplyTemplateRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +long ApplyTemplateRequest::getNotifyLevel()const +{ + return notifyLevel_; +} + +void ApplyTemplateRequest::setNotifyLevel(long notifyLevel) +{ + notifyLevel_ = notifyLevel; + setParameter("NotifyLevel", std::to_string(notifyLevel)); +} + +long ApplyTemplateRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void ApplyTemplateRequest::setSilenceTime(long silenceTime) +{ + silenceTime_ = silenceTime; + setParameter("SilenceTime", std::to_string(silenceTime)); +} + diff --git a/cms/src/model/ApplyTemplateResult.cc b/cms/src/model/ApplyTemplateResult.cc new file mode 100644 index 000000000..46b19f17d --- /dev/null +++ b/cms/src/model/ApplyTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ApplyTemplateResult::ApplyTemplateResult() : + ServiceResult() +{} + +ApplyTemplateResult::ApplyTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyTemplateResult::~ApplyTemplateResult() +{} + +void ApplyTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resourceNode = value["Resource"]; + auto allCreateAlertResults = value["CreateAlertResults"]["AlertResult"]; + for (auto value : allCreateAlertResults) + { + Resource::AlertResult alertResultObject; + if(!value["Name"].isNull()) + alertResultObject.name = value["Name"].asString(); + if(!value["DisplayName"].isNull()) + alertResultObject.displayName = value["DisplayName"].asString(); + if(!value["MetricNamespace"].isNull()) + alertResultObject.metricNamespace = value["MetricNamespace"].asString(); + if(!value["MetricName"].isNull()) + alertResultObject.metricName = value["MetricName"].asString(); + if(!value["Message"].isNull()) + alertResultObject.message = value["Message"].asString(); + if(!value["Success"].isNull()) + alertResultObject.success = value["Success"].asString(); + resource_.createAlertResults.push_back(alertResultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +ApplyTemplateResult::Resource ApplyTemplateResult::getResource()const +{ + return resource_; +} + +int ApplyTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ApplyTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ApplyTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateAlarmRequest.cc b/cms/src/model/CreateAlarmRequest.cc index ba083d769..bf3dcf860 100644 --- a/cms/src/model/CreateAlarmRequest.cc +++ b/cms/src/model/CreateAlarmRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::CreateAlarmRequest; CreateAlarmRequest::CreateAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "CreateAlarm") + RpcServiceRequest("cms", "2018-03-08", "CreateAlarm") {} CreateAlarmRequest::~CreateAlarmRequest() {} -std::string CreateAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void CreateAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - int CreateAlarmRequest::getPeriod()const { return period_; @@ -58,6 +47,17 @@ void CreateAlarmRequest::setWebhook(const std::string& webhook) setParameter("Webhook", webhook); } +bool CreateAlarmRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateAlarmRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + std::string CreateAlarmRequest::getContactGroups()const { return contactGroups_; diff --git a/cms/src/model/CreateAlarmResult.cc b/cms/src/model/CreateAlarmResult.cc index e58083c42..2302c373c 100644 --- a/cms/src/model/CreateAlarmResult.cc +++ b/cms/src/model/CreateAlarmResult.cc @@ -40,34 +40,34 @@ void CreateAlarmResult::parse(const std::string &payload) reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].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["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string CreateAlarmResult::getMessage()const -{ - return message_; -} - -std::string CreateAlarmResult::getData()const -{ - return data_; -} - -std::string CreateAlarmResult::getCode()const -{ - return code_; -} - -bool CreateAlarmResult::getSuccess()const -{ - return success_; -} - +std::string CreateAlarmResult::getMessage()const +{ + return message_; +} + +std::string CreateAlarmResult::getData()const +{ + return data_; +} + +std::string CreateAlarmResult::getCode()const +{ + return code_; +} + +bool CreateAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMonitoringTemplateRequest.cc b/cms/src/model/CreateMonitoringTemplateRequest.cc new file mode 100644 index 000000000..868f0e38d --- /dev/null +++ b/cms/src/model/CreateMonitoringTemplateRequest.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::Cms::Model::CreateMonitoringTemplateRequest; + +CreateMonitoringTemplateRequest::CreateMonitoringTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "CreateMonitoringTemplate") +{} + +CreateMonitoringTemplateRequest::~CreateMonitoringTemplateRequest() +{} + +std::string CreateMonitoringTemplateRequest::getEventRuleTemplatesJson()const +{ + return eventRuleTemplatesJson_; +} + +void CreateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) +{ + eventRuleTemplatesJson_ = eventRuleTemplatesJson; + setParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); +} + +std::string CreateMonitoringTemplateRequest::getName()const +{ + return name_; +} + +void CreateMonitoringTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateMonitoringTemplateRequest::get_Namespace()const +{ + return _namespace_; +} + +void CreateMonitoringTemplateRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setParameter("_Namespace", _namespace); +} + +std::string CreateMonitoringTemplateRequest::getDescription()const +{ + return description_; +} + +void CreateMonitoringTemplateRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const +{ + return alertTemplatesJson_; +} + +void CreateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) +{ + alertTemplatesJson_ = alertTemplatesJson; + setParameter("AlertTemplatesJson", alertTemplatesJson); +} + diff --git a/cms/src/model/CreateMonitoringTemplateResult.cc b/cms/src/model/CreateMonitoringTemplateResult.cc new file mode 100644 index 000000000..fc85a038b --- /dev/null +++ b/cms/src/model/CreateMonitoringTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +CreateMonitoringTemplateResult::CreateMonitoringTemplateResult() : + ServiceResult() +{} + +CreateMonitoringTemplateResult::CreateMonitoringTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult() +{} + +void CreateMonitoringTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); + +} + +int CreateMonitoringTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateMonitoringTemplateResult::getId()const +{ + return id_; +} + +std::string CreateMonitoringTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateMonitoringTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMyGroupAlertBatchRequest.cc b/cms/src/model/CreateMyGroupAlertBatchRequest.cc new file mode 100644 index 000000000..861bfe804 --- /dev/null +++ b/cms/src/model/CreateMyGroupAlertBatchRequest.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::CreateMyGroupAlertBatchRequest; + +CreateMyGroupAlertBatchRequest::CreateMyGroupAlertBatchRequest() : + RpcServiceRequest("cms", "2018-03-08", "CreateMyGroupAlertBatch") +{} + +CreateMyGroupAlertBatchRequest::~CreateMyGroupAlertBatchRequest() +{} + +long CreateMyGroupAlertBatchRequest::getGroupId()const +{ + return groupId_; +} + +void CreateMyGroupAlertBatchRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const +{ + return groupAlertJsonArray_; +} + +void CreateMyGroupAlertBatchRequest::setGroupAlertJsonArray(const std::string& groupAlertJsonArray) +{ + groupAlertJsonArray_ = groupAlertJsonArray; + setParameter("GroupAlertJsonArray", groupAlertJsonArray); +} + diff --git a/cms/src/model/CreateMyGroupAlertBatchResult.cc b/cms/src/model/CreateMyGroupAlertBatchResult.cc new file mode 100644 index 000000000..f5e434116 --- /dev/null +++ b/cms/src/model/CreateMyGroupAlertBatchResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult() : + ServiceResult() +{} + +CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult() +{} + +void CreateMyGroupAlertBatchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["AlertResult"]; + for (auto value : allResources) + { + AlertResult resourcesObject; + if(!value["AlertName"].isNull()) + resourcesObject.alertName = value["AlertName"].asString(); + if(!value["DisplayName"].isNull()) + resourcesObject.displayName = value["DisplayName"].asString(); + if(!value["MetricNamespace"].isNull()) + resourcesObject.metricNamespace = value["MetricNamespace"].asString(); + if(!value["MetricName"].isNull()) + resourcesObject.metricName = value["MetricName"].asString(); + if(!value["Message"].isNull()) + resourcesObject.message = value["Message"].asString(); + if(!value["Code"].isNull()) + resourcesObject.code = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + resourcesObject.success = value["Success"].asString() == "true"; + if(!value["GroupId"].isNull()) + resourcesObject.groupId = std::stol(value["GroupId"].asString()); + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector CreateMyGroupAlertBatchResult::getResources()const +{ + return resources_; +} + +int CreateMyGroupAlertBatchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateMyGroupAlertBatchResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateMyGroupAlertBatchResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMyGroupsRequest.cc b/cms/src/model/CreateMyGroupsRequest.cc index e39e1cad0..0e1dfe951 100644 --- a/cms/src/model/CreateMyGroupsRequest.cc +++ b/cms/src/model/CreateMyGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::CreateMyGroupsRequest; CreateMyGroupsRequest::CreateMyGroupsRequest() : - RpcServiceRequest("cms", "2017-03-01", "CreateMyGroups") + RpcServiceRequest("cms", "2018-03-08", "CreateMyGroups") {} CreateMyGroupsRequest::~CreateMyGroupsRequest() @@ -36,15 +36,15 @@ void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups) setParameter("ContactGroups", contactGroups); } -long CreateMyGroupsRequest::getServiceId()const +std::string CreateMyGroupsRequest::getOptions()const { - return serviceId_; + return options_; } -void CreateMyGroupsRequest::setServiceId(long serviceId) +void CreateMyGroupsRequest::setOptions(const std::string& options) { - serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + options_ = options; + setParameter("Options", options); } std::string CreateMyGroupsRequest::getType()const @@ -58,6 +58,17 @@ void CreateMyGroupsRequest::setType(const std::string& type) setParameter("Type", type); } +long CreateMyGroupsRequest::getServiceId()const +{ + return serviceId_; +} + +void CreateMyGroupsRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + std::string CreateMyGroupsRequest::getGroupName()const { return groupName_; diff --git a/cms/src/model/CreateMyGroupsResult.cc b/cms/src/model/CreateMyGroupsResult.cc index b31dbbd34..9f28ff100 100644 --- a/cms/src/model/CreateMyGroupsResult.cc +++ b/cms/src/model/CreateMyGroupsResult.cc @@ -40,34 +40,34 @@ void CreateMyGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["GroupId"].isNull()) - groupId_ = std::stol(value["GroupId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = std::stol(value["GroupId"].asString()); } -int CreateMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string CreateMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool CreateMyGroupsResult::getSuccess()const -{ - return success_; -} - -long CreateMyGroupsResult::getGroupId()const -{ - return groupId_; -} - +int CreateMyGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateMyGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateMyGroupsResult::getSuccess()const +{ + return success_; +} + +long CreateMyGroupsResult::getGroupId()const +{ + return groupId_; +} + diff --git a/cms/src/model/CreateNotifyPolicyRequest.cc b/cms/src/model/CreateNotifyPolicyRequest.cc index f093b8c72..39bca7771 100644 --- a/cms/src/model/CreateNotifyPolicyRequest.cc +++ b/cms/src/model/CreateNotifyPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::CreateNotifyPolicyRequest; CreateNotifyPolicyRequest::CreateNotifyPolicyRequest() : - RpcServiceRequest("cms", "2017-03-01", "CreateNotifyPolicy") + RpcServiceRequest("cms", "2018-03-08", "CreateNotifyPolicy") {} CreateNotifyPolicyRequest::~CreateNotifyPolicyRequest() @@ -47,6 +47,17 @@ void CreateNotifyPolicyRequest::setAlertName(const std::string& alertName) setParameter("AlertName", alertName); } +std::string CreateNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void CreateNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + long CreateNotifyPolicyRequest::getEndTime()const { return endTime_; diff --git a/cms/src/model/CreateNotifyPolicyResult.cc b/cms/src/model/CreateNotifyPolicyResult.cc index 93d34c33c..480a3aaec 100644 --- a/cms/src/model/CreateNotifyPolicyResult.cc +++ b/cms/src/model/CreateNotifyPolicyResult.cc @@ -40,41 +40,34 @@ void CreateNotifyPolicyResult::parse(const std::string &payload) reader.parse(payload, value); 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(); - if(!value["traceId"].isNull()) - traceId_ = value["traceId"].asString(); - if(!value["result"].isNull()) - result_ = std::stoi(value["result"].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(); + if(!value["Result"].isNull()) + result_ = std::stoi(value["Result"].asString()); } -std::string CreateNotifyPolicyResult::getMessage()const -{ - return message_; -} - -std::string CreateNotifyPolicyResult::getTraceId()const -{ - return traceId_; -} - -std::string CreateNotifyPolicyResult::getCode()const -{ - return code_; -} - -std::string CreateNotifyPolicyResult::getSuccess()const -{ - return success_; -} - -int CreateNotifyPolicyResult::getResult()const -{ - return result_; -} - +std::string CreateNotifyPolicyResult::getMessage()const +{ + return message_; +} + +std::string CreateNotifyPolicyResult::getCode()const +{ + return code_; +} + +std::string CreateNotifyPolicyResult::getSuccess()const +{ + return success_; +} + +int CreateNotifyPolicyResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/CreateTaskRequest.cc b/cms/src/model/CreateTaskRequest.cc new file mode 100644 index 000000000..f0d8a10f9 --- /dev/null +++ b/cms/src/model/CreateTaskRequest.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::Cms::Model::CreateTaskRequest; + +CreateTaskRequest::CreateTaskRequest() : + RpcServiceRequest("cms", "2018-03-08", "CreateTask") +{} + +CreateTaskRequest::~CreateTaskRequest() +{} + +std::string CreateTaskRequest::getCaller()const +{ + return caller_; +} + +void CreateTaskRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setParameter("Caller", caller); +} + +std::string CreateTaskRequest::getAddress()const +{ + return address_; +} + +void CreateTaskRequest::setAddress(const std::string& address) +{ + address_ = address; + setParameter("Address", address); +} + +std::string CreateTaskRequest::getTaskType()const +{ + return taskType_; +} + +void CreateTaskRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string CreateTaskRequest::getIspCity()const +{ + return ispCity_; +} + +void CreateTaskRequest::setIspCity(const std::string& ispCity) +{ + ispCity_ = ispCity; + setParameter("IspCity", ispCity); +} + +std::string CreateTaskRequest::getAlertIds()const +{ + return alertIds_; +} + +void CreateTaskRequest::setAlertIds(const std::string& alertIds) +{ + alertIds_ = alertIds; + setParameter("AlertIds", alertIds); +} + +std::string CreateTaskRequest::getOptions()const +{ + return options_; +} + +void CreateTaskRequest::setOptions(const std::string& options) +{ + options_ = options; + setParameter("Options", options); +} + +std::string CreateTaskRequest::getTaskName()const +{ + return taskName_; +} + +void CreateTaskRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setParameter("TaskName", taskName); +} + +std::string CreateTaskRequest::getInterval()const +{ + return interval_; +} + +void CreateTaskRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string CreateTaskRequest::getAlertRule()const +{ + return alertRule_; +} + +void CreateTaskRequest::setAlertRule(const std::string& alertRule) +{ + alertRule_ = alertRule; + setParameter("AlertRule", alertRule); +} + diff --git a/cms/src/model/CreateTaskResult.cc b/cms/src/model/CreateTaskResult.cc new file mode 100644 index 000000000..ae5f0dfaa --- /dev/null +++ b/cms/src/model/CreateTaskResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +CreateTaskResult::CreateTaskResult() : + ServiceResult() +{} + +CreateTaskResult::CreateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTaskResult::~CreateTaskResult() +{} + +void CreateTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["AlertRule"].isNull()) + alertRule_ = value["AlertRule"].asString(); + +} + +std::string CreateTaskResult::getMessage()const +{ + return message_; +} + +std::string CreateTaskResult::getData()const +{ + return data_; +} + +std::string CreateTaskResult::getCode()const +{ + return code_; +} + +std::string CreateTaskResult::getSuccess()const +{ + return success_; +} + +std::string CreateTaskResult::getAlertRule()const +{ + return alertRule_; +} + diff --git a/cms/src/model/DeleteAlarmRequest.cc b/cms/src/model/DeleteAlarmRequest.cc index 69d3ebd36..95f2a1a48 100644 --- a/cms/src/model/DeleteAlarmRequest.cc +++ b/cms/src/model/DeleteAlarmRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::DeleteAlarmRequest; DeleteAlarmRequest::DeleteAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "DeleteAlarm") + RpcServiceRequest("cms", "2018-03-08", "DeleteAlarm") {} DeleteAlarmRequest::~DeleteAlarmRequest() {} -std::string DeleteAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void DeleteAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - std::string DeleteAlarmRequest::getId()const { return id_; diff --git a/cms/src/model/DeleteAlarmResult.cc b/cms/src/model/DeleteAlarmResult.cc index dfcdc8b34..8e957dc57 100644 --- a/cms/src/model/DeleteAlarmResult.cc +++ b/cms/src/model/DeleteAlarmResult.cc @@ -40,27 +40,27 @@ void DeleteAlarmResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 DeleteAlarmResult::getMessage()const -{ - return message_; -} - -std::string DeleteAlarmResult::getCode()const -{ - return code_; -} - -bool DeleteAlarmResult::getSuccess()const -{ - return success_; -} - +std::string DeleteAlarmResult::getMessage()const +{ + return message_; +} + +std::string DeleteAlarmResult::getCode()const +{ + return code_; +} + +bool DeleteAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteCustomMetricRequest.cc b/cms/src/model/DeleteCustomMetricRequest.cc index 357fc27d0..417185cbc 100644 --- a/cms/src/model/DeleteCustomMetricRequest.cc +++ b/cms/src/model/DeleteCustomMetricRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DeleteCustomMetricRequest; DeleteCustomMetricRequest::DeleteCustomMetricRequest() : - RpcServiceRequest("cms", "2017-03-01", "DeleteCustomMetric") + RpcServiceRequest("cms", "2018-03-08", "DeleteCustomMetric") {} DeleteCustomMetricRequest::~DeleteCustomMetricRequest() diff --git a/cms/src/model/DeleteCustomMetricResult.cc b/cms/src/model/DeleteCustomMetricResult.cc index c03c1ee78..b8acc4e6d 100644 --- a/cms/src/model/DeleteCustomMetricResult.cc +++ b/cms/src/model/DeleteCustomMetricResult.cc @@ -40,27 +40,27 @@ void DeleteCustomMetricResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -std::string DeleteCustomMetricResult::getMessage()const -{ - return message_; -} - -std::string DeleteCustomMetricResult::getCode()const -{ - return code_; -} - -std::string DeleteCustomMetricResult::getResult()const -{ - return result_; -} - +std::string DeleteCustomMetricResult::getMessage()const +{ + return message_; +} + +std::string DeleteCustomMetricResult::getCode()const +{ + return code_; +} + +std::string DeleteCustomMetricResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/DeleteEventRuleRequest.cc b/cms/src/model/DeleteEventRuleRequest.cc new file mode 100644 index 000000000..00b180cf1 --- /dev/null +++ b/cms/src/model/DeleteEventRuleRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::DeleteEventRuleRequest; + +DeleteEventRuleRequest::DeleteEventRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "DeleteEventRule") +{} + +DeleteEventRuleRequest::~DeleteEventRuleRequest() +{} + +std::vector DeleteEventRuleRequest::getRuleNames()const +{ + return ruleNames_; +} + +void DeleteEventRuleRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int i = 0; i!= ruleNames.size(); i++) + setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); +} + +std::string DeleteEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void DeleteEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/PutMetricDataResult.cc b/cms/src/model/DeleteEventRuleResult.cc similarity index 73% rename from cms/src/model/PutMetricDataResult.cc rename to cms/src/model/DeleteEventRuleResult.cc index 5477d1bae..4dc175e61 100644 --- a/cms/src/model/PutMetricDataResult.cc +++ b/cms/src/model/DeleteEventRuleResult.cc @@ -14,53 +14,53 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -PutMetricDataResult::PutMetricDataResult() : +DeleteEventRuleResult::DeleteEventRuleResult() : ServiceResult() {} -PutMetricDataResult::PutMetricDataResult(const std::string &payload) : +DeleteEventRuleResult::DeleteEventRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutMetricDataResult::~PutMetricDataResult() +DeleteEventRuleResult::~DeleteEventRuleResult() {} -void PutMetricDataResult::parse(const std::string &payload) +void DeleteEventRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); 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"; + 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 PutMetricDataResult::getMessage()const -{ - return message_; -} - -std::string PutMetricDataResult::getCode()const -{ - return code_; -} - -bool PutMetricDataResult::getSuccess()const -{ - return success_; -} - +std::string DeleteEventRuleResult::getMessage()const +{ + return message_; +} + +std::string DeleteEventRuleResult::getCode()const +{ + return code_; +} + +bool DeleteEventRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteEventTargetsRequest.cc b/cms/src/model/DeleteEventTargetsRequest.cc new file mode 100644 index 000000000..407129470 --- /dev/null +++ b/cms/src/model/DeleteEventTargetsRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::DeleteEventTargetsRequest; + +DeleteEventTargetsRequest::DeleteEventTargetsRequest() : + RpcServiceRequest("cms", "2018-03-08", "DeleteEventTargets") +{} + +DeleteEventTargetsRequest::~DeleteEventTargetsRequest() +{} + +std::vector DeleteEventTargetsRequest::getIds()const +{ + return ids_; +} + +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)); +} + +std::string DeleteEventTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/DisableActiceAlertResult.cc b/cms/src/model/DeleteEventTargetsResult.cc similarity index 72% rename from cms/src/model/DisableActiceAlertResult.cc rename to cms/src/model/DeleteEventTargetsResult.cc index b66b1c4e7..107c62a74 100644 --- a/cms/src/model/DisableActiceAlertResult.cc +++ b/cms/src/model/DeleteEventTargetsResult.cc @@ -14,53 +14,53 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DisableActiceAlertResult::DisableActiceAlertResult() : +DeleteEventTargetsResult::DeleteEventTargetsResult() : ServiceResult() {} -DisableActiceAlertResult::DisableActiceAlertResult(const std::string &payload) : +DeleteEventTargetsResult::DeleteEventTargetsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableActiceAlertResult::~DisableActiceAlertResult() +DeleteEventTargetsResult::~DeleteEventTargetsResult() {} -void DisableActiceAlertResult::parse(const std::string &payload) +void DeleteEventTargetsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].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 DisableActiceAlertResult::getMessage()const -{ - return message_; -} - -std::string DisableActiceAlertResult::getCode()const -{ - return code_; -} - -bool DisableActiceAlertResult::getSuccess()const -{ - return success_; -} - +std::string DeleteEventTargetsResult::getMessage()const +{ + return message_; +} + +std::string DeleteEventTargetsResult::getCode()const +{ + return code_; +} + +bool DeleteEventTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteGroupDynamicRuleRequest.cc b/cms/src/model/DeleteGroupDynamicRuleRequest.cc new file mode 100644 index 000000000..0fdf8014d --- /dev/null +++ b/cms/src/model/DeleteGroupDynamicRuleRequest.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::DeleteGroupDynamicRuleRequest; + +DeleteGroupDynamicRuleRequest::DeleteGroupDynamicRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "DeleteGroupDynamicRule") +{} + +DeleteGroupDynamicRuleRequest::~DeleteGroupDynamicRuleRequest() +{} + +long DeleteGroupDynamicRuleRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteGroupDynamicRuleRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string DeleteGroupDynamicRuleRequest::getCategory()const +{ + return category_; +} + +void DeleteGroupDynamicRuleRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + diff --git a/cms/src/model/DeleteGroupDynamicRuleResult.cc b/cms/src/model/DeleteGroupDynamicRuleResult.cc new file mode 100644 index 000000000..4cf8d1158 --- /dev/null +++ b/cms/src/model/DeleteGroupDynamicRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult() : + ServiceResult() +{} + +DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult() +{} + +void DeleteGroupDynamicRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +int DeleteGroupDynamicRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteGroupDynamicRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteGroupDynamicRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListProductOfActiceAlertRequest.cc b/cms/src/model/DeleteMonitoringTemplateRequest.cc similarity index 55% rename from cms/src/model/ListProductOfActiceAlertRequest.cc rename to cms/src/model/DeleteMonitoringTemplateRequest.cc index 8401c3c5b..2ea7748c7 100644 --- a/cms/src/model/ListProductOfActiceAlertRequest.cc +++ b/cms/src/model/DeleteMonitoringTemplateRequest.cc @@ -14,25 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListProductOfActiceAlertRequest; +using AlibabaCloud::Cms::Model::DeleteMonitoringTemplateRequest; -ListProductOfActiceAlertRequest::ListProductOfActiceAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListProductOfActiceAlert") +DeleteMonitoringTemplateRequest::DeleteMonitoringTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "DeleteMonitoringTemplate") {} -ListProductOfActiceAlertRequest::~ListProductOfActiceAlertRequest() +DeleteMonitoringTemplateRequest::~DeleteMonitoringTemplateRequest() {} -std::string ListProductOfActiceAlertRequest::getUserId()const +std::string DeleteMonitoringTemplateRequest::getId()const { - return userId_; + return id_; } -void ListProductOfActiceAlertRequest::setUserId(const std::string& userId) +void DeleteMonitoringTemplateRequest::setId(const std::string& id) { - userId_ = userId; - setParameter("UserId", userId); + id_ = id; + setParameter("Id", id); } diff --git a/cms/src/model/DeleteMonitoringTemplateResult.cc b/cms/src/model/DeleteMonitoringTemplateResult.cc new file mode 100644 index 000000000..8727f77ab --- /dev/null +++ b/cms/src/model/DeleteMonitoringTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult() : + ServiceResult() +{} + +DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult() +{} + +void DeleteMonitoringTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resourceNode = value["Resource"]; + if(!resourceNode["Name"].isNull()) + resource_.name = resourceNode["Name"].asString(); + if(!resourceNode["Id"].isNull()) + resource_.id = resourceNode["Id"].asString(); + if(!resourceNode["RestVersion"].isNull()) + resource_.restVersion = resourceNode["RestVersion"].asString(); + if(!resourceNode["Namespace"].isNull()) + resource_._namespace = resourceNode["Namespace"].asString(); + if(!resourceNode["Description"].isNull()) + resource_.description = resourceNode["Description"].asString(); + if(!resourceNode["AlertTemplatesJson"].isNull()) + resource_.alertTemplatesJson = resourceNode["AlertTemplatesJson"].asString(); + if(!resourceNode["EventRuleTemplatesJson"].isNull()) + resource_.eventRuleTemplatesJson = resourceNode["EventRuleTemplatesJson"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +DeleteMonitoringTemplateResult::Resource DeleteMonitoringTemplateResult::getResource()const +{ + return resource_; +} + +int DeleteMonitoringTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteMonitoringTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteMonitoringTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMyGroupInstancesRequest.cc b/cms/src/model/DeleteMyGroupInstancesRequest.cc index 7ca113878..238f09913 100644 --- a/cms/src/model/DeleteMyGroupInstancesRequest.cc +++ b/cms/src/model/DeleteMyGroupInstancesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DeleteMyGroupInstancesRequest; DeleteMyGroupInstancesRequest::DeleteMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2017-03-01", "DeleteMyGroupInstances") + RpcServiceRequest("cms", "2018-03-08", "DeleteMyGroupInstances") {} DeleteMyGroupInstancesRequest::~DeleteMyGroupInstancesRequest() @@ -36,6 +36,17 @@ void DeleteMyGroupInstancesRequest::setInstanceIds(const std::string& instanceId setParameter("InstanceIds", instanceIds); } +std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const +{ + return instanceIdList_; +} + +void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList) +{ + instanceIdList_ = instanceIdList; + setParameter("InstanceIdList", instanceIdList); +} + long DeleteMyGroupInstancesRequest::getGroupId()const { return groupId_; @@ -47,3 +58,14 @@ void DeleteMyGroupInstancesRequest::setGroupId(long groupId) setParameter("GroupId", std::to_string(groupId)); } +std::string DeleteMyGroupInstancesRequest::getCategory()const +{ + return category_; +} + +void DeleteMyGroupInstancesRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + diff --git a/cms/src/model/DeleteMyGroupInstancesResult.cc b/cms/src/model/DeleteMyGroupInstancesResult.cc index dbeb7adc8..ff0b41c50 100644 --- a/cms/src/model/DeleteMyGroupInstancesResult.cc +++ b/cms/src/model/DeleteMyGroupInstancesResult.cc @@ -40,27 +40,27 @@ void DeleteMyGroupInstancesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -int DeleteMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - +int DeleteMyGroupInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteMyGroupInstancesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteMyGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMyGroupsRequest.cc b/cms/src/model/DeleteMyGroupsRequest.cc index e4f45426c..db05f4b88 100644 --- a/cms/src/model/DeleteMyGroupsRequest.cc +++ b/cms/src/model/DeleteMyGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DeleteMyGroupsRequest; DeleteMyGroupsRequest::DeleteMyGroupsRequest() : - RpcServiceRequest("cms", "2017-03-01", "DeleteMyGroups") + RpcServiceRequest("cms", "2018-03-08", "DeleteMyGroups") {} DeleteMyGroupsRequest::~DeleteMyGroupsRequest() diff --git a/cms/src/model/DeleteMyGroupsResult.cc b/cms/src/model/DeleteMyGroupsResult.cc index 9ecc4e9f3..01fb5628c 100644 --- a/cms/src/model/DeleteMyGroupsResult.cc +++ b/cms/src/model/DeleteMyGroupsResult.cc @@ -40,56 +40,51 @@ void DeleteMyGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allGroup = value["Group"]; - for (auto value : allGroup) - { - Group groupObject; - if(!value["GroupId"].isNull()) - groupObject.groupId = std::stol(value["GroupId"].asString()); - if(!value["GroupName"].isNull()) - groupObject.groupName = value["GroupName"].asString(); - if(!value["ServiceId"].isNull()) - groupObject.serviceId = value["ServiceId"].asString(); - if(!value["BindUrls"].isNull()) - groupObject.bindUrls = value["BindUrls"].asString(); - if(!value["Type"].isNull()) - groupObject.type = value["Type"].asString(); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (auto value : allContactGroups) - { - Group::ContactGroup contactGroupObject; - if(!value["Name"].isNull()) - contactGroupObject.name = value["Name"].asString(); - groupObject.contactGroups.push_back(contactGroupObject); - } - group_.push_back(groupObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + auto groupNode = value["Group"]; + if(!groupNode["GroupId"].isNull()) + group_.groupId = std::stol(groupNode["GroupId"].asString()); + if(!groupNode["GroupName"].isNull()) + group_.groupName = groupNode["GroupName"].asString(); + if(!groupNode["ServiceId"].isNull()) + group_.serviceId = groupNode["ServiceId"].asString(); + if(!groupNode["BindUrls"].isNull()) + group_.bindUrls = groupNode["BindUrls"].asString(); + if(!groupNode["Type"].isNull()) + group_.type = groupNode["Type"].asString(); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (auto value : allContactGroups) + { + Group::ContactGroup contactGroupObject; + if(!value["Name"].isNull()) + contactGroupObject.name = value["Name"].asString(); + group_.contactGroups.push_back(contactGroupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -std::vector DeleteMyGroupsResult::getGroup()const -{ - return group_; -} - -int DeleteMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteMyGroupsResult::getSuccess()const -{ - return success_; -} - +DeleteMyGroupsResult::Group DeleteMyGroupsResult::getGroup()const +{ + return group_; +} + +int DeleteMyGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteMyGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteMyGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteNotifyPolicyRequest.cc b/cms/src/model/DeleteNotifyPolicyRequest.cc index 5bb85874e..f90046ff5 100644 --- a/cms/src/model/DeleteNotifyPolicyRequest.cc +++ b/cms/src/model/DeleteNotifyPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DeleteNotifyPolicyRequest; DeleteNotifyPolicyRequest::DeleteNotifyPolicyRequest() : - RpcServiceRequest("cms", "2017-03-01", "DeleteNotifyPolicy") + RpcServiceRequest("cms", "2018-03-08", "DeleteNotifyPolicy") {} DeleteNotifyPolicyRequest::~DeleteNotifyPolicyRequest() @@ -47,6 +47,17 @@ void DeleteNotifyPolicyRequest::setAlertName(const std::string& alertName) setParameter("AlertName", alertName); } +std::string DeleteNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + std::string DeleteNotifyPolicyRequest::getId()const { return id_; diff --git a/cms/src/model/DeleteNotifyPolicyResult.cc b/cms/src/model/DeleteNotifyPolicyResult.cc index 9904568d8..e9159d6b3 100644 --- a/cms/src/model/DeleteNotifyPolicyResult.cc +++ b/cms/src/model/DeleteNotifyPolicyResult.cc @@ -40,41 +40,34 @@ void DeleteNotifyPolicyResult::parse(const std::string &payload) reader.parse(payload, value); 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(); - if(!value["traceId"].isNull()) - traceId_ = value["traceId"].asString(); - if(!value["result"].isNull()) - result_ = std::stoi(value["result"].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(); + if(!value["Result"].isNull()) + result_ = std::stoi(value["Result"].asString()); } -std::string DeleteNotifyPolicyResult::getMessage()const -{ - return message_; -} - -std::string DeleteNotifyPolicyResult::getTraceId()const -{ - return traceId_; -} - -std::string DeleteNotifyPolicyResult::getCode()const -{ - return code_; -} - -std::string DeleteNotifyPolicyResult::getSuccess()const -{ - return success_; -} - -int DeleteNotifyPolicyResult::getResult()const -{ - return result_; -} - +std::string DeleteNotifyPolicyResult::getMessage()const +{ + return message_; +} + +std::string DeleteNotifyPolicyResult::getCode()const +{ + return code_; +} + +std::string DeleteNotifyPolicyResult::getSuccess()const +{ + return success_; +} + +int DeleteNotifyPolicyResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/DeleteTasksRequest.cc b/cms/src/model/DeleteTasksRequest.cc new file mode 100644 index 000000000..a55f4985d --- /dev/null +++ b/cms/src/model/DeleteTasksRequest.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::DeleteTasksRequest; + +DeleteTasksRequest::DeleteTasksRequest() : + RpcServiceRequest("cms", "2018-03-08", "DeleteTasks") +{} + +DeleteTasksRequest::~DeleteTasksRequest() +{} + +int DeleteTasksRequest::getIsDeleteAlarms()const +{ + return isDeleteAlarms_; +} + +void DeleteTasksRequest::setIsDeleteAlarms(int isDeleteAlarms) +{ + isDeleteAlarms_ = isDeleteAlarms; + setParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms)); +} + +std::string DeleteTasksRequest::getTaskIds()const +{ + return taskIds_; +} + +void DeleteTasksRequest::setTaskIds(const std::string& taskIds) +{ + taskIds_ = taskIds; + setParameter("TaskIds", taskIds); +} + diff --git a/cms/src/model/DeleteTasksResult.cc b/cms/src/model/DeleteTasksResult.cc new file mode 100644 index 000000000..023e1ea47 --- /dev/null +++ b/cms/src/model/DeleteTasksResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DeleteTasksResult::DeleteTasksResult() : + ServiceResult() +{} + +DeleteTasksResult::DeleteTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTasksResult::~DeleteTasksResult() +{} + +void DeleteTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteTasksResult::getMessage()const +{ + return message_; +} + +std::string DeleteTasksResult::getData()const +{ + return data_; +} + +std::string DeleteTasksResult::getCode()const +{ + return code_; +} + +std::string DeleteTasksResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeAlarmHistoryRequest.cc b/cms/src/model/DescribeAlarmHistoryRequest.cc index 4504f8ac0..37b07a22c 100644 --- a/cms/src/model/DescribeAlarmHistoryRequest.cc +++ b/cms/src/model/DescribeAlarmHistoryRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DescribeAlarmHistoryRequest; DescribeAlarmHistoryRequest::DescribeAlarmHistoryRequest() : - RpcServiceRequest("cms", "2017-03-01", "DescribeAlarmHistory") + RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmHistory") {} DescribeAlarmHistoryRequest::~DescribeAlarmHistoryRequest() @@ -88,7 +88,7 @@ bool DescribeAlarmHistoryRequest::getAscending()const void DescribeAlarmHistoryRequest::setAscending(bool ascending) { ascending_ = ascending; - setParameter("Ascending", std::to_string(ascending)); + setParameter("Ascending", ascending ? "true" : "false"); } std::string DescribeAlarmHistoryRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ bool DescribeAlarmHistoryRequest::getOnlyCount()const void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount) { onlyCount_ = onlyCount; - setParameter("OnlyCount", std::to_string(onlyCount)); + setParameter("OnlyCount", onlyCount ? "true" : "false"); } std::string DescribeAlarmHistoryRequest::get_Namespace()const diff --git a/cms/src/model/DescribeAlarmHistoryResult.cc b/cms/src/model/DescribeAlarmHistoryResult.cc index c17a28947..050cc36c6 100644 --- a/cms/src/model/DescribeAlarmHistoryResult.cc +++ b/cms/src/model/DescribeAlarmHistoryResult.cc @@ -40,96 +40,98 @@ void DescribeAlarmHistoryResult::parse(const std::string &payload) reader.parse(payload, value); 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(); - 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(); + 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 DescribeAlarmHistoryResult::getAlarmHistoryList()const -{ - return alarmHistoryList_; -} - -std::string DescribeAlarmHistoryResult::getMessage()const -{ - return message_; -} - -std::string DescribeAlarmHistoryResult::getTotal()const -{ - return total_; -} - -std::string DescribeAlarmHistoryResult::getCode()const -{ - return code_; -} - -bool DescribeAlarmHistoryResult::getSuccess()const -{ - return success_; -} - +std::vector DescribeAlarmHistoryResult::getAlarmHistoryList()const +{ + return alarmHistoryList_; +} + +std::string DescribeAlarmHistoryResult::getMessage()const +{ + return message_; +} + +std::string DescribeAlarmHistoryResult::getTotal()const +{ + return total_; +} + +std::string DescribeAlarmHistoryResult::getCode()const +{ + return code_; +} + +bool DescribeAlarmHistoryResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeAlarmsForResourcesRequest.cc b/cms/src/model/DescribeAlarmsForResourcesRequest.cc new file mode 100644 index 000000000..2322b8608 --- /dev/null +++ b/cms/src/model/DescribeAlarmsForResourcesRequest.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::Cms::Model::DescribeAlarmsForResourcesRequest; + +DescribeAlarmsForResourcesRequest::DescribeAlarmsForResourcesRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmsForResources") +{} + +DescribeAlarmsForResourcesRequest::~DescribeAlarmsForResourcesRequest() +{} + +bool DescribeAlarmsForResourcesRequest::getEnableState()const +{ + return enableState_; +} + +void DescribeAlarmsForResourcesRequest::setEnableState(bool enableState) +{ + enableState_ = enableState; + setParameter("EnableState", enableState ? "true" : "false"); +} + +std::string DescribeAlarmsForResourcesRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlarmsForResourcesRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string DescribeAlarmsForResourcesRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeAlarmsForResourcesRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setParameter("_Namespace", _namespace); +} + +std::string DescribeAlarmsForResourcesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlarmsForResourcesRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +std::string DescribeAlarmsForResourcesRequest::getAlertState()const +{ + return alertState_; +} + +void DescribeAlarmsForResourcesRequest::setAlertState(const std::string& alertState) +{ + alertState_ = alertState; + setParameter("AlertState", alertState); +} + +std::string DescribeAlarmsForResourcesRequest::getPage()const +{ + return page_; +} + +void DescribeAlarmsForResourcesRequest::setPage(const std::string& page) +{ + page_ = page; + setParameter("Page", page); +} + +std::string DescribeAlarmsForResourcesRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeAlarmsForResourcesRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string DescribeAlarmsForResourcesRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeAlarmsForResourcesRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/DescribeAlarmsForResourcesResult.cc b/cms/src/model/DescribeAlarmsForResourcesResult.cc new file mode 100644 index 000000000..bfdb36900 --- /dev/null +++ b/cms/src/model/DescribeAlarmsForResourcesResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult() : + ServiceResult() +{} + +DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult() +{} + +void DescribeAlarmsForResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDatapoints = value["Datapoints"]["Alarm"]; + for (auto value : allDatapoints) + { + Alarm datapointsObject; + if(!value["Uuid"].isNull()) + datapointsObject.uuid = value["Uuid"].asString(); + if(!value["Name"].isNull()) + datapointsObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + datapointsObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + datapointsObject.metricName = value["MetricName"].asString(); + if(!value["Period"].isNull()) + datapointsObject.period = value["Period"].asString(); + if(!value["EvaluationCount"].isNull()) + datapointsObject.evaluationCount = value["EvaluationCount"].asString(); + if(!value["EffectiveInterval"].isNull()) + datapointsObject.effectiveInterval = value["EffectiveInterval"].asString(); + if(!value["NoEffectiveInterval"].isNull()) + datapointsObject.noEffectiveInterval = value["NoEffectiveInterval"].asString(); + if(!value["SilenceTime"].isNull()) + datapointsObject.silenceTime = value["SilenceTime"].asString(); + if(!value["Enable"].isNull()) + datapointsObject.enable = value["Enable"].asString() == "true"; + if(!value["State"].isNull()) + datapointsObject.state = value["State"].asString(); + if(!value["ContactGroups"].isNull()) + datapointsObject.contactGroups = value["ContactGroups"].asString(); + if(!value["Webhook"].isNull()) + datapointsObject.webhook = value["Webhook"].asString(); + if(!value["Subject"].isNull()) + datapointsObject.subject = value["Subject"].asString(); + if(!value["DisplayName"].isNull()) + datapointsObject.displayName = value["DisplayName"].asString(); + if(!value["Resources"].isNull()) + datapointsObject.resources = value["Resources"].asString(); + if(!value["Level"].isNull()) + datapointsObject.level = value["Level"].asString(); + if(!value["GroupId"].isNull()) + datapointsObject.groupId = value["GroupId"].asString(); + if(!value["GroupName"].isNull()) + datapointsObject.groupName = value["GroupName"].asString(); + if(!value["Statistics"].isNull()) + datapointsObject.statistics = value["Statistics"].asString(); + if(!value["ComparisonOperator"].isNull()) + datapointsObject.comparisonOperator = value["ComparisonOperator"].asString(); + if(!value["Threshold"].isNull()) + datapointsObject.threshold = value["Threshold"].asString(); + auto escalationsNode = value["Escalations"]; + auto infoNode = escalationsNode["Info"]; + if(!infoNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); + if(!infoNode["Statistics"].isNull()) + datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString(); + if(!infoNode["Threshold"].isNull()) + datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString(); + if(!infoNode["Times"].isNull()) + datapointsObject.escalations.info.times = infoNode["Times"].asString(); + auto warnNode = escalationsNode["Warn"]; + if(!warnNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); + if(!warnNode["Statistics"].isNull()) + datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString(); + if(!warnNode["Threshold"].isNull()) + datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); + if(!warnNode["Times"].isNull()) + datapointsObject.escalations.warn.times = warnNode["Times"].asString(); + auto criticalNode = escalationsNode["Critical"]; + if(!criticalNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); + if(!criticalNode["Statistics"].isNull()) + datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); + if(!criticalNode["Threshold"].isNull()) + datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); + if(!criticalNode["Times"].isNull()) + datapointsObject.escalations.critical.times = criticalNode["Times"].asString(); + datapoints_.push_back(datapointsObject); + } + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); + if(!value["Dimensions"].isNull()) + dimensions_ = value["Dimensions"].asString(); + +} + +std::string DescribeAlarmsForResourcesResult::getMessage()const +{ + return message_; +} + +std::string DescribeAlarmsForResourcesResult::getTotal()const +{ + return total_; +} + +std::string DescribeAlarmsForResourcesResult::getTraceId()const +{ + return traceId_; +} + +std::string DescribeAlarmsForResourcesResult::getDimensions()const +{ + return dimensions_; +} + +std::vector DescribeAlarmsForResourcesResult::getDatapoints()const +{ + return datapoints_; +} + +int DescribeAlarmsForResourcesResult::getCode()const +{ + return code_; +} + +bool DescribeAlarmsForResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeAlarmsRequest.cc b/cms/src/model/DescribeAlarmsRequest.cc new file mode 100644 index 000000000..e048a3cc6 --- /dev/null +++ b/cms/src/model/DescribeAlarmsRequest.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::Cms::Model::DescribeAlarmsRequest; + +DescribeAlarmsRequest::DescribeAlarmsRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeAlarms") +{} + +DescribeAlarmsRequest::~DescribeAlarmsRequest() +{} + +bool DescribeAlarmsRequest::getEnableState()const +{ + return enableState_; +} + +void DescribeAlarmsRequest::setEnableState(bool enableState) +{ + enableState_ = enableState; + setParameter("EnableState", enableState ? "true" : "false"); +} + +std::string DescribeAlarmsRequest::getNames()const +{ + return names_; +} + +void DescribeAlarmsRequest::setNames(const std::string& names) +{ + names_ = names; + setParameter("Names", names); +} + +std::string DescribeAlarmsRequest::getDisplayName()const +{ + return displayName_; +} + +void DescribeAlarmsRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +std::string DescribeAlarmsRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlarmsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string DescribeAlarmsRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setParameter("_Namespace", _namespace); +} + +std::string DescribeAlarmsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlarmsRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +std::string DescribeAlarmsRequest::getAlertState()const +{ + return alertState_; +} + +void DescribeAlarmsRequest::setAlertState(const std::string& alertState) +{ + alertState_ = alertState; + setParameter("AlertState", alertState); +} + +std::string DescribeAlarmsRequest::getNameKeyword()const +{ + return nameKeyword_; +} + +void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword) +{ + nameKeyword_ = nameKeyword; + setParameter("NameKeyword", nameKeyword); +} + +std::string DescribeAlarmsRequest::getGroupBy()const +{ + return groupBy_; +} + +void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy) +{ + groupBy_ = groupBy; + setParameter("GroupBy", groupBy); +} + +std::string DescribeAlarmsRequest::getPage()const +{ + return page_; +} + +void DescribeAlarmsRequest::setPage(const std::string& page) +{ + page_ = page; + setParameter("Page", page); +} + +std::string DescribeAlarmsRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeAlarmsRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + diff --git a/cms/src/model/DescribeAlarmsResult.cc b/cms/src/model/DescribeAlarmsResult.cc new file mode 100644 index 000000000..6d11a304b --- /dev/null +++ b/cms/src/model/DescribeAlarmsResult.cc @@ -0,0 +1,167 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +DescribeAlarmsResult::DescribeAlarmsResult() : + ServiceResult() +{} + +DescribeAlarmsResult::DescribeAlarmsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlarmsResult::~DescribeAlarmsResult() +{} + +void DescribeAlarmsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDatapoints = value["Datapoints"]["Alarm"]; + for (auto value : allDatapoints) + { + Alarm datapointsObject; + if(!value["Uuid"].isNull()) + datapointsObject.uuid = value["Uuid"].asString(); + if(!value["Name"].isNull()) + datapointsObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + datapointsObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + datapointsObject.metricName = value["MetricName"].asString(); + if(!value["Period"].isNull()) + datapointsObject.period = value["Period"].asString(); + if(!value["EvaluationCount"].isNull()) + datapointsObject.evaluationCount = value["EvaluationCount"].asString(); + if(!value["EffectiveInterval"].isNull()) + datapointsObject.effectiveInterval = value["EffectiveInterval"].asString(); + if(!value["NoEffectiveInterval"].isNull()) + datapointsObject.noEffectiveInterval = value["NoEffectiveInterval"].asString(); + if(!value["SilenceTime"].isNull()) + datapointsObject.silenceTime = value["SilenceTime"].asString(); + if(!value["Enable"].isNull()) + datapointsObject.enable = value["Enable"].asString() == "true"; + if(!value["State"].isNull()) + datapointsObject.state = value["State"].asString(); + if(!value["ContactGroups"].isNull()) + datapointsObject.contactGroups = value["ContactGroups"].asString(); + if(!value["Webhook"].isNull()) + datapointsObject.webhook = value["Webhook"].asString(); + if(!value["Subject"].isNull()) + datapointsObject.subject = value["Subject"].asString(); + if(!value["RuleName"].isNull()) + datapointsObject.ruleName = value["RuleName"].asString(); + if(!value["Resources"].isNull()) + datapointsObject.resources = value["Resources"].asString(); + if(!value["Level"].isNull()) + datapointsObject.level = value["Level"].asString(); + if(!value["GroupId"].isNull()) + datapointsObject.groupId = value["GroupId"].asString(); + if(!value["GroupName"].isNull()) + datapointsObject.groupName = value["GroupName"].asString(); + if(!value["Dimensions"].isNull()) + datapointsObject.dimensions = value["Dimensions"].asString(); + if(!value["Statistics"].isNull()) + datapointsObject.statistics = value["Statistics"].asString(); + if(!value["ComparisonOperator"].isNull()) + datapointsObject.comparisonOperator = value["ComparisonOperator"].asString(); + if(!value["Threshold"].isNull()) + datapointsObject.threshold = value["Threshold"].asString(); + if(!value["DisplayName"].isNull()) + datapointsObject.displayName = value["DisplayName"].asString(); + auto escalationsNode = value["Escalations"]; + auto infoNode = escalationsNode["Info"]; + if(!infoNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); + if(!infoNode["Statistics"].isNull()) + datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString(); + if(!infoNode["Threshold"].isNull()) + datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString(); + if(!infoNode["Times"].isNull()) + datapointsObject.escalations.info.times = infoNode["Times"].asString(); + auto warnNode = escalationsNode["Warn"]; + if(!warnNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); + if(!warnNode["Statistics"].isNull()) + datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString(); + if(!warnNode["Threshold"].isNull()) + datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); + if(!warnNode["Times"].isNull()) + datapointsObject.escalations.warn.times = warnNode["Times"].asString(); + auto criticalNode = escalationsNode["Critical"]; + if(!criticalNode["ComparisonOperator"].isNull()) + datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); + if(!criticalNode["Statistics"].isNull()) + datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); + if(!criticalNode["Threshold"].isNull()) + datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); + if(!criticalNode["Times"].isNull()) + datapointsObject.escalations.critical.times = criticalNode["Times"].asString(); + datapoints_.push_back(datapointsObject); + } + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); + +} + +std::string DescribeAlarmsResult::getMessage()const +{ + return message_; +} + +std::string DescribeAlarmsResult::getTotal()const +{ + return total_; +} + +std::string DescribeAlarmsResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeAlarmsResult::getDatapoints()const +{ + return datapoints_; +} + +int DescribeAlarmsResult::getCode()const +{ + return code_; +} + +bool DescribeAlarmsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeContactRequest.cc b/cms/src/model/DescribeContactRequest.cc new file mode 100644 index 000000000..6cd2f45c8 --- /dev/null +++ b/cms/src/model/DescribeContactRequest.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::DescribeContactRequest; + +DescribeContactRequest::DescribeContactRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeContact") +{} + +DescribeContactRequest::~DescribeContactRequest() +{} + +std::string DescribeContactRequest::getContactName()const +{ + return contactName_; +} + +void DescribeContactRequest::setContactName(const std::string& contactName) +{ + contactName_ = contactName; + setParameter("ContactName", contactName); +} + diff --git a/cms/src/model/DescribeContactResult.cc b/cms/src/model/DescribeContactResult.cc new file mode 100644 index 000000000..b074f4050 --- /dev/null +++ b/cms/src/model/DescribeContactResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeContactResult::DescribeContactResult() : + ServiceResult() +{} + +DescribeContactResult::DescribeContactResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeContactResult::~DescribeContactResult() +{} + +void DescribeContactResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto datapointsNode = value["Datapoints"]; + if(!datapointsNode["Name"].isNull()) + datapoints_.name = datapointsNode["Name"].asString(); + auto allChannels = value["Channels"]["Channel"]; + for (auto value : allChannels) + { + Datapoints::Channel channelObject; + if(!value["Type"].isNull()) + channelObject.type = value["Type"].asString(); + if(!value["Value"].isNull()) + channelObject.value = value["Value"].asString(); + datapoints_.channels.push_back(channelObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeContactResult::getMessage()const +{ + return message_; +} + +DescribeContactResult::Datapoints DescribeContactResult::getDatapoints()const +{ + return datapoints_; +} + +int DescribeContactResult::getCode()const +{ + return code_; +} + +bool DescribeContactResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeEventRuleRequest.cc b/cms/src/model/DescribeEventRuleRequest.cc new file mode 100644 index 000000000..bec1314c7 --- /dev/null +++ b/cms/src/model/DescribeEventRuleRequest.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::DescribeEventRuleRequest; + +DescribeEventRuleRequest::DescribeEventRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeEventRule") +{} + +DescribeEventRuleRequest::~DescribeEventRuleRequest() +{} + +std::string DescribeEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/DescribeEventRuleResult.cc b/cms/src/model/DescribeEventRuleResult.cc new file mode 100644 index 000000000..2f40a3d07 --- /dev/null +++ b/cms/src/model/DescribeEventRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeEventRuleResult::DescribeEventRuleResult() : + ServiceResult() +{} + +DescribeEventRuleResult::DescribeEventRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventRuleResult::~DescribeEventRuleResult() +{} + +void DescribeEventRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["EventType"].isNull()) + result_.eventType = resultNode["EventType"].asString(); + if(!resultNode["GroupId"].isNull()) + result_.groupId = resultNode["GroupId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + auto eventPatternNode = resultNode["EventPattern"]; + if(!eventPatternNode["Product"].isNull()) + result_.eventPattern.product = eventPatternNode["Product"].asString(); + auto allNameList = eventPatternNode["NameList"]["NameList"]; + for (auto value : allNameList) + result_.eventPattern.nameList.push_back(value.asString()); + auto allStatusList = eventPatternNode["StatusList"]["StatusList"]; + for (auto value : allStatusList) + result_.eventPattern.statusList.push_back(value.asString()); + auto allLevelList = eventPatternNode["LevelList"]["LevelList"]; + for (auto value : allLevelList) + result_.eventPattern.levelList.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 DescribeEventRuleResult::getMessage()const +{ + return message_; +} + +std::string DescribeEventRuleResult::getCode()const +{ + return code_; +} + +bool DescribeEventRuleResult::getSuccess()const +{ + return success_; +} + +DescribeEventRuleResult::Result DescribeEventRuleResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/DescribeISPAreaCityRequest.cc b/cms/src/model/DescribeISPAreaCityRequest.cc new file mode 100644 index 000000000..a823d01bf --- /dev/null +++ b/cms/src/model/DescribeISPAreaCityRequest.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::DescribeISPAreaCityRequest; + +DescribeISPAreaCityRequest::DescribeISPAreaCityRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeISPAreaCity") +{} + +DescribeISPAreaCityRequest::~DescribeISPAreaCityRequest() +{} + +std::string DescribeISPAreaCityRequest::getCity()const +{ + return city_; +} + +void DescribeISPAreaCityRequest::setCity(const std::string& city) +{ + city_ = city; + setParameter("City", city); +} + +std::string DescribeISPAreaCityRequest::getIsp()const +{ + return isp_; +} + +void DescribeISPAreaCityRequest::setIsp(const std::string& isp) +{ + isp_ = isp; + setParameter("Isp", isp); +} + diff --git a/cms/src/model/DescribeISPAreaCityResult.cc b/cms/src/model/DescribeISPAreaCityResult.cc new file mode 100644 index 000000000..c5a014bff --- /dev/null +++ b/cms/src/model/DescribeISPAreaCityResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeISPAreaCityResult::DescribeISPAreaCityResult() : + ServiceResult() +{} + +DescribeISPAreaCityResult::DescribeISPAreaCityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeISPAreaCityResult::~DescribeISPAreaCityResult() +{} + +void DescribeISPAreaCityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeISPAreaCityResult::getMessage()const +{ + return message_; +} + +std::string DescribeISPAreaCityResult::getData()const +{ + return data_; +} + +std::string DescribeISPAreaCityResult::getCode()const +{ + return code_; +} + +std::string DescribeISPAreaCityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeTaskDetailRequest.cc b/cms/src/model/DescribeTaskDetailRequest.cc new file mode 100644 index 000000000..7d5b5d642 --- /dev/null +++ b/cms/src/model/DescribeTaskDetailRequest.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::DescribeTaskDetailRequest; + +DescribeTaskDetailRequest::DescribeTaskDetailRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeTaskDetail") +{} + +DescribeTaskDetailRequest::~DescribeTaskDetailRequest() +{} + +std::string DescribeTaskDetailRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeTaskDetailRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/DescribeTaskDetailResult.cc b/cms/src/model/DescribeTaskDetailResult.cc new file mode 100644 index 000000000..f63abb2cc --- /dev/null +++ b/cms/src/model/DescribeTaskDetailResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeTaskDetailResult::DescribeTaskDetailResult() : + ServiceResult() +{} + +DescribeTaskDetailResult::DescribeTaskDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTaskDetailResult::~DescribeTaskDetailResult() +{} + +void DescribeTaskDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeTaskDetailResult::getMessage()const +{ + return message_; +} + +std::string DescribeTaskDetailResult::getData()const +{ + return data_; +} + +std::string DescribeTaskDetailResult::getCode()const +{ + return code_; +} + +std::string DescribeTaskDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeTasksRequest.cc b/cms/src/model/DescribeTasksRequest.cc new file mode 100644 index 000000000..c52539d79 --- /dev/null +++ b/cms/src/model/DescribeTasksRequest.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::Cms::Model::DescribeTasksRequest; + +DescribeTasksRequest::DescribeTasksRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeTasks") +{} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + +std::string DescribeTasksRequest::getTaskType()const +{ + return taskType_; +} + +void DescribeTasksRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +int DescribeTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeTasksRequest::getPage()const +{ + return page_; +} + +void DescribeTasksRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +std::string DescribeTasksRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeTasksRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + +std::string DescribeTasksRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeTasksRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/DescribeTasksResult.cc b/cms/src/model/DescribeTasksResult.cc new file mode 100644 index 000000000..b86ed169a --- /dev/null +++ b/cms/src/model/DescribeTasksResult.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::Cms; +using namespace AlibabaCloud::Cms::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()); + 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(); + 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 DescribeTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeTasksResult::getMessage()const +{ + return message_; +} + +int DescribeTasksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeTasksResult::getData()const +{ + return data_; +} + +std::string DescribeTasksResult::getCode()const +{ + return code_; +} + +std::string DescribeTasksResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableActiceAlertRequest.cc b/cms/src/model/DisableActiceAlertRequest.cc deleted file mode 100644 index 71f6e5bf0..000000000 --- a/cms/src/model/DisableActiceAlertRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cms::Model::DisableActiceAlertRequest; - -DisableActiceAlertRequest::DisableActiceAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "DisableActiceAlert") -{} - -DisableActiceAlertRequest::~DisableActiceAlertRequest() -{} - -std::string DisableActiceAlertRequest::getProduct()const -{ - return product_; -} - -void DisableActiceAlertRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - -std::string DisableActiceAlertRequest::getUserId()const -{ - return userId_; -} - -void DisableActiceAlertRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - diff --git a/cms/src/model/DisableActiveAlertRequest.cc b/cms/src/model/DisableActiveAlertRequest.cc index 9fb13f9aa..571b64c28 100644 --- a/cms/src/model/DisableActiveAlertRequest.cc +++ b/cms/src/model/DisableActiveAlertRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::DisableActiveAlertRequest; DisableActiveAlertRequest::DisableActiveAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "DisableActiveAlert") + RpcServiceRequest("cms", "2018-03-08", "DisableActiveAlert") {} DisableActiveAlertRequest::~DisableActiveAlertRequest() diff --git a/cms/src/model/DisableActiveAlertResult.cc b/cms/src/model/DisableActiveAlertResult.cc index 6e3479596..8e73969e6 100644 --- a/cms/src/model/DisableActiveAlertResult.cc +++ b/cms/src/model/DisableActiveAlertResult.cc @@ -40,27 +40,27 @@ void DisableActiveAlertResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 DisableActiveAlertResult::getMessage()const -{ - return message_; -} - -std::string DisableActiveAlertResult::getCode()const -{ - return code_; -} - -bool DisableActiveAlertResult::getSuccess()const -{ - return success_; -} - +std::string DisableActiveAlertResult::getMessage()const +{ + return message_; +} + +std::string DisableActiveAlertResult::getCode()const +{ + return code_; +} + +bool DisableActiveAlertResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableAlarmRequest.cc b/cms/src/model/DisableAlarmRequest.cc index a5226b751..f8d18d6d7 100644 --- a/cms/src/model/DisableAlarmRequest.cc +++ b/cms/src/model/DisableAlarmRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::DisableAlarmRequest; DisableAlarmRequest::DisableAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "DisableAlarm") + RpcServiceRequest("cms", "2018-03-08", "DisableAlarm") {} DisableAlarmRequest::~DisableAlarmRequest() {} -std::string DisableAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void DisableAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - std::string DisableAlarmRequest::getId()const { return id_; diff --git a/cms/src/model/DisableAlarmResult.cc b/cms/src/model/DisableAlarmResult.cc index e47c05913..9bc285a75 100644 --- a/cms/src/model/DisableAlarmResult.cc +++ b/cms/src/model/DisableAlarmResult.cc @@ -40,27 +40,27 @@ void DisableAlarmResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 DisableAlarmResult::getMessage()const -{ - return message_; -} - -std::string DisableAlarmResult::getCode()const -{ - return code_; -} - -bool DisableAlarmResult::getSuccess()const -{ - return success_; -} - +std::string DisableAlarmResult::getMessage()const +{ + return message_; +} + +std::string DisableAlarmResult::getCode()const +{ + return code_; +} + +bool DisableAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableEventRuleRequest.cc b/cms/src/model/DisableEventRuleRequest.cc new file mode 100644 index 000000000..38220c48d --- /dev/null +++ b/cms/src/model/DisableEventRuleRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::DisableEventRuleRequest; + +DisableEventRuleRequest::DisableEventRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "DisableEventRule") +{} + +DisableEventRuleRequest::~DisableEventRuleRequest() +{} + +std::vector DisableEventRuleRequest::getRuleNames()const +{ + return ruleNames_; +} + +void DisableEventRuleRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int i = 0; i!= ruleNames.size(); i++) + setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); +} + +std::string DisableEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void DisableEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/EnableActiceAlertResult.cc b/cms/src/model/DisableEventRuleResult.cc similarity index 71% rename from cms/src/model/EnableActiceAlertResult.cc rename to cms/src/model/DisableEventRuleResult.cc index 3fde1dbf3..5dc8b2499 100644 --- a/cms/src/model/EnableActiceAlertResult.cc +++ b/cms/src/model/DisableEventRuleResult.cc @@ -14,53 +14,53 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -EnableActiceAlertResult::EnableActiceAlertResult() : +DisableEventRuleResult::DisableEventRuleResult() : ServiceResult() {} -EnableActiceAlertResult::EnableActiceAlertResult(const std::string &payload) : +DisableEventRuleResult::DisableEventRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -EnableActiceAlertResult::~EnableActiceAlertResult() +DisableEventRuleResult::~DisableEventRuleResult() {} -void EnableActiceAlertResult::parse(const std::string &payload) +void DisableEventRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].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 EnableActiceAlertResult::getMessage()const -{ - return message_; -} - -std::string EnableActiceAlertResult::getCode()const -{ - return code_; -} - -bool EnableActiceAlertResult::getSuccess()const -{ - return success_; -} - +std::string DisableEventRuleResult::getMessage()const +{ + return message_; +} + +std::string DisableEventRuleResult::getCode()const +{ + return code_; +} + +bool DisableEventRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableActiveAlertRequest.cc b/cms/src/model/EnableActiveAlertRequest.cc index 89ae34c29..fedd5d786 100644 --- a/cms/src/model/EnableActiveAlertRequest.cc +++ b/cms/src/model/EnableActiveAlertRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::EnableActiveAlertRequest; EnableActiveAlertRequest::EnableActiveAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "EnableActiveAlert") + RpcServiceRequest("cms", "2018-03-08", "EnableActiveAlert") {} EnableActiveAlertRequest::~EnableActiveAlertRequest() diff --git a/cms/src/model/EnableActiveAlertResult.cc b/cms/src/model/EnableActiveAlertResult.cc index ca76372ae..afcecca42 100644 --- a/cms/src/model/EnableActiveAlertResult.cc +++ b/cms/src/model/EnableActiveAlertResult.cc @@ -40,27 +40,27 @@ void EnableActiveAlertResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 EnableActiveAlertResult::getMessage()const -{ - return message_; -} - -std::string EnableActiveAlertResult::getCode()const -{ - return code_; -} - -bool EnableActiveAlertResult::getSuccess()const -{ - return success_; -} - +std::string EnableActiveAlertResult::getMessage()const +{ + return message_; +} + +std::string EnableActiveAlertResult::getCode()const +{ + return code_; +} + +bool EnableActiveAlertResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableAlarmRequest.cc b/cms/src/model/EnableAlarmRequest.cc index 871fa2f89..bd4b9bae4 100644 --- a/cms/src/model/EnableAlarmRequest.cc +++ b/cms/src/model/EnableAlarmRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::EnableAlarmRequest; EnableAlarmRequest::EnableAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "EnableAlarm") + RpcServiceRequest("cms", "2018-03-08", "EnableAlarm") {} EnableAlarmRequest::~EnableAlarmRequest() {} -std::string EnableAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void EnableAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - std::string EnableAlarmRequest::getId()const { return id_; diff --git a/cms/src/model/EnableAlarmResult.cc b/cms/src/model/EnableAlarmResult.cc index 81f04bd40..39dc060f6 100644 --- a/cms/src/model/EnableAlarmResult.cc +++ b/cms/src/model/EnableAlarmResult.cc @@ -40,27 +40,27 @@ void EnableAlarmResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 EnableAlarmResult::getMessage()const -{ - return message_; -} - -std::string EnableAlarmResult::getCode()const -{ - return code_; -} - -bool EnableAlarmResult::getSuccess()const -{ - return success_; -} - +std::string EnableAlarmResult::getMessage()const +{ + return message_; +} + +std::string EnableAlarmResult::getCode()const +{ + return code_; +} + +bool EnableAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableEventRuleRequest.cc b/cms/src/model/EnableEventRuleRequest.cc new file mode 100644 index 000000000..3127b62a1 --- /dev/null +++ b/cms/src/model/EnableEventRuleRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::EnableEventRuleRequest; + +EnableEventRuleRequest::EnableEventRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "EnableEventRule") +{} + +EnableEventRuleRequest::~EnableEventRuleRequest() +{} + +std::vector EnableEventRuleRequest::getRuleNames()const +{ + return ruleNames_; +} + +void EnableEventRuleRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int i = 0; i!= ruleNames.size(); i++) + setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); +} + +std::string EnableEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void EnableEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/EnableEventRuleResult.cc b/cms/src/model/EnableEventRuleResult.cc new file mode 100644 index 000000000..78ad6cf74 --- /dev/null +++ b/cms/src/model/EnableEventRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +EnableEventRuleResult::EnableEventRuleResult() : + ServiceResult() +{} + +EnableEventRuleResult::EnableEventRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableEventRuleResult::~EnableEventRuleResult() +{} + +void EnableEventRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string EnableEventRuleResult::getMessage()const +{ + return message_; +} + +std::string EnableEventRuleResult::getCode()const +{ + return code_; +} + +bool EnableEventRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutSystemEventRequest.cc b/cms/src/model/GetContactsRequest.cc similarity index 56% rename from cms/src/model/PutSystemEventRequest.cc rename to cms/src/model/GetContactsRequest.cc index 65543d1ab..2754625b2 100644 --- a/cms/src/model/PutSystemEventRequest.cc +++ b/cms/src/model/GetContactsRequest.cc @@ -14,25 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::PutSystemEventRequest; +using AlibabaCloud::Cms::Model::GetContactsRequest; -PutSystemEventRequest::PutSystemEventRequest() : - RpcServiceRequest("cms", "2017-03-01", "PutSystemEvent") +GetContactsRequest::GetContactsRequest() : + RpcServiceRequest("cms", "2018-03-08", "GetContacts") {} -PutSystemEventRequest::~PutSystemEventRequest() +GetContactsRequest::~GetContactsRequest() {} -std::string PutSystemEventRequest::getEventInfo()const +std::string GetContactsRequest::getGroupName()const { - return eventInfo_; + return groupName_; } -void PutSystemEventRequest::setEventInfo(const std::string& eventInfo) +void GetContactsRequest::setGroupName(const std::string& groupName) { - eventInfo_ = eventInfo; - setParameter("EventInfo", eventInfo); + groupName_ = groupName; + setParameter("GroupName", groupName); } diff --git a/cms/src/model/GetContactsResult.cc b/cms/src/model/GetContactsResult.cc new file mode 100644 index 000000000..21ab1ebd9 --- /dev/null +++ b/cms/src/model/GetContactsResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +GetContactsResult::GetContactsResult() : + ServiceResult() +{} + +GetContactsResult::GetContactsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactsResult::~GetContactsResult() +{} + +void GetContactsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto datapointsNode = value["Datapoints"]; + if(!datapointsNode["Name"].isNull()) + datapoints_.name = datapointsNode["Name"].asString(); + auto allContacts = datapointsNode["Contacts"]["Contact"]; + for (auto value : allContacts) + datapoints_.contacts.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetContactsResult::getMessage()const +{ + return message_; +} + +int GetContactsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetContactsResult::Datapoints GetContactsResult::getDatapoints()const +{ + return datapoints_; +} + +int GetContactsResult::getCode()const +{ + return code_; +} + +bool GetContactsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/GetMonitoringTemplateRequest.cc b/cms/src/model/GetMonitoringTemplateRequest.cc new file mode 100644 index 000000000..4cf4fd436 --- /dev/null +++ b/cms/src/model/GetMonitoringTemplateRequest.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::GetMonitoringTemplateRequest; + +GetMonitoringTemplateRequest::GetMonitoringTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "GetMonitoringTemplate") +{} + +GetMonitoringTemplateRequest::~GetMonitoringTemplateRequest() +{} + +std::string GetMonitoringTemplateRequest::getName()const +{ + return name_; +} + +void GetMonitoringTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string GetMonitoringTemplateRequest::getId()const +{ + return id_; +} + +void GetMonitoringTemplateRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/cms/src/model/GetMonitoringTemplateResult.cc b/cms/src/model/GetMonitoringTemplateResult.cc new file mode 100644 index 000000000..6e29777c5 --- /dev/null +++ b/cms/src/model/GetMonitoringTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +GetMonitoringTemplateResult::GetMonitoringTemplateResult() : + ServiceResult() +{} + +GetMonitoringTemplateResult::GetMonitoringTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMonitoringTemplateResult::~GetMonitoringTemplateResult() +{} + +void GetMonitoringTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resourceNode = value["Resource"]; + if(!resourceNode["Name"].isNull()) + resource_.name = resourceNode["Name"].asString(); + if(!resourceNode["Id"].isNull()) + resource_.id = resourceNode["Id"].asString(); + if(!resourceNode["RestVersion"].isNull()) + resource_.restVersion = resourceNode["RestVersion"].asString(); + if(!resourceNode["Namespace"].isNull()) + resource_._namespace = resourceNode["Namespace"].asString(); + if(!resourceNode["Description"].isNull()) + resource_.description = resourceNode["Description"].asString(); + if(!resourceNode["AlertTemplatesJson"].isNull()) + resource_.alertTemplatesJson = resourceNode["AlertTemplatesJson"].asString(); + if(!resourceNode["EventRuleTemplatesJson"].isNull()) + resource_.eventRuleTemplatesJson = resourceNode["EventRuleTemplatesJson"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetMonitoringTemplateResult::Resource GetMonitoringTemplateResult::getResource()const +{ + return resource_; +} + +int GetMonitoringTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMonitoringTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetMonitoringTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/GetMyGroupAlertRequest.cc b/cms/src/model/GetMyGroupAlertRequest.cc new file mode 100644 index 000000000..099f482bd --- /dev/null +++ b/cms/src/model/GetMyGroupAlertRequest.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::GetMyGroupAlertRequest; + +GetMyGroupAlertRequest::GetMyGroupAlertRequest() : + RpcServiceRequest("cms", "2018-03-08", "GetMyGroupAlert") +{} + +GetMyGroupAlertRequest::~GetMyGroupAlertRequest() +{} + +long GetMyGroupAlertRequest::getGroupId()const +{ + return groupId_; +} + +void GetMyGroupAlertRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string GetMyGroupAlertRequest::getAlertName()const +{ + return alertName_; +} + +void GetMyGroupAlertRequest::setAlertName(const std::string& alertName) +{ + alertName_ = alertName; + setParameter("AlertName", alertName); +} + diff --git a/cms/src/model/GetMyGroupAlertResult.cc b/cms/src/model/GetMyGroupAlertResult.cc new file mode 100644 index 000000000..6baa8da69 --- /dev/null +++ b/cms/src/model/GetMyGroupAlertResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +GetMyGroupAlertResult::GetMyGroupAlertResult() : + ServiceResult() +{} + +GetMyGroupAlertResult::GetMyGroupAlertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMyGroupAlertResult::~GetMyGroupAlertResult() +{} + +void GetMyGroupAlertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto groupAlertNode = value["GroupAlert"]; + if(!groupAlertNode["GroupId"].isNull()) + groupAlert_.groupId = groupAlertNode["GroupId"].asString(); + if(!groupAlertNode["AlertName"].isNull()) + groupAlert_.alertName = groupAlertNode["AlertName"].asString(); + if(!groupAlertNode["DisplayName"].isNull()) + groupAlert_.displayName = groupAlertNode["DisplayName"].asString(); + if(!groupAlertNode["Subject"].isNull()) + groupAlert_.subject = groupAlertNode["Subject"].asString(); + if(!groupAlertNode["Webhook"].isNull()) + groupAlert_.webhook = groupAlertNode["Webhook"].asString(); + if(!groupAlertNode["Category"].isNull()) + groupAlert_.category = groupAlertNode["Category"].asString(); + if(!groupAlertNode["Namespace"].isNull()) + groupAlert_._namespace = groupAlertNode["Namespace"].asString(); + if(!groupAlertNode["MetricName"].isNull()) + groupAlert_.metricName = groupAlertNode["MetricName"].asString(); + if(!groupAlertNode["Period"].isNull()) + groupAlert_.period = std::stoi(groupAlertNode["Period"].asString()); + if(!groupAlertNode["State"].isNull()) + groupAlert_.state = groupAlertNode["State"].asString(); + if(!groupAlertNode["Description"].isNull()) + groupAlert_.description = groupAlertNode["Description"].asString(); + if(!groupAlertNode["Enable"].isNull()) + groupAlert_.enable = groupAlertNode["Enable"].asString() == "true"; + if(!groupAlertNode["SilenceTime"].isNull()) + groupAlert_.silenceTime = std::stoi(groupAlertNode["SilenceTime"].asString()); + if(!groupAlertNode["EnableEndTime"].isNull()) + groupAlert_.enableEndTime = groupAlertNode["EnableEndTime"].asString(); + if(!groupAlertNode["EnableStartTime"].isNull()) + groupAlert_.enableStartTime = groupAlertNode["EnableStartTime"].asString(); + if(!groupAlertNode["Selector"].isNull()) + groupAlert_.selector = groupAlertNode["Selector"].asString(); + auto escalationsNode = groupAlertNode["Escalations"]; + auto infoNode = escalationsNode["Info"]; + if(!infoNode["Statistics"].isNull()) + groupAlert_.escalations.info.statistics = infoNode["Statistics"].asString(); + if(!infoNode["ComparisonOperator"].isNull()) + groupAlert_.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); + if(!infoNode["Threshold"].isNull()) + groupAlert_.escalations.info.threshold = infoNode["Threshold"].asString(); + if(!infoNode["Times"].isNull()) + groupAlert_.escalations.info.times = std::stoi(infoNode["Times"].asString()); + auto warnNode = escalationsNode["Warn"]; + if(!warnNode["Statistics"].isNull()) + groupAlert_.escalations.warn.statistics = warnNode["Statistics"].asString(); + if(!warnNode["ComparisonOperator"].isNull()) + groupAlert_.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); + if(!warnNode["Threshold"].isNull()) + groupAlert_.escalations.warn.threshold = warnNode["Threshold"].asString(); + if(!warnNode["Times"].isNull()) + groupAlert_.escalations.warn.times = std::stoi(warnNode["Times"].asString()); + auto criticalNode = escalationsNode["Critical"]; + if(!criticalNode["Statistics"].isNull()) + groupAlert_.escalations.critical.statistics = criticalNode["Statistics"].asString(); + if(!criticalNode["ComparisonOperator"].isNull()) + groupAlert_.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); + if(!criticalNode["Threshold"].isNull()) + groupAlert_.escalations.critical.threshold = criticalNode["Threshold"].asString(); + if(!criticalNode["Times"].isNull()) + groupAlert_.escalations.critical.times = std::stoi(criticalNode["Times"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetMyGroupAlertResult::GroupAlert GetMyGroupAlertResult::getGroupAlert()const +{ + return groupAlert_; +} + +int GetMyGroupAlertResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMyGroupAlertResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetMyGroupAlertResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/GetMyGroupsRequest.cc b/cms/src/model/GetMyGroupsRequest.cc index e4f5e9782..c504584ba 100644 --- a/cms/src/model/GetMyGroupsRequest.cc +++ b/cms/src/model/GetMyGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::GetMyGroupsRequest; GetMyGroupsRequest::GetMyGroupsRequest() : - RpcServiceRequest("cms", "2017-03-01", "GetMyGroups") + RpcServiceRequest("cms", "2018-03-08", "GetMyGroups") {} GetMyGroupsRequest::~GetMyGroupsRequest() @@ -33,7 +33,7 @@ bool GetMyGroupsRequest::getSelectContactGroups()const void GetMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) { selectContactGroups_ = selectContactGroups; - setParameter("SelectContactGroups", std::to_string(selectContactGroups)); + setParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); } std::string GetMyGroupsRequest::getInstanceId()const diff --git a/cms/src/model/GetMyGroupsResult.cc b/cms/src/model/GetMyGroupsResult.cc index 61a211fc2..a6e3f8922 100644 --- a/cms/src/model/GetMyGroupsResult.cc +++ b/cms/src/model/GetMyGroupsResult.cc @@ -40,56 +40,51 @@ void GetMyGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allGroup = value["Group"]; - for (auto value : allGroup) - { - Group groupObject; - if(!value["GroupId"].isNull()) - groupObject.groupId = std::stol(value["GroupId"].asString()); - if(!value["GroupName"].isNull()) - groupObject.groupName = value["GroupName"].asString(); - if(!value["ServiceId"].isNull()) - groupObject.serviceId = std::stol(value["ServiceId"].asString()); - if(!value["BindUrl"].isNull()) - groupObject.bindUrl = value["BindUrl"].asString(); - if(!value["Type"].isNull()) - groupObject.type = value["Type"].asString(); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (auto value : allContactGroups) - { - Group::ContactGroup contactGroupObject; - if(!value["Name"].isNull()) - contactGroupObject.name = value["Name"].asString(); - groupObject.contactGroups.push_back(contactGroupObject); - } - group_.push_back(groupObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + auto groupNode = value["Group"]; + if(!groupNode["GroupId"].isNull()) + group_.groupId = std::stol(groupNode["GroupId"].asString()); + if(!groupNode["GroupName"].isNull()) + group_.groupName = groupNode["GroupName"].asString(); + if(!groupNode["ServiceId"].isNull()) + group_.serviceId = std::stol(groupNode["ServiceId"].asString()); + if(!groupNode["BindUrl"].isNull()) + group_.bindUrl = groupNode["BindUrl"].asString(); + if(!groupNode["Type"].isNull()) + group_.type = groupNode["Type"].asString(); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (auto value : allContactGroups) + { + Group::ContactGroup contactGroupObject; + if(!value["Name"].isNull()) + contactGroupObject.name = value["Name"].asString(); + group_.contactGroups.push_back(contactGroupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -std::vector GetMyGroupsResult::getGroup()const -{ - return group_; -} - -int GetMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string GetMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool GetMyGroupsResult::getSuccess()const -{ - return success_; -} - +GetMyGroupsResult::Group GetMyGroupsResult::getGroup()const +{ + return group_; +} + +int GetMyGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMyGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetMyGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/GetNotifyPolicyRequest.cc b/cms/src/model/GetNotifyPolicyRequest.cc index 7bcaa201e..a8d1fadea 100644 --- a/cms/src/model/GetNotifyPolicyRequest.cc +++ b/cms/src/model/GetNotifyPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::GetNotifyPolicyRequest; GetNotifyPolicyRequest::GetNotifyPolicyRequest() : - RpcServiceRequest("cms", "2017-03-01", "GetNotifyPolicy") + RpcServiceRequest("cms", "2018-03-08", "GetNotifyPolicy") {} GetNotifyPolicyRequest::~GetNotifyPolicyRequest() @@ -47,6 +47,17 @@ void GetNotifyPolicyRequest::setAlertName(const std::string& alertName) setParameter("AlertName", alertName); } +std::string GetNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void GetNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + std::string GetNotifyPolicyRequest::getId()const { return id_; diff --git a/cms/src/model/GetNotifyPolicyResult.cc b/cms/src/model/GetNotifyPolicyResult.cc index e4d94b9f8..0b81dce2e 100644 --- a/cms/src/model/GetNotifyPolicyResult.cc +++ b/cms/src/model/GetNotifyPolicyResult.cc @@ -40,57 +40,47 @@ void GetNotifyPolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResult = value["Result"]; - for (auto value : allResult) - { - Result resultObject; - if(!value["AlertName"].isNull()) - resultObject.alertName = value["AlertName"].asString(); - if(!value["Dimensions"].isNull()) - resultObject.dimensions = value["Dimensions"].asString(); - if(!value["Type"].isNull()) - resultObject.type = value["Type"].asString(); - if(!value["Id"].isNull()) - resultObject.id = value["Id"].asString(); - if(!value["StartTime"].isNull()) - resultObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - resultObject.endTime = std::stol(value["EndTime"].asString()); - result_.push_back(resultObject); - } - 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["traceId"].isNull()) - traceId_ = value["traceId"].asString(); + auto resultNode = value["Result"]; + if(!resultNode["AlertName"].isNull()) + result_.alertName = resultNode["AlertName"].asString(); + if(!resultNode["Dimensions"].isNull()) + result_.dimensions = resultNode["Dimensions"].asString(); + if(!resultNode["Type"].isNull()) + result_.type = resultNode["Type"].asString(); + if(!resultNode["Id"].isNull()) + result_.id = resultNode["Id"].asString(); + if(!resultNode["StartTime"].isNull()) + result_.startTime = std::stol(resultNode["StartTime"].asString()); + if(!resultNode["EndTime"].isNull()) + result_.endTime = std::stol(resultNode["EndTime"].asString()); + if(!resultNode["GroupId"].isNull()) + result_.groupId = resultNode["GroupId"].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(); } -std::string GetNotifyPolicyResult::getMessage()const -{ - return message_; -} - -std::string GetNotifyPolicyResult::getTraceId()const -{ - return traceId_; -} - -std::string GetNotifyPolicyResult::getCode()const -{ - return code_; -} - -std::string GetNotifyPolicyResult::getSuccess()const -{ - return success_; -} - -std::vector GetNotifyPolicyResult::getResult()const -{ - return result_; -} - +std::string GetNotifyPolicyResult::getMessage()const +{ + return message_; +} + +std::string GetNotifyPolicyResult::getCode()const +{ + return code_; +} + +std::string GetNotifyPolicyResult::getSuccess()const +{ + return success_; +} + +GetNotifyPolicyResult::Result GetNotifyPolicyResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/ListActiveAlertRuleRequest.cc b/cms/src/model/ListActiveAlertRuleRequest.cc index a1b4ceb04..2b0637c01 100644 --- a/cms/src/model/ListActiveAlertRuleRequest.cc +++ b/cms/src/model/ListActiveAlertRuleRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListActiveAlertRuleRequest; ListActiveAlertRuleRequest::ListActiveAlertRuleRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListActiveAlertRule") + RpcServiceRequest("cms", "2018-03-08", "ListActiveAlertRule") {} ListActiveAlertRuleRequest::~ListActiveAlertRuleRequest() diff --git a/cms/src/model/ListActiveAlertRuleResult.cc b/cms/src/model/ListActiveAlertRuleResult.cc index c0ca10c4a..3a4dee6ea 100644 --- a/cms/src/model/ListActiveAlertRuleResult.cc +++ b/cms/src/model/ListActiveAlertRuleResult.cc @@ -40,74 +40,74 @@ void ListActiveAlertRuleResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDatapoints = value["Datapoints"]["Alarm"]; - for (auto value : allDatapoints) - { - Alarm datapointsObject; - if(!value["Uuid"].isNull()) - datapointsObject.uuid = value["Uuid"].asString(); - if(!value["Name"].isNull()) - datapointsObject.name = value["Name"].asString(); - if(!value["Namespace"].isNull()) - datapointsObject._namespace = value["Namespace"].asString(); - if(!value["MetricName"].isNull()) - datapointsObject.metricName = value["MetricName"].asString(); - if(!value["Period"].isNull()) - datapointsObject.period = value["Period"].asString(); - if(!value["Statistics"].isNull()) - datapointsObject.statistics = value["Statistics"].asString(); - if(!value["ComparisonOperator"].isNull()) - datapointsObject.comparisonOperator = value["ComparisonOperator"].asString(); - if(!value["Threshold"].isNull()) - datapointsObject.threshold = value["Threshold"].asString(); - if(!value["EvaluationCount"].isNull()) - datapointsObject.evaluationCount = value["EvaluationCount"].asString(); - if(!value["StartTime"].isNull()) - datapointsObject.startTime = value["StartTime"].asString(); - if(!value["EndTime"].isNull()) - datapointsObject.endTime = value["EndTime"].asString(); - if(!value["SilenceTime"].isNull()) - datapointsObject.silenceTime = value["SilenceTime"].asString(); - if(!value["NotifyType"].isNull()) - datapointsObject.notifyType = value["NotifyType"].asString(); - if(!value["Enable"].isNull()) - datapointsObject.enable = value["Enable"].asString(); - if(!value["State"].isNull()) - datapointsObject.state = value["State"].asString(); - if(!value["ContactGroups"].isNull()) - datapointsObject.contactGroups = value["ContactGroups"].asString(); - if(!value["Webhook"].isNull()) - datapointsObject.webhook = value["Webhook"].asString(); - if(!value["RuleName"].isNull()) - datapointsObject.ruleName = value["RuleName"].asString(); - datapoints_.push_back(datapointsObject); - } - 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(); + auto allDatapoints = value["Datapoints"]["Alarm"]; + for (auto value : allDatapoints) + { + Alarm datapointsObject; + if(!value["Uuid"].isNull()) + datapointsObject.uuid = value["Uuid"].asString(); + if(!value["Name"].isNull()) + datapointsObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + datapointsObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + datapointsObject.metricName = value["MetricName"].asString(); + if(!value["Period"].isNull()) + datapointsObject.period = value["Period"].asString(); + if(!value["Statistics"].isNull()) + datapointsObject.statistics = value["Statistics"].asString(); + if(!value["ComparisonOperator"].isNull()) + datapointsObject.comparisonOperator = value["ComparisonOperator"].asString(); + if(!value["Threshold"].isNull()) + datapointsObject.threshold = value["Threshold"].asString(); + if(!value["EvaluationCount"].isNull()) + datapointsObject.evaluationCount = value["EvaluationCount"].asString(); + if(!value["StartTime"].isNull()) + datapointsObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + datapointsObject.endTime = value["EndTime"].asString(); + if(!value["SilenceTime"].isNull()) + datapointsObject.silenceTime = value["SilenceTime"].asString(); + if(!value["NotifyType"].isNull()) + datapointsObject.notifyType = value["NotifyType"].asString(); + if(!value["Enable"].isNull()) + datapointsObject.enable = value["Enable"].asString(); + if(!value["State"].isNull()) + datapointsObject.state = value["State"].asString(); + if(!value["ContactGroups"].isNull()) + datapointsObject.contactGroups = value["ContactGroups"].asString(); + if(!value["Webhook"].isNull()) + datapointsObject.webhook = value["Webhook"].asString(); + if(!value["RuleName"].isNull()) + datapointsObject.ruleName = value["RuleName"].asString(); + datapoints_.push_back(datapointsObject); + } + 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 ListActiveAlertRuleResult::getMessage()const -{ - return message_; -} - -std::vector ListActiveAlertRuleResult::getDatapoints()const -{ - return datapoints_; -} - -std::string ListActiveAlertRuleResult::getCode()const -{ - return code_; -} - -bool ListActiveAlertRuleResult::getSuccess()const -{ - return success_; -} - +std::string ListActiveAlertRuleResult::getMessage()const +{ + return message_; +} + +std::vector ListActiveAlertRuleResult::getDatapoints()const +{ + return datapoints_; +} + +std::string ListActiveAlertRuleResult::getCode()const +{ + return code_; +} + +bool ListActiveAlertRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListAlarmHistoryRequest.cc b/cms/src/model/ListAlarmHistoryRequest.cc index def2a4e9c..c4bee632b 100644 --- a/cms/src/model/ListAlarmHistoryRequest.cc +++ b/cms/src/model/ListAlarmHistoryRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListAlarmHistoryRequest; ListAlarmHistoryRequest::ListAlarmHistoryRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListAlarmHistory") + RpcServiceRequest("cms", "2018-03-08", "ListAlarmHistory") {} ListAlarmHistoryRequest::~ListAlarmHistoryRequest() @@ -36,17 +36,6 @@ void ListAlarmHistoryRequest::setCursor(const std::string& cursor) setParameter("Cursor", cursor); } -std::string ListAlarmHistoryRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void ListAlarmHistoryRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - int ListAlarmHistoryRequest::getSize()const { return size_; diff --git a/cms/src/model/ListAlarmHistoryResult.cc b/cms/src/model/ListAlarmHistoryResult.cc index 7aec06e6c..e33dd7520 100644 --- a/cms/src/model/ListAlarmHistoryResult.cc +++ b/cms/src/model/ListAlarmHistoryResult.cc @@ -40,69 +40,71 @@ void ListAlarmHistoryResult::parse(const std::string &payload) reader.parse(payload, value); 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["Name"].isNull()) - alarmHistoryListObject.name = value["Name"].asString(); - if(!value["Namespace"].isNull()) - alarmHistoryListObject._namespace = value["Namespace"].asString(); - if(!value["MetricName"].isNull()) - alarmHistoryListObject.metricName = value["MetricName"].asString(); - if(!value["Dimension"].isNull()) - alarmHistoryListObject.dimension = value["Dimension"].asString(); - if(!value["EvaluationCount"].isNull()) - alarmHistoryListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); - if(!value["Value"].isNull()) - alarmHistoryListObject.value = value["Value"].asString(); - if(!value["AlarmTime"].isNull()) - alarmHistoryListObject.alarmTime = std::stol(value["AlarmTime"].asString()); - if(!value["LastTime"].isNull()) - alarmHistoryListObject.lastTime = std::stol(value["LastTime"].asString()); - if(!value["State"].isNull()) - alarmHistoryListObject.state = value["State"].asString(); - if(!value["Status"].isNull()) - alarmHistoryListObject.status = std::stoi(value["Status"].asString()); - if(!value["ContactGroups"].isNull()) - alarmHistoryListObject.contactGroups = value["ContactGroups"].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["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); + auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"]; + for (auto value : allAlarmHistoryList) + { + AlarmHistory alarmHistoryListObject; + if(!value["Id"].isNull()) + alarmHistoryListObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + alarmHistoryListObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + alarmHistoryListObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + alarmHistoryListObject.metricName = value["MetricName"].asString(); + if(!value["Dimension"].isNull()) + alarmHistoryListObject.dimension = value["Dimension"].asString(); + if(!value["EvaluationCount"].isNull()) + alarmHistoryListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); + if(!value["Value"].isNull()) + alarmHistoryListObject.value = value["Value"].asString(); + if(!value["AlarmTime"].isNull()) + alarmHistoryListObject.alarmTime = std::stol(value["AlarmTime"].asString()); + if(!value["LastTime"].isNull()) + alarmHistoryListObject.lastTime = std::stol(value["LastTime"].asString()); + if(!value["State"].isNull()) + alarmHistoryListObject.state = value["State"].asString(); + if(!value["Status"].isNull()) + alarmHistoryListObject.status = std::stoi(value["Status"].asString()); + if(!value["ContactGroups"].isNull()) + alarmHistoryListObject.contactGroups = value["ContactGroups"].asString(); + if(!value["InstanceName"].isNull()) + alarmHistoryListObject.instanceName = value["InstanceName"].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["Cursor"].isNull()) + cursor_ = value["Cursor"].asString(); } -std::vector ListAlarmHistoryResult::getAlarmHistoryList()const -{ - return alarmHistoryList_; -} - -std::string ListAlarmHistoryResult::getMessage()const -{ - return message_; -} - -std::string ListAlarmHistoryResult::getCursor()const -{ - return cursor_; -} - -std::string ListAlarmHistoryResult::getCode()const -{ - return code_; -} - -bool ListAlarmHistoryResult::getSuccess()const -{ - return success_; -} - +std::vector ListAlarmHistoryResult::getAlarmHistoryList()const +{ + return alarmHistoryList_; +} + +std::string ListAlarmHistoryResult::getMessage()const +{ + return message_; +} + +std::string ListAlarmHistoryResult::getCursor()const +{ + return cursor_; +} + +std::string ListAlarmHistoryResult::getCode()const +{ + return code_; +} + +bool ListAlarmHistoryResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListAlarmRequest.cc b/cms/src/model/ListAlarmRequest.cc index 51b74518e..30c25e22c 100644 --- a/cms/src/model/ListAlarmRequest.cc +++ b/cms/src/model/ListAlarmRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListAlarmRequest; ListAlarmRequest::ListAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListAlarm") + RpcServiceRequest("cms", "2018-03-08", "ListAlarm") {} ListAlarmRequest::~ListAlarmRequest() @@ -33,18 +33,7 @@ bool ListAlarmRequest::getIsEnable()const void ListAlarmRequest::setIsEnable(bool isEnable) { isEnable_ = isEnable; - setParameter("IsEnable", std::to_string(isEnable)); -} - -std::string ListAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void ListAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); + setParameter("IsEnable", isEnable ? "true" : "false"); } std::string ListAlarmRequest::getName()const diff --git a/cms/src/model/ListAlarmResult.cc b/cms/src/model/ListAlarmResult.cc index 825ff925b..b68e858e6 100644 --- a/cms/src/model/ListAlarmResult.cc +++ b/cms/src/model/ListAlarmResult.cc @@ -40,88 +40,88 @@ void ListAlarmResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allAlarmList = value["AlarmList"]["Alarm"]; - for (auto value : allAlarmList) - { - Alarm alarmListObject; - if(!value["Id"].isNull()) - alarmListObject.id = value["Id"].asString(); - if(!value["Name"].isNull()) - alarmListObject.name = value["Name"].asString(); - if(!value["Namespace"].isNull()) - alarmListObject._namespace = value["Namespace"].asString(); - if(!value["MetricName"].isNull()) - alarmListObject.metricName = value["MetricName"].asString(); - if(!value["Dimensions"].isNull()) - alarmListObject.dimensions = value["Dimensions"].asString(); - if(!value["Period"].isNull()) - alarmListObject.period = std::stoi(value["Period"].asString()); - if(!value["Statistics"].isNull()) - alarmListObject.statistics = value["Statistics"].asString(); - if(!value["ComparisonOperator"].isNull()) - alarmListObject.comparisonOperator = value["ComparisonOperator"].asString(); - if(!value["Threshold"].isNull()) - alarmListObject.threshold = value["Threshold"].asString(); - if(!value["EvaluationCount"].isNull()) - alarmListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); - if(!value["StartTime"].isNull()) - alarmListObject.startTime = std::stoi(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - alarmListObject.endTime = std::stoi(value["EndTime"].asString()); - if(!value["SilenceTime"].isNull()) - alarmListObject.silenceTime = std::stoi(value["SilenceTime"].asString()); - if(!value["NotifyType"].isNull()) - alarmListObject.notifyType = std::stoi(value["NotifyType"].asString()); - if(!value["Enable"].isNull()) - alarmListObject.enable = value["Enable"].asString() == "true"; - if(!value["State"].isNull()) - alarmListObject.state = value["State"].asString(); - if(!value["ContactGroups"].isNull()) - alarmListObject.contactGroups = value["ContactGroups"].asString(); - if(!value["Webhook"].isNull()) - alarmListObject.webhook = value["Webhook"].asString(); - alarmList_.push_back(alarmListObject); - } - 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["NextToken"].isNull()) - nextToken_ = std::stoi(value["NextToken"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); + auto allAlarmList = value["AlarmList"]["Alarm"]; + for (auto value : allAlarmList) + { + Alarm alarmListObject; + if(!value["Id"].isNull()) + alarmListObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + alarmListObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + alarmListObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + alarmListObject.metricName = value["MetricName"].asString(); + if(!value["Dimensions"].isNull()) + alarmListObject.dimensions = value["Dimensions"].asString(); + if(!value["Period"].isNull()) + alarmListObject.period = std::stoi(value["Period"].asString()); + if(!value["Statistics"].isNull()) + alarmListObject.statistics = value["Statistics"].asString(); + if(!value["ComparisonOperator"].isNull()) + alarmListObject.comparisonOperator = value["ComparisonOperator"].asString(); + if(!value["Threshold"].isNull()) + alarmListObject.threshold = value["Threshold"].asString(); + if(!value["EvaluationCount"].isNull()) + alarmListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); + if(!value["StartTime"].isNull()) + alarmListObject.startTime = std::stoi(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + alarmListObject.endTime = std::stoi(value["EndTime"].asString()); + if(!value["SilenceTime"].isNull()) + alarmListObject.silenceTime = std::stoi(value["SilenceTime"].asString()); + if(!value["NotifyType"].isNull()) + alarmListObject.notifyType = std::stoi(value["NotifyType"].asString()); + if(!value["Enable"].isNull()) + alarmListObject.enable = value["Enable"].asString() == "true"; + if(!value["State"].isNull()) + alarmListObject.state = value["State"].asString(); + if(!value["ContactGroups"].isNull()) + alarmListObject.contactGroups = value["ContactGroups"].asString(); + if(!value["Webhook"].isNull()) + alarmListObject.webhook = value["Webhook"].asString(); + alarmList_.push_back(alarmListObject); + } + 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["NextToken"].isNull()) + nextToken_ = std::stoi(value["NextToken"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } -std::string ListAlarmResult::getMessage()const -{ - return message_; -} - -int ListAlarmResult::getNextToken()const -{ - return nextToken_; -} - -std::vector ListAlarmResult::getAlarmList()const -{ - return alarmList_; -} - -int ListAlarmResult::getTotal()const -{ - return total_; -} - -std::string ListAlarmResult::getCode()const -{ - return code_; -} - -bool ListAlarmResult::getSuccess()const -{ - return success_; -} - +std::string ListAlarmResult::getMessage()const +{ + return message_; +} + +int ListAlarmResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListAlarmResult::getAlarmList()const +{ + return alarmList_; +} + +int ListAlarmResult::getTotal()const +{ + return total_; +} + +std::string ListAlarmResult::getCode()const +{ + return code_; +} + +bool ListAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListContactGroupRequest.cc b/cms/src/model/ListContactGroupRequest.cc index faeecfedc..f9bb676e9 100644 --- a/cms/src/model/ListContactGroupRequest.cc +++ b/cms/src/model/ListContactGroupRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::ListContactGroupRequest; ListContactGroupRequest::ListContactGroupRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListContactGroup") + RpcServiceRequest("cms", "2018-03-08", "ListContactGroup") {} ListContactGroupRequest::~ListContactGroupRequest() {} -std::string ListContactGroupRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void ListContactGroupRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - int ListContactGroupRequest::getPageSize()const { return pageSize_; diff --git a/cms/src/model/ListContactGroupResult.cc b/cms/src/model/ListContactGroupResult.cc index b7ee64c69..a1f29d386 100644 --- a/cms/src/model/ListContactGroupResult.cc +++ b/cms/src/model/ListContactGroupResult.cc @@ -40,49 +40,49 @@ void ListContactGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (const auto &item : allContactGroups) - contactGroups_.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["NextToken"].isNull()) - nextToken_ = std::stoi(value["NextToken"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (const auto &item : allContactGroups) + contactGroups_.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["NextToken"].isNull()) + nextToken_ = std::stoi(value["NextToken"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } -std::vector ListContactGroupResult::getContactGroups()const -{ - return contactGroups_; -} - -std::string ListContactGroupResult::getMessage()const -{ - return message_; -} - -int ListContactGroupResult::getNextToken()const -{ - return nextToken_; -} - -int ListContactGroupResult::getTotal()const -{ - return total_; -} - -std::string ListContactGroupResult::getCode()const -{ - return code_; -} - -bool ListContactGroupResult::getSuccess()const -{ - return success_; -} - +std::vector ListContactGroupResult::getContactGroups()const +{ + return contactGroups_; +} + +std::string ListContactGroupResult::getMessage()const +{ + return message_; +} + +int ListContactGroupResult::getNextToken()const +{ + return nextToken_; +} + +int ListContactGroupResult::getTotal()const +{ + return total_; +} + +std::string ListContactGroupResult::getCode()const +{ + return code_; +} + +bool ListContactGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListEventRulesRequest.cc b/cms/src/model/ListEventRulesRequest.cc new file mode 100644 index 000000000..b683328a3 --- /dev/null +++ b/cms/src/model/ListEventRulesRequest.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::Cms::Model::ListEventRulesRequest; + +ListEventRulesRequest::ListEventRulesRequest() : + RpcServiceRequest("cms", "2018-03-08", "ListEventRules") +{} + +ListEventRulesRequest::~ListEventRulesRequest() +{} + +std::string ListEventRulesRequest::getGroupId()const +{ + return groupId_; +} + +void ListEventRulesRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string ListEventRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListEventRulesRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +std::string ListEventRulesRequest::getNamePrefix()const +{ + return namePrefix_; +} + +void ListEventRulesRequest::setNamePrefix(const std::string& namePrefix) +{ + namePrefix_ = namePrefix; + setParameter("NamePrefix", namePrefix); +} + +std::string ListEventRulesRequest::getPage()const +{ + return page_; +} + +void ListEventRulesRequest::setPage(const std::string& page) +{ + page_ = page; + setParameter("Page", page); +} + diff --git a/cms/src/model/ListEventRulesResult.cc b/cms/src/model/ListEventRulesResult.cc new file mode 100644 index 000000000..da3da383c --- /dev/null +++ b/cms/src/model/ListEventRulesResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ListEventRulesResult::ListEventRulesResult() : + ServiceResult() +{} + +ListEventRulesResult::ListEventRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEventRulesResult::~ListEventRulesResult() +{} + +void ListEventRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDatapoints = value["Datapoints"]["EventRule"]; + for (auto value : allDatapoints) + { + EventRule datapointsObject; + if(!value["Name"].isNull()) + datapointsObject.name = value["Name"].asString(); + if(!value["GroupId"].isNull()) + datapointsObject.groupId = value["GroupId"].asString(); + if(!value["EventType"].isNull()) + datapointsObject.eventType = value["EventType"].asString(); + if(!value["State"].isNull()) + datapointsObject.state = value["State"].asString(); + if(!value["Description"].isNull()) + datapointsObject.description = value["Description"].asString(); + auto allEventPattern = value["EventPattern"]["EventPatternItem"]; + for (auto value : allEventPattern) + { + EventRule::EventPatternItem eventPatternObject; + if(!value["Product"].isNull()) + eventPatternObject.product = value["Product"].asString(); + auto allNameList = value["NameList"]["NameList"]; + for (auto value : allNameList) + eventPatternObject.nameList.push_back(value.asString()); + auto allStatusList = value["StatusList"]["StatusList"]; + for (auto value : allStatusList) + eventPatternObject.statusList.push_back(value.asString()); + auto allLevelList = value["LevelList"]["LevelList"]; + for (auto value : allLevelList) + eventPatternObject.levelList.push_back(value.asString()); + auto allEventTypeList = value["EventTypeList"]["EventTypeList"]; + for (auto value : allEventTypeList) + eventPatternObject.eventTypeList.push_back(value.asString()); + datapointsObject.eventPattern.push_back(eventPatternObject); + } + datapoints_.push_back(datapointsObject); + } + 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_ = std::stoi(value["Total"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListEventRulesResult::getMessage()const +{ + return message_; +} + +std::string ListEventRulesResult::getNextToken()const +{ + return nextToken_; +} + +int ListEventRulesResult::getCurrentPage()const +{ + return currentPage_; +} + +int ListEventRulesResult::getTotal()const +{ + return total_; +} + +std::vector ListEventRulesResult::getDatapoints()const +{ + return datapoints_; +} + +std::string ListEventRulesResult::getCode()const +{ + return code_; +} + +bool ListEventRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListEventTargetsByRuleRequest.cc b/cms/src/model/ListEventTargetsByRuleRequest.cc new file mode 100644 index 000000000..38ca7f815 --- /dev/null +++ b/cms/src/model/ListEventTargetsByRuleRequest.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::ListEventTargetsByRuleRequest; + +ListEventTargetsByRuleRequest::ListEventTargetsByRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "ListEventTargetsByRule") +{} + +ListEventTargetsByRuleRequest::~ListEventTargetsByRuleRequest() +{} + +std::string ListEventTargetsByRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void ListEventTargetsByRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/ListEventTargetsByRuleResult.cc b/cms/src/model/ListEventTargetsByRuleResult.cc new file mode 100644 index 000000000..12286ac1a --- /dev/null +++ b/cms/src/model/ListEventTargetsByRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ListEventTargetsByRuleResult::ListEventTargetsByRuleResult() : + ServiceResult() +{} + +ListEventTargetsByRuleResult::ListEventTargetsByRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEventTargetsByRuleResult::~ListEventTargetsByRuleResult() +{} + +void ListEventTargetsByRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allContactParameters = value["ContactParameters"]["ContactParameter"]; + for (auto value : allContactParameters) + { + ContactParameter contactParametersObject; + if(!value["ContactGroupName"].isNull()) + contactParametersObject.contactGroupName = value["ContactGroupName"].asString(); + if(!value["Level"].isNull()) + contactParametersObject.level = value["Level"].asString(); + if(!value["Id"].isNull()) + contactParametersObject.id = value["Id"].asString(); + contactParameters_.push_back(contactParametersObject); + } + auto allFcParameters = value["FcParameters"]["FCParameter"]; + for (auto value : allFcParameters) + { + FCParameter fcParametersObject; + if(!value["Region"].isNull()) + fcParametersObject.region = value["Region"].asString(); + if(!value["ServiceName"].isNull()) + fcParametersObject.serviceName = value["ServiceName"].asString(); + if(!value["FunctionName"].isNull()) + fcParametersObject.functionName = value["FunctionName"].asString(); + if(!value["Id"].isNull()) + fcParametersObject.id = value["Id"].asString(); + fcParameters_.push_back(fcParametersObject); + } + auto allMnsParameters = value["MnsParameters"]["MnsParameter"]; + for (auto value : allMnsParameters) + { + MnsParameter mnsParametersObject; + if(!value["Region"].isNull()) + mnsParametersObject.region = value["Region"].asString(); + if(!value["Queue"].isNull()) + mnsParametersObject.queue = value["Queue"].asString(); + if(!value["Id"].isNull()) + mnsParametersObject.id = value["Id"].asString(); + mnsParameters_.push_back(mnsParametersObject); + } + auto allWebhookParameters = value["WebhookParameters"]["WebhookParameter"]; + for (auto value : allWebhookParameters) + { + WebhookParameter webhookParametersObject; + if(!value["Id"].isNull()) + webhookParametersObject.id = value["Id"].asString(); + if(!value["Protocol"].isNull()) + webhookParametersObject.protocol = value["Protocol"].asString(); + if(!value["Method"].isNull()) + webhookParametersObject.method = value["Method"].asString(); + if(!value["Url"].isNull()) + webhookParametersObject.url = value["Url"].asString(); + webhookParameters_.push_back(webhookParametersObject); + } + auto allSlsParameters = value["SlsParameters"]["SlsParameter"]; + for (auto value : allSlsParameters) + { + SlsParameter slsParametersObject; + if(!value["Id"].isNull()) + slsParametersObject.id = value["Id"].asString(); + if(!value["Region"].isNull()) + slsParametersObject.region = value["Region"].asString(); + if(!value["Project"].isNull()) + slsParametersObject.project = value["Project"].asString(); + if(!value["LogStore"].isNull()) + slsParametersObject.logStore = value["LogStore"].asString(); + slsParameters_.push_back(slsParametersObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ParameterCount"].isNull()) + parameterCount_ = std::stoi(value["ParameterCount"].asString()); + +} + +int ListEventTargetsByRuleResult::getParameterCount()const +{ + return parameterCount_; +} + +std::vector ListEventTargetsByRuleResult::getContactParameters()const +{ + return contactParameters_; +} + +std::string ListEventTargetsByRuleResult::getMessage()const +{ + return message_; +} + +std::vector ListEventTargetsByRuleResult::getSlsParameters()const +{ + return slsParameters_; +} + +std::vector ListEventTargetsByRuleResult::getWebhookParameters()const +{ + return webhookParameters_; +} + +std::vector ListEventTargetsByRuleResult::getFcParameters()const +{ + return fcParameters_; +} + +std::string ListEventTargetsByRuleResult::getCode()const +{ + return code_; +} + +std::vector ListEventTargetsByRuleResult::getMnsParameters()const +{ + return mnsParameters_; +} + diff --git a/cms/src/model/ListGroupDynamicRuleRequest.cc b/cms/src/model/ListGroupDynamicRuleRequest.cc new file mode 100644 index 000000000..1831c9e24 --- /dev/null +++ b/cms/src/model/ListGroupDynamicRuleRequest.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::ListGroupDynamicRuleRequest; + +ListGroupDynamicRuleRequest::ListGroupDynamicRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "ListGroupDynamicRule") +{} + +ListGroupDynamicRuleRequest::~ListGroupDynamicRuleRequest() +{} + +long ListGroupDynamicRuleRequest::getGroupId()const +{ + return groupId_; +} + +void ListGroupDynamicRuleRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + diff --git a/cms/src/model/ListGroupDynamicRuleResult.cc b/cms/src/model/ListGroupDynamicRuleResult.cc new file mode 100644 index 000000000..1b7904c1d --- /dev/null +++ b/cms/src/model/ListGroupDynamicRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ListGroupDynamicRuleResult::ListGroupDynamicRuleResult() : + ServiceResult() +{} + +ListGroupDynamicRuleResult::ListGroupDynamicRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGroupDynamicRuleResult::~ListGroupDynamicRuleResult() +{} + +void ListGroupDynamicRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResource = value["Resource"]["ResourceItem"]; + for (auto value : allResource) + { + ResourceItem resourceObject; + if(!value["GroupId"].isNull()) + resourceObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["Category"].isNull()) + resourceObject.category = value["Category"].asString(); + if(!value["FilterRelation"].isNull()) + resourceObject.filterRelation = value["FilterRelation"].asString(); + auto allFilters = value["Filters"]["Filter"]; + for (auto value : allFilters) + { + ResourceItem::Filter filtersObject; + if(!value["Function"].isNull()) + filtersObject.function = value["Function"].asString(); + if(!value["Name"].isNull()) + filtersObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + filtersObject.value = value["Value"].asString(); + resourceObject.filters.push_back(filtersObject); + } + resource_.push_back(resourceObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + 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 ListGroupDynamicRuleResult::getPageSize()const +{ + return pageSize_; +} + +int ListGroupDynamicRuleResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListGroupDynamicRuleResult::getTotal()const +{ + return total_; +} + +std::vector ListGroupDynamicRuleResult::getResource()const +{ + return resource_; +} + +int ListGroupDynamicRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListGroupDynamicRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListGroupDynamicRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListMonitoringTemplatesRequest.cc b/cms/src/model/ListMonitoringTemplatesRequest.cc new file mode 100644 index 000000000..96248fe60 --- /dev/null +++ b/cms/src/model/ListMonitoringTemplatesRequest.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::Cms::Model::ListMonitoringTemplatesRequest; + +ListMonitoringTemplatesRequest::ListMonitoringTemplatesRequest() : + RpcServiceRequest("cms", "2018-03-08", "ListMonitoringTemplates") +{} + +ListMonitoringTemplatesRequest::~ListMonitoringTemplatesRequest() +{} + +bool ListMonitoringTemplatesRequest::getTotal()const +{ + return total_; +} + +void ListMonitoringTemplatesRequest::setTotal(bool total) +{ + total_ = total; + setParameter("Total", total ? "true" : "false"); +} + +std::string ListMonitoringTemplatesRequest::getName()const +{ + return name_; +} + +void ListMonitoringTemplatesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long ListMonitoringTemplatesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListMonitoringTemplatesRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListMonitoringTemplatesRequest::getId()const +{ + return id_; +} + +void ListMonitoringTemplatesRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + +bool ListMonitoringTemplatesRequest::getHistory()const +{ + return history_; +} + +void ListMonitoringTemplatesRequest::setHistory(bool history) +{ + history_ = history; + setParameter("History", history ? "true" : "false"); +} + +std::string ListMonitoringTemplatesRequest::getKeyword()const +{ + return keyword_; +} + +void ListMonitoringTemplatesRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + +long ListMonitoringTemplatesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListMonitoringTemplatesRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cms/src/model/ListMonitoringTemplatesResult.cc b/cms/src/model/ListMonitoringTemplatesResult.cc new file mode 100644 index 000000000..46724b5ae --- /dev/null +++ b/cms/src/model/ListMonitoringTemplatesResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ListMonitoringTemplatesResult::ListMonitoringTemplatesResult() : + ServiceResult() +{} + +ListMonitoringTemplatesResult::ListMonitoringTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMonitoringTemplatesResult::~ListMonitoringTemplatesResult() +{} + +void ListMonitoringTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["Name"].isNull()) + resourcesObject.name = value["Name"].asString(); + if(!value["Namespace"].isNull()) + resourcesObject._namespace = value["Namespace"].asString(); + if(!value["Description"].isNull()) + resourcesObject.description = value["Description"].asString(); + if(!value["AlertTemplatesJson"].isNull()) + resourcesObject.alertTemplatesJson = value["AlertTemplatesJson"].asString(); + if(!value["RestVersion"].isNull()) + resourcesObject.restVersion = std::stol(value["RestVersion"].asString()); + if(!value["Id"].isNull()) + resourcesObject.id = std::stol(value["Id"].asString()); + if(!value["GmtCreate"].isNull()) + resourcesObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + resourcesObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["EventRuleTemplatesJson"].isNull()) + resourcesObject.eventRuleTemplatesJson = value["EventRuleTemplatesJson"].asString(); + auto allApplyHistories = value["ApplyHistories"]["ApplyHistory"]; + for (auto value : allApplyHistories) + { + Resource::ApplyHistory applyHistoriesObject; + if(!value["GroupId"].isNull()) + applyHistoriesObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["GroupName"].isNull()) + applyHistoriesObject.groupName = value["GroupName"].asString(); + if(!value["ApplyTime"].isNull()) + applyHistoriesObject.applyTime = std::stol(value["ApplyTime"].asString()); + resourcesObject.applyHistories.push_back(applyHistoriesObject); + } + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +long ListMonitoringTemplatesResult::getPageSize()const +{ + return pageSize_; +} + +long ListMonitoringTemplatesResult::getPageNumber()const +{ + return pageNumber_; +} + +long ListMonitoringTemplatesResult::getTotal()const +{ + return total_; +} + +std::vector ListMonitoringTemplatesResult::getResources()const +{ + return resources_; +} + +int ListMonitoringTemplatesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMonitoringTemplatesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMonitoringTemplatesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListMyGroupCategoriesRequest.cc b/cms/src/model/ListMyGroupCategoriesRequest.cc index f0326f0de..944c60938 100644 --- a/cms/src/model/ListMyGroupCategoriesRequest.cc +++ b/cms/src/model/ListMyGroupCategoriesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListMyGroupCategoriesRequest; ListMyGroupCategoriesRequest::ListMyGroupCategoriesRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListMyGroupCategories") + RpcServiceRequest("cms", "2018-03-08", "ListMyGroupCategories") {} ListMyGroupCategoriesRequest::~ListMyGroupCategoriesRequest() diff --git a/cms/src/model/ListMyGroupCategoriesResult.cc b/cms/src/model/ListMyGroupCategoriesResult.cc index b17935071..a9ce095f1 100644 --- a/cms/src/model/ListMyGroupCategoriesResult.cc +++ b/cms/src/model/ListMyGroupCategoriesResult.cc @@ -40,50 +40,45 @@ void ListMyGroupCategoriesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allCategory = value["Category"]; - for (auto value : allCategory) - { - Category categoryObject; - if(!value["GroupId"].isNull()) - categoryObject.groupId = std::stol(value["GroupId"].asString()); - auto allCategoryItems = value["CategoryItems"]["CategoryItem"]; - for (auto value : allCategoryItems) - { - Category::CategoryItem categoryItemObject; - if(!value["Category"].isNull()) - categoryItemObject.category = value["Category"].asString(); - if(!value["Count"].isNull()) - categoryItemObject.count = std::stoi(value["Count"].asString()); - categoryObject.categoryItems.push_back(categoryItemObject); - } - category_.push_back(categoryObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + auto categoryNode = value["Category"]; + if(!categoryNode["GroupId"].isNull()) + category_.groupId = std::stol(categoryNode["GroupId"].asString()); + auto allCategoryItems = value["CategoryItems"]["CategoryItem"]; + for (auto value : allCategoryItems) + { + Category::CategoryItem categoryItemObject; + if(!value["Category"].isNull()) + categoryItemObject.category = value["Category"].asString(); + if(!value["Count"].isNull()) + categoryItemObject.count = std::stoi(value["Count"].asString()); + category_.categoryItems.push_back(categoryItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -std::vector ListMyGroupCategoriesResult::getCategory()const -{ - return category_; -} - -int ListMyGroupCategoriesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMyGroupCategoriesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupCategoriesResult::getSuccess()const -{ - return success_; -} - +ListMyGroupCategoriesResult::Category ListMyGroupCategoriesResult::getCategory()const +{ + return category_; +} + +int ListMyGroupCategoriesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMyGroupCategoriesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMyGroupCategoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc b/cms/src/model/ListMyGroupInstancesDetailsRequest.cc index db518234c..8f9e0a497 100644 --- a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc +++ b/cms/src/model/ListMyGroupInstancesDetailsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListMyGroupInstancesDetailsRequest; ListMyGroupInstancesDetailsRequest::ListMyGroupInstancesDetailsRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListMyGroupInstancesDetails") + RpcServiceRequest("cms", "2018-03-08", "ListMyGroupInstancesDetails") {} ListMyGroupInstancesDetailsRequest::~ListMyGroupInstancesDetailsRequest() @@ -33,7 +33,18 @@ bool ListMyGroupInstancesDetailsRequest::getTotal()const void ListMyGroupInstancesDetailsRequest::setTotal(bool total) { total_ = total; - setParameter("Total", std::to_string(total)); + setParameter("Total", total ? "true" : "false"); +} + +std::string ListMyGroupInstancesDetailsRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void ListMyGroupInstancesDetailsRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); } long ListMyGroupInstancesDetailsRequest::getGroupId()const @@ -69,6 +80,17 @@ void ListMyGroupInstancesDetailsRequest::setCategory(const std::string& category setParameter("Category", category); } +std::string ListMyGroupInstancesDetailsRequest::getKeyword()const +{ + return keyword_; +} + +void ListMyGroupInstancesDetailsRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + int ListMyGroupInstancesDetailsRequest::getPageNumber()const { return pageNumber_; diff --git a/cms/src/model/ListMyGroupInstancesDetailsResult.cc b/cms/src/model/ListMyGroupInstancesDetailsResult.cc index d60d1aaf1..4c8fb845c 100644 --- a/cms/src/model/ListMyGroupInstancesDetailsResult.cc +++ b/cms/src/model/ListMyGroupInstancesDetailsResult.cc @@ -40,101 +40,93 @@ void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResources = value["Resources"]["Resource"]; - for (auto value : allResources) - { - Resource resourcesObject; - if(!value["AliUid"].isNull()) - resourcesObject.aliUid = std::stol(value["AliUid"].asString()); - if(!value["InstanceName"].isNull()) - resourcesObject.instanceName = value["InstanceName"].asString(); - if(!value["InstanceId"].isNull()) - resourcesObject.instanceId = value["InstanceId"].asString(); - if(!value["Desc"].isNull()) - resourcesObject.desc = value["Desc"].asString(); - if(!value["NetworkType"].isNull()) - resourcesObject.networkType = value["NetworkType"].asString(); - if(!value["Category"].isNull()) - resourcesObject.category = value["Category"].asString(); - auto allTags = value["Tags"]["Tag"]; - for (auto value : allTags) - { - Resource::Tag tagsObject; - if(!value["Key"].isNull()) - tagsObject.key = value["Key"].asString(); - if(!value["Value"].isNull()) - tagsObject.value = value["Value"].asString(); - resourcesObject.tags.push_back(tagsObject); - } - auto allRegion = value["Region"]; - for (auto value : allRegion) - { - Resource::Region regionObject; - if(!value["RegionId"].isNull()) - regionObject.regionId = value["RegionId"].asString(); - if(!value["AvailabilityZone"].isNull()) - regionObject.availabilityZone = value["AvailabilityZone"].asString(); - resourcesObject.region.push_back(regionObject); - } - auto allVpc = value["Vpc"]; - for (auto value : allVpc) - { - Resource::Vpc vpcObject; - if(!value["VpcInstanceId"].isNull()) - vpcObject.vpcInstanceId = value["VpcInstanceId"].asString(); - if(!value["VswitchInstanceId"].isNull()) - vpcObject.vswitchInstanceId = value["VswitchInstanceId"].asString(); - resourcesObject.vpc.push_back(vpcObject); - } - resources_.push_back(resourcesObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - 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()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["AliUid"].isNull()) + resourcesObject.aliUid = std::stol(value["AliUid"].asString()); + if(!value["InstanceName"].isNull()) + resourcesObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceId"].isNull()) + resourcesObject.instanceId = value["InstanceId"].asString(); + if(!value["Desc"].isNull()) + resourcesObject.desc = value["Desc"].asString(); + if(!value["NetworkType"].isNull()) + resourcesObject.networkType = value["NetworkType"].asString(); + if(!value["Category"].isNull()) + resourcesObject.category = value["Category"].asString(); + if(!value["Dimension"].isNull()) + resourcesObject.dimension = value["Dimension"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Resource::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + resourcesObject.tags.push_back(tagsObject); + } + auto regionNode = value["Region"]; + if(!regionNode["RegionId"].isNull()) + resourcesObject.region.regionId = regionNode["RegionId"].asString(); + if(!regionNode["AvailabilityZone"].isNull()) + resourcesObject.region.availabilityZone = regionNode["AvailabilityZone"].asString(); + auto vpcNode = value["Vpc"]; + if(!vpcNode["VpcInstanceId"].isNull()) + resourcesObject.vpc.vpcInstanceId = vpcNode["VpcInstanceId"].asString(); + if(!vpcNode["VswitchInstanceId"].isNull()) + resourcesObject.vpc.vswitchInstanceId = vpcNode["VswitchInstanceId"].asString(); + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + 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 ListMyGroupInstancesDetailsResult::getPageSize()const -{ - return pageSize_; -} - -int ListMyGroupInstancesDetailsResult::getPageNumber()const -{ - return pageNumber_; -} - -int ListMyGroupInstancesDetailsResult::getTotal()const -{ - return total_; -} - -std::vector ListMyGroupInstancesDetailsResult::getResources()const -{ - return resources_; -} - -int ListMyGroupInstancesDetailsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMyGroupInstancesDetailsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupInstancesDetailsResult::getSuccess()const -{ - return success_; -} - +int ListMyGroupInstancesDetailsResult::getPageSize()const +{ + return pageSize_; +} + +int ListMyGroupInstancesDetailsResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListMyGroupInstancesDetailsResult::getTotal()const +{ + return total_; +} + +std::vector ListMyGroupInstancesDetailsResult::getResources()const +{ + return resources_; +} + +int ListMyGroupInstancesDetailsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMyGroupInstancesDetailsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMyGroupInstancesDetailsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListMyGroupInstancesRequest.cc b/cms/src/model/ListMyGroupInstancesRequest.cc index 3d7549438..ba78ed5b2 100644 --- a/cms/src/model/ListMyGroupInstancesRequest.cc +++ b/cms/src/model/ListMyGroupInstancesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListMyGroupInstancesRequest; ListMyGroupInstancesRequest::ListMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListMyGroupInstances") + RpcServiceRequest("cms", "2018-03-08", "ListMyGroupInstances") {} ListMyGroupInstancesRequest::~ListMyGroupInstancesRequest() @@ -33,7 +33,18 @@ bool ListMyGroupInstancesRequest::getTotal()const void ListMyGroupInstancesRequest::setTotal(bool total) { total_ = total; - setParameter("Total", std::to_string(total)); + setParameter("Total", total ? "true" : "false"); +} + +std::string ListMyGroupInstancesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void ListMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); } long ListMyGroupInstancesRequest::getGroupId()const @@ -69,6 +80,17 @@ void ListMyGroupInstancesRequest::setCategory(const std::string& category) setParameter("Category", category); } +std::string ListMyGroupInstancesRequest::getKeyword()const +{ + return keyword_; +} + +void ListMyGroupInstancesRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + int ListMyGroupInstancesRequest::getPageNumber()const { return pageNumber_; diff --git a/cms/src/model/ListMyGroupInstancesResult.cc b/cms/src/model/ListMyGroupInstancesResult.cc index 18b0cb3dc..a0d198f64 100644 --- a/cms/src/model/ListMyGroupInstancesResult.cc +++ b/cms/src/model/ListMyGroupInstancesResult.cc @@ -40,69 +40,71 @@ void ListMyGroupInstancesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResources = value["Resources"]["Resource"]; - for (auto value : allResources) - { - Resource resourcesObject; - if(!value["Id"].isNull()) - resourcesObject.id = std::stol(value["Id"].asString()); - if(!value["AliUid"].isNull()) - resourcesObject.aliUid = std::stol(value["AliUid"].asString()); - if(!value["RegionId"].isNull()) - resourcesObject.regionId = value["RegionId"].asString(); - if(!value["InstanceId"].isNull()) - resourcesObject.instanceId = value["InstanceId"].asString(); - if(!value["Category"].isNull()) - resourcesObject.category = value["Category"].asString(); - resources_.push_back(resourcesObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - 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()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["Id"].isNull()) + resourcesObject.id = std::stol(value["Id"].asString()); + if(!value["AliUid"].isNull()) + resourcesObject.aliUid = std::stol(value["AliUid"].asString()); + if(!value["RegionId"].isNull()) + resourcesObject.regionId = value["RegionId"].asString(); + if(!value["InstanceId"].isNull()) + resourcesObject.instanceId = value["InstanceId"].asString(); + if(!value["Category"].isNull()) + resourcesObject.category = value["Category"].asString(); + if(!value["InstanceName"].isNull()) + resourcesObject.instanceName = value["InstanceName"].asString(); + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + 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 ListMyGroupInstancesResult::getPageSize()const -{ - return pageSize_; -} - -int ListMyGroupInstancesResult::getPageNumber()const -{ - return pageNumber_; -} - -int ListMyGroupInstancesResult::getTotal()const -{ - return total_; -} - -std::vector ListMyGroupInstancesResult::getResources()const -{ - return resources_; -} - -int ListMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - +int ListMyGroupInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int ListMyGroupInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListMyGroupInstancesResult::getTotal()const +{ + return total_; +} + +std::vector ListMyGroupInstancesResult::getResources()const +{ + return resources_; +} + +int ListMyGroupInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMyGroupInstancesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMyGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListMyGroupsRequest.cc b/cms/src/model/ListMyGroupsRequest.cc index 23f0b70ce..ed0fe5f27 100644 --- a/cms/src/model/ListMyGroupsRequest.cc +++ b/cms/src/model/ListMyGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListMyGroupsRequest; ListMyGroupsRequest::ListMyGroupsRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListMyGroups") + RpcServiceRequest("cms", "2018-03-08", "ListMyGroups") {} ListMyGroupsRequest::~ListMyGroupsRequest() @@ -33,7 +33,7 @@ bool ListMyGroupsRequest::getSelectContactGroups()const void ListMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) { selectContactGroups_ = selectContactGroups; - setParameter("SelectContactGroups", std::to_string(selectContactGroups)); + setParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); } std::string ListMyGroupsRequest::getInstanceId()const @@ -58,17 +58,6 @@ void ListMyGroupsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } -std::string ListMyGroupsRequest::getKeyword()const -{ - return keyword_; -} - -void ListMyGroupsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); -} - std::string ListMyGroupsRequest::getType()const { return type_; @@ -80,6 +69,17 @@ void ListMyGroupsRequest::setType(const std::string& type) setParameter("Type", type); } +std::string ListMyGroupsRequest::getKeyword()const +{ + return keyword_; +} + +void ListMyGroupsRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + std::string ListMyGroupsRequest::getGroupName()const { return groupName_; diff --git a/cms/src/model/ListMyGroupsResult.cc b/cms/src/model/ListMyGroupsResult.cc index 56462bdd2..6ec8abdba 100644 --- a/cms/src/model/ListMyGroupsResult.cc +++ b/cms/src/model/ListMyGroupsResult.cc @@ -40,77 +40,83 @@ void ListMyGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResources = value["Resources"]["Resource"]; - for (auto value : allResources) - { - Resource resourcesObject; - if(!value["GroupId"].isNull()) - resourcesObject.groupId = std::stol(value["GroupId"].asString()); - if(!value["GroupName"].isNull()) - resourcesObject.groupName = value["GroupName"].asString(); - if(!value["ServiceId"].isNull()) - resourcesObject.serviceId = value["ServiceId"].asString(); - if(!value["BindUrls"].isNull()) - resourcesObject.bindUrls = value["BindUrls"].asString(); - if(!value["Type"].isNull()) - resourcesObject.type = value["Type"].asString(); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (auto value : allContactGroups) - { - Resource::ContactGroup contactGroupsObject; - if(!value["Name"].isNull()) - contactGroupsObject.name = value["Name"].asString(); - resourcesObject.contactGroups.push_back(contactGroupsObject); - } - resources_.push_back(resourcesObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - 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()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["GroupId"].isNull()) + resourcesObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["GroupName"].isNull()) + resourcesObject.groupName = value["GroupName"].asString(); + if(!value["ServiceId"].isNull()) + resourcesObject.serviceId = value["ServiceId"].asString(); + if(!value["BindUrls"].isNull()) + resourcesObject.bindUrls = value["BindUrls"].asString(); + if(!value["Type"].isNull()) + resourcesObject.type = value["Type"].asString(); + if(!value["GmtModified"].isNull()) + resourcesObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["GmtCreate"].isNull()) + resourcesObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["BindUrl"].isNull()) + resourcesObject.bindUrl = value["BindUrl"].asString(); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (auto value : allContactGroups) + { + Resource::ContactGroup contactGroupsObject; + if(!value["Name"].isNull()) + contactGroupsObject.name = value["Name"].asString(); + resourcesObject.contactGroups.push_back(contactGroupsObject); + } + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + 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 ListMyGroupsResult::getPageSize()const -{ - return pageSize_; -} - -int ListMyGroupsResult::getPageNumber()const -{ - return pageNumber_; -} - -int ListMyGroupsResult::getTotal()const -{ - return total_; -} - -std::vector ListMyGroupsResult::getResources()const -{ - return resources_; -} - -int ListMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupsResult::getSuccess()const -{ - return success_; -} - +int ListMyGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListMyGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListMyGroupsResult::getTotal()const +{ + return total_; +} + +std::vector ListMyGroupsResult::getResources()const +{ + return resources_; +} + +int ListMyGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMyGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMyGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListNotifyPolicyRequest.cc b/cms/src/model/ListNotifyPolicyRequest.cc index fae95c365..27f4176ad 100644 --- a/cms/src/model/ListNotifyPolicyRequest.cc +++ b/cms/src/model/ListNotifyPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListNotifyPolicyRequest; ListNotifyPolicyRequest::ListNotifyPolicyRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListNotifyPolicy") + RpcServiceRequest("cms", "2018-03-08", "ListNotifyPolicy") {} ListNotifyPolicyRequest::~ListNotifyPolicyRequest() @@ -47,6 +47,17 @@ void ListNotifyPolicyRequest::setAlertName(const std::string& alertName) setParameter("AlertName", alertName); } +std::string ListNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void ListNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + int ListNotifyPolicyRequest::getPageSize()const { return pageSize_; diff --git a/cms/src/model/ListNotifyPolicyResult.cc b/cms/src/model/ListNotifyPolicyResult.cc index f520f9dcc..cdef68c18 100644 --- a/cms/src/model/ListNotifyPolicyResult.cc +++ b/cms/src/model/ListNotifyPolicyResult.cc @@ -40,64 +40,59 @@ void ListNotifyPolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allNotifyPolicyList = value["NotifyPolicyList"]["NotifyPolicy"]; - for (auto value : allNotifyPolicyList) - { - NotifyPolicy notifyPolicyListObject; - if(!value["AlertName"].isNull()) - notifyPolicyListObject.alertName = value["AlertName"].asString(); - if(!value["Dimensions"].isNull()) - notifyPolicyListObject.dimensions = value["Dimensions"].asString(); - if(!value["Type"].isNull()) - notifyPolicyListObject.type = value["Type"].asString(); - if(!value["Id"].isNull()) - notifyPolicyListObject.id = value["Id"].asString(); - if(!value["StartTime"].isNull()) - notifyPolicyListObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - notifyPolicyListObject.endTime = std::stol(value["EndTime"].asString()); - notifyPolicyList_.push_back(notifyPolicyListObject); - } - 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["traceId"].isNull()) - traceId_ = value["traceId"].asString(); - if(!value["total"].isNull()) - total_ = std::stoi(value["total"].asString()); + auto allNotifyPolicyList = value["NotifyPolicyList"]["NotifyPolicy"]; + for (auto value : allNotifyPolicyList) + { + NotifyPolicy notifyPolicyListObject; + if(!value["AlertName"].isNull()) + notifyPolicyListObject.alertName = value["AlertName"].asString(); + if(!value["Dimensions"].isNull()) + notifyPolicyListObject.dimensions = value["Dimensions"].asString(); + if(!value["Type"].isNull()) + notifyPolicyListObject.type = value["Type"].asString(); + if(!value["Id"].isNull()) + notifyPolicyListObject.id = value["Id"].asString(); + if(!value["StartTime"].isNull()) + notifyPolicyListObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + notifyPolicyListObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["GroupId"].isNull()) + notifyPolicyListObject.groupId = value["GroupId"].asString(); + notifyPolicyList_.push_back(notifyPolicyListObject); + } + 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["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } -std::vector ListNotifyPolicyResult::getNotifyPolicyList()const -{ - return notifyPolicyList_; -} - -std::string ListNotifyPolicyResult::getMessage()const -{ - return message_; -} - -int ListNotifyPolicyResult::getTotal()const -{ - return total_; -} - -std::string ListNotifyPolicyResult::getTraceId()const -{ - return traceId_; -} - -std::string ListNotifyPolicyResult::getCode()const -{ - return code_; -} - -std::string ListNotifyPolicyResult::getSuccess()const -{ - return success_; -} - +std::vector ListNotifyPolicyResult::getNotifyPolicyList()const +{ + return notifyPolicyList_; +} + +std::string ListNotifyPolicyResult::getMessage()const +{ + return message_; +} + +int ListNotifyPolicyResult::getTotal()const +{ + return total_; +} + +std::string ListNotifyPolicyResult::getCode()const +{ + return code_; +} + +std::string ListNotifyPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListProductOfActiveAlertRequest.cc b/cms/src/model/ListProductOfActiveAlertRequest.cc index 3ecbdbdea..1d25ec7e0 100644 --- a/cms/src/model/ListProductOfActiveAlertRequest.cc +++ b/cms/src/model/ListProductOfActiveAlertRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ListProductOfActiveAlertRequest; ListProductOfActiveAlertRequest::ListProductOfActiveAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "ListProductOfActiveAlert") + RpcServiceRequest("cms", "2018-03-08", "ListProductOfActiveAlert") {} ListProductOfActiveAlertRequest::~ListProductOfActiveAlertRequest() diff --git a/cms/src/model/ListProductOfActiveAlertResult.cc b/cms/src/model/ListProductOfActiveAlertResult.cc index 94d5712f6..e84983d43 100644 --- a/cms/src/model/ListProductOfActiveAlertResult.cc +++ b/cms/src/model/ListProductOfActiveAlertResult.cc @@ -40,34 +40,34 @@ void ListProductOfActiveAlertResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); } -std::string ListProductOfActiveAlertResult::getMessage()const -{ - return message_; -} - -std::string ListProductOfActiveAlertResult::getDatapoints()const -{ - return datapoints_; -} - -int ListProductOfActiveAlertResult::getCode()const -{ - return code_; -} - -bool ListProductOfActiveAlertResult::getSuccess()const -{ - return success_; -} - +std::string ListProductOfActiveAlertResult::getMessage()const +{ + return message_; +} + +std::string ListProductOfActiveAlertResult::getDatapoints()const +{ + return datapoints_; +} + +int ListProductOfActiveAlertResult::getCode()const +{ + return code_; +} + +bool ListProductOfActiveAlertResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ModifyTaskRequest.cc b/cms/src/model/ModifyTaskRequest.cc new file mode 100644 index 000000000..d4eac9a15 --- /dev/null +++ b/cms/src/model/ModifyTaskRequest.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::Cms::Model::ModifyTaskRequest; + +ModifyTaskRequest::ModifyTaskRequest() : + RpcServiceRequest("cms", "2018-03-08", "ModifyTask") +{} + +ModifyTaskRequest::~ModifyTaskRequest() +{} + +std::string ModifyTaskRequest::getCaller()const +{ + return caller_; +} + +void ModifyTaskRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setParameter("Caller", caller); +} + +std::string ModifyTaskRequest::getAddress()const +{ + return address_; +} + +void ModifyTaskRequest::setAddress(const std::string& address) +{ + address_ = address; + setParameter("Address", address); +} + +std::string ModifyTaskRequest::getIspCity()const +{ + return ispCity_; +} + +void ModifyTaskRequest::setIspCity(const std::string& ispCity) +{ + ispCity_ = ispCity; + setParameter("IspCity", ispCity); +} + +std::string ModifyTaskRequest::getAlertIds()const +{ + return alertIds_; +} + +void ModifyTaskRequest::setAlertIds(const std::string& alertIds) +{ + alertIds_ = alertIds; + setParameter("AlertIds", alertIds); +} + +std::string ModifyTaskRequest::getOptions()const +{ + return options_; +} + +void ModifyTaskRequest::setOptions(const std::string& options) +{ + options_ = options; + setParameter("Options", options); +} + +std::string ModifyTaskRequest::getTaskName()const +{ + return taskName_; +} + +void ModifyTaskRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setParameter("TaskName", taskName); +} + +std::string ModifyTaskRequest::getInterval()const +{ + return interval_; +} + +void ModifyTaskRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string ModifyTaskRequest::getAlertRule()const +{ + return alertRule_; +} + +void ModifyTaskRequest::setAlertRule(const std::string& alertRule) +{ + alertRule_ = alertRule; + setParameter("AlertRule", alertRule); +} + +std::string ModifyTaskRequest::getTaskId()const +{ + return taskId_; +} + +void ModifyTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/ModifyTaskResult.cc b/cms/src/model/ModifyTaskResult.cc new file mode 100644 index 000000000..b7aada1ea --- /dev/null +++ b/cms/src/model/ModifyTaskResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +ModifyTaskResult::ModifyTaskResult() : + ServiceResult() +{} + +ModifyTaskResult::ModifyTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTaskResult::~ModifyTaskResult() +{} + +void ModifyTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ModifyTaskResult::getMessage()const +{ + return message_; +} + +std::string ModifyTaskResult::getData()const +{ + return data_; +} + +std::string ModifyTaskResult::getCode()const +{ + return code_; +} + +std::string ModifyTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeInstallRequest.cc b/cms/src/model/NodeInstallRequest.cc index 3fe8e97a3..90a0f2751 100644 --- a/cms/src/model/NodeInstallRequest.cc +++ b/cms/src/model/NodeInstallRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeInstallRequest; NodeInstallRequest::NodeInstallRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeInstall") + RpcServiceRequest("cms", "2018-03-08", "NodeInstall") {} NodeInstallRequest::~NodeInstallRequest() @@ -44,7 +44,7 @@ bool NodeInstallRequest::getForce()const void NodeInstallRequest::setForce(bool force) { force_ = force; - setParameter("Force", std::to_string(force)); + setParameter("Force", force ? "true" : "false"); } std::string NodeInstallRequest::getUserId()const diff --git a/cms/src/model/NodeInstallResult.cc b/cms/src/model/NodeInstallResult.cc index 87b76ca0b..add1c0edd 100644 --- a/cms/src/model/NodeInstallResult.cc +++ b/cms/src/model/NodeInstallResult.cc @@ -40,27 +40,27 @@ void NodeInstallResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -int NodeInstallResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeInstallResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeInstallResult::getSuccess()const -{ - return success_; -} - +int NodeInstallResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeInstallResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeInstallResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeListRequest.cc b/cms/src/model/NodeListRequest.cc index 378e9d546..431733a66 100644 --- a/cms/src/model/NodeListRequest.cc +++ b/cms/src/model/NodeListRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeListRequest; NodeListRequest::NodeListRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeList") + RpcServiceRequest("cms", "2018-03-08", "NodeList") {} NodeListRequest::~NodeListRequest() @@ -47,6 +47,17 @@ void NodeListRequest::setInstanceIds(const std::string& instanceIds) setParameter("InstanceIds", instanceIds); } +std::string NodeListRequest::getInstanceRegionId()const +{ + return instanceRegionId_; +} + +void NodeListRequest::setInstanceRegionId(const std::string& instanceRegionId) +{ + instanceRegionId_ = instanceRegionId; + setParameter("InstanceRegionId", instanceRegionId); +} + int NodeListRequest::getPageSize()const { return pageSize_; diff --git a/cms/src/model/NodeListResult.cc b/cms/src/model/NodeListResult.cc index 41e2d3340..275690062 100644 --- a/cms/src/model/NodeListResult.cc +++ b/cms/src/model/NodeListResult.cc @@ -40,92 +40,94 @@ void NodeListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allNodes = value["Nodes"]["Node"]; - for (auto value : allNodes) - { - Node nodesObject; - if(!value["InstanceId"].isNull()) - nodesObject.instanceId = value["InstanceId"].asString(); - if(!value["SerialNumber"].isNull()) - nodesObject.serialNumber = value["SerialNumber"].asString(); - if(!value["HostName"].isNull()) - nodesObject.hostName = value["HostName"].asString(); - if(!value["AliUid"].isNull()) - nodesObject.aliUid = std::stol(value["AliUid"].asString()); - if(!value["OperatingSystem"].isNull()) - nodesObject.operatingSystem = value["OperatingSystem"].asString(); - if(!value["IpGroup"].isNull()) - nodesObject.ipGroup = value["IpGroup"].asString(); - if(!value["Region"].isNull()) - nodesObject.region = value["Region"].asString(); - if(!value["TianjimonVersion"].isNull()) - nodesObject.tianjimonVersion = value["TianjimonVersion"].asString(); - if(!value["EipAddress"].isNull()) - nodesObject.eipAddress = value["EipAddress"].asString(); - if(!value["EipId"].isNull()) - nodesObject.eipId = value["EipId"].asString(); - if(!value["AliyunHost"].isNull()) - nodesObject.aliyunHost = value["AliyunHost"].asString() == "true"; - if(!value["NatIp"].isNull()) - nodesObject.natIp = value["NatIp"].asString(); - if(!value["NetworkType"].isNull()) - nodesObject.networkType = value["NetworkType"].asString(); - nodes_.push_back(nodesObject); - } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageTotal"].isNull()) - pageTotal_ = std::stoi(value["PageTotal"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); + auto allNodes = value["Nodes"]["Node"]; + for (auto value : allNodes) + { + Node nodesObject; + if(!value["InstanceId"].isNull()) + nodesObject.instanceId = value["InstanceId"].asString(); + if(!value["SerialNumber"].isNull()) + nodesObject.serialNumber = value["SerialNumber"].asString(); + if(!value["HostName"].isNull()) + nodesObject.hostName = value["HostName"].asString(); + if(!value["AliUid"].isNull()) + nodesObject.aliUid = std::stol(value["AliUid"].asString()); + if(!value["OperatingSystem"].isNull()) + nodesObject.operatingSystem = value["OperatingSystem"].asString(); + if(!value["IpGroup"].isNull()) + nodesObject.ipGroup = value["IpGroup"].asString(); + if(!value["Region"].isNull()) + nodesObject.region = value["Region"].asString(); + if(!value["TianjimonVersion"].isNull()) + nodesObject.tianjimonVersion = value["TianjimonVersion"].asString(); + if(!value["EipAddress"].isNull()) + nodesObject.eipAddress = value["EipAddress"].asString(); + if(!value["EipId"].isNull()) + nodesObject.eipId = value["EipId"].asString(); + if(!value["AliyunHost"].isNull()) + nodesObject.aliyunHost = value["AliyunHost"].asString() == "true"; + if(!value["NatIp"].isNull()) + nodesObject.natIp = value["NatIp"].asString(); + if(!value["NetworkType"].isNull()) + nodesObject.networkType = value["NetworkType"].asString(); + if(!value["InstanceTypeFamily"].isNull()) + nodesObject.instanceTypeFamily = value["InstanceTypeFamily"].asString(); + nodes_.push_back(nodesObject); + } + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageTotal"].isNull()) + pageTotal_ = std::stoi(value["PageTotal"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } -int NodeListResult::getPageSize()const -{ - return pageSize_; -} - -int NodeListResult::getPageNumber()const -{ - return pageNumber_; -} - -int NodeListResult::getPageTotal()const -{ - return pageTotal_; -} - -int NodeListResult::getTotal()const -{ - return total_; -} - -int NodeListResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeListResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::vector NodeListResult::getNodes()const -{ - return nodes_; -} - -bool NodeListResult::getSuccess()const -{ - return success_; -} - +int NodeListResult::getPageSize()const +{ + return pageSize_; +} + +int NodeListResult::getPageNumber()const +{ + return pageNumber_; +} + +int NodeListResult::getPageTotal()const +{ + return pageTotal_; +} + +int NodeListResult::getTotal()const +{ + return total_; +} + +int NodeListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector NodeListResult::getNodes()const +{ + return nodes_; +} + +bool NodeListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeProcessCreateRequest.cc b/cms/src/model/NodeProcessCreateRequest.cc index 3169658db..f7e607e52 100644 --- a/cms/src/model/NodeProcessCreateRequest.cc +++ b/cms/src/model/NodeProcessCreateRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeProcessCreateRequest; NodeProcessCreateRequest::NodeProcessCreateRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeProcessCreate") + RpcServiceRequest("cms", "2018-03-08", "NodeProcessCreate") {} NodeProcessCreateRequest::~NodeProcessCreateRequest() diff --git a/cms/src/model/NodeProcessCreateResult.cc b/cms/src/model/NodeProcessCreateResult.cc index cf92c7139..10eb45b96 100644 --- a/cms/src/model/NodeProcessCreateResult.cc +++ b/cms/src/model/NodeProcessCreateResult.cc @@ -40,27 +40,34 @@ void NodeProcessCreateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); } -int NodeProcessCreateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeProcessCreateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessCreateResult::getSuccess()const -{ - return success_; -} - +int NodeProcessCreateResult::getErrorCode()const +{ + return errorCode_; +} + +long NodeProcessCreateResult::getId()const +{ + return id_; +} + +std::string NodeProcessCreateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeProcessCreateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeProcessDeleteRequest.cc b/cms/src/model/NodeProcessDeleteRequest.cc index cae8fa1d9..2debcbdfd 100644 --- a/cms/src/model/NodeProcessDeleteRequest.cc +++ b/cms/src/model/NodeProcessDeleteRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeProcessDeleteRequest; NodeProcessDeleteRequest::NodeProcessDeleteRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeProcessDelete") + RpcServiceRequest("cms", "2018-03-08", "NodeProcessDelete") {} NodeProcessDeleteRequest::~NodeProcessDeleteRequest() diff --git a/cms/src/model/NodeProcessDeleteResult.cc b/cms/src/model/NodeProcessDeleteResult.cc index 12d00aa94..2134a0748 100644 --- a/cms/src/model/NodeProcessDeleteResult.cc +++ b/cms/src/model/NodeProcessDeleteResult.cc @@ -40,27 +40,27 @@ void NodeProcessDeleteResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -int NodeProcessDeleteResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeProcessDeleteResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessDeleteResult::getSuccess()const -{ - return success_; -} - +int NodeProcessDeleteResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeProcessDeleteResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeProcessDeleteResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeProcessesRequest.cc b/cms/src/model/NodeProcessesRequest.cc index 97ed59901..c13df0c46 100644 --- a/cms/src/model/NodeProcessesRequest.cc +++ b/cms/src/model/NodeProcessesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeProcessesRequest; NodeProcessesRequest::NodeProcessesRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeProcesses") + RpcServiceRequest("cms", "2018-03-08", "NodeProcesses") {} NodeProcessesRequest::~NodeProcessesRequest() diff --git a/cms/src/model/NodeProcessesResult.cc b/cms/src/model/NodeProcessesResult.cc index b9c756e03..f111f64be 100644 --- a/cms/src/model/NodeProcessesResult.cc +++ b/cms/src/model/NodeProcessesResult.cc @@ -40,50 +40,50 @@ void NodeProcessesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allNodeProcesses = value["NodeProcesses"]["NodeProcess"]; - for (auto value : allNodeProcesses) - { - NodeProcess nodeProcessesObject; - if(!value["Id"].isNull()) - nodeProcessesObject.id = std::stol(value["Id"].asString()); - if(!value["Name"].isNull()) - nodeProcessesObject.name = value["Name"].asString(); - if(!value["InstanceId"].isNull()) - nodeProcessesObject.instanceId = value["InstanceId"].asString(); - if(!value["ProcessName"].isNull()) - nodeProcessesObject.processName = value["ProcessName"].asString(); - if(!value["ProcessUser"].isNull()) - nodeProcessesObject.processUser = value["ProcessUser"].asString(); - if(!value["Command"].isNull()) - nodeProcessesObject.command = value["Command"].asString(); - nodeProcesses_.push_back(nodeProcessesObject); - } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + auto allNodeProcesses = value["NodeProcesses"]["NodeProcess"]; + for (auto value : allNodeProcesses) + { + NodeProcess nodeProcessesObject; + if(!value["Id"].isNull()) + nodeProcessesObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + nodeProcessesObject.name = value["Name"].asString(); + if(!value["InstanceId"].isNull()) + nodeProcessesObject.instanceId = value["InstanceId"].asString(); + if(!value["ProcessName"].isNull()) + nodeProcessesObject.processName = value["ProcessName"].asString(); + if(!value["ProcessUser"].isNull()) + nodeProcessesObject.processUser = value["ProcessUser"].asString(); + if(!value["Command"].isNull()) + nodeProcessesObject.command = value["Command"].asString(); + nodeProcesses_.push_back(nodeProcessesObject); + } + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::vector NodeProcessesResult::getNodeProcesses()const -{ - return nodeProcesses_; -} - -int NodeProcessesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeProcessesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessesResult::getSuccess()const -{ - return success_; -} - +std::vector NodeProcessesResult::getNodeProcesses()const +{ + return nodeProcesses_; +} + +int NodeProcessesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeProcessesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeProcessesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeStatusListRequest.cc b/cms/src/model/NodeStatusListRequest.cc index d65089e8d..03ace2bf4 100644 --- a/cms/src/model/NodeStatusListRequest.cc +++ b/cms/src/model/NodeStatusListRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeStatusListRequest; NodeStatusListRequest::NodeStatusListRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeStatusList") + RpcServiceRequest("cms", "2018-03-08", "NodeStatusList") {} NodeStatusListRequest::~NodeStatusListRequest() diff --git a/cms/src/model/NodeStatusListResult.cc b/cms/src/model/NodeStatusListResult.cc index 41dbddbe5..b05e8953d 100644 --- a/cms/src/model/NodeStatusListResult.cc +++ b/cms/src/model/NodeStatusListResult.cc @@ -40,44 +40,44 @@ void NodeStatusListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allNodeStatusList = value["NodeStatusList"]["NodeStatus"]; - for (auto value : allNodeStatusList) - { - NodeStatus nodeStatusListObject; - if(!value["InstanceId"].isNull()) - nodeStatusListObject.instanceId = value["InstanceId"].asString(); - if(!value["AutoInstall"].isNull()) - nodeStatusListObject.autoInstall = value["AutoInstall"].asString() == "true"; - if(!value["Status"].isNull()) - nodeStatusListObject.status = value["Status"].asString(); - nodeStatusList_.push_back(nodeStatusListObject); - } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + auto allNodeStatusList = value["NodeStatusList"]["NodeStatus"]; + for (auto value : allNodeStatusList) + { + NodeStatus nodeStatusListObject; + if(!value["InstanceId"].isNull()) + nodeStatusListObject.instanceId = value["InstanceId"].asString(); + if(!value["AutoInstall"].isNull()) + nodeStatusListObject.autoInstall = value["AutoInstall"].asString() == "true"; + if(!value["Status"].isNull()) + nodeStatusListObject.status = value["Status"].asString(); + nodeStatusList_.push_back(nodeStatusListObject); + } + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::vector NodeStatusListResult::getNodeStatusList()const -{ - return nodeStatusList_; -} - -int NodeStatusListResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeStatusListResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeStatusListResult::getSuccess()const -{ - return success_; -} - +std::vector NodeStatusListResult::getNodeStatusList()const +{ + return nodeStatusList_; +} + +int NodeStatusListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeStatusListResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeStatusListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeStatusRequest.cc b/cms/src/model/NodeStatusRequest.cc index 36465b072..3f93239c1 100644 --- a/cms/src/model/NodeStatusRequest.cc +++ b/cms/src/model/NodeStatusRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeStatusRequest; NodeStatusRequest::NodeStatusRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeStatus") + RpcServiceRequest("cms", "2018-03-08", "NodeStatus") {} NodeStatusRequest::~NodeStatusRequest() diff --git a/cms/src/model/NodeStatusResult.cc b/cms/src/model/NodeStatusResult.cc index 9d3c60347..c938be996 100644 --- a/cms/src/model/NodeStatusResult.cc +++ b/cms/src/model/NodeStatusResult.cc @@ -40,48 +40,48 @@ void NodeStatusResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["AutoInstall"].isNull()) - autoInstall_ = value["AutoInstall"].asString() == "true"; - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["AutoInstall"].isNull()) + autoInstall_ = value["AutoInstall"].asString() == "true"; + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); } -std::string NodeStatusResult::getStatus()const -{ - return status_; -} - -bool NodeStatusResult::getAutoInstall()const -{ - return autoInstall_; -} - -std::string NodeStatusResult::getInstanceId()const -{ - return instanceId_; -} - -int NodeStatusResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeStatusResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeStatusResult::getSuccess()const -{ - return success_; -} - +std::string NodeStatusResult::getStatus()const +{ + return status_; +} + +bool NodeStatusResult::getAutoInstall()const +{ + return autoInstall_; +} + +std::string NodeStatusResult::getInstanceId()const +{ + return instanceId_; +} + +int NodeStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeUninstallRequest.cc b/cms/src/model/NodeUninstallRequest.cc index 4d7482bf5..2a89351c2 100644 --- a/cms/src/model/NodeUninstallRequest.cc +++ b/cms/src/model/NodeUninstallRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::NodeUninstallRequest; NodeUninstallRequest::NodeUninstallRequest() : - RpcServiceRequest("cms", "2017-03-01", "NodeUninstall") + RpcServiceRequest("cms", "2018-03-08", "NodeUninstall") {} NodeUninstallRequest::~NodeUninstallRequest() diff --git a/cms/src/model/NodeUninstallResult.cc b/cms/src/model/NodeUninstallResult.cc index 04ddcbfa9..ed376b2d1 100644 --- a/cms/src/model/NodeUninstallResult.cc +++ b/cms/src/model/NodeUninstallResult.cc @@ -40,27 +40,27 @@ void NodeUninstallResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -int NodeUninstallResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeUninstallResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeUninstallResult::getSuccess()const -{ - return success_; -} - +int NodeUninstallResult::getErrorCode()const +{ + return errorCode_; +} + +std::string NodeUninstallResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool NodeUninstallResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ProfileGetRequest.cc b/cms/src/model/ProfileGetRequest.cc index 9e4534191..a38e8e099 100644 --- a/cms/src/model/ProfileGetRequest.cc +++ b/cms/src/model/ProfileGetRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ProfileGetRequest; ProfileGetRequest::ProfileGetRequest() : - RpcServiceRequest("cms", "2017-03-01", "ProfileGet") + RpcServiceRequest("cms", "2018-03-08", "ProfileGet") {} ProfileGetRequest::~ProfileGetRequest() diff --git a/cms/src/model/ProfileGetResult.cc b/cms/src/model/ProfileGetResult.cc index 0f8f558bd..f44a46c94 100644 --- a/cms/src/model/ProfileGetResult.cc +++ b/cms/src/model/ProfileGetResult.cc @@ -40,55 +40,55 @@ void ProfileGetResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["UserId"].isNull()) - userId_ = std::stol(value["UserId"].asString()); - if(!value["AutoInstall"].isNull()) - autoInstall_ = value["AutoInstall"].asString() == "true"; - if(!value["EnableInstallAgentNewECS"].isNull()) - enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; - if(!value["EnableActiveAlert"].isNull()) - enableActiveAlert_ = value["EnableActiveAlert"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["UserId"].isNull()) + userId_ = std::stol(value["UserId"].asString()); + if(!value["AutoInstall"].isNull()) + autoInstall_ = value["AutoInstall"].asString() == "true"; + if(!value["EnableInstallAgentNewECS"].isNull()) + enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; + if(!value["EnableActiveAlert"].isNull()) + enableActiveAlert_ = value["EnableActiveAlert"].asString(); } -bool ProfileGetResult::getAutoInstall()const -{ - return autoInstall_; -} - -std::string ProfileGetResult::getEnableActiveAlert()const -{ - return enableActiveAlert_; -} - -bool ProfileGetResult::getEnableInstallAgentNewECS()const -{ - return enableInstallAgentNewECS_; -} - -long ProfileGetResult::getUserId()const -{ - return userId_; -} - -int ProfileGetResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ProfileGetResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ProfileGetResult::getSuccess()const -{ - return success_; -} - +bool ProfileGetResult::getAutoInstall()const +{ + return autoInstall_; +} + +std::string ProfileGetResult::getEnableActiveAlert()const +{ + return enableActiveAlert_; +} + +bool ProfileGetResult::getEnableInstallAgentNewECS()const +{ + return enableInstallAgentNewECS_; +} + +long ProfileGetResult::getUserId()const +{ + return userId_; +} + +int ProfileGetResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ProfileGetResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ProfileGetResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ProfileSetRequest.cc b/cms/src/model/ProfileSetRequest.cc index ea0e27ef2..4b2ed8d1e 100644 --- a/cms/src/model/ProfileSetRequest.cc +++ b/cms/src/model/ProfileSetRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::ProfileSetRequest; ProfileSetRequest::ProfileSetRequest() : - RpcServiceRequest("cms", "2017-03-01", "ProfileSet") + RpcServiceRequest("cms", "2018-03-08", "ProfileSet") {} ProfileSetRequest::~ProfileSetRequest() @@ -33,7 +33,7 @@ bool ProfileSetRequest::getEnableInstallAgentNewECS()const void ProfileSetRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) { enableInstallAgentNewECS_ = enableInstallAgentNewECS; - setParameter("EnableInstallAgentNewECS", std::to_string(enableInstallAgentNewECS)); + setParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); } std::string ProfileSetRequest::getEnableActiveAlert()const @@ -55,7 +55,7 @@ bool ProfileSetRequest::getAutoInstall()const void ProfileSetRequest::setAutoInstall(bool autoInstall) { autoInstall_ = autoInstall; - setParameter("AutoInstall", std::to_string(autoInstall)); + setParameter("AutoInstall", autoInstall ? "true" : "false"); } long ProfileSetRequest::getUserId()const diff --git a/cms/src/model/ProfileSetResult.cc b/cms/src/model/ProfileSetResult.cc index ebe87e329..14e122a4d 100644 --- a/cms/src/model/ProfileSetResult.cc +++ b/cms/src/model/ProfileSetResult.cc @@ -40,27 +40,27 @@ void ProfileSetResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -int ProfileSetResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ProfileSetResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ProfileSetResult::getSuccess()const -{ - return success_; -} - +int ProfileSetResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ProfileSetResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ProfileSetResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutCustomMetricRequest.cc b/cms/src/model/PutCustomMetricRequest.cc index 7231b5dd8..be9975ce0 100644 --- a/cms/src/model/PutCustomMetricRequest.cc +++ b/cms/src/model/PutCustomMetricRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::PutCustomMetricRequest; PutCustomMetricRequest::PutCustomMetricRequest() : - RpcServiceRequest("cms", "2017-03-01", "PutCustomMetric") + RpcServiceRequest("cms", "2018-03-08", "PutCustomMetric") {} PutCustomMetricRequest::~PutCustomMetricRequest() diff --git a/cms/src/model/PutCustomMetricResult.cc b/cms/src/model/PutCustomMetricResult.cc index 82b7d384b..a64f797de 100644 --- a/cms/src/model/PutCustomMetricResult.cc +++ b/cms/src/model/PutCustomMetricResult.cc @@ -40,27 +40,27 @@ void PutCustomMetricResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string PutCustomMetricResult::getMessage()const -{ - return message_; -} - -std::string PutCustomMetricResult::getData()const -{ - return data_; -} - -std::string PutCustomMetricResult::getCode()const -{ - return code_; -} - +std::string PutCustomMetricResult::getMessage()const +{ + return message_; +} + +std::string PutCustomMetricResult::getData()const +{ + return data_; +} + +std::string PutCustomMetricResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/PutEventRequest.cc b/cms/src/model/PutEventRequest.cc index f7dcb734c..783ff56ed 100644 --- a/cms/src/model/PutEventRequest.cc +++ b/cms/src/model/PutEventRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::PutEventRequest; PutEventRequest::PutEventRequest() : - RpcServiceRequest("cms", "2017-03-01", "PutEvent") + RpcServiceRequest("cms", "2018-03-08", "PutEvent") {} PutEventRequest::~PutEventRequest() diff --git a/cms/src/model/PutEventResult.cc b/cms/src/model/PutEventResult.cc index 12ab65e21..e3b882330 100644 --- a/cms/src/model/PutEventResult.cc +++ b/cms/src/model/PutEventResult.cc @@ -40,27 +40,27 @@ void PutEventResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string PutEventResult::getMessage()const -{ - return message_; -} - -std::string PutEventResult::getData()const -{ - return data_; -} - -std::string PutEventResult::getCode()const -{ - return code_; -} - +std::string PutEventResult::getMessage()const +{ + return message_; +} + +std::string PutEventResult::getData()const +{ + return data_; +} + +std::string PutEventResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/PutEventRuleRequest.cc b/cms/src/model/PutEventRuleRequest.cc new file mode 100644 index 000000000..fcac71446 --- /dev/null +++ b/cms/src/model/PutEventRuleRequest.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 + +using AlibabaCloud::Cms::Model::PutEventRuleRequest; + +PutEventRuleRequest::PutEventRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "PutEventRule") +{} + +PutEventRuleRequest::~PutEventRuleRequest() +{} + +std::vector PutEventRuleRequest::getEventPattern()const +{ + return eventPattern_; +} + +void PutEventRuleRequest::setEventPattern(const std::vector& eventPattern) +{ + eventPattern_ = eventPattern; + int i = 0; + 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)); + } +} + +std::string PutEventRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutEventRuleRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string PutEventRuleRequest::getName()const +{ + return name_; +} + +void PutEventRuleRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string PutEventRuleRequest::getDescription()const +{ + return description_; +} + +void PutEventRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string PutEventRuleRequest::getEventType()const +{ + return eventType_; +} + +void PutEventRuleRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +std::string PutEventRuleRequest::getState()const +{ + return state_; +} + +void PutEventRuleRequest::setState(const std::string& state) +{ + state_ = state; + setParameter("State", state); +} + diff --git a/cms/src/model/PutEventRuleResult.cc b/cms/src/model/PutEventRuleResult.cc new file mode 100644 index 000000000..ef0a4777e --- /dev/null +++ b/cms/src/model/PutEventRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutEventRuleResult::PutEventRuleResult() : + ServiceResult() +{} + +PutEventRuleResult::PutEventRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutEventRuleResult::~PutEventRuleResult() +{} + +void PutEventRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string PutEventRuleResult::getMessage()const +{ + return message_; +} + +std::string PutEventRuleResult::getData()const +{ + return data_; +} + +std::string PutEventRuleResult::getCode()const +{ + return code_; +} + +bool PutEventRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutEventTargetsRequest.cc b/cms/src/model/PutEventTargetsRequest.cc new file mode 100644 index 000000000..b5100d425 --- /dev/null +++ b/cms/src/model/PutEventTargetsRequest.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 + +using AlibabaCloud::Cms::Model::PutEventTargetsRequest; + +PutEventTargetsRequest::PutEventTargetsRequest() : + RpcServiceRequest("cms", "2018-03-08", "PutEventTargets") +{} + +PutEventTargetsRequest::~PutEventTargetsRequest() +{} + +std::vector PutEventTargetsRequest::getWebhookParameters()const +{ + return webhookParameters_; +} + +void PutEventTargetsRequest::setWebhookParameters(const std::vector& webhookParameters) +{ + webhookParameters_ = webhookParameters; + int i = 0; + for(int i = 0; i!= webhookParameters.size(); i++) { + auto obj = webhookParameters.at(i); + std::string str ="WebhookParameters."+ std::to_string(i); + setParameter(str + ".Protocol", obj.protocol); + setParameter(str + ".Method", obj.method); + setParameter(str + ".Id", obj.id); + setParameter(str + ".Url", obj.url); + } +} + +std::vector PutEventTargetsRequest::getContactParameters()const +{ + return contactParameters_; +} + +void PutEventTargetsRequest::setContactParameters(const std::vector& contactParameters) +{ + contactParameters_ = contactParameters; + int i = 0; + for(int i = 0; i!= contactParameters.size(); i++) { + auto obj = contactParameters.at(i); + std::string str ="ContactParameters."+ std::to_string(i); + setParameter(str + ".Level", obj.level); + setParameter(str + ".Id", obj.id); + setParameter(str + ".ContactGroupName", obj.contactGroupName); + } +} + +std::vector PutEventTargetsRequest::getSlsParameters()const +{ + return slsParameters_; +} + +void PutEventTargetsRequest::setSlsParameters(const std::vector& slsParameters) +{ + slsParameters_ = slsParameters; + int i = 0; + 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); + } +} + +std::vector PutEventTargetsRequest::getFcParameters()const +{ + return fcParameters_; +} + +void PutEventTargetsRequest::setFcParameters(const std::vector& fcParameters) +{ + fcParameters_ = fcParameters; + int i = 0; + 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); + } +} + +std::string PutEventTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void PutEventTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + +std::vector PutEventTargetsRequest::getMnsParameters()const +{ + return mnsParameters_; +} + +void PutEventTargetsRequest::setMnsParameters(const std::vector& mnsParameters) +{ + mnsParameters_ = mnsParameters; + int i = 0; + 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); + } +} + diff --git a/cms/src/model/PutEventTargetsResult.cc b/cms/src/model/PutEventTargetsResult.cc new file mode 100644 index 000000000..1ce9285bf --- /dev/null +++ b/cms/src/model/PutEventTargetsResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutEventTargetsResult::PutEventTargetsResult() : + ServiceResult() +{} + +PutEventTargetsResult::PutEventTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutEventTargetsResult::~PutEventTargetsResult() +{} + +void PutEventTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allContactParameters = value["ContactParameters"]["ContactParameter"]; + for (auto value : allContactParameters) + { + ContactParameter contactParametersObject; + if(!value["Id"].isNull()) + contactParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["ContactGroupName"].isNull()) + contactParametersObject.contactGroupName = value["ContactGroupName"].asString(); + if(!value["Level"].isNull()) + contactParametersObject.level = value["Level"].asString(); + contactParameters_.push_back(contactParametersObject); + } + auto allMnsParameters = value["MnsParameters"]["MnsParameter"]; + for (auto value : allMnsParameters) + { + MnsParameter mnsParametersObject; + if(!value["Id"].isNull()) + mnsParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["Region"].isNull()) + mnsParametersObject.region = value["Region"].asString(); + if(!value["Queue"].isNull()) + mnsParametersObject.queue = value["Queue"].asString(); + mnsParameters_.push_back(mnsParametersObject); + } + auto allFcParameters = value["FcParameters"]["FcParameter"]; + for (auto value : allFcParameters) + { + FcParameter fcParametersObject; + if(!value["Id"].isNull()) + fcParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["Region"].isNull()) + fcParametersObject.region = value["Region"].asString(); + if(!value["ServiceName"].isNull()) + fcParametersObject.serviceName = value["ServiceName"].asString(); + if(!value["FunctionName"].isNull()) + fcParametersObject.functionName = value["FunctionName"].asString(); + fcParameters_.push_back(fcParametersObject); + } + auto allFailedContactParameters = value["FailedContactParameters"]["ContactParameter"]; + for (auto value : allFailedContactParameters) + { + ContactParameter failedContactParametersObject; + if(!value["Id"].isNull()) + failedContactParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["ContactGroupName"].isNull()) + failedContactParametersObject.contactGroupName = value["ContactGroupName"].asString(); + if(!value["Level"].isNull()) + failedContactParametersObject.level = value["Level"].asString(); + failedContactParameters_.push_back(failedContactParametersObject); + } + auto allFailedMnsParameters = value["FailedMnsParameters"]["MnsParameter"]; + for (auto value : allFailedMnsParameters) + { + MnsParameter failedMnsParametersObject; + if(!value["Id"].isNull()) + failedMnsParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["Region"].isNull()) + failedMnsParametersObject.region = value["Region"].asString(); + if(!value["Queue"].isNull()) + failedMnsParametersObject.queue = value["Queue"].asString(); + failedMnsParameters_.push_back(failedMnsParametersObject); + } + auto allFailedFcParameters = value["FailedFcParameters"]["FcParameter"]; + for (auto value : allFailedFcParameters) + { + FcParameter failedFcParametersObject; + if(!value["Id"].isNull()) + failedFcParametersObject.id = std::stoi(value["Id"].asString()); + if(!value["Region"].isNull()) + failedFcParametersObject.region = value["Region"].asString(); + if(!value["ServiceName"].isNull()) + failedFcParametersObject.serviceName = value["ServiceName"].asString(); + if(!value["FunctionName"].isNull()) + failedFcParametersObject.functionName = value["FunctionName"].asString(); + failedFcParameters_.push_back(failedFcParametersObject); + } + auto allFailedSlsParameters = value["FailedSlsParameters"]["FailedSlsParameter"]; + for (auto value : allFailedSlsParameters) + { + FailedSlsParameter failedSlsParametersObject; + if(!value["Id"].isNull()) + failedSlsParametersObject.id = value["Id"].asString(); + if(!value["Region"].isNull()) + failedSlsParametersObject.region = value["Region"].asString(); + if(!value["Project"].isNull()) + failedSlsParametersObject.project = value["Project"].asString(); + if(!value["LogStore"].isNull()) + failedSlsParametersObject.logStore = value["LogStore"].asString(); + failedSlsParameters_.push_back(failedSlsParametersObject); + } + 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["ParameterCount"].isNull()) + parameterCount_ = value["ParameterCount"].asString(); + if(!value["FailedParameterCount"].isNull()) + failedParameterCount_ = value["FailedParameterCount"].asString(); + +} + +std::string PutEventTargetsResult::getParameterCount()const +{ + return parameterCount_; +} + +std::vector PutEventTargetsResult::getContactParameters()const +{ + return contactParameters_; +} + +std::string PutEventTargetsResult::getMessage()const +{ + return message_; +} + +std::vector PutEventTargetsResult::getFailedMnsParameters()const +{ + return failedMnsParameters_; +} + +std::vector PutEventTargetsResult::getFailedFcParameters()const +{ + return failedFcParameters_; +} + +std::vector PutEventTargetsResult::getFcParameters()const +{ + return fcParameters_; +} + +std::string PutEventTargetsResult::getFailedParameterCount()const +{ + return failedParameterCount_; +} + +std::vector PutEventTargetsResult::getFailedContactParameters()const +{ + return failedContactParameters_; +} + +std::string PutEventTargetsResult::getCode()const +{ + return code_; +} + +std::vector PutEventTargetsResult::getFailedSlsParameters()const +{ + return failedSlsParameters_; +} + +bool PutEventTargetsResult::getSuccess()const +{ + return success_; +} + +std::vector PutEventTargetsResult::getMnsParameters()const +{ + return mnsParameters_; +} + diff --git a/cms/src/model/PutGroupDynamicRuleRequest.cc b/cms/src/model/PutGroupDynamicRuleRequest.cc new file mode 100644 index 000000000..c7e28a1b3 --- /dev/null +++ b/cms/src/model/PutGroupDynamicRuleRequest.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::PutGroupDynamicRuleRequest; + +PutGroupDynamicRuleRequest::PutGroupDynamicRuleRequest() : + RpcServiceRequest("cms", "2018-03-08", "PutGroupDynamicRule") +{} + +PutGroupDynamicRuleRequest::~PutGroupDynamicRuleRequest() +{} + +long PutGroupDynamicRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutGroupDynamicRuleRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string PutGroupDynamicRuleRequest::getGroupRuleArrayJson()const +{ + return groupRuleArrayJson_; +} + +void PutGroupDynamicRuleRequest::setGroupRuleArrayJson(const std::string& groupRuleArrayJson) +{ + groupRuleArrayJson_ = groupRuleArrayJson; + setParameter("GroupRuleArrayJson", groupRuleArrayJson); +} + diff --git a/cms/src/model/PutGroupDynamicRuleResult.cc b/cms/src/model/PutGroupDynamicRuleResult.cc new file mode 100644 index 000000000..1805a534e --- /dev/null +++ b/cms/src/model/PutGroupDynamicRuleResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutGroupDynamicRuleResult::PutGroupDynamicRuleResult() : + ServiceResult() +{} + +PutGroupDynamicRuleResult::PutGroupDynamicRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutGroupDynamicRuleResult::~PutGroupDynamicRuleResult() +{} + +void PutGroupDynamicRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +int PutGroupDynamicRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PutGroupDynamicRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool PutGroupDynamicRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutMetricAlarmRequest.cc b/cms/src/model/PutMetricAlarmRequest.cc new file mode 100644 index 000000000..580ef0ee2 --- /dev/null +++ b/cms/src/model/PutMetricAlarmRequest.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::Cms::Model::PutMetricAlarmRequest; + +PutMetricAlarmRequest::PutMetricAlarmRequest() : + RpcServiceRequest("cms", "2018-03-08", "PutMetricAlarm") +{} + +PutMetricAlarmRequest::~PutMetricAlarmRequest() +{} + +std::string PutMetricAlarmRequest::getPeriod()const +{ + return period_; +} + +void PutMetricAlarmRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string PutMetricAlarmRequest::getWebhook()const +{ + return webhook_; +} + +void PutMetricAlarmRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setParameter("Webhook", webhook); +} + +std::string PutMetricAlarmRequest::getContactGroups()const +{ + return contactGroups_; +} + +void PutMetricAlarmRequest::setContactGroups(const std::string& contactGroups) +{ + contactGroups_ = contactGroups; + setParameter("ContactGroups", contactGroups); +} + +int PutMetricAlarmRequest::getLevel()const +{ + return level_; +} + +void PutMetricAlarmRequest::setLevel(int level) +{ + level_ = level; + setParameter("Level", std::to_string(level)); +} + +std::string PutMetricAlarmRequest::getSubject()const +{ + return subject_; +} + +void PutMetricAlarmRequest::setSubject(const std::string& subject) +{ + subject_ = subject; + setParameter("Subject", subject); +} + +std::string PutMetricAlarmRequest::getAlertName()const +{ + return alertName_; +} + +void PutMetricAlarmRequest::setAlertName(const std::string& alertName) +{ + alertName_ = alertName; + setParameter("AlertName", alertName); +} + +std::string PutMetricAlarmRequest::getGroupId()const +{ + return groupId_; +} + +void PutMetricAlarmRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string PutMetricAlarmRequest::getDescription()const +{ + return description_; +} + +void PutMetricAlarmRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string PutMetricAlarmRequest::getResources()const +{ + return resources_; +} + +void PutMetricAlarmRequest::setResources(const std::string& resources) +{ + resources_ = resources; + setParameter("Resources", resources); +} + +std::string PutMetricAlarmRequest::getThreshold()const +{ + return threshold_; +} + +void PutMetricAlarmRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string PutMetricAlarmRequest::getEffectiveInterval()const +{ + return effectiveInterval_; +} + +void PutMetricAlarmRequest::setEffectiveInterval(const std::string& effectiveInterval) +{ + effectiveInterval_ = effectiveInterval; + setParameter("EffectiveInterval", effectiveInterval); +} + +std::string PutMetricAlarmRequest::getGroupName()const +{ + return groupName_; +} + +void PutMetricAlarmRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string PutMetricAlarmRequest::getFilter()const +{ + return filter_; +} + +void PutMetricAlarmRequest::setFilter(const std::string& filter) +{ + filter_ = filter; + setParameter("Filter", filter); +} + +std::string PutMetricAlarmRequest::getNoEffectiveInterval()const +{ + return noEffectiveInterval_; +} + +void PutMetricAlarmRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) +{ + noEffectiveInterval_ = noEffectiveInterval; + setParameter("NoEffectiveInterval", noEffectiveInterval); +} + +std::string PutMetricAlarmRequest::getDisplayName()const +{ + return displayName_; +} + +void PutMetricAlarmRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +std::string PutMetricAlarmRequest::get_Namespace()const +{ + return _namespace_; +} + +void PutMetricAlarmRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setParameter("_Namespace", _namespace); +} + +int PutMetricAlarmRequest::getEvaluationCount()const +{ + return evaluationCount_; +} + +void PutMetricAlarmRequest::setEvaluationCount(int evaluationCount) +{ + evaluationCount_ = evaluationCount; + setParameter("EvaluationCount", std::to_string(evaluationCount)); +} + +int PutMetricAlarmRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void PutMetricAlarmRequest::setSilenceTime(int silenceTime) +{ + silenceTime_ = silenceTime; + setParameter("SilenceTime", std::to_string(silenceTime)); +} + +std::string PutMetricAlarmRequest::getInterval()const +{ + return interval_; +} + +void PutMetricAlarmRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string PutMetricAlarmRequest::getMetricName()const +{ + return metricName_; +} + +void PutMetricAlarmRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string PutMetricAlarmRequest::getDeepDive()const +{ + return deepDive_; +} + +void PutMetricAlarmRequest::setDeepDive(const std::string& deepDive) +{ + deepDive_ = deepDive; + setParameter("DeepDive", deepDive); +} + +std::string PutMetricAlarmRequest::getComparisonOperator()const +{ + return comparisonOperator_; +} + +void PutMetricAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) +{ + comparisonOperator_ = comparisonOperator; + setParameter("ComparisonOperator", comparisonOperator); +} + +std::string PutMetricAlarmRequest::getDimensions()const +{ + return dimensions_; +} + +void PutMetricAlarmRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setParameter("Dimensions", dimensions); +} + +std::string PutMetricAlarmRequest::getStatistics()const +{ + return statistics_; +} + +void PutMetricAlarmRequest::setStatistics(const std::string& statistics) +{ + statistics_ = statistics; + setParameter("Statistics", statistics); +} + diff --git a/cms/src/model/ListProductOfActiceAlertResult.cc b/cms/src/model/PutMetricAlarmResult.cc similarity index 65% rename from cms/src/model/ListProductOfActiceAlertResult.cc rename to cms/src/model/PutMetricAlarmResult.cc index 41160e21d..b461fa4d1 100644 --- a/cms/src/model/ListProductOfActiceAlertResult.cc +++ b/cms/src/model/PutMetricAlarmResult.cc @@ -14,60 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListProductOfActiceAlertResult::ListProductOfActiceAlertResult() : +PutMetricAlarmResult::PutMetricAlarmResult() : ServiceResult() {} -ListProductOfActiceAlertResult::ListProductOfActiceAlertResult(const std::string &payload) : +PutMetricAlarmResult::PutMetricAlarmResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListProductOfActiceAlertResult::~ListProductOfActiceAlertResult() +PutMetricAlarmResult::~PutMetricAlarmResult() {} -void ListProductOfActiceAlertResult::parse(const std::string &payload) +void PutMetricAlarmResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].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["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); } -std::string ListProductOfActiceAlertResult::getMessage()const -{ - return message_; -} - -std::string ListProductOfActiceAlertResult::getDatapoints()const -{ - return datapoints_; -} - -int ListProductOfActiceAlertResult::getCode()const -{ - return code_; -} - -bool ListProductOfActiceAlertResult::getSuccess()const -{ - return success_; -} - +std::string PutMetricAlarmResult::getMessage()const +{ + return message_; +} + +std::string PutMetricAlarmResult::getDatapoints()const +{ + return datapoints_; +} + +std::string PutMetricAlarmResult::getCode()const +{ + return code_; +} + +bool PutMetricAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutMetricDataRequest.cc b/cms/src/model/PutMetricDataRequest.cc deleted file mode 100644 index 7d71f7abe..000000000 --- a/cms/src/model/PutMetricDataRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cms::Model::PutMetricDataRequest; - -PutMetricDataRequest::PutMetricDataRequest() : - RpcServiceRequest("cms", "2017-03-01", "PutMetricData") -{} - -PutMetricDataRequest::~PutMetricDataRequest() -{} - -std::string PutMetricDataRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void PutMetricDataRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - -std::string PutMetricDataRequest::getBody()const -{ - return body_; -} - -void PutMetricDataRequest::setBody(const std::string& body) -{ - body_ = body; - setParameter("Body", body); -} - diff --git a/cms/src/model/QueryCustomEventCountRequest.cc b/cms/src/model/QueryCustomEventCountRequest.cc index fafa8b9c1..cff65e7fa 100644 --- a/cms/src/model/QueryCustomEventCountRequest.cc +++ b/cms/src/model/QueryCustomEventCountRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryCustomEventCountRequest; QueryCustomEventCountRequest::QueryCustomEventCountRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryCustomEventCount") + RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventCount") {} QueryCustomEventCountRequest::~QueryCustomEventCountRequest() diff --git a/cms/src/model/QueryCustomEventCountResult.cc b/cms/src/model/QueryCustomEventCountResult.cc index 7ea1d8239..37498846c 100644 --- a/cms/src/model/QueryCustomEventCountResult.cc +++ b/cms/src/model/QueryCustomEventCountResult.cc @@ -40,27 +40,34 @@ void QueryCustomEventCountResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string QueryCustomEventCountResult::getMessage()const -{ - return message_; -} - -std::string QueryCustomEventCountResult::getData()const -{ - return data_; -} - -std::string QueryCustomEventCountResult::getCode()const -{ - return code_; -} - +std::string QueryCustomEventCountResult::getMessage()const +{ + return message_; +} + +std::string QueryCustomEventCountResult::getData()const +{ + return data_; +} + +std::string QueryCustomEventCountResult::getCode()const +{ + return code_; +} + +bool QueryCustomEventCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryCustomEventDetailRequest.cc b/cms/src/model/QueryCustomEventDetailRequest.cc index 7b4c17f03..01b42dfd0 100644 --- a/cms/src/model/QueryCustomEventDetailRequest.cc +++ b/cms/src/model/QueryCustomEventDetailRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryCustomEventDetailRequest; QueryCustomEventDetailRequest::QueryCustomEventDetailRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryCustomEventDetail") + RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventDetail") {} QueryCustomEventDetailRequest::~QueryCustomEventDetailRequest() diff --git a/cms/src/model/QueryCustomEventDetailResult.cc b/cms/src/model/QueryCustomEventDetailResult.cc index e85d072ed..069d91d85 100644 --- a/cms/src/model/QueryCustomEventDetailResult.cc +++ b/cms/src/model/QueryCustomEventDetailResult.cc @@ -40,27 +40,34 @@ void QueryCustomEventDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QueryCustomEventDetailResult::getMessage()const -{ - return message_; -} - -std::string QueryCustomEventDetailResult::getData()const -{ - return data_; -} - -std::string QueryCustomEventDetailResult::getCode()const -{ - return code_; -} - +std::string QueryCustomEventDetailResult::getMessage()const +{ + return message_; +} + +std::string QueryCustomEventDetailResult::getData()const +{ + return data_; +} + +std::string QueryCustomEventDetailResult::getCode()const +{ + return code_; +} + +std::string QueryCustomEventDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryCustomEventHistogramRequest.cc b/cms/src/model/QueryCustomEventHistogramRequest.cc index c2fdb1d1d..18b37c245 100644 --- a/cms/src/model/QueryCustomEventHistogramRequest.cc +++ b/cms/src/model/QueryCustomEventHistogramRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryCustomEventHistogramRequest; QueryCustomEventHistogramRequest::QueryCustomEventHistogramRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryCustomEventHistogram") + RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventHistogram") {} QueryCustomEventHistogramRequest::~QueryCustomEventHistogramRequest() diff --git a/cms/src/model/QueryCustomEventHistogramResult.cc b/cms/src/model/QueryCustomEventHistogramResult.cc index 495165d32..95a34d7b6 100644 --- a/cms/src/model/QueryCustomEventHistogramResult.cc +++ b/cms/src/model/QueryCustomEventHistogramResult.cc @@ -40,27 +40,34 @@ void QueryCustomEventHistogramResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QueryCustomEventHistogramResult::getMessage()const -{ - return message_; -} - -std::string QueryCustomEventHistogramResult::getData()const -{ - return data_; -} - -std::string QueryCustomEventHistogramResult::getCode()const -{ - return code_; -} - +std::string QueryCustomEventHistogramResult::getMessage()const +{ + return message_; +} + +std::string QueryCustomEventHistogramResult::getData()const +{ + return data_; +} + +std::string QueryCustomEventHistogramResult::getCode()const +{ + return code_; +} + +std::string QueryCustomEventHistogramResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryCustomMetricListRequest.cc b/cms/src/model/QueryCustomMetricListRequest.cc index 6a1693f45..e5f84ec13 100644 --- a/cms/src/model/QueryCustomMetricListRequest.cc +++ b/cms/src/model/QueryCustomMetricListRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryCustomMetricListRequest; QueryCustomMetricListRequest::QueryCustomMetricListRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryCustomMetricList") + RpcServiceRequest("cms", "2018-03-08", "QueryCustomMetricList") {} QueryCustomMetricListRequest::~QueryCustomMetricListRequest() @@ -80,17 +80,6 @@ void QueryCustomMetricListRequest::setDimension(const std::string& dimension) setParameter("Dimension", dimension); } -std::string QueryCustomMetricListRequest::getUUID()const -{ - return uUID_; -} - -void QueryCustomMetricListRequest::setUUID(const std::string& uUID) -{ - uUID_ = uUID; - setParameter("UUID", uUID); -} - std::string QueryCustomMetricListRequest::getAccessKeyId()const { return accessKeyId_; diff --git a/cms/src/model/QueryCustomMetricListResult.cc b/cms/src/model/QueryCustomMetricListResult.cc index b47eab431..df99f19d2 100644 --- a/cms/src/model/QueryCustomMetricListResult.cc +++ b/cms/src/model/QueryCustomMetricListResult.cc @@ -40,27 +40,27 @@ void QueryCustomMetricListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -std::string QueryCustomMetricListResult::getMessage()const -{ - return message_; -} - -std::string QueryCustomMetricListResult::getCode()const -{ - return code_; -} - -std::string QueryCustomMetricListResult::getResult()const -{ - return result_; -} - +std::string QueryCustomMetricListResult::getMessage()const +{ + return message_; +} + +std::string QueryCustomMetricListResult::getCode()const +{ + return code_; +} + +std::string QueryCustomMetricListResult::getResult()const +{ + return result_; +} + diff --git a/cms/src/model/QueryErrorDistributionRequest.cc b/cms/src/model/QueryErrorDistributionRequest.cc new file mode 100644 index 000000000..ff765e854 --- /dev/null +++ b/cms/src/model/QueryErrorDistributionRequest.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::QueryErrorDistributionRequest; + +QueryErrorDistributionRequest::QueryErrorDistributionRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryErrorDistribution") +{} + +QueryErrorDistributionRequest::~QueryErrorDistributionRequest() +{} + +std::string QueryErrorDistributionRequest::getTimeRange()const +{ + return timeRange_; +} + +void QueryErrorDistributionRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setParameter("TimeRange", timeRange); +} + +std::string QueryErrorDistributionRequest::getTaskId()const +{ + return taskId_; +} + +void QueryErrorDistributionRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryErrorDistributionResult.cc b/cms/src/model/QueryErrorDistributionResult.cc new file mode 100644 index 000000000..140768319 --- /dev/null +++ b/cms/src/model/QueryErrorDistributionResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryErrorDistributionResult::QueryErrorDistributionResult() : + ServiceResult() +{} + +QueryErrorDistributionResult::QueryErrorDistributionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryErrorDistributionResult::~QueryErrorDistributionResult() +{} + +void QueryErrorDistributionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryErrorDistributionResult::getMessage()const +{ + return message_; +} + +std::string QueryErrorDistributionResult::getData()const +{ + return data_; +} + +std::string QueryErrorDistributionResult::getCode()const +{ + return code_; +} + +std::string QueryErrorDistributionResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryMetricDataRequest.cc b/cms/src/model/QueryMetricDataRequest.cc new file mode 100644 index 000000000..4b7ce4bc6 --- /dev/null +++ b/cms/src/model/QueryMetricDataRequest.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::Cms::Model::QueryMetricDataRequest; + +QueryMetricDataRequest::QueryMetricDataRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryMetricData") +{} + +QueryMetricDataRequest::~QueryMetricDataRequest() +{} + +long QueryMetricDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryMetricDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryMetricDataRequest::getPeriod()const +{ + return period_; +} + +void QueryMetricDataRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string QueryMetricDataRequest::getMetric()const +{ + return metric_; +} + +void QueryMetricDataRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string QueryMetricDataRequest::getLength()const +{ + return length_; +} + +void QueryMetricDataRequest::setLength(const std::string& length) +{ + length_ = length; + setParameter("Length", length); +} + +std::string QueryMetricDataRequest::getProject()const +{ + return project_; +} + +void QueryMetricDataRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string QueryMetricDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryMetricDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string QueryMetricDataRequest::getExpress()const +{ + return express_; +} + +void QueryMetricDataRequest::setExpress(const std::string& express) +{ + express_ = express; + setParameter("Express", express); +} + +std::string QueryMetricDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryMetricDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryMetricDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryMetricDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryMetricDataRequest::getDimensions()const +{ + return dimensions_; +} + +void QueryMetricDataRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/QueryMetricDataResult.cc b/cms/src/model/QueryMetricDataResult.cc new file mode 100644 index 000000000..fd5ac0186 --- /dev/null +++ b/cms/src/model/QueryMetricDataResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryMetricDataResult::QueryMetricDataResult() : + ServiceResult() +{} + +QueryMetricDataResult::QueryMetricDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMetricDataResult::~QueryMetricDataResult() +{} + +void QueryMetricDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); + if(!value["Period"].isNull()) + period_ = value["Period"].asString(); + +} + +std::string QueryMetricDataResult::getMessage()const +{ + return message_; +} + +std::string QueryMetricDataResult::getPeriod()const +{ + return period_; +} + +std::string QueryMetricDataResult::getDatapoints()const +{ + return datapoints_; +} + +std::string QueryMetricDataResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/QueryMetricLastRequest.cc b/cms/src/model/QueryMetricLastRequest.cc index 705dfd428..6263c5872 100644 --- a/cms/src/model/QueryMetricLastRequest.cc +++ b/cms/src/model/QueryMetricLastRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryMetricLastRequest; QueryMetricLastRequest::QueryMetricLastRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryMetricLast") + RpcServiceRequest("cms", "2018-03-08", "QueryMetricLast") {} QueryMetricLastRequest::~QueryMetricLastRequest() @@ -36,17 +36,6 @@ void QueryMetricLastRequest::setCursor(const std::string& cursor) setParameter("Cursor", cursor); } -std::string QueryMetricLastRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void QueryMetricLastRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - long QueryMetricLastRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cms/src/model/QueryMetricLastResult.cc b/cms/src/model/QueryMetricLastResult.cc index 040918115..19982f741 100644 --- a/cms/src/model/QueryMetricLastResult.cc +++ b/cms/src/model/QueryMetricLastResult.cc @@ -40,48 +40,48 @@ void QueryMetricLastResult::parse(const std::string &payload) reader.parse(payload, value); 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"; - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); - if(!value["Period"].isNull()) - period_ = value["Period"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Cursor"].isNull()) + cursor_ = value["Cursor"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); + if(!value["Period"].isNull()) + period_ = value["Period"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QueryMetricLastResult::getMessage()const -{ - return message_; -} - -std::string QueryMetricLastResult::getPeriod()const -{ - return period_; -} - -std::string QueryMetricLastResult::getCursor()const -{ - return cursor_; -} - -std::string QueryMetricLastResult::getDatapoints()const -{ - return datapoints_; -} - -std::string QueryMetricLastResult::getCode()const -{ - return code_; -} - -bool QueryMetricLastResult::getSuccess()const -{ - return success_; -} - +std::string QueryMetricLastResult::getMessage()const +{ + return message_; +} + +std::string QueryMetricLastResult::getPeriod()const +{ + return period_; +} + +std::string QueryMetricLastResult::getCursor()const +{ + return cursor_; +} + +std::string QueryMetricLastResult::getDatapoints()const +{ + return datapoints_; +} + +std::string QueryMetricLastResult::getCode()const +{ + return code_; +} + +std::string QueryMetricLastResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryMetricListRequest.cc b/cms/src/model/QueryMetricListRequest.cc index ea36ff2ae..cf1c0087a 100644 --- a/cms/src/model/QueryMetricListRequest.cc +++ b/cms/src/model/QueryMetricListRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QueryMetricListRequest; QueryMetricListRequest::QueryMetricListRequest() : - RpcServiceRequest("cms", "2017-03-01", "QueryMetricList") + RpcServiceRequest("cms", "2018-03-08", "QueryMetricList") {} QueryMetricListRequest::~QueryMetricListRequest() @@ -36,17 +36,6 @@ void QueryMetricListRequest::setCursor(const std::string& cursor) setParameter("Cursor", cursor); } -std::string QueryMetricListRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void QueryMetricListRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - long QueryMetricListRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -69,6 +58,17 @@ void QueryMetricListRequest::setPeriod(const std::string& period) setParameter("Period", period); } +std::string QueryMetricListRequest::getMetric()const +{ + return metric_; +} + +void QueryMetricListRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + std::string QueryMetricListRequest::getLength()const { return length_; @@ -135,28 +135,6 @@ void QueryMetricListRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } -std::string QueryMetricListRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricListRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setParameter("Metric", metric); -} - -std::string QueryMetricListRequest::getPage()const -{ - return page_; -} - -void QueryMetricListRequest::setPage(const std::string& page) -{ - page_ = page; - setParameter("Page", page); -} - std::string QueryMetricListRequest::getDimensions()const { return dimensions_; diff --git a/cms/src/model/QueryMetricListResult.cc b/cms/src/model/QueryMetricListResult.cc index 7dca81529..0438b0808 100644 --- a/cms/src/model/QueryMetricListResult.cc +++ b/cms/src/model/QueryMetricListResult.cc @@ -40,48 +40,48 @@ void QueryMetricListResult::parse(const std::string &payload) reader.parse(payload, value); 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"; - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); - if(!value["Period"].isNull()) - period_ = value["Period"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Cursor"].isNull()) + cursor_ = value["Cursor"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); + if(!value["Period"].isNull()) + period_ = value["Period"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QueryMetricListResult::getMessage()const -{ - return message_; -} - -std::string QueryMetricListResult::getPeriod()const -{ - return period_; -} - -std::string QueryMetricListResult::getCursor()const -{ - return cursor_; -} - -std::string QueryMetricListResult::getDatapoints()const -{ - return datapoints_; -} - -std::string QueryMetricListResult::getCode()const -{ - return code_; -} - -bool QueryMetricListResult::getSuccess()const -{ - return success_; -} - +std::string QueryMetricListResult::getMessage()const +{ + return message_; +} + +std::string QueryMetricListResult::getPeriod()const +{ + return period_; +} + +std::string QueryMetricListResult::getCursor()const +{ + return cursor_; +} + +std::string QueryMetricListResult::getDatapoints()const +{ + return datapoints_; +} + +std::string QueryMetricListResult::getCode()const +{ + return code_; +} + +std::string QueryMetricListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryMetricMetaRequest.cc b/cms/src/model/QueryMetricMetaRequest.cc new file mode 100644 index 000000000..b25cb5a7d --- /dev/null +++ b/cms/src/model/QueryMetricMetaRequest.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::Cms::Model::QueryMetricMetaRequest; + +QueryMetricMetaRequest::QueryMetricMetaRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryMetricMeta") +{} + +QueryMetricMetaRequest::~QueryMetricMetaRequest() +{} + +std::string QueryMetricMetaRequest::getMetric()const +{ + return metric_; +} + +void QueryMetricMetaRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +int QueryMetricMetaRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryMetricMetaRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryMetricMetaRequest::getProject()const +{ + return project_; +} + +void QueryMetricMetaRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +int QueryMetricMetaRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryMetricMetaRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string QueryMetricMetaRequest::getLabels()const +{ + return labels_; +} + +void QueryMetricMetaRequest::setLabels(const std::string& labels) +{ + labels_ = labels; + setParameter("Labels", labels); +} + diff --git a/cms/src/model/QueryMetricMetaResult.cc b/cms/src/model/QueryMetricMetaResult.cc new file mode 100644 index 000000000..8581ce33c --- /dev/null +++ b/cms/src/model/QueryMetricMetaResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryMetricMetaResult::QueryMetricMetaResult() : + ServiceResult() +{} + +QueryMetricMetaResult::QueryMetricMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMetricMetaResult::~QueryMetricMetaResult() +{} + +void QueryMetricMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["Project"].isNull()) + resourcesObject.project = value["Project"].asString(); + if(!value["Metric"].isNull()) + resourcesObject.metric = value["Metric"].asString(); + if(!value["Statistics"].isNull()) + resourcesObject.statistics = value["Statistics"].asString(); + if(!value["Unit"].isNull()) + resourcesObject.unit = value["Unit"].asString(); + if(!value["Description"].isNull()) + resourcesObject.description = value["Description"].asString(); + if(!value["Dimensions"].isNull()) + resourcesObject.dimensions = value["Dimensions"].asString(); + if(!value["Periods"].isNull()) + resourcesObject.periods = value["Periods"].asString(); + if(!value["Labels"].isNull()) + resourcesObject.labels = value["Labels"].asString(); + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector QueryMetricMetaResult::getResources()const +{ + return resources_; +} + +std::string QueryMetricMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryMetricMetaResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool QueryMetricMetaResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryMetricTopRequest.cc b/cms/src/model/QueryMetricTopRequest.cc new file mode 100644 index 000000000..cd1ee37d7 --- /dev/null +++ b/cms/src/model/QueryMetricTopRequest.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::Cms::Model::QueryMetricTopRequest; + +QueryMetricTopRequest::QueryMetricTopRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryMetricTop") +{} + +QueryMetricTopRequest::~QueryMetricTopRequest() +{} + +std::string QueryMetricTopRequest::getPeriod()const +{ + return period_; +} + +void QueryMetricTopRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +long QueryMetricTopRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryMetricTopRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryMetricTopRequest::getMetric()const +{ + return metric_; +} + +void QueryMetricTopRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string QueryMetricTopRequest::getLength()const +{ + return length_; +} + +void QueryMetricTopRequest::setLength(const std::string& length) +{ + length_ = length; + setParameter("Length", length); +} + +std::string QueryMetricTopRequest::getProject()const +{ + return project_; +} + +void QueryMetricTopRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string QueryMetricTopRequest::getEndTime()const +{ + return endTime_; +} + +void QueryMetricTopRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string QueryMetricTopRequest::getOrderby()const +{ + return orderby_; +} + +void QueryMetricTopRequest::setOrderby(const std::string& orderby) +{ + orderby_ = orderby; + setParameter("Orderby", orderby); +} + +std::string QueryMetricTopRequest::getExpress()const +{ + return express_; +} + +void QueryMetricTopRequest::setExpress(const std::string& express) +{ + express_ = express; + setParameter("Express", express); +} + +std::string QueryMetricTopRequest::getStartTime()const +{ + return startTime_; +} + +void QueryMetricTopRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryMetricTopRequest::getDimensions()const +{ + return dimensions_; +} + +void QueryMetricTopRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setParameter("Dimensions", dimensions); +} + +std::string QueryMetricTopRequest::getOrderDesc()const +{ + return orderDesc_; +} + +void QueryMetricTopRequest::setOrderDesc(const std::string& orderDesc) +{ + orderDesc_ = orderDesc; + setParameter("OrderDesc", orderDesc); +} + +std::string QueryMetricTopRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryMetricTopRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/cms/src/model/QueryMetricTopResult.cc b/cms/src/model/QueryMetricTopResult.cc new file mode 100644 index 000000000..f9846d5a6 --- /dev/null +++ b/cms/src/model/QueryMetricTopResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryMetricTopResult::QueryMetricTopResult() : + ServiceResult() +{} + +QueryMetricTopResult::QueryMetricTopResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMetricTopResult::~QueryMetricTopResult() +{} + +void QueryMetricTopResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); + if(!value["Period"].isNull()) + period_ = value["Period"].asString(); + +} + +std::string QueryMetricTopResult::getMessage()const +{ + return message_; +} + +std::string QueryMetricTopResult::getPeriod()const +{ + return period_; +} + +std::string QueryMetricTopResult::getDatapoints()const +{ + return datapoints_; +} + +std::string QueryMetricTopResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/QueryMonitorDataRequest.cc b/cms/src/model/QueryMonitorDataRequest.cc new file mode 100644 index 000000000..f490ac790 --- /dev/null +++ b/cms/src/model/QueryMonitorDataRequest.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::Cms::Model::QueryMonitorDataRequest; + +QueryMonitorDataRequest::QueryMonitorDataRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryMonitorData") +{} + +QueryMonitorDataRequest::~QueryMonitorDataRequest() +{} + +std::string QueryMonitorDataRequest::getCursor()const +{ + return cursor_; +} + +void QueryMonitorDataRequest::setCursor(const std::string& cursor) +{ + cursor_ = cursor; + setParameter("Cursor", cursor); +} + +std::string QueryMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void QueryMonitorDataRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +int QueryMonitorDataRequest::getLength()const +{ + return length_; +} + +void QueryMonitorDataRequest::setLength(int length) +{ + length_ = length; + setParameter("Length", std::to_string(length)); +} + +std::string QueryMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string QueryMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryMonitorDataRequest::getType()const +{ + return type_; +} + +void QueryMonitorDataRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string QueryMonitorDataRequest::getMetricName()const +{ + return metricName_; +} + +void QueryMonitorDataRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string QueryMonitorDataRequest::getTaskId()const +{ + return taskId_; +} + +void QueryMonitorDataRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryMonitorDataResult.cc b/cms/src/model/QueryMonitorDataResult.cc new file mode 100644 index 000000000..348acf39c --- /dev/null +++ b/cms/src/model/QueryMonitorDataResult.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; + +QueryMonitorDataResult::QueryMonitorDataResult() : + ServiceResult() +{} + +QueryMonitorDataResult::QueryMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMonitorDataResult::~QueryMonitorDataResult() +{} + +void QueryMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Cursor"].isNull()) + cursor_ = value["Cursor"].asString(); + +} + +std::string QueryMonitorDataResult::getMessage()const +{ + return message_; +} + +std::string QueryMonitorDataResult::getTraceId()const +{ + return traceId_; +} + +std::string QueryMonitorDataResult::getData()const +{ + return data_; +} + +std::string QueryMonitorDataResult::getCursor()const +{ + return cursor_; +} + +std::string QueryMonitorDataResult::getCode()const +{ + return code_; +} + +std::string QueryMonitorDataResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryProjectMetaRequest.cc b/cms/src/model/QueryProjectMetaRequest.cc new file mode 100644 index 000000000..c9cf3916c --- /dev/null +++ b/cms/src/model/QueryProjectMetaRequest.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::Cms::Model::QueryProjectMetaRequest; + +QueryProjectMetaRequest::QueryProjectMetaRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryProjectMeta") +{} + +QueryProjectMetaRequest::~QueryProjectMetaRequest() +{} + +int QueryProjectMetaRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryProjectMetaRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int QueryProjectMetaRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryProjectMetaRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string QueryProjectMetaRequest::getLabels()const +{ + return labels_; +} + +void QueryProjectMetaRequest::setLabels(const std::string& labels) +{ + labels_ = labels; + setParameter("Labels", labels); +} + diff --git a/cms/src/model/QueryProjectMetaResult.cc b/cms/src/model/QueryProjectMetaResult.cc new file mode 100644 index 000000000..33b3bfde2 --- /dev/null +++ b/cms/src/model/QueryProjectMetaResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryProjectMetaResult::QueryProjectMetaResult() : + ServiceResult() +{} + +QueryProjectMetaResult::QueryProjectMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryProjectMetaResult::~QueryProjectMetaResult() +{} + +void QueryProjectMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["Project"].isNull()) + resourcesObject.project = value["Project"].asString(); + if(!value["Description"].isNull()) + resourcesObject.description = value["Description"].asString(); + if(!value["Labels"].isNull()) + resourcesObject.labels = value["Labels"].asString(); + resources_.push_back(resourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector QueryProjectMetaResult::getResources()const +{ + return resources_; +} + +std::string QueryProjectMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryProjectMetaResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool QueryProjectMetaResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryStaticsAvailabilityRequest.cc b/cms/src/model/QueryStaticsAvailabilityRequest.cc new file mode 100644 index 000000000..dd593fe33 --- /dev/null +++ b/cms/src/model/QueryStaticsAvailabilityRequest.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::QueryStaticsAvailabilityRequest; + +QueryStaticsAvailabilityRequest::QueryStaticsAvailabilityRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryStaticsAvailability") +{} + +QueryStaticsAvailabilityRequest::~QueryStaticsAvailabilityRequest() +{} + +std::string QueryStaticsAvailabilityRequest::getTimeRange()const +{ + return timeRange_; +} + +void QueryStaticsAvailabilityRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setParameter("TimeRange", timeRange); +} + +std::string QueryStaticsAvailabilityRequest::getTaskId()const +{ + return taskId_; +} + +void QueryStaticsAvailabilityRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryStaticsAvailabilityResult.cc b/cms/src/model/QueryStaticsAvailabilityResult.cc new file mode 100644 index 000000000..09432403f --- /dev/null +++ b/cms/src/model/QueryStaticsAvailabilityResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryStaticsAvailabilityResult::QueryStaticsAvailabilityResult() : + ServiceResult() +{} + +QueryStaticsAvailabilityResult::QueryStaticsAvailabilityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStaticsAvailabilityResult::~QueryStaticsAvailabilityResult() +{} + +void QueryStaticsAvailabilityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryStaticsAvailabilityResult::getMessage()const +{ + return message_; +} + +std::string QueryStaticsAvailabilityResult::getData()const +{ + return data_; +} + +std::string QueryStaticsAvailabilityResult::getCode()const +{ + return code_; +} + +std::string QueryStaticsAvailabilityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryStaticsErrorRateRequest.cc b/cms/src/model/QueryStaticsErrorRateRequest.cc new file mode 100644 index 000000000..671d280b6 --- /dev/null +++ b/cms/src/model/QueryStaticsErrorRateRequest.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::QueryStaticsErrorRateRequest; + +QueryStaticsErrorRateRequest::QueryStaticsErrorRateRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryStaticsErrorRate") +{} + +QueryStaticsErrorRateRequest::~QueryStaticsErrorRateRequest() +{} + +std::string QueryStaticsErrorRateRequest::getTimeRange()const +{ + return timeRange_; +} + +void QueryStaticsErrorRateRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setParameter("TimeRange", timeRange); +} + +std::string QueryStaticsErrorRateRequest::getTaskId()const +{ + return taskId_; +} + +void QueryStaticsErrorRateRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryStaticsErrorRateResult.cc b/cms/src/model/QueryStaticsErrorRateResult.cc new file mode 100644 index 000000000..df022025a --- /dev/null +++ b/cms/src/model/QueryStaticsErrorRateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryStaticsErrorRateResult::QueryStaticsErrorRateResult() : + ServiceResult() +{} + +QueryStaticsErrorRateResult::QueryStaticsErrorRateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStaticsErrorRateResult::~QueryStaticsErrorRateResult() +{} + +void QueryStaticsErrorRateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryStaticsErrorRateResult::getMessage()const +{ + return message_; +} + +std::string QueryStaticsErrorRateResult::getData()const +{ + return data_; +} + +std::string QueryStaticsErrorRateResult::getCode()const +{ + return code_; +} + +std::string QueryStaticsErrorRateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryStaticsResponseTimeRequest.cc b/cms/src/model/QueryStaticsResponseTimeRequest.cc new file mode 100644 index 000000000..0f8edeaf3 --- /dev/null +++ b/cms/src/model/QueryStaticsResponseTimeRequest.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::QueryStaticsResponseTimeRequest; + +QueryStaticsResponseTimeRequest::QueryStaticsResponseTimeRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryStaticsResponseTime") +{} + +QueryStaticsResponseTimeRequest::~QueryStaticsResponseTimeRequest() +{} + +std::string QueryStaticsResponseTimeRequest::getTimeRange()const +{ + return timeRange_; +} + +void QueryStaticsResponseTimeRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setParameter("TimeRange", timeRange); +} + +std::string QueryStaticsResponseTimeRequest::getTaskId()const +{ + return taskId_; +} + +void QueryStaticsResponseTimeRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryStaticsResponseTimeResult.cc b/cms/src/model/QueryStaticsResponseTimeResult.cc new file mode 100644 index 000000000..4d01b49ca --- /dev/null +++ b/cms/src/model/QueryStaticsResponseTimeResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryStaticsResponseTimeResult::QueryStaticsResponseTimeResult() : + ServiceResult() +{} + +QueryStaticsResponseTimeResult::QueryStaticsResponseTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStaticsResponseTimeResult::~QueryStaticsResponseTimeResult() +{} + +void QueryStaticsResponseTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryStaticsResponseTimeResult::getMessage()const +{ + return message_; +} + +std::string QueryStaticsResponseTimeResult::getData()const +{ + return data_; +} + +std::string QueryStaticsResponseTimeResult::getCode()const +{ + return code_; +} + +std::string QueryStaticsResponseTimeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QuerySystemEventCountRequest.cc b/cms/src/model/QuerySystemEventCountRequest.cc index 4286c9715..7be446276 100644 --- a/cms/src/model/QuerySystemEventCountRequest.cc +++ b/cms/src/model/QuerySystemEventCountRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QuerySystemEventCountRequest; QuerySystemEventCountRequest::QuerySystemEventCountRequest() : - RpcServiceRequest("cms", "2017-03-01", "QuerySystemEventCount") + RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventCount") {} QuerySystemEventCountRequest::~QuerySystemEventCountRequest() diff --git a/cms/src/model/QuerySystemEventCountResult.cc b/cms/src/model/QuerySystemEventCountResult.cc index 49f19a19c..9637203e3 100644 --- a/cms/src/model/QuerySystemEventCountResult.cc +++ b/cms/src/model/QuerySystemEventCountResult.cc @@ -40,27 +40,34 @@ void QuerySystemEventCountResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QuerySystemEventCountResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventCountResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventCountResult::getCode()const -{ - return code_; -} - +std::string QuerySystemEventCountResult::getMessage()const +{ + return message_; +} + +std::string QuerySystemEventCountResult::getData()const +{ + return data_; +} + +std::string QuerySystemEventCountResult::getCode()const +{ + return code_; +} + +std::string QuerySystemEventCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableActiceAlertRequest.cc b/cms/src/model/QuerySystemEventDemoRequest.cc similarity index 51% rename from cms/src/model/EnableActiceAlertRequest.cc rename to cms/src/model/QuerySystemEventDemoRequest.cc index ee69848b6..9608d3a3d 100644 --- a/cms/src/model/EnableActiceAlertRequest.cc +++ b/cms/src/model/QuerySystemEventDemoRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::EnableActiceAlertRequest; +using AlibabaCloud::Cms::Model::QuerySystemEventDemoRequest; -EnableActiceAlertRequest::EnableActiceAlertRequest() : - RpcServiceRequest("cms", "2017-03-01", "EnableActiceAlert") +QuerySystemEventDemoRequest::QuerySystemEventDemoRequest() : + RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventDemo") {} -EnableActiceAlertRequest::~EnableActiceAlertRequest() +QuerySystemEventDemoRequest::~QuerySystemEventDemoRequest() {} -std::string EnableActiceAlertRequest::getProduct()const +std::string QuerySystemEventDemoRequest::getProduct()const { return product_; } -void EnableActiceAlertRequest::setProduct(const std::string& product) +void QuerySystemEventDemoRequest::setProduct(const std::string& product) { product_ = product; setParameter("Product", product); } -std::string EnableActiceAlertRequest::getUserId()const +std::string QuerySystemEventDemoRequest::getEventName()const { - return userId_; + return eventName_; } -void EnableActiceAlertRequest::setUserId(const std::string& userId) +void QuerySystemEventDemoRequest::setEventName(const std::string& eventName) { - userId_ = userId; - setParameter("UserId", userId); + eventName_ = eventName; + setParameter("EventName", eventName); } diff --git a/cms/src/model/QuerySystemEventDemoResult.cc b/cms/src/model/QuerySystemEventDemoResult.cc new file mode 100644 index 000000000..d553cb76c --- /dev/null +++ b/cms/src/model/QuerySystemEventDemoResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QuerySystemEventDemoResult::QuerySystemEventDemoResult() : + ServiceResult() +{} + +QuerySystemEventDemoResult::QuerySystemEventDemoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySystemEventDemoResult::~QuerySystemEventDemoResult() +{} + +void QuerySystemEventDemoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string QuerySystemEventDemoResult::getMessage()const +{ + return message_; +} + +std::string QuerySystemEventDemoResult::getData()const +{ + return data_; +} + +std::string QuerySystemEventDemoResult::getCode()const +{ + return code_; +} + +std::string QuerySystemEventDemoResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QuerySystemEventDetailRequest.cc b/cms/src/model/QuerySystemEventDetailRequest.cc index 172d075bb..eb1edde0a 100644 --- a/cms/src/model/QuerySystemEventDetailRequest.cc +++ b/cms/src/model/QuerySystemEventDetailRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QuerySystemEventDetailRequest; QuerySystemEventDetailRequest::QuerySystemEventDetailRequest() : - RpcServiceRequest("cms", "2017-03-01", "QuerySystemEventDetail") + RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventDetail") {} QuerySystemEventDetailRequest::~QuerySystemEventDetailRequest() diff --git a/cms/src/model/QuerySystemEventDetailResult.cc b/cms/src/model/QuerySystemEventDetailResult.cc index 84c68fd8b..39917feba 100644 --- a/cms/src/model/QuerySystemEventDetailResult.cc +++ b/cms/src/model/QuerySystemEventDetailResult.cc @@ -40,27 +40,34 @@ void QuerySystemEventDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QuerySystemEventDetailResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventDetailResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventDetailResult::getCode()const -{ - return code_; -} - +std::string QuerySystemEventDetailResult::getMessage()const +{ + return message_; +} + +std::string QuerySystemEventDetailResult::getData()const +{ + return data_; +} + +std::string QuerySystemEventDetailResult::getCode()const +{ + return code_; +} + +std::string QuerySystemEventDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QuerySystemEventHistogramRequest.cc b/cms/src/model/QuerySystemEventHistogramRequest.cc index 1ac6fbf7e..52652da08 100644 --- a/cms/src/model/QuerySystemEventHistogramRequest.cc +++ b/cms/src/model/QuerySystemEventHistogramRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::QuerySystemEventHistogramRequest; QuerySystemEventHistogramRequest::QuerySystemEventHistogramRequest() : - RpcServiceRequest("cms", "2017-03-01", "QuerySystemEventHistogram") + RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventHistogram") {} QuerySystemEventHistogramRequest::~QuerySystemEventHistogramRequest() diff --git a/cms/src/model/QuerySystemEventHistogramResult.cc b/cms/src/model/QuerySystemEventHistogramResult.cc index d95b72e61..22b80345b 100644 --- a/cms/src/model/QuerySystemEventHistogramResult.cc +++ b/cms/src/model/QuerySystemEventHistogramResult.cc @@ -40,27 +40,34 @@ void QuerySystemEventHistogramResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } -std::string QuerySystemEventHistogramResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventHistogramResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventHistogramResult::getCode()const -{ - return code_; -} - +std::string QuerySystemEventHistogramResult::getMessage()const +{ + return message_; +} + +std::string QuerySystemEventHistogramResult::getData()const +{ + return data_; +} + +std::string QuerySystemEventHistogramResult::getCode()const +{ + return code_; +} + +std::string QuerySystemEventHistogramResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryTaskConfigRequest.cc b/cms/src/model/QueryTaskConfigRequest.cc new file mode 100644 index 000000000..dce1a4cc0 --- /dev/null +++ b/cms/src/model/QueryTaskConfigRequest.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::Cms::Model::QueryTaskConfigRequest; + +QueryTaskConfigRequest::QueryTaskConfigRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryTaskConfig") +{} + +QueryTaskConfigRequest::~QueryTaskConfigRequest() +{} + diff --git a/cms/src/model/QueryTaskConfigResult.cc b/cms/src/model/QueryTaskConfigResult.cc new file mode 100644 index 000000000..94525e9f7 --- /dev/null +++ b/cms/src/model/QueryTaskConfigResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +QueryTaskConfigResult::QueryTaskConfigResult() : + ServiceResult() +{} + +QueryTaskConfigResult::QueryTaskConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTaskConfigResult::~QueryTaskConfigResult() +{} + +void QueryTaskConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryTaskConfigResult::getMessage()const +{ + return message_; +} + +std::string QueryTaskConfigResult::getData()const +{ + return data_; +} + +std::string QueryTaskConfigResult::getCode()const +{ + return code_; +} + +std::string QueryTaskConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryTaskMonitorDataRequest.cc b/cms/src/model/QueryTaskMonitorDataRequest.cc new file mode 100644 index 000000000..0cee0a911 --- /dev/null +++ b/cms/src/model/QueryTaskMonitorDataRequest.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::Cms::Model::QueryTaskMonitorDataRequest; + +QueryTaskMonitorDataRequest::QueryTaskMonitorDataRequest() : + RpcServiceRequest("cms", "2018-03-08", "QueryTaskMonitorData") +{} + +QueryTaskMonitorDataRequest::~QueryTaskMonitorDataRequest() +{} + +std::string QueryTaskMonitorDataRequest::getCursor()const +{ + return cursor_; +} + +void QueryTaskMonitorDataRequest::setCursor(const std::string& cursor) +{ + cursor_ = cursor; + setParameter("Cursor", cursor); +} + +std::string QueryTaskMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void QueryTaskMonitorDataRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +int QueryTaskMonitorDataRequest::getLength()const +{ + return length_; +} + +void QueryTaskMonitorDataRequest::setLength(int length) +{ + length_ = length; + setParameter("Length", std::to_string(length)); +} + +std::string QueryTaskMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryTaskMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string QueryTaskMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryTaskMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryTaskMonitorDataRequest::getType()const +{ + return type_; +} + +void QueryTaskMonitorDataRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string QueryTaskMonitorDataRequest::getMetricName()const +{ + return metricName_; +} + +void QueryTaskMonitorDataRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string QueryTaskMonitorDataRequest::getTaskId()const +{ + return taskId_; +} + +void QueryTaskMonitorDataRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QueryTaskMonitorDataResult.cc b/cms/src/model/QueryTaskMonitorDataResult.cc new file mode 100644 index 000000000..e459442e4 --- /dev/null +++ b/cms/src/model/QueryTaskMonitorDataResult.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; + +QueryTaskMonitorDataResult::QueryTaskMonitorDataResult() : + ServiceResult() +{} + +QueryTaskMonitorDataResult::QueryTaskMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTaskMonitorDataResult::~QueryTaskMonitorDataResult() +{} + +void QueryTaskMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Cursor"].isNull()) + cursor_ = value["Cursor"].asString(); + +} + +std::string QueryTaskMonitorDataResult::getMessage()const +{ + return message_; +} + +std::string QueryTaskMonitorDataResult::getTraceId()const +{ + return traceId_; +} + +std::string QueryTaskMonitorDataResult::getData()const +{ + return data_; +} + +std::string QueryTaskMonitorDataResult::getCursor()const +{ + return cursor_; +} + +std::string QueryTaskMonitorDataResult::getCode()const +{ + return code_; +} + +std::string QueryTaskMonitorDataResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/SendDryRunSystemEventRequest.cc b/cms/src/model/SendDryRunSystemEventRequest.cc new file mode 100644 index 000000000..c0e8b625c --- /dev/null +++ b/cms/src/model/SendDryRunSystemEventRequest.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::Cms::Model::SendDryRunSystemEventRequest; + +SendDryRunSystemEventRequest::SendDryRunSystemEventRequest() : + RpcServiceRequest("cms", "2018-03-08", "SendDryRunSystemEvent") +{} + +SendDryRunSystemEventRequest::~SendDryRunSystemEventRequest() +{} + +std::string SendDryRunSystemEventRequest::getProduct()const +{ + return product_; +} + +void SendDryRunSystemEventRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string SendDryRunSystemEventRequest::getGroupId()const +{ + return groupId_; +} + +void SendDryRunSystemEventRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string SendDryRunSystemEventRequest::getEventName()const +{ + return eventName_; +} + +void SendDryRunSystemEventRequest::setEventName(const std::string& eventName) +{ + eventName_ = eventName; + setParameter("EventName", eventName); +} + +std::string SendDryRunSystemEventRequest::getEventContent()const +{ + return eventContent_; +} + +void SendDryRunSystemEventRequest::setEventContent(const std::string& eventContent) +{ + eventContent_ = eventContent; + setParameter("EventContent", eventContent); +} + diff --git a/cms/src/model/SendDryRunSystemEventResult.cc b/cms/src/model/SendDryRunSystemEventResult.cc new file mode 100644 index 000000000..c785a610b --- /dev/null +++ b/cms/src/model/SendDryRunSystemEventResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +SendDryRunSystemEventResult::SendDryRunSystemEventResult() : + ServiceResult() +{} + +SendDryRunSystemEventResult::SendDryRunSystemEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendDryRunSystemEventResult::~SendDryRunSystemEventResult() +{} + +void SendDryRunSystemEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string SendDryRunSystemEventResult::getMessage()const +{ + return message_; +} + +std::string SendDryRunSystemEventResult::getData()const +{ + return data_; +} + +std::string SendDryRunSystemEventResult::getCode()const +{ + return code_; +} + +std::string SendDryRunSystemEventResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/StartTasksRequest.cc b/cms/src/model/StartTasksRequest.cc new file mode 100644 index 000000000..492c8e988 --- /dev/null +++ b/cms/src/model/StartTasksRequest.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::StartTasksRequest; + +StartTasksRequest::StartTasksRequest() : + RpcServiceRequest("cms", "2018-03-08", "StartTasks") +{} + +StartTasksRequest::~StartTasksRequest() +{} + +std::string StartTasksRequest::getTaskIds()const +{ + return taskIds_; +} + +void StartTasksRequest::setTaskIds(const std::string& taskIds) +{ + taskIds_ = taskIds; + setParameter("TaskIds", taskIds); +} + diff --git a/cms/src/model/StartTasksResult.cc b/cms/src/model/StartTasksResult.cc new file mode 100644 index 000000000..4300a0e94 --- /dev/null +++ b/cms/src/model/StartTasksResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +StartTasksResult::StartTasksResult() : + ServiceResult() +{} + +StartTasksResult::StartTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartTasksResult::~StartTasksResult() +{} + +void StartTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + 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(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string StartTasksResult::getMessage()const +{ + return message_; +} + +std::string StartTasksResult::getData()const +{ + return data_; +} + +std::string StartTasksResult::getCode()const +{ + return code_; +} + +std::string StartTasksResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/StopTasksRequest.cc b/cms/src/model/StopTasksRequest.cc new file mode 100644 index 000000000..db5d11b39 --- /dev/null +++ b/cms/src/model/StopTasksRequest.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::StopTasksRequest; + +StopTasksRequest::StopTasksRequest() : + RpcServiceRequest("cms", "2018-03-08", "StopTasks") +{} + +StopTasksRequest::~StopTasksRequest() +{} + +std::string StopTasksRequest::getTaskIds()const +{ + return taskIds_; +} + +void StopTasksRequest::setTaskIds(const std::string& taskIds) +{ + taskIds_ = taskIds; + setParameter("TaskIds", taskIds); +} + diff --git a/cms/src/model/PutSystemEventResult.cc b/cms/src/model/StopTasksResult.cc similarity index 69% rename from cms/src/model/PutSystemEventResult.cc rename to cms/src/model/StopTasksResult.cc index eb9758da0..47503cd8d 100644 --- a/cms/src/model/PutSystemEventResult.cc +++ b/cms/src/model/StopTasksResult.cc @@ -14,53 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -PutSystemEventResult::PutSystemEventResult() : +StopTasksResult::StopTasksResult() : ServiceResult() {} -PutSystemEventResult::PutSystemEventResult(const std::string &payload) : +StopTasksResult::StopTasksResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutSystemEventResult::~PutSystemEventResult() +StopTasksResult::~StopTasksResult() {} -void PutSystemEventResult::parse(const std::string &payload) +void StopTasksResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].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(); + 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 PutSystemEventResult::getMessage()const -{ - return message_; -} - -std::string PutSystemEventResult::getData()const -{ - return data_; -} - -std::string PutSystemEventResult::getCode()const -{ - return code_; -} - +std::string StopTasksResult::getMessage()const +{ + return message_; +} + +std::string StopTasksResult::getData()const +{ + return data_; +} + +std::string StopTasksResult::getCode()const +{ + return code_; +} + +std::string StopTasksResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigCreateRequest.cc b/cms/src/model/TaskConfigCreateRequest.cc new file mode 100644 index 000000000..e57c65a88 --- /dev/null +++ b/cms/src/model/TaskConfigCreateRequest.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 + +using AlibabaCloud::Cms::Model::TaskConfigCreateRequest; + +TaskConfigCreateRequest::TaskConfigCreateRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigCreate") +{} + +TaskConfigCreateRequest::~TaskConfigCreateRequest() +{} + +std::vector TaskConfigCreateRequest::getInstanceList()const +{ + return instanceList_; +} + +void TaskConfigCreateRequest::setInstanceList(const std::vector& instanceList) +{ + instanceList_ = instanceList; + for(int i = 0; i!= instanceList.size(); i++) + setParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); +} + +std::string TaskConfigCreateRequest::getJsonData()const +{ + return jsonData_; +} + +void TaskConfigCreateRequest::setJsonData(const std::string& jsonData) +{ + jsonData_ = jsonData; + setParameter("JsonData", jsonData); +} + +std::string TaskConfigCreateRequest::getTaskType()const +{ + return taskType_; +} + +void TaskConfigCreateRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string TaskConfigCreateRequest::getTaskScope()const +{ + return taskScope_; +} + +void TaskConfigCreateRequest::setTaskScope(const std::string& taskScope) +{ + taskScope_ = taskScope; + setParameter("TaskScope", taskScope); +} + +std::string TaskConfigCreateRequest::getAlertConfig()const +{ + return alertConfig_; +} + +void TaskConfigCreateRequest::setAlertConfig(const std::string& alertConfig) +{ + alertConfig_ = alertConfig; + setParameter("AlertConfig", alertConfig); +} + +long TaskConfigCreateRequest::getGroupId()const +{ + return groupId_; +} + +void TaskConfigCreateRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string TaskConfigCreateRequest::getTaskName()const +{ + return taskName_; +} + +void TaskConfigCreateRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setParameter("TaskName", taskName); +} + +std::string TaskConfigCreateRequest::getGroupName()const +{ + return groupName_; +} + +void TaskConfigCreateRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/cms/src/model/TaskConfigCreateResult.cc b/cms/src/model/TaskConfigCreateResult.cc new file mode 100644 index 000000000..f0d5ba3d5 --- /dev/null +++ b/cms/src/model/TaskConfigCreateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigCreateResult::TaskConfigCreateResult() : + ServiceResult() +{} + +TaskConfigCreateResult::TaskConfigCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigCreateResult::~TaskConfigCreateResult() +{} + +void TaskConfigCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long TaskConfigCreateResult::getTaskId()const +{ + return taskId_; +} + +int TaskConfigCreateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigCreateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigCreateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigDeleteRequest.cc b/cms/src/model/TaskConfigDeleteRequest.cc new file mode 100644 index 000000000..65ba088b3 --- /dev/null +++ b/cms/src/model/TaskConfigDeleteRequest.cc @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::TaskConfigDeleteRequest; + +TaskConfigDeleteRequest::TaskConfigDeleteRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigDelete") +{} + +TaskConfigDeleteRequest::~TaskConfigDeleteRequest() +{} + +std::vector TaskConfigDeleteRequest::getIdList()const +{ + return idList_; +} + +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))); +} + diff --git a/cms/src/model/TaskConfigDeleteResult.cc b/cms/src/model/TaskConfigDeleteResult.cc new file mode 100644 index 000000000..f200a90d9 --- /dev/null +++ b/cms/src/model/TaskConfigDeleteResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigDeleteResult::TaskConfigDeleteResult() : + ServiceResult() +{} + +TaskConfigDeleteResult::TaskConfigDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigDeleteResult::~TaskConfigDeleteResult() +{} + +void TaskConfigDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int TaskConfigDeleteResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigDeleteResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigDeleteResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigEnableRequest.cc b/cms/src/model/TaskConfigEnableRequest.cc new file mode 100644 index 000000000..e119a9900 --- /dev/null +++ b/cms/src/model/TaskConfigEnableRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::TaskConfigEnableRequest; + +TaskConfigEnableRequest::TaskConfigEnableRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigEnable") +{} + +TaskConfigEnableRequest::~TaskConfigEnableRequest() +{} + +std::vector TaskConfigEnableRequest::getIdList()const +{ + return idList_; +} + +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))); +} + +bool TaskConfigEnableRequest::getEnabled()const +{ + return enabled_; +} + +void TaskConfigEnableRequest::setEnabled(bool enabled) +{ + enabled_ = enabled; + setParameter("Enabled", enabled ? "true" : "false"); +} + diff --git a/cms/src/model/TaskConfigEnableResult.cc b/cms/src/model/TaskConfigEnableResult.cc new file mode 100644 index 000000000..553074a72 --- /dev/null +++ b/cms/src/model/TaskConfigEnableResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigEnableResult::TaskConfigEnableResult() : + ServiceResult() +{} + +TaskConfigEnableResult::TaskConfigEnableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigEnableResult::~TaskConfigEnableResult() +{} + +void TaskConfigEnableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int TaskConfigEnableResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigEnableResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigEnableResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigListRequest.cc b/cms/src/model/TaskConfigListRequest.cc new file mode 100644 index 000000000..24f9f9699 --- /dev/null +++ b/cms/src/model/TaskConfigListRequest.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::Cms::Model::TaskConfigListRequest; + +TaskConfigListRequest::TaskConfigListRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigList") +{} + +TaskConfigListRequest::~TaskConfigListRequest() +{} + +long TaskConfigListRequest::getGroupId()const +{ + return groupId_; +} + +void TaskConfigListRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int TaskConfigListRequest::getPageSize()const +{ + return pageSize_; +} + +void TaskConfigListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string TaskConfigListRequest::getTaskName()const +{ + return taskName_; +} + +void TaskConfigListRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setParameter("TaskName", taskName); +} + +long TaskConfigListRequest::getId()const +{ + return id_; +} + +void TaskConfigListRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + +int TaskConfigListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void TaskConfigListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cms/src/model/TaskConfigListResult.cc b/cms/src/model/TaskConfigListResult.cc new file mode 100644 index 000000000..e93eb4709 --- /dev/null +++ b/cms/src/model/TaskConfigListResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigListResult::TaskConfigListResult() : + ServiceResult() +{} + +TaskConfigListResult::TaskConfigListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigListResult::~TaskConfigListResult() +{} + +void TaskConfigListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTaskList = value["TaskList"]["NodeTaskConfig"]; + for (auto value : allTaskList) + { + NodeTaskConfig taskListObject; + if(!value["Id"].isNull()) + taskListObject.id = std::stol(value["Id"].asString()); + if(!value["TaskName"].isNull()) + taskListObject.taskName = value["TaskName"].asString(); + if(!value["TaskType"].isNull()) + taskListObject.taskType = value["TaskType"].asString(); + if(!value["TaskScope"].isNull()) + taskListObject.taskScope = value["TaskScope"].asString(); + if(!value["Disabled"].isNull()) + taskListObject.disabled = value["Disabled"].asString() == "true"; + if(!value["GroupId"].isNull()) + taskListObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["GroupName"].isNull()) + taskListObject.groupName = value["GroupName"].asString(); + if(!value["JsonData"].isNull()) + taskListObject.jsonData = value["JsonData"].asString(); + if(!value["AlertConfig"].isNull()) + taskListObject.alertConfig = value["AlertConfig"].asString(); + auto allInstanceList = value["InstanceList"]["String"]; + for (auto value : allInstanceList) + taskListObject.instanceList.push_back(value.asString()); + taskList_.push_back(taskListObject); + } + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageTotal"].isNull()) + pageTotal_ = std::stoi(value["PageTotal"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int TaskConfigListResult::getPageSize()const +{ + return pageSize_; +} + +int TaskConfigListResult::getPageNumber()const +{ + return pageNumber_; +} + +int TaskConfigListResult::getPageTotal()const +{ + return pageTotal_; +} + +std::vector TaskConfigListResult::getTaskList()const +{ + return taskList_; +} + +int TaskConfigListResult::getTotal()const +{ + return total_; +} + +int TaskConfigListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigListResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigModifyRequest.cc b/cms/src/model/TaskConfigModifyRequest.cc new file mode 100644 index 000000000..999921ccb --- /dev/null +++ b/cms/src/model/TaskConfigModifyRequest.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::Cms::Model::TaskConfigModifyRequest; + +TaskConfigModifyRequest::TaskConfigModifyRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigModify") +{} + +TaskConfigModifyRequest::~TaskConfigModifyRequest() +{} + +std::vector TaskConfigModifyRequest::getInstanceList()const +{ + return instanceList_; +} + +void TaskConfigModifyRequest::setInstanceList(const std::vector& instanceList) +{ + instanceList_ = instanceList; + for(int i = 0; i!= instanceList.size(); i++) + setParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); +} + +std::string TaskConfigModifyRequest::getJsonData()const +{ + return jsonData_; +} + +void TaskConfigModifyRequest::setJsonData(const std::string& jsonData) +{ + jsonData_ = jsonData; + setParameter("JsonData", jsonData); +} + +std::string TaskConfigModifyRequest::getTaskType()const +{ + return taskType_; +} + +void TaskConfigModifyRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string TaskConfigModifyRequest::getTaskScope()const +{ + return taskScope_; +} + +void TaskConfigModifyRequest::setTaskScope(const std::string& taskScope) +{ + taskScope_ = taskScope; + setParameter("TaskScope", taskScope); +} + +std::string TaskConfigModifyRequest::getAlertConfig()const +{ + return alertConfig_; +} + +void TaskConfigModifyRequest::setAlertConfig(const std::string& alertConfig) +{ + alertConfig_ = alertConfig; + setParameter("AlertConfig", alertConfig); +} + +long TaskConfigModifyRequest::getGroupId()const +{ + return groupId_; +} + +void TaskConfigModifyRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string TaskConfigModifyRequest::getTaskName()const +{ + return taskName_; +} + +void TaskConfigModifyRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setParameter("TaskName", taskName); +} + +long TaskConfigModifyRequest::getId()const +{ + return id_; +} + +void TaskConfigModifyRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + +std::string TaskConfigModifyRequest::getGroupName()const +{ + return groupName_; +} + +void TaskConfigModifyRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/cms/src/model/TaskConfigModifyResult.cc b/cms/src/model/TaskConfigModifyResult.cc new file mode 100644 index 000000000..f60065821 --- /dev/null +++ b/cms/src/model/TaskConfigModifyResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigModifyResult::TaskConfigModifyResult() : + ServiceResult() +{} + +TaskConfigModifyResult::TaskConfigModifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigModifyResult::~TaskConfigModifyResult() +{} + +void TaskConfigModifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int TaskConfigModifyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigModifyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigModifyResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigUnhealthyRequest.cc b/cms/src/model/TaskConfigUnhealthyRequest.cc new file mode 100644 index 000000000..445140f6b --- /dev/null +++ b/cms/src/model/TaskConfigUnhealthyRequest.cc @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::TaskConfigUnhealthyRequest; + +TaskConfigUnhealthyRequest::TaskConfigUnhealthyRequest() : + RpcServiceRequest("cms", "2018-03-08", "TaskConfigUnhealthy") +{} + +TaskConfigUnhealthyRequest::~TaskConfigUnhealthyRequest() +{} + +std::vector TaskConfigUnhealthyRequest::getTaskIdList()const +{ + return taskIdList_; +} + +void TaskConfigUnhealthyRequest::setTaskIdList(const std::vector& taskIdList) +{ + taskIdList_ = taskIdList; + for(int i = 0; i!= taskIdList.size(); i++) + setParameter("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 new file mode 100644 index 000000000..4523e2cb9 --- /dev/null +++ b/cms/src/model/TaskConfigUnhealthyResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +TaskConfigUnhealthyResult::TaskConfigUnhealthyResult() : + ServiceResult() +{} + +TaskConfigUnhealthyResult::TaskConfigUnhealthyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskConfigUnhealthyResult::~TaskConfigUnhealthyResult() +{} + +void TaskConfigUnhealthyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUnhealthyList = value["UnhealthyList"]["NodeTaskInstance"]; + for (auto value : allUnhealthyList) + { + NodeTaskInstance unhealthyListObject; + if(!value["TaskId"].isNull()) + unhealthyListObject.taskId = std::stol(value["TaskId"].asString()); + auto allInstanceList = value["InstanceList"]["String"]; + for (auto value : allInstanceList) + unhealthyListObject.instanceList.push_back(value.asString()); + unhealthyList_.push_back(unhealthyListObject); + } + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int TaskConfigUnhealthyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskConfigUnhealthyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TaskConfigUnhealthyResult::getSuccess()const +{ + return success_; +} + +std::vector TaskConfigUnhealthyResult::getUnhealthyList()const +{ + return unhealthyList_; +} + diff --git a/cms/src/model/UpdateAlarmRequest.cc b/cms/src/model/UpdateAlarmRequest.cc index 07878cdba..48dadbbad 100644 --- a/cms/src/model/UpdateAlarmRequest.cc +++ b/cms/src/model/UpdateAlarmRequest.cc @@ -19,23 +19,12 @@ using AlibabaCloud::Cms::Model::UpdateAlarmRequest; UpdateAlarmRequest::UpdateAlarmRequest() : - RpcServiceRequest("cms", "2017-03-01", "UpdateAlarm") + RpcServiceRequest("cms", "2018-03-08", "UpdateAlarm") {} UpdateAlarmRequest::~UpdateAlarmRequest() {} -std::string UpdateAlarmRequest::getCallby_cms_owner()const -{ - return callby_cms_owner_; -} - -void UpdateAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner) -{ - callby_cms_owner_ = callby_cms_owner; - setParameter("Callby_cms_owner", callby_cms_owner); -} - int UpdateAlarmRequest::getPeriod()const { return period_; @@ -58,6 +47,17 @@ void UpdateAlarmRequest::setWebhook(const std::string& webhook) setParameter("Webhook", webhook); } +bool UpdateAlarmRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateAlarmRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + std::string UpdateAlarmRequest::getContactGroups()const { return contactGroups_; diff --git a/cms/src/model/UpdateAlarmResult.cc b/cms/src/model/UpdateAlarmResult.cc index 03d2f08b0..a01f18991 100644 --- a/cms/src/model/UpdateAlarmResult.cc +++ b/cms/src/model/UpdateAlarmResult.cc @@ -40,27 +40,27 @@ void UpdateAlarmResult::parse(const std::string &payload) reader.parse(payload, value); 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["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 UpdateAlarmResult::getMessage()const -{ - return message_; -} - -std::string UpdateAlarmResult::getCode()const -{ - return code_; -} - -bool UpdateAlarmResult::getSuccess()const -{ - return success_; -} - +std::string UpdateAlarmResult::getMessage()const +{ + return message_; +} + +std::string UpdateAlarmResult::getCode()const +{ + return code_; +} + +bool UpdateAlarmResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMonitoringTemplateRequest.cc b/cms/src/model/UpdateMonitoringTemplateRequest.cc new file mode 100644 index 000000000..6de7ff906 --- /dev/null +++ b/cms/src/model/UpdateMonitoringTemplateRequest.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::Cms::Model::UpdateMonitoringTemplateRequest; + +UpdateMonitoringTemplateRequest::UpdateMonitoringTemplateRequest() : + RpcServiceRequest("cms", "2018-03-08", "UpdateMonitoringTemplate") +{} + +UpdateMonitoringTemplateRequest::~UpdateMonitoringTemplateRequest() +{} + +std::string UpdateMonitoringTemplateRequest::getEventRuleTemplatesJson()const +{ + return eventRuleTemplatesJson_; +} + +void UpdateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) +{ + eventRuleTemplatesJson_ = eventRuleTemplatesJson; + setParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); +} + +std::string UpdateMonitoringTemplateRequest::getName()const +{ + return name_; +} + +void UpdateMonitoringTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long UpdateMonitoringTemplateRequest::getRestVersion()const +{ + return restVersion_; +} + +void UpdateMonitoringTemplateRequest::setRestVersion(long restVersion) +{ + restVersion_ = restVersion; + setParameter("RestVersion", std::to_string(restVersion)); +} + +std::string UpdateMonitoringTemplateRequest::getDescription()const +{ + return description_; +} + +void UpdateMonitoringTemplateRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long UpdateMonitoringTemplateRequest::getId()const +{ + return id_; +} + +void UpdateMonitoringTemplateRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + +std::string UpdateMonitoringTemplateRequest::getAlertTemplatesJson()const +{ + return alertTemplatesJson_; +} + +void UpdateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) +{ + alertTemplatesJson_ = alertTemplatesJson; + setParameter("AlertTemplatesJson", alertTemplatesJson); +} + diff --git a/cms/src/model/UpdateMonitoringTemplateResult.cc b/cms/src/model/UpdateMonitoringTemplateResult.cc new file mode 100644 index 000000000..0de486ea9 --- /dev/null +++ b/cms/src/model/UpdateMonitoringTemplateResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +UpdateMonitoringTemplateResult::UpdateMonitoringTemplateResult() : + ServiceResult() +{} + +UpdateMonitoringTemplateResult::UpdateMonitoringTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMonitoringTemplateResult::~UpdateMonitoringTemplateResult() +{} + +void UpdateMonitoringTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +int UpdateMonitoringTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMonitoringTemplateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMonitoringTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMyGroupAlertRequest.cc b/cms/src/model/UpdateMyGroupAlertRequest.cc new file mode 100644 index 000000000..9c97baad4 --- /dev/null +++ b/cms/src/model/UpdateMyGroupAlertRequest.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::UpdateMyGroupAlertRequest; + +UpdateMyGroupAlertRequest::UpdateMyGroupAlertRequest() : + RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupAlert") +{} + +UpdateMyGroupAlertRequest::~UpdateMyGroupAlertRequest() +{} + +std::string UpdateMyGroupAlertRequest::getGroupAlertJson()const +{ + return groupAlertJson_; +} + +void UpdateMyGroupAlertRequest::setGroupAlertJson(const std::string& groupAlertJson) +{ + groupAlertJson_ = groupAlertJson; + setParameter("GroupAlertJson", groupAlertJson); +} + diff --git a/cms/src/model/UpdateMyGroupAlertResult.cc b/cms/src/model/UpdateMyGroupAlertResult.cc new file mode 100644 index 000000000..68674c67c --- /dev/null +++ b/cms/src/model/UpdateMyGroupAlertResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +UpdateMyGroupAlertResult::UpdateMyGroupAlertResult() : + ServiceResult() +{} + +UpdateMyGroupAlertResult::UpdateMyGroupAlertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMyGroupAlertResult::~UpdateMyGroupAlertResult() +{} + +void UpdateMyGroupAlertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +int UpdateMyGroupAlertResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMyGroupAlertResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMyGroupAlertResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMyGroupInstancesRequest.cc b/cms/src/model/UpdateMyGroupInstancesRequest.cc index 127963a6e..211b13b39 100644 --- a/cms/src/model/UpdateMyGroupInstancesRequest.cc +++ b/cms/src/model/UpdateMyGroupInstancesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::UpdateMyGroupInstancesRequest; UpdateMyGroupInstancesRequest::UpdateMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2017-03-01", "UpdateMyGroupInstances") + RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupInstances") {} UpdateMyGroupInstancesRequest::~UpdateMyGroupInstancesRequest() diff --git a/cms/src/model/UpdateMyGroupInstancesResult.cc b/cms/src/model/UpdateMyGroupInstancesResult.cc index 04c824e80..1ffe8521b 100644 --- a/cms/src/model/UpdateMyGroupInstancesResult.cc +++ b/cms/src/model/UpdateMyGroupInstancesResult.cc @@ -40,27 +40,27 @@ void UpdateMyGroupInstancesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -int UpdateMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - +int UpdateMyGroupInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMyGroupInstancesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMyGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMyGroupMembersRequest.cc b/cms/src/model/UpdateMyGroupMembersRequest.cc new file mode 100644 index 000000000..abfcafa18 --- /dev/null +++ b/cms/src/model/UpdateMyGroupMembersRequest.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::Cms::Model::UpdateMyGroupMembersRequest; + +UpdateMyGroupMembersRequest::UpdateMyGroupMembersRequest() : + RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupMembers") +{} + +UpdateMyGroupMembersRequest::~UpdateMyGroupMembersRequest() +{} + +std::string UpdateMyGroupMembersRequest::getReaders()const +{ + return readers_; +} + +void UpdateMyGroupMembersRequest::setReaders(const std::string& readers) +{ + readers_ = readers; + setParameter("Readers", readers); +} + +long UpdateMyGroupMembersRequest::getGroupId()const +{ + return groupId_; +} + +void UpdateMyGroupMembersRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string UpdateMyGroupMembersRequest::getMasters()const +{ + return masters_; +} + +void UpdateMyGroupMembersRequest::setMasters(const std::string& masters) +{ + masters_ = masters; + setParameter("Masters", masters); +} + diff --git a/cms/src/model/UpdateMyGroupMembersResult.cc b/cms/src/model/UpdateMyGroupMembersResult.cc new file mode 100644 index 000000000..3374bc04b --- /dev/null +++ b/cms/src/model/UpdateMyGroupMembersResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +UpdateMyGroupMembersResult::UpdateMyGroupMembersResult() : + ServiceResult() +{} + +UpdateMyGroupMembersResult::UpdateMyGroupMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMyGroupMembersResult::~UpdateMyGroupMembersResult() +{} + +void UpdateMyGroupMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +int UpdateMyGroupMembersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMyGroupMembersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMyGroupMembersResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMyGroupsRequest.cc b/cms/src/model/UpdateMyGroupsRequest.cc index a95654448..0bb77e650 100644 --- a/cms/src/model/UpdateMyGroupsRequest.cc +++ b/cms/src/model/UpdateMyGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cms::Model::UpdateMyGroupsRequest; UpdateMyGroupsRequest::UpdateMyGroupsRequest() : - RpcServiceRequest("cms", "2017-03-01", "UpdateMyGroups") + RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroups") {} UpdateMyGroupsRequest::~UpdateMyGroupsRequest() diff --git a/cms/src/model/UpdateMyGroupsResult.cc b/cms/src/model/UpdateMyGroupsResult.cc index 4255011e7..8d4b8085c 100644 --- a/cms/src/model/UpdateMyGroupsResult.cc +++ b/cms/src/model/UpdateMyGroupsResult.cc @@ -40,27 +40,27 @@ void UpdateMyGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); } -int UpdateMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupsResult::getSuccess()const -{ - return success_; -} - +int UpdateMyGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMyGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMyGroupsResult::getSuccess()const +{ + return success_; +} +