diff --git a/CHANGELOG b/CHANGELOG index 6ded28c52..3eee70a06 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-04-29 Version: 1.36.704 +- Support sag reseller. + 2021-04-29 Version: 1.36.703 - Support latest openAPIs. diff --git a/VERSION b/VERSION index 47f2c8686..93112688d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.703 \ No newline at end of file +1.36.704 \ No newline at end of file diff --git a/smartag/CMakeLists.txt b/smartag/CMakeLists.txt index 589270606..26e76db88 100644 --- a/smartag/CMakeLists.txt +++ b/smartag/CMakeLists.txt @@ -49,14 +49,16 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h include/alibabacloud/smartag/model/BindVbrRequest.h include/alibabacloud/smartag/model/BindVbrResult.h + include/alibabacloud/smartag/model/ClearSagCipherRequest.h + include/alibabacloud/smartag/model/ClearSagCipherResult.h include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h include/alibabacloud/smartag/model/CreateACLRequest.h include/alibabacloud/smartag/model/CreateACLResult.h include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h - include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h - include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h + include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h + include/alibabacloud/smartag/model/CreateEnterpriseCodeResult.h include/alibabacloud/smartag/model/CreateFlowLogRequest.h include/alibabacloud/smartag/model/CreateFlowLogResult.h include/alibabacloud/smartag/model/CreateHealthCheckRequest.h @@ -69,8 +71,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/CreateQosCarResult.h include/alibabacloud/smartag/model/CreateQosPolicyRequest.h include/alibabacloud/smartag/model/CreateQosPolicyResult.h - include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h - include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceRequest.h include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceResult.h include/alibabacloud/smartag/model/CreateSagStaticRouteRequest.h @@ -89,10 +89,10 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DeleteACLRuleResult.h include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h - include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h - include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h include/alibabacloud/smartag/model/DeleteDnatEntryResult.h + include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h + include/alibabacloud/smartag/model/DeleteEnterpriseCodeResult.h include/alibabacloud/smartag/model/DeleteFlowLogRequest.h include/alibabacloud/smartag/model/DeleteFlowLogResult.h include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h @@ -109,8 +109,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DeleteQosPolicyResult.h include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyResult.h - include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h - include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h include/alibabacloud/smartag/model/DeleteSagCidrRequest.h include/alibabacloud/smartag/model/DeleteSagCidrResult.h include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h @@ -129,6 +127,8 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeACLsResult.h include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.h + include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h + include/alibabacloud/smartag/model/DescribeClientUserDNSResult.h include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h @@ -175,6 +175,8 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeSAGDeviceInfoResult.h include/alibabacloud/smartag/model/DescribeSagCurrentDnsRequest.h include/alibabacloud/smartag/model/DescribeSagCurrentDnsResult.h + include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h + include/alibabacloud/smartag/model/DescribeSagDropTopNResult.h include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeRequest.h include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeResult.h include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h @@ -205,6 +207,8 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h + include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h + include/alibabacloud/smartag/model/DescribeSagTrafficTopNResult.h include/alibabacloud/smartag/model/DescribeSagUserDnsRequest.h include/alibabacloud/smartag/model/DescribeSagUserDnsResult.h include/alibabacloud/smartag/model/DescribeSagVbrRelationsRequest.h @@ -223,8 +227,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h - include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h @@ -241,6 +243,10 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h + include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h + include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorResult.h include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h include/alibabacloud/smartag/model/DisassociateACLRequest.h @@ -249,14 +255,24 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DisassociateFlowLogResult.h include/alibabacloud/smartag/model/DisassociateQosRequest.h include/alibabacloud/smartag/model/DisassociateQosResult.h + include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h + include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareRequest.h include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareResult.h + include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h + include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorResult.h include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h + include/alibabacloud/smartag/model/GetAclAttributeRequest.h + include/alibabacloud/smartag/model/GetAclAttributeResult.h include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h + include/alibabacloud/smartag/model/GetQosAttributeRequest.h + include/alibabacloud/smartag/model/GetQosAttributeResult.h + include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h + include/alibabacloud/smartag/model/GetSmartAGDpiAttributeResult.h include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h @@ -267,10 +283,28 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/GrantSagInstanceToVbrResult.h include/alibabacloud/smartag/model/KickOutClientsRequest.h include/alibabacloud/smartag/model/KickOutClientsResult.h + include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h + include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesResult.h + include/alibabacloud/smartag/model/ListAccessPointsRequest.h + include/alibabacloud/smartag/model/ListAccessPointsResult.h + include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h + include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h + include/alibabacloud/smartag/model/ListDpiGroupsRequest.h + include/alibabacloud/smartag/model/ListDpiGroupsResult.h + include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h + include/alibabacloud/smartag/model/ListDpiSignaturesResult.h + include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h + include/alibabacloud/smartag/model/ListEnterpriseCodeResult.h + include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h + include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureResult.h + include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h + include/alibabacloud/smartag/model/ListSmartAGByAccessPointResult.h include/alibabacloud/smartag/model/ModifyACLRequest.h include/alibabacloud/smartag/model/ModifyACLResult.h include/alibabacloud/smartag/model/ModifyACLRuleRequest.h include/alibabacloud/smartag/model/ModifyACLRuleResult.h + include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h + include/alibabacloud/smartag/model/ModifyClientUserDNSResult.h include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h @@ -289,6 +323,8 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/ModifyQosPolicyResult.h include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyRequest.h include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyResult.h + include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h + include/alibabacloud/smartag/model/ModifySAGAdminPasswordResult.h include/alibabacloud/smartag/model/ModifySagCidrRequest.h include/alibabacloud/smartag/model/ModifySagCidrResult.h include/alibabacloud/smartag/model/ModifySagECRouteBackupRequest.h @@ -323,16 +359,18 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/ModifySagWanSnatResult.h include/alibabacloud/smartag/model/ModifySagWifiRequest.h include/alibabacloud/smartag/model/ModifySagWifiResult.h - include/alibabacloud/smartag/model/ModifySerialNumberRequest.h - include/alibabacloud/smartag/model/ModifySerialNumberResult.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h + include/alibabacloud/smartag/model/MoveResourceGroupRequest.h + include/alibabacloud/smartag/model/MoveResourceGroupResult.h include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupRequest.h include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupResult.h + include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h + include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityResult.h include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h @@ -343,12 +381,10 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/RevokeInstanceFromVbrResult.h include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h + include/alibabacloud/smartag/model/RoamClientUserRequest.h + include/alibabacloud/smartag/model/RoamClientUserResult.h include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h - include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h - include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h - include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h - include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigResult.h include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h @@ -363,6 +399,14 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/UnicomSignConfirmResult.h include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h + include/alibabacloud/smartag/model/UpdateEnterpriseCodeResult.h + include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h + include/alibabacloud/smartag/model/UpdateSmartAGAccessPointResult.h + include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h + include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeResult.h + include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h + include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeResult.h include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h @@ -400,14 +444,16 @@ set(smartag_src src/model/BindSmartAccessGatewayResult.cc src/model/BindVbrRequest.cc src/model/BindVbrResult.cc + src/model/ClearSagCipherRequest.cc + src/model/ClearSagCipherResult.cc src/model/ClearSagRouteableAddressRequest.cc src/model/ClearSagRouteableAddressResult.cc src/model/CreateACLRequest.cc src/model/CreateACLResult.cc src/model/CreateCloudConnectNetworkRequest.cc src/model/CreateCloudConnectNetworkResult.cc - src/model/CreateDedicatedLineBackupRequest.cc - src/model/CreateDedicatedLineBackupResult.cc + src/model/CreateEnterpriseCodeRequest.cc + src/model/CreateEnterpriseCodeResult.cc src/model/CreateFlowLogRequest.cc src/model/CreateFlowLogResult.cc src/model/CreateHealthCheckRequest.cc @@ -420,8 +466,6 @@ set(smartag_src src/model/CreateQosCarResult.cc src/model/CreateQosPolicyRequest.cc src/model/CreateQosPolicyResult.cc - src/model/CreateSAGLinkLevelHaRequest.cc - src/model/CreateSAGLinkLevelHaResult.cc src/model/CreateSagExpressConnectInterfaceRequest.cc src/model/CreateSagExpressConnectInterfaceResult.cc src/model/CreateSagStaticRouteRequest.cc @@ -440,10 +484,10 @@ set(smartag_src src/model/DeleteACLRuleResult.cc src/model/DeleteCloudConnectNetworkRequest.cc src/model/DeleteCloudConnectNetworkResult.cc - src/model/DeleteDedicatedLineBackupRequest.cc - src/model/DeleteDedicatedLineBackupResult.cc src/model/DeleteDnatEntryRequest.cc src/model/DeleteDnatEntryResult.cc + src/model/DeleteEnterpriseCodeRequest.cc + src/model/DeleteEnterpriseCodeResult.cc src/model/DeleteFlowLogRequest.cc src/model/DeleteFlowLogResult.cc src/model/DeleteHealthCheckRequest.cc @@ -460,8 +504,6 @@ set(smartag_src src/model/DeleteQosPolicyResult.cc src/model/DeleteRouteDistributionStrategyRequest.cc src/model/DeleteRouteDistributionStrategyResult.cc - src/model/DeleteSAGLinkLevelHaRequest.cc - src/model/DeleteSAGLinkLevelHaResult.cc src/model/DeleteSagCidrRequest.cc src/model/DeleteSagCidrResult.cc src/model/DeleteSagExpressConnectInterfaceRequest.cc @@ -480,6 +522,8 @@ set(smartag_src src/model/DescribeACLsResult.cc src/model/DescribeBindableSmartAccessGatewaysRequest.cc src/model/DescribeBindableSmartAccessGatewaysResult.cc + src/model/DescribeClientUserDNSRequest.cc + src/model/DescribeClientUserDNSResult.cc src/model/DescribeCloudConnectNetworksRequest.cc src/model/DescribeCloudConnectNetworksResult.cc src/model/DescribeDeviceAutoUpgradePolicyRequest.cc @@ -526,6 +570,8 @@ set(smartag_src src/model/DescribeSAGDeviceInfoResult.cc src/model/DescribeSagCurrentDnsRequest.cc src/model/DescribeSagCurrentDnsResult.cc + src/model/DescribeSagDropTopNRequest.cc + src/model/DescribeSagDropTopNResult.cc src/model/DescribeSagECRouteBackupAttributeRequest.cc src/model/DescribeSagECRouteBackupAttributeResult.cc src/model/DescribeSagExpressConnectInterfaceListRequest.cc @@ -556,6 +602,8 @@ set(smartag_src src/model/DescribeSagRouteableAddressResult.cc src/model/DescribeSagStaticRouteListRequest.cc src/model/DescribeSagStaticRouteListResult.cc + src/model/DescribeSagTrafficTopNRequest.cc + src/model/DescribeSagTrafficTopNResult.cc src/model/DescribeSagUserDnsRequest.cc src/model/DescribeSagUserDnsResult.cc src/model/DescribeSagVbrRelationsRequest.cc @@ -574,8 +622,6 @@ set(smartag_src src/model/DescribeSmartAccessGatewayClientUsersResult.cc src/model/DescribeSmartAccessGatewayHaRequest.cc src/model/DescribeSmartAccessGatewayHaResult.cc - src/model/DescribeSmartAccessGatewayRoutesRequest.cc - src/model/DescribeSmartAccessGatewayRoutesResult.cc src/model/DescribeSmartAccessGatewayVersionsRequest.cc src/model/DescribeSmartAccessGatewayVersionsResult.cc src/model/DescribeSmartAccessGatewaysRequest.cc @@ -592,6 +638,10 @@ set(smartag_src src/model/DescribeUserOnlineClientsResult.cc src/model/DetachNetworkOptimizationSagsRequest.cc src/model/DetachNetworkOptimizationSagsResult.cc + src/model/DiagnoseSmartAccessGatewayRequest.cc + src/model/DiagnoseSmartAccessGatewayResult.cc + src/model/DisableSmartAGDpiMonitorRequest.cc + src/model/DisableSmartAGDpiMonitorResult.cc src/model/DisableSmartAccessGatewayUserRequest.cc src/model/DisableSmartAccessGatewayUserResult.cc src/model/DisassociateACLRequest.cc @@ -600,14 +650,24 @@ set(smartag_src src/model/DisassociateFlowLogResult.cc src/model/DisassociateQosRequest.cc src/model/DisassociateQosResult.cc + src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc + src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc src/model/DowngradeSmartAccessGatewayRequest.cc src/model/DowngradeSmartAccessGatewayResult.cc src/model/DowngradeSmartAccessGatewaySoftwareRequest.cc src/model/DowngradeSmartAccessGatewaySoftwareResult.cc + src/model/EnableSmartAGDpiMonitorRequest.cc + src/model/EnableSmartAGDpiMonitorResult.cc src/model/EnableSmartAccessGatewayUserRequest.cc src/model/EnableSmartAccessGatewayUserResult.cc + src/model/GetAclAttributeRequest.cc + src/model/GetAclAttributeResult.cc src/model/GetCloudConnectNetworkUseLimitRequest.cc src/model/GetCloudConnectNetworkUseLimitResult.cc + src/model/GetQosAttributeRequest.cc + src/model/GetQosAttributeResult.cc + src/model/GetSmartAGDpiAttributeRequest.cc + src/model/GetSmartAGDpiAttributeResult.cc src/model/GetSmartAccessGatewayUseLimitRequest.cc src/model/GetSmartAccessGatewayUseLimitResult.cc src/model/GrantInstanceToCbnRequest.cc @@ -618,10 +678,28 @@ set(smartag_src src/model/GrantSagInstanceToVbrResult.cc src/model/KickOutClientsRequest.cc src/model/KickOutClientsResult.cc + src/model/ListAccessPointNetworkQualitiesRequest.cc + src/model/ListAccessPointNetworkQualitiesResult.cc + src/model/ListAccessPointsRequest.cc + src/model/ListAccessPointsResult.cc + src/model/ListDpiConfigErrorRequest.cc + src/model/ListDpiConfigErrorResult.cc + src/model/ListDpiGroupsRequest.cc + src/model/ListDpiGroupsResult.cc + src/model/ListDpiSignaturesRequest.cc + src/model/ListDpiSignaturesResult.cc + src/model/ListEnterpriseCodeRequest.cc + src/model/ListEnterpriseCodeResult.cc + src/model/ListSmartAGApiUnsupportedFeatureRequest.cc + src/model/ListSmartAGApiUnsupportedFeatureResult.cc + src/model/ListSmartAGByAccessPointRequest.cc + src/model/ListSmartAGByAccessPointResult.cc src/model/ModifyACLRequest.cc src/model/ModifyACLResult.cc src/model/ModifyACLRuleRequest.cc src/model/ModifyACLRuleResult.cc + src/model/ModifyClientUserDNSRequest.cc + src/model/ModifyClientUserDNSResult.cc src/model/ModifyCloudConnectNetworkRequest.cc src/model/ModifyCloudConnectNetworkResult.cc src/model/ModifyDeviceAutoUpgradePolicyRequest.cc @@ -640,6 +718,8 @@ set(smartag_src src/model/ModifyQosPolicyResult.cc src/model/ModifyRouteDistributionStrategyRequest.cc src/model/ModifyRouteDistributionStrategyResult.cc + src/model/ModifySAGAdminPasswordRequest.cc + src/model/ModifySAGAdminPasswordResult.cc src/model/ModifySagCidrRequest.cc src/model/ModifySagCidrResult.cc src/model/ModifySagECRouteBackupRequest.cc @@ -674,16 +754,18 @@ set(smartag_src src/model/ModifySagWanSnatResult.cc src/model/ModifySagWifiRequest.cc src/model/ModifySagWifiResult.cc - src/model/ModifySerialNumberRequest.cc - src/model/ModifySerialNumberResult.cc src/model/ModifySmartAccessGatewayRequest.cc src/model/ModifySmartAccessGatewayResult.cc src/model/ModifySmartAccessGatewayClientUserRequest.cc src/model/ModifySmartAccessGatewayClientUserResult.cc src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc src/model/ModifySmartAccessGatewayUpBandwidthResult.cc + src/model/MoveResourceGroupRequest.cc + src/model/MoveResourceGroupResult.cc src/model/OrchestrateSagECRouteBackupRequest.cc src/model/OrchestrateSagECRouteBackupResult.cc + src/model/ProbeAccessPointNetworkQualityRequest.cc + src/model/ProbeAccessPointNetworkQualityResult.cc src/model/RebootSmartAccessGatewayRequest.cc src/model/RebootSmartAccessGatewayResult.cc src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc @@ -694,12 +776,10 @@ set(smartag_src src/model/RevokeInstanceFromVbrResult.cc src/model/RevokeSagInstanceFromCcnRequest.cc src/model/RevokeSagInstanceFromCcnResult.cc + src/model/RoamClientUserRequest.cc + src/model/RoamClientUserResult.cc src/model/SetSagRouteableAddressRequest.cc src/model/SetSagRouteableAddressResult.cc - src/model/SwitchCloudBoxHaStateRequest.cc - src/model/SwitchCloudBoxHaStateResult.cc - src/model/SwitchSAGHaStateRequest.cc - src/model/SwitchSAGHaStateResult.cc src/model/SynchronizeSmartAGWebConfigRequest.cc src/model/SynchronizeSmartAGWebConfigResult.cc src/model/UnbindSerialNumberRequest.cc @@ -714,6 +794,14 @@ set(smartag_src src/model/UnicomSignConfirmResult.cc src/model/UnlockSmartAccessGatewayRequest.cc src/model/UnlockSmartAccessGatewayResult.cc + src/model/UpdateEnterpriseCodeRequest.cc + src/model/UpdateEnterpriseCodeResult.cc + src/model/UpdateSmartAGAccessPointRequest.cc + src/model/UpdateSmartAGAccessPointResult.cc + src/model/UpdateSmartAGDpiAttributeRequest.cc + src/model/UpdateSmartAGDpiAttributeResult.cc + src/model/UpdateSmartAGEnterpriseCodeRequest.cc + src/model/UpdateSmartAGEnterpriseCodeResult.cc src/model/UpdateSmartAccessGatewayVersionRequest.cc src/model/UpdateSmartAccessGatewayVersionResult.cc src/model/UpgradeSmartAccessGatewayRequest.cc diff --git a/smartag/include/alibabacloud/smartag/SmartagClient.h b/smartag/include/alibabacloud/smartag/SmartagClient.h index ee328c517..99f2ba833 100644 --- a/smartag/include/alibabacloud/smartag/SmartagClient.h +++ b/smartag/include/alibabacloud/smartag/SmartagClient.h @@ -50,14 +50,16 @@ #include "model/BindSmartAccessGatewayResult.h" #include "model/BindVbrRequest.h" #include "model/BindVbrResult.h" +#include "model/ClearSagCipherRequest.h" +#include "model/ClearSagCipherResult.h" #include "model/ClearSagRouteableAddressRequest.h" #include "model/ClearSagRouteableAddressResult.h" #include "model/CreateACLRequest.h" #include "model/CreateACLResult.h" #include "model/CreateCloudConnectNetworkRequest.h" #include "model/CreateCloudConnectNetworkResult.h" -#include "model/CreateDedicatedLineBackupRequest.h" -#include "model/CreateDedicatedLineBackupResult.h" +#include "model/CreateEnterpriseCodeRequest.h" +#include "model/CreateEnterpriseCodeResult.h" #include "model/CreateFlowLogRequest.h" #include "model/CreateFlowLogResult.h" #include "model/CreateHealthCheckRequest.h" @@ -70,8 +72,6 @@ #include "model/CreateQosCarResult.h" #include "model/CreateQosPolicyRequest.h" #include "model/CreateQosPolicyResult.h" -#include "model/CreateSAGLinkLevelHaRequest.h" -#include "model/CreateSAGLinkLevelHaResult.h" #include "model/CreateSagExpressConnectInterfaceRequest.h" #include "model/CreateSagExpressConnectInterfaceResult.h" #include "model/CreateSagStaticRouteRequest.h" @@ -90,10 +90,10 @@ #include "model/DeleteACLRuleResult.h" #include "model/DeleteCloudConnectNetworkRequest.h" #include "model/DeleteCloudConnectNetworkResult.h" -#include "model/DeleteDedicatedLineBackupRequest.h" -#include "model/DeleteDedicatedLineBackupResult.h" #include "model/DeleteDnatEntryRequest.h" #include "model/DeleteDnatEntryResult.h" +#include "model/DeleteEnterpriseCodeRequest.h" +#include "model/DeleteEnterpriseCodeResult.h" #include "model/DeleteFlowLogRequest.h" #include "model/DeleteFlowLogResult.h" #include "model/DeleteHealthCheckRequest.h" @@ -110,8 +110,6 @@ #include "model/DeleteQosPolicyResult.h" #include "model/DeleteRouteDistributionStrategyRequest.h" #include "model/DeleteRouteDistributionStrategyResult.h" -#include "model/DeleteSAGLinkLevelHaRequest.h" -#include "model/DeleteSAGLinkLevelHaResult.h" #include "model/DeleteSagCidrRequest.h" #include "model/DeleteSagCidrResult.h" #include "model/DeleteSagExpressConnectInterfaceRequest.h" @@ -130,6 +128,8 @@ #include "model/DescribeACLsResult.h" #include "model/DescribeBindableSmartAccessGatewaysRequest.h" #include "model/DescribeBindableSmartAccessGatewaysResult.h" +#include "model/DescribeClientUserDNSRequest.h" +#include "model/DescribeClientUserDNSResult.h" #include "model/DescribeCloudConnectNetworksRequest.h" #include "model/DescribeCloudConnectNetworksResult.h" #include "model/DescribeDeviceAutoUpgradePolicyRequest.h" @@ -176,6 +176,8 @@ #include "model/DescribeSAGDeviceInfoResult.h" #include "model/DescribeSagCurrentDnsRequest.h" #include "model/DescribeSagCurrentDnsResult.h" +#include "model/DescribeSagDropTopNRequest.h" +#include "model/DescribeSagDropTopNResult.h" #include "model/DescribeSagECRouteBackupAttributeRequest.h" #include "model/DescribeSagECRouteBackupAttributeResult.h" #include "model/DescribeSagExpressConnectInterfaceListRequest.h" @@ -206,6 +208,8 @@ #include "model/DescribeSagRouteableAddressResult.h" #include "model/DescribeSagStaticRouteListRequest.h" #include "model/DescribeSagStaticRouteListResult.h" +#include "model/DescribeSagTrafficTopNRequest.h" +#include "model/DescribeSagTrafficTopNResult.h" #include "model/DescribeSagUserDnsRequest.h" #include "model/DescribeSagUserDnsResult.h" #include "model/DescribeSagVbrRelationsRequest.h" @@ -224,8 +228,6 @@ #include "model/DescribeSmartAccessGatewayClientUsersResult.h" #include "model/DescribeSmartAccessGatewayHaRequest.h" #include "model/DescribeSmartAccessGatewayHaResult.h" -#include "model/DescribeSmartAccessGatewayRoutesRequest.h" -#include "model/DescribeSmartAccessGatewayRoutesResult.h" #include "model/DescribeSmartAccessGatewayVersionsRequest.h" #include "model/DescribeSmartAccessGatewayVersionsResult.h" #include "model/DescribeSmartAccessGatewaysRequest.h" @@ -242,6 +244,10 @@ #include "model/DescribeUserOnlineClientsResult.h" #include "model/DetachNetworkOptimizationSagsRequest.h" #include "model/DetachNetworkOptimizationSagsResult.h" +#include "model/DiagnoseSmartAccessGatewayRequest.h" +#include "model/DiagnoseSmartAccessGatewayResult.h" +#include "model/DisableSmartAGDpiMonitorRequest.h" +#include "model/DisableSmartAGDpiMonitorResult.h" #include "model/DisableSmartAccessGatewayUserRequest.h" #include "model/DisableSmartAccessGatewayUserResult.h" #include "model/DisassociateACLRequest.h" @@ -250,14 +256,24 @@ #include "model/DisassociateFlowLogResult.h" #include "model/DisassociateQosRequest.h" #include "model/DisassociateQosResult.h" +#include "model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h" +#include "model/DiscribeSmartAccessGatewayDiagnosisReportResult.h" #include "model/DowngradeSmartAccessGatewayRequest.h" #include "model/DowngradeSmartAccessGatewayResult.h" #include "model/DowngradeSmartAccessGatewaySoftwareRequest.h" #include "model/DowngradeSmartAccessGatewaySoftwareResult.h" +#include "model/EnableSmartAGDpiMonitorRequest.h" +#include "model/EnableSmartAGDpiMonitorResult.h" #include "model/EnableSmartAccessGatewayUserRequest.h" #include "model/EnableSmartAccessGatewayUserResult.h" +#include "model/GetAclAttributeRequest.h" +#include "model/GetAclAttributeResult.h" #include "model/GetCloudConnectNetworkUseLimitRequest.h" #include "model/GetCloudConnectNetworkUseLimitResult.h" +#include "model/GetQosAttributeRequest.h" +#include "model/GetQosAttributeResult.h" +#include "model/GetSmartAGDpiAttributeRequest.h" +#include "model/GetSmartAGDpiAttributeResult.h" #include "model/GetSmartAccessGatewayUseLimitRequest.h" #include "model/GetSmartAccessGatewayUseLimitResult.h" #include "model/GrantInstanceToCbnRequest.h" @@ -268,10 +284,28 @@ #include "model/GrantSagInstanceToVbrResult.h" #include "model/KickOutClientsRequest.h" #include "model/KickOutClientsResult.h" +#include "model/ListAccessPointNetworkQualitiesRequest.h" +#include "model/ListAccessPointNetworkQualitiesResult.h" +#include "model/ListAccessPointsRequest.h" +#include "model/ListAccessPointsResult.h" +#include "model/ListDpiConfigErrorRequest.h" +#include "model/ListDpiConfigErrorResult.h" +#include "model/ListDpiGroupsRequest.h" +#include "model/ListDpiGroupsResult.h" +#include "model/ListDpiSignaturesRequest.h" +#include "model/ListDpiSignaturesResult.h" +#include "model/ListEnterpriseCodeRequest.h" +#include "model/ListEnterpriseCodeResult.h" +#include "model/ListSmartAGApiUnsupportedFeatureRequest.h" +#include "model/ListSmartAGApiUnsupportedFeatureResult.h" +#include "model/ListSmartAGByAccessPointRequest.h" +#include "model/ListSmartAGByAccessPointResult.h" #include "model/ModifyACLRequest.h" #include "model/ModifyACLResult.h" #include "model/ModifyACLRuleRequest.h" #include "model/ModifyACLRuleResult.h" +#include "model/ModifyClientUserDNSRequest.h" +#include "model/ModifyClientUserDNSResult.h" #include "model/ModifyCloudConnectNetworkRequest.h" #include "model/ModifyCloudConnectNetworkResult.h" #include "model/ModifyDeviceAutoUpgradePolicyRequest.h" @@ -290,6 +324,8 @@ #include "model/ModifyQosPolicyResult.h" #include "model/ModifyRouteDistributionStrategyRequest.h" #include "model/ModifyRouteDistributionStrategyResult.h" +#include "model/ModifySAGAdminPasswordRequest.h" +#include "model/ModifySAGAdminPasswordResult.h" #include "model/ModifySagCidrRequest.h" #include "model/ModifySagCidrResult.h" #include "model/ModifySagECRouteBackupRequest.h" @@ -324,16 +360,18 @@ #include "model/ModifySagWanSnatResult.h" #include "model/ModifySagWifiRequest.h" #include "model/ModifySagWifiResult.h" -#include "model/ModifySerialNumberRequest.h" -#include "model/ModifySerialNumberResult.h" #include "model/ModifySmartAccessGatewayRequest.h" #include "model/ModifySmartAccessGatewayResult.h" #include "model/ModifySmartAccessGatewayClientUserRequest.h" #include "model/ModifySmartAccessGatewayClientUserResult.h" #include "model/ModifySmartAccessGatewayUpBandwidthRequest.h" #include "model/ModifySmartAccessGatewayUpBandwidthResult.h" +#include "model/MoveResourceGroupRequest.h" +#include "model/MoveResourceGroupResult.h" #include "model/OrchestrateSagECRouteBackupRequest.h" #include "model/OrchestrateSagECRouteBackupResult.h" +#include "model/ProbeAccessPointNetworkQualityRequest.h" +#include "model/ProbeAccessPointNetworkQualityResult.h" #include "model/RebootSmartAccessGatewayRequest.h" #include "model/RebootSmartAccessGatewayResult.h" #include "model/ResetSmartAccessGatewayClientUserPasswordRequest.h" @@ -344,12 +382,10 @@ #include "model/RevokeInstanceFromVbrResult.h" #include "model/RevokeSagInstanceFromCcnRequest.h" #include "model/RevokeSagInstanceFromCcnResult.h" +#include "model/RoamClientUserRequest.h" +#include "model/RoamClientUserResult.h" #include "model/SetSagRouteableAddressRequest.h" #include "model/SetSagRouteableAddressResult.h" -#include "model/SwitchCloudBoxHaStateRequest.h" -#include "model/SwitchCloudBoxHaStateResult.h" -#include "model/SwitchSAGHaStateRequest.h" -#include "model/SwitchSAGHaStateResult.h" #include "model/SynchronizeSmartAGWebConfigRequest.h" #include "model/SynchronizeSmartAGWebConfigResult.h" #include "model/UnbindSerialNumberRequest.h" @@ -364,6 +400,14 @@ #include "model/UnicomSignConfirmResult.h" #include "model/UnlockSmartAccessGatewayRequest.h" #include "model/UnlockSmartAccessGatewayResult.h" +#include "model/UpdateEnterpriseCodeRequest.h" +#include "model/UpdateEnterpriseCodeResult.h" +#include "model/UpdateSmartAGAccessPointRequest.h" +#include "model/UpdateSmartAGAccessPointResult.h" +#include "model/UpdateSmartAGDpiAttributeRequest.h" +#include "model/UpdateSmartAGDpiAttributeResult.h" +#include "model/UpdateSmartAGEnterpriseCodeRequest.h" +#include "model/UpdateSmartAGEnterpriseCodeResult.h" #include "model/UpdateSmartAccessGatewayVersionRequest.h" #include "model/UpdateSmartAccessGatewayVersionResult.h" #include "model/UpgradeSmartAccessGatewayRequest.h" @@ -421,6 +465,9 @@ namespace AlibabaCloud typedef Outcome BindVbrOutcome; typedef std::future BindVbrOutcomeCallable; typedef std::function&)> BindVbrAsyncHandler; + typedef Outcome ClearSagCipherOutcome; + typedef std::future ClearSagCipherOutcomeCallable; + typedef std::function&)> ClearSagCipherAsyncHandler; typedef Outcome ClearSagRouteableAddressOutcome; typedef std::future ClearSagRouteableAddressOutcomeCallable; typedef std::function&)> ClearSagRouteableAddressAsyncHandler; @@ -430,9 +477,9 @@ namespace AlibabaCloud typedef Outcome CreateCloudConnectNetworkOutcome; typedef std::future CreateCloudConnectNetworkOutcomeCallable; typedef std::function&)> CreateCloudConnectNetworkAsyncHandler; - typedef Outcome CreateDedicatedLineBackupOutcome; - typedef std::future CreateDedicatedLineBackupOutcomeCallable; - typedef std::function&)> CreateDedicatedLineBackupAsyncHandler; + typedef Outcome CreateEnterpriseCodeOutcome; + typedef std::future CreateEnterpriseCodeOutcomeCallable; + typedef std::function&)> CreateEnterpriseCodeAsyncHandler; typedef Outcome CreateFlowLogOutcome; typedef std::future CreateFlowLogOutcomeCallable; typedef std::function&)> CreateFlowLogAsyncHandler; @@ -451,9 +498,6 @@ namespace AlibabaCloud typedef Outcome CreateQosPolicyOutcome; typedef std::future CreateQosPolicyOutcomeCallable; typedef std::function&)> CreateQosPolicyAsyncHandler; - typedef Outcome CreateSAGLinkLevelHaOutcome; - typedef std::future CreateSAGLinkLevelHaOutcomeCallable; - typedef std::function&)> CreateSAGLinkLevelHaAsyncHandler; typedef Outcome CreateSagExpressConnectInterfaceOutcome; typedef std::future CreateSagExpressConnectInterfaceOutcomeCallable; typedef std::function&)> CreateSagExpressConnectInterfaceAsyncHandler; @@ -481,12 +525,12 @@ namespace AlibabaCloud typedef Outcome DeleteCloudConnectNetworkOutcome; typedef std::future DeleteCloudConnectNetworkOutcomeCallable; typedef std::function&)> DeleteCloudConnectNetworkAsyncHandler; - typedef Outcome DeleteDedicatedLineBackupOutcome; - typedef std::future DeleteDedicatedLineBackupOutcomeCallable; - typedef std::function&)> DeleteDedicatedLineBackupAsyncHandler; typedef Outcome DeleteDnatEntryOutcome; typedef std::future DeleteDnatEntryOutcomeCallable; typedef std::function&)> DeleteDnatEntryAsyncHandler; + typedef Outcome DeleteEnterpriseCodeOutcome; + typedef std::future DeleteEnterpriseCodeOutcomeCallable; + typedef std::function&)> DeleteEnterpriseCodeAsyncHandler; typedef Outcome DeleteFlowLogOutcome; typedef std::future DeleteFlowLogOutcomeCallable; typedef std::function&)> DeleteFlowLogAsyncHandler; @@ -511,9 +555,6 @@ namespace AlibabaCloud typedef Outcome DeleteRouteDistributionStrategyOutcome; typedef std::future DeleteRouteDistributionStrategyOutcomeCallable; typedef std::function&)> DeleteRouteDistributionStrategyAsyncHandler; - typedef Outcome DeleteSAGLinkLevelHaOutcome; - typedef std::future DeleteSAGLinkLevelHaOutcomeCallable; - typedef std::function&)> DeleteSAGLinkLevelHaAsyncHandler; typedef Outcome DeleteSagCidrOutcome; typedef std::future DeleteSagCidrOutcomeCallable; typedef std::function&)> DeleteSagCidrAsyncHandler; @@ -541,6 +582,9 @@ namespace AlibabaCloud typedef Outcome DescribeBindableSmartAccessGatewaysOutcome; typedef std::future DescribeBindableSmartAccessGatewaysOutcomeCallable; typedef std::function&)> DescribeBindableSmartAccessGatewaysAsyncHandler; + typedef Outcome DescribeClientUserDNSOutcome; + typedef std::future DescribeClientUserDNSOutcomeCallable; + typedef std::function&)> DescribeClientUserDNSAsyncHandler; typedef Outcome DescribeCloudConnectNetworksOutcome; typedef std::future DescribeCloudConnectNetworksOutcomeCallable; typedef std::function&)> DescribeCloudConnectNetworksAsyncHandler; @@ -610,6 +654,9 @@ namespace AlibabaCloud typedef Outcome DescribeSagCurrentDnsOutcome; typedef std::future DescribeSagCurrentDnsOutcomeCallable; typedef std::function&)> DescribeSagCurrentDnsAsyncHandler; + typedef Outcome DescribeSagDropTopNOutcome; + typedef std::future DescribeSagDropTopNOutcomeCallable; + typedef std::function&)> DescribeSagDropTopNAsyncHandler; typedef Outcome DescribeSagECRouteBackupAttributeOutcome; typedef std::future DescribeSagECRouteBackupAttributeOutcomeCallable; typedef std::function&)> DescribeSagECRouteBackupAttributeAsyncHandler; @@ -655,6 +702,9 @@ namespace AlibabaCloud typedef Outcome DescribeSagStaticRouteListOutcome; typedef std::future DescribeSagStaticRouteListOutcomeCallable; typedef std::function&)> DescribeSagStaticRouteListAsyncHandler; + typedef Outcome DescribeSagTrafficTopNOutcome; + typedef std::future DescribeSagTrafficTopNOutcomeCallable; + typedef std::function&)> DescribeSagTrafficTopNAsyncHandler; typedef Outcome DescribeSagUserDnsOutcome; typedef std::future DescribeSagUserDnsOutcomeCallable; typedef std::function&)> DescribeSagUserDnsAsyncHandler; @@ -682,9 +732,6 @@ namespace AlibabaCloud typedef Outcome DescribeSmartAccessGatewayHaOutcome; typedef std::future DescribeSmartAccessGatewayHaOutcomeCallable; typedef std::function&)> DescribeSmartAccessGatewayHaAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayRoutesOutcome; - typedef std::future DescribeSmartAccessGatewayRoutesOutcomeCallable; - typedef std::function&)> DescribeSmartAccessGatewayRoutesAsyncHandler; typedef Outcome DescribeSmartAccessGatewayVersionsOutcome; typedef std::future DescribeSmartAccessGatewayVersionsOutcomeCallable; typedef std::function&)> DescribeSmartAccessGatewayVersionsAsyncHandler; @@ -709,6 +756,12 @@ namespace AlibabaCloud typedef Outcome DetachNetworkOptimizationSagsOutcome; typedef std::future DetachNetworkOptimizationSagsOutcomeCallable; typedef std::function&)> DetachNetworkOptimizationSagsAsyncHandler; + typedef Outcome DiagnoseSmartAccessGatewayOutcome; + typedef std::future DiagnoseSmartAccessGatewayOutcomeCallable; + typedef std::function&)> DiagnoseSmartAccessGatewayAsyncHandler; + typedef Outcome DisableSmartAGDpiMonitorOutcome; + typedef std::future DisableSmartAGDpiMonitorOutcomeCallable; + typedef std::function&)> DisableSmartAGDpiMonitorAsyncHandler; typedef Outcome DisableSmartAccessGatewayUserOutcome; typedef std::future DisableSmartAccessGatewayUserOutcomeCallable; typedef std::function&)> DisableSmartAccessGatewayUserAsyncHandler; @@ -721,18 +774,33 @@ namespace AlibabaCloud typedef Outcome DisassociateQosOutcome; typedef std::future DisassociateQosOutcomeCallable; typedef std::function&)> DisassociateQosAsyncHandler; + typedef Outcome DiscribeSmartAccessGatewayDiagnosisReportOutcome; + typedef std::future DiscribeSmartAccessGatewayDiagnosisReportOutcomeCallable; + typedef std::function&)> DiscribeSmartAccessGatewayDiagnosisReportAsyncHandler; typedef Outcome DowngradeSmartAccessGatewayOutcome; typedef std::future DowngradeSmartAccessGatewayOutcomeCallable; typedef std::function&)> DowngradeSmartAccessGatewayAsyncHandler; typedef Outcome DowngradeSmartAccessGatewaySoftwareOutcome; typedef std::future DowngradeSmartAccessGatewaySoftwareOutcomeCallable; typedef std::function&)> DowngradeSmartAccessGatewaySoftwareAsyncHandler; + typedef Outcome EnableSmartAGDpiMonitorOutcome; + typedef std::future EnableSmartAGDpiMonitorOutcomeCallable; + typedef std::function&)> EnableSmartAGDpiMonitorAsyncHandler; typedef Outcome EnableSmartAccessGatewayUserOutcome; typedef std::future EnableSmartAccessGatewayUserOutcomeCallable; typedef std::function&)> EnableSmartAccessGatewayUserAsyncHandler; + typedef Outcome GetAclAttributeOutcome; + typedef std::future GetAclAttributeOutcomeCallable; + typedef std::function&)> GetAclAttributeAsyncHandler; typedef Outcome GetCloudConnectNetworkUseLimitOutcome; typedef std::future GetCloudConnectNetworkUseLimitOutcomeCallable; typedef std::function&)> GetCloudConnectNetworkUseLimitAsyncHandler; + typedef Outcome GetQosAttributeOutcome; + typedef std::future GetQosAttributeOutcomeCallable; + typedef std::function&)> GetQosAttributeAsyncHandler; + typedef Outcome GetSmartAGDpiAttributeOutcome; + typedef std::future GetSmartAGDpiAttributeOutcomeCallable; + typedef std::function&)> GetSmartAGDpiAttributeAsyncHandler; typedef Outcome GetSmartAccessGatewayUseLimitOutcome; typedef std::future GetSmartAccessGatewayUseLimitOutcomeCallable; typedef std::function&)> GetSmartAccessGatewayUseLimitAsyncHandler; @@ -748,12 +816,39 @@ namespace AlibabaCloud typedef Outcome KickOutClientsOutcome; typedef std::future KickOutClientsOutcomeCallable; typedef std::function&)> KickOutClientsAsyncHandler; + typedef Outcome ListAccessPointNetworkQualitiesOutcome; + typedef std::future ListAccessPointNetworkQualitiesOutcomeCallable; + typedef std::function&)> ListAccessPointNetworkQualitiesAsyncHandler; + typedef Outcome ListAccessPointsOutcome; + typedef std::future ListAccessPointsOutcomeCallable; + typedef std::function&)> ListAccessPointsAsyncHandler; + typedef Outcome ListDpiConfigErrorOutcome; + typedef std::future ListDpiConfigErrorOutcomeCallable; + typedef std::function&)> ListDpiConfigErrorAsyncHandler; + typedef Outcome ListDpiGroupsOutcome; + typedef std::future ListDpiGroupsOutcomeCallable; + typedef std::function&)> ListDpiGroupsAsyncHandler; + typedef Outcome ListDpiSignaturesOutcome; + typedef std::future ListDpiSignaturesOutcomeCallable; + typedef std::function&)> ListDpiSignaturesAsyncHandler; + typedef Outcome ListEnterpriseCodeOutcome; + typedef std::future ListEnterpriseCodeOutcomeCallable; + typedef std::function&)> ListEnterpriseCodeAsyncHandler; + typedef Outcome ListSmartAGApiUnsupportedFeatureOutcome; + typedef std::future ListSmartAGApiUnsupportedFeatureOutcomeCallable; + typedef std::function&)> ListSmartAGApiUnsupportedFeatureAsyncHandler; + typedef Outcome ListSmartAGByAccessPointOutcome; + typedef std::future ListSmartAGByAccessPointOutcomeCallable; + typedef std::function&)> ListSmartAGByAccessPointAsyncHandler; typedef Outcome ModifyACLOutcome; typedef std::future ModifyACLOutcomeCallable; typedef std::function&)> ModifyACLAsyncHandler; typedef Outcome ModifyACLRuleOutcome; typedef std::future ModifyACLRuleOutcomeCallable; typedef std::function&)> ModifyACLRuleAsyncHandler; + typedef Outcome ModifyClientUserDNSOutcome; + typedef std::future ModifyClientUserDNSOutcomeCallable; + typedef std::function&)> ModifyClientUserDNSAsyncHandler; typedef Outcome ModifyCloudConnectNetworkOutcome; typedef std::future ModifyCloudConnectNetworkOutcomeCallable; typedef std::function&)> ModifyCloudConnectNetworkAsyncHandler; @@ -781,6 +876,9 @@ namespace AlibabaCloud typedef Outcome ModifyRouteDistributionStrategyOutcome; typedef std::future ModifyRouteDistributionStrategyOutcomeCallable; typedef std::function&)> ModifyRouteDistributionStrategyAsyncHandler; + typedef Outcome ModifySAGAdminPasswordOutcome; + typedef std::future ModifySAGAdminPasswordOutcomeCallable; + typedef std::function&)> ModifySAGAdminPasswordAsyncHandler; typedef Outcome ModifySagCidrOutcome; typedef std::future ModifySagCidrOutcomeCallable; typedef std::function&)> ModifySagCidrAsyncHandler; @@ -832,9 +930,6 @@ namespace AlibabaCloud typedef Outcome ModifySagWifiOutcome; typedef std::future ModifySagWifiOutcomeCallable; typedef std::function&)> ModifySagWifiAsyncHandler; - typedef Outcome ModifySerialNumberOutcome; - typedef std::future ModifySerialNumberOutcomeCallable; - typedef std::function&)> ModifySerialNumberAsyncHandler; typedef Outcome ModifySmartAccessGatewayOutcome; typedef std::future ModifySmartAccessGatewayOutcomeCallable; typedef std::function&)> ModifySmartAccessGatewayAsyncHandler; @@ -844,9 +939,15 @@ namespace AlibabaCloud typedef Outcome ModifySmartAccessGatewayUpBandwidthOutcome; typedef std::future ModifySmartAccessGatewayUpBandwidthOutcomeCallable; typedef std::function&)> ModifySmartAccessGatewayUpBandwidthAsyncHandler; + typedef Outcome MoveResourceGroupOutcome; + typedef std::future MoveResourceGroupOutcomeCallable; + typedef std::function&)> MoveResourceGroupAsyncHandler; typedef Outcome OrchestrateSagECRouteBackupOutcome; typedef std::future OrchestrateSagECRouteBackupOutcomeCallable; typedef std::function&)> OrchestrateSagECRouteBackupAsyncHandler; + typedef Outcome ProbeAccessPointNetworkQualityOutcome; + typedef std::future ProbeAccessPointNetworkQualityOutcomeCallable; + typedef std::function&)> ProbeAccessPointNetworkQualityAsyncHandler; typedef Outcome RebootSmartAccessGatewayOutcome; typedef std::future RebootSmartAccessGatewayOutcomeCallable; typedef std::function&)> RebootSmartAccessGatewayAsyncHandler; @@ -862,15 +963,12 @@ namespace AlibabaCloud typedef Outcome RevokeSagInstanceFromCcnOutcome; typedef std::future RevokeSagInstanceFromCcnOutcomeCallable; typedef std::function&)> RevokeSagInstanceFromCcnAsyncHandler; + typedef Outcome RoamClientUserOutcome; + typedef std::future RoamClientUserOutcomeCallable; + typedef std::function&)> RoamClientUserAsyncHandler; typedef Outcome SetSagRouteableAddressOutcome; typedef std::future SetSagRouteableAddressOutcomeCallable; typedef std::function&)> SetSagRouteableAddressAsyncHandler; - typedef Outcome SwitchCloudBoxHaStateOutcome; - typedef std::future SwitchCloudBoxHaStateOutcomeCallable; - typedef std::function&)> SwitchCloudBoxHaStateAsyncHandler; - typedef Outcome SwitchSAGHaStateOutcome; - typedef std::future SwitchSAGHaStateOutcomeCallable; - typedef std::function&)> SwitchSAGHaStateAsyncHandler; typedef Outcome SynchronizeSmartAGWebConfigOutcome; typedef std::future SynchronizeSmartAGWebConfigOutcomeCallable; typedef std::function&)> SynchronizeSmartAGWebConfigAsyncHandler; @@ -892,6 +990,18 @@ namespace AlibabaCloud typedef Outcome UnlockSmartAccessGatewayOutcome; typedef std::future UnlockSmartAccessGatewayOutcomeCallable; typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; + typedef Outcome UpdateEnterpriseCodeOutcome; + typedef std::future UpdateEnterpriseCodeOutcomeCallable; + typedef std::function&)> UpdateEnterpriseCodeAsyncHandler; + typedef Outcome UpdateSmartAGAccessPointOutcome; + typedef std::future UpdateSmartAGAccessPointOutcomeCallable; + typedef std::function&)> UpdateSmartAGAccessPointAsyncHandler; + typedef Outcome UpdateSmartAGDpiAttributeOutcome; + typedef std::future UpdateSmartAGDpiAttributeOutcomeCallable; + typedef std::function&)> UpdateSmartAGDpiAttributeAsyncHandler; + typedef Outcome UpdateSmartAGEnterpriseCodeOutcome; + typedef std::future UpdateSmartAGEnterpriseCodeOutcomeCallable; + typedef std::function&)> UpdateSmartAGEnterpriseCodeAsyncHandler; typedef Outcome UpdateSmartAccessGatewayVersionOutcome; typedef std::future UpdateSmartAccessGatewayVersionOutcomeCallable; typedef std::function&)> UpdateSmartAccessGatewayVersionAsyncHandler; @@ -948,6 +1058,9 @@ namespace AlibabaCloud BindVbrOutcome bindVbr(const Model::BindVbrRequest &request)const; void bindVbrAsync(const Model::BindVbrRequest& request, const BindVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindVbrOutcomeCallable bindVbrCallable(const Model::BindVbrRequest& request) const; + ClearSagCipherOutcome clearSagCipher(const Model::ClearSagCipherRequest &request)const; + void clearSagCipherAsync(const Model::ClearSagCipherRequest& request, const ClearSagCipherAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ClearSagCipherOutcomeCallable clearSagCipherCallable(const Model::ClearSagCipherRequest& request) const; ClearSagRouteableAddressOutcome clearSagRouteableAddress(const Model::ClearSagRouteableAddressRequest &request)const; void clearSagRouteableAddressAsync(const Model::ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ClearSagRouteableAddressOutcomeCallable clearSagRouteableAddressCallable(const Model::ClearSagRouteableAddressRequest& request) const; @@ -957,9 +1070,9 @@ namespace AlibabaCloud CreateCloudConnectNetworkOutcome createCloudConnectNetwork(const Model::CreateCloudConnectNetworkRequest &request)const; void createCloudConnectNetworkAsync(const Model::CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCloudConnectNetworkOutcomeCallable createCloudConnectNetworkCallable(const Model::CreateCloudConnectNetworkRequest& request) const; - CreateDedicatedLineBackupOutcome createDedicatedLineBackup(const Model::CreateDedicatedLineBackupRequest &request)const; - void createDedicatedLineBackupAsync(const Model::CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDedicatedLineBackupOutcomeCallable createDedicatedLineBackupCallable(const Model::CreateDedicatedLineBackupRequest& request) const; + CreateEnterpriseCodeOutcome createEnterpriseCode(const Model::CreateEnterpriseCodeRequest &request)const; + void createEnterpriseCodeAsync(const Model::CreateEnterpriseCodeRequest& request, const CreateEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEnterpriseCodeOutcomeCallable createEnterpriseCodeCallable(const Model::CreateEnterpriseCodeRequest& request) const; CreateFlowLogOutcome createFlowLog(const Model::CreateFlowLogRequest &request)const; void createFlowLogAsync(const Model::CreateFlowLogRequest& request, const CreateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowLogOutcomeCallable createFlowLogCallable(const Model::CreateFlowLogRequest& request) const; @@ -978,9 +1091,6 @@ namespace AlibabaCloud CreateQosPolicyOutcome createQosPolicy(const Model::CreateQosPolicyRequest &request)const; void createQosPolicyAsync(const Model::CreateQosPolicyRequest& request, const CreateQosPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateQosPolicyOutcomeCallable createQosPolicyCallable(const Model::CreateQosPolicyRequest& request) const; - CreateSAGLinkLevelHaOutcome createSAGLinkLevelHa(const Model::CreateSAGLinkLevelHaRequest &request)const; - void createSAGLinkLevelHaAsync(const Model::CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSAGLinkLevelHaOutcomeCallable createSAGLinkLevelHaCallable(const Model::CreateSAGLinkLevelHaRequest& request) const; CreateSagExpressConnectInterfaceOutcome createSagExpressConnectInterface(const Model::CreateSagExpressConnectInterfaceRequest &request)const; void createSagExpressConnectInterfaceAsync(const Model::CreateSagExpressConnectInterfaceRequest& request, const CreateSagExpressConnectInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSagExpressConnectInterfaceOutcomeCallable createSagExpressConnectInterfaceCallable(const Model::CreateSagExpressConnectInterfaceRequest& request) const; @@ -1008,12 +1118,12 @@ namespace AlibabaCloud DeleteCloudConnectNetworkOutcome deleteCloudConnectNetwork(const Model::DeleteCloudConnectNetworkRequest &request)const; void deleteCloudConnectNetworkAsync(const Model::DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCloudConnectNetworkOutcomeCallable deleteCloudConnectNetworkCallable(const Model::DeleteCloudConnectNetworkRequest& request) const; - DeleteDedicatedLineBackupOutcome deleteDedicatedLineBackup(const Model::DeleteDedicatedLineBackupRequest &request)const; - void deleteDedicatedLineBackupAsync(const Model::DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDedicatedLineBackupOutcomeCallable deleteDedicatedLineBackupCallable(const Model::DeleteDedicatedLineBackupRequest& request) const; DeleteDnatEntryOutcome deleteDnatEntry(const Model::DeleteDnatEntryRequest &request)const; void deleteDnatEntryAsync(const Model::DeleteDnatEntryRequest& request, const DeleteDnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDnatEntryOutcomeCallable deleteDnatEntryCallable(const Model::DeleteDnatEntryRequest& request) const; + DeleteEnterpriseCodeOutcome deleteEnterpriseCode(const Model::DeleteEnterpriseCodeRequest &request)const; + void deleteEnterpriseCodeAsync(const Model::DeleteEnterpriseCodeRequest& request, const DeleteEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEnterpriseCodeOutcomeCallable deleteEnterpriseCodeCallable(const Model::DeleteEnterpriseCodeRequest& request) const; DeleteFlowLogOutcome deleteFlowLog(const Model::DeleteFlowLogRequest &request)const; void deleteFlowLogAsync(const Model::DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowLogOutcomeCallable deleteFlowLogCallable(const Model::DeleteFlowLogRequest& request) const; @@ -1038,9 +1148,6 @@ namespace AlibabaCloud DeleteRouteDistributionStrategyOutcome deleteRouteDistributionStrategy(const Model::DeleteRouteDistributionStrategyRequest &request)const; void deleteRouteDistributionStrategyAsync(const Model::DeleteRouteDistributionStrategyRequest& request, const DeleteRouteDistributionStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteDistributionStrategyOutcomeCallable deleteRouteDistributionStrategyCallable(const Model::DeleteRouteDistributionStrategyRequest& request) const; - DeleteSAGLinkLevelHaOutcome deleteSAGLinkLevelHa(const Model::DeleteSAGLinkLevelHaRequest &request)const; - void deleteSAGLinkLevelHaAsync(const Model::DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSAGLinkLevelHaOutcomeCallable deleteSAGLinkLevelHaCallable(const Model::DeleteSAGLinkLevelHaRequest& request) const; DeleteSagCidrOutcome deleteSagCidr(const Model::DeleteSagCidrRequest &request)const; void deleteSagCidrAsync(const Model::DeleteSagCidrRequest& request, const DeleteSagCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSagCidrOutcomeCallable deleteSagCidrCallable(const Model::DeleteSagCidrRequest& request) const; @@ -1068,6 +1175,9 @@ namespace AlibabaCloud DescribeBindableSmartAccessGatewaysOutcome describeBindableSmartAccessGateways(const Model::DescribeBindableSmartAccessGatewaysRequest &request)const; void describeBindableSmartAccessGatewaysAsync(const Model::DescribeBindableSmartAccessGatewaysRequest& request, const DescribeBindableSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBindableSmartAccessGatewaysOutcomeCallable describeBindableSmartAccessGatewaysCallable(const Model::DescribeBindableSmartAccessGatewaysRequest& request) const; + DescribeClientUserDNSOutcome describeClientUserDNS(const Model::DescribeClientUserDNSRequest &request)const; + void describeClientUserDNSAsync(const Model::DescribeClientUserDNSRequest& request, const DescribeClientUserDNSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClientUserDNSOutcomeCallable describeClientUserDNSCallable(const Model::DescribeClientUserDNSRequest& request) const; DescribeCloudConnectNetworksOutcome describeCloudConnectNetworks(const Model::DescribeCloudConnectNetworksRequest &request)const; void describeCloudConnectNetworksAsync(const Model::DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudConnectNetworksOutcomeCallable describeCloudConnectNetworksCallable(const Model::DescribeCloudConnectNetworksRequest& request) const; @@ -1137,6 +1247,9 @@ namespace AlibabaCloud DescribeSagCurrentDnsOutcome describeSagCurrentDns(const Model::DescribeSagCurrentDnsRequest &request)const; void describeSagCurrentDnsAsync(const Model::DescribeSagCurrentDnsRequest& request, const DescribeSagCurrentDnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagCurrentDnsOutcomeCallable describeSagCurrentDnsCallable(const Model::DescribeSagCurrentDnsRequest& request) const; + DescribeSagDropTopNOutcome describeSagDropTopN(const Model::DescribeSagDropTopNRequest &request)const; + void describeSagDropTopNAsync(const Model::DescribeSagDropTopNRequest& request, const DescribeSagDropTopNAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagDropTopNOutcomeCallable describeSagDropTopNCallable(const Model::DescribeSagDropTopNRequest& request) const; DescribeSagECRouteBackupAttributeOutcome describeSagECRouteBackupAttribute(const Model::DescribeSagECRouteBackupAttributeRequest &request)const; void describeSagECRouteBackupAttributeAsync(const Model::DescribeSagECRouteBackupAttributeRequest& request, const DescribeSagECRouteBackupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagECRouteBackupAttributeOutcomeCallable describeSagECRouteBackupAttributeCallable(const Model::DescribeSagECRouteBackupAttributeRequest& request) const; @@ -1182,6 +1295,9 @@ namespace AlibabaCloud DescribeSagStaticRouteListOutcome describeSagStaticRouteList(const Model::DescribeSagStaticRouteListRequest &request)const; void describeSagStaticRouteListAsync(const Model::DescribeSagStaticRouteListRequest& request, const DescribeSagStaticRouteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagStaticRouteListOutcomeCallable describeSagStaticRouteListCallable(const Model::DescribeSagStaticRouteListRequest& request) const; + DescribeSagTrafficTopNOutcome describeSagTrafficTopN(const Model::DescribeSagTrafficTopNRequest &request)const; + void describeSagTrafficTopNAsync(const Model::DescribeSagTrafficTopNRequest& request, const DescribeSagTrafficTopNAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagTrafficTopNOutcomeCallable describeSagTrafficTopNCallable(const Model::DescribeSagTrafficTopNRequest& request) const; DescribeSagUserDnsOutcome describeSagUserDns(const Model::DescribeSagUserDnsRequest &request)const; void describeSagUserDnsAsync(const Model::DescribeSagUserDnsRequest& request, const DescribeSagUserDnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagUserDnsOutcomeCallable describeSagUserDnsCallable(const Model::DescribeSagUserDnsRequest& request) const; @@ -1209,9 +1325,6 @@ namespace AlibabaCloud DescribeSmartAccessGatewayHaOutcome describeSmartAccessGatewayHa(const Model::DescribeSmartAccessGatewayHaRequest &request)const; void describeSmartAccessGatewayHaAsync(const Model::DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSmartAccessGatewayHaOutcomeCallable describeSmartAccessGatewayHaCallable(const Model::DescribeSmartAccessGatewayHaRequest& request) const; - DescribeSmartAccessGatewayRoutesOutcome describeSmartAccessGatewayRoutes(const Model::DescribeSmartAccessGatewayRoutesRequest &request)const; - void describeSmartAccessGatewayRoutesAsync(const Model::DescribeSmartAccessGatewayRoutesRequest& request, const DescribeSmartAccessGatewayRoutesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSmartAccessGatewayRoutesOutcomeCallable describeSmartAccessGatewayRoutesCallable(const Model::DescribeSmartAccessGatewayRoutesRequest& request) const; DescribeSmartAccessGatewayVersionsOutcome describeSmartAccessGatewayVersions(const Model::DescribeSmartAccessGatewayVersionsRequest &request)const; void describeSmartAccessGatewayVersionsAsync(const Model::DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSmartAccessGatewayVersionsOutcomeCallable describeSmartAccessGatewayVersionsCallable(const Model::DescribeSmartAccessGatewayVersionsRequest& request) const; @@ -1236,6 +1349,12 @@ namespace AlibabaCloud DetachNetworkOptimizationSagsOutcome detachNetworkOptimizationSags(const Model::DetachNetworkOptimizationSagsRequest &request)const; void detachNetworkOptimizationSagsAsync(const Model::DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachNetworkOptimizationSagsOutcomeCallable detachNetworkOptimizationSagsCallable(const Model::DetachNetworkOptimizationSagsRequest& request) const; + DiagnoseSmartAccessGatewayOutcome diagnoseSmartAccessGateway(const Model::DiagnoseSmartAccessGatewayRequest &request)const; + void diagnoseSmartAccessGatewayAsync(const Model::DiagnoseSmartAccessGatewayRequest& request, const DiagnoseSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiagnoseSmartAccessGatewayOutcomeCallable diagnoseSmartAccessGatewayCallable(const Model::DiagnoseSmartAccessGatewayRequest& request) const; + DisableSmartAGDpiMonitorOutcome disableSmartAGDpiMonitor(const Model::DisableSmartAGDpiMonitorRequest &request)const; + void disableSmartAGDpiMonitorAsync(const Model::DisableSmartAGDpiMonitorRequest& request, const DisableSmartAGDpiMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableSmartAGDpiMonitorOutcomeCallable disableSmartAGDpiMonitorCallable(const Model::DisableSmartAGDpiMonitorRequest& request) const; DisableSmartAccessGatewayUserOutcome disableSmartAccessGatewayUser(const Model::DisableSmartAccessGatewayUserRequest &request)const; void disableSmartAccessGatewayUserAsync(const Model::DisableSmartAccessGatewayUserRequest& request, const DisableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableSmartAccessGatewayUserOutcomeCallable disableSmartAccessGatewayUserCallable(const Model::DisableSmartAccessGatewayUserRequest& request) const; @@ -1248,18 +1367,33 @@ namespace AlibabaCloud DisassociateQosOutcome disassociateQos(const Model::DisassociateQosRequest &request)const; void disassociateQosAsync(const Model::DisassociateQosRequest& request, const DisassociateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisassociateQosOutcomeCallable disassociateQosCallable(const Model::DisassociateQosRequest& request) const; + DiscribeSmartAccessGatewayDiagnosisReportOutcome discribeSmartAccessGatewayDiagnosisReport(const Model::DiscribeSmartAccessGatewayDiagnosisReportRequest &request)const; + void discribeSmartAccessGatewayDiagnosisReportAsync(const Model::DiscribeSmartAccessGatewayDiagnosisReportRequest& request, const DiscribeSmartAccessGatewayDiagnosisReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiscribeSmartAccessGatewayDiagnosisReportOutcomeCallable discribeSmartAccessGatewayDiagnosisReportCallable(const Model::DiscribeSmartAccessGatewayDiagnosisReportRequest& request) const; DowngradeSmartAccessGatewayOutcome downgradeSmartAccessGateway(const Model::DowngradeSmartAccessGatewayRequest &request)const; void downgradeSmartAccessGatewayAsync(const Model::DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DowngradeSmartAccessGatewayOutcomeCallable downgradeSmartAccessGatewayCallable(const Model::DowngradeSmartAccessGatewayRequest& request) const; DowngradeSmartAccessGatewaySoftwareOutcome downgradeSmartAccessGatewaySoftware(const Model::DowngradeSmartAccessGatewaySoftwareRequest &request)const; void downgradeSmartAccessGatewaySoftwareAsync(const Model::DowngradeSmartAccessGatewaySoftwareRequest& request, const DowngradeSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DowngradeSmartAccessGatewaySoftwareOutcomeCallable downgradeSmartAccessGatewaySoftwareCallable(const Model::DowngradeSmartAccessGatewaySoftwareRequest& request) const; + EnableSmartAGDpiMonitorOutcome enableSmartAGDpiMonitor(const Model::EnableSmartAGDpiMonitorRequest &request)const; + void enableSmartAGDpiMonitorAsync(const Model::EnableSmartAGDpiMonitorRequest& request, const EnableSmartAGDpiMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableSmartAGDpiMonitorOutcomeCallable enableSmartAGDpiMonitorCallable(const Model::EnableSmartAGDpiMonitorRequest& request) const; EnableSmartAccessGatewayUserOutcome enableSmartAccessGatewayUser(const Model::EnableSmartAccessGatewayUserRequest &request)const; void enableSmartAccessGatewayUserAsync(const Model::EnableSmartAccessGatewayUserRequest& request, const EnableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableSmartAccessGatewayUserOutcomeCallable enableSmartAccessGatewayUserCallable(const Model::EnableSmartAccessGatewayUserRequest& request) const; + GetAclAttributeOutcome getAclAttribute(const Model::GetAclAttributeRequest &request)const; + void getAclAttributeAsync(const Model::GetAclAttributeRequest& request, const GetAclAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAclAttributeOutcomeCallable getAclAttributeCallable(const Model::GetAclAttributeRequest& request) const; GetCloudConnectNetworkUseLimitOutcome getCloudConnectNetworkUseLimit(const Model::GetCloudConnectNetworkUseLimitRequest &request)const; void getCloudConnectNetworkUseLimitAsync(const Model::GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCloudConnectNetworkUseLimitOutcomeCallable getCloudConnectNetworkUseLimitCallable(const Model::GetCloudConnectNetworkUseLimitRequest& request) const; + GetQosAttributeOutcome getQosAttribute(const Model::GetQosAttributeRequest &request)const; + void getQosAttributeAsync(const Model::GetQosAttributeRequest& request, const GetQosAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetQosAttributeOutcomeCallable getQosAttributeCallable(const Model::GetQosAttributeRequest& request) const; + GetSmartAGDpiAttributeOutcome getSmartAGDpiAttribute(const Model::GetSmartAGDpiAttributeRequest &request)const; + void getSmartAGDpiAttributeAsync(const Model::GetSmartAGDpiAttributeRequest& request, const GetSmartAGDpiAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSmartAGDpiAttributeOutcomeCallable getSmartAGDpiAttributeCallable(const Model::GetSmartAGDpiAttributeRequest& request) const; GetSmartAccessGatewayUseLimitOutcome getSmartAccessGatewayUseLimit(const Model::GetSmartAccessGatewayUseLimitRequest &request)const; void getSmartAccessGatewayUseLimitAsync(const Model::GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSmartAccessGatewayUseLimitOutcomeCallable getSmartAccessGatewayUseLimitCallable(const Model::GetSmartAccessGatewayUseLimitRequest& request) const; @@ -1275,12 +1409,39 @@ namespace AlibabaCloud KickOutClientsOutcome kickOutClients(const Model::KickOutClientsRequest &request)const; void kickOutClientsAsync(const Model::KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; KickOutClientsOutcomeCallable kickOutClientsCallable(const Model::KickOutClientsRequest& request) const; + ListAccessPointNetworkQualitiesOutcome listAccessPointNetworkQualities(const Model::ListAccessPointNetworkQualitiesRequest &request)const; + void listAccessPointNetworkQualitiesAsync(const Model::ListAccessPointNetworkQualitiesRequest& request, const ListAccessPointNetworkQualitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccessPointNetworkQualitiesOutcomeCallable listAccessPointNetworkQualitiesCallable(const Model::ListAccessPointNetworkQualitiesRequest& request) const; + ListAccessPointsOutcome listAccessPoints(const Model::ListAccessPointsRequest &request)const; + void listAccessPointsAsync(const Model::ListAccessPointsRequest& request, const ListAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccessPointsOutcomeCallable listAccessPointsCallable(const Model::ListAccessPointsRequest& request) const; + ListDpiConfigErrorOutcome listDpiConfigError(const Model::ListDpiConfigErrorRequest &request)const; + void listDpiConfigErrorAsync(const Model::ListDpiConfigErrorRequest& request, const ListDpiConfigErrorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDpiConfigErrorOutcomeCallable listDpiConfigErrorCallable(const Model::ListDpiConfigErrorRequest& request) const; + ListDpiGroupsOutcome listDpiGroups(const Model::ListDpiGroupsRequest &request)const; + void listDpiGroupsAsync(const Model::ListDpiGroupsRequest& request, const ListDpiGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDpiGroupsOutcomeCallable listDpiGroupsCallable(const Model::ListDpiGroupsRequest& request) const; + ListDpiSignaturesOutcome listDpiSignatures(const Model::ListDpiSignaturesRequest &request)const; + void listDpiSignaturesAsync(const Model::ListDpiSignaturesRequest& request, const ListDpiSignaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDpiSignaturesOutcomeCallable listDpiSignaturesCallable(const Model::ListDpiSignaturesRequest& request) const; + ListEnterpriseCodeOutcome listEnterpriseCode(const Model::ListEnterpriseCodeRequest &request)const; + void listEnterpriseCodeAsync(const Model::ListEnterpriseCodeRequest& request, const ListEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEnterpriseCodeOutcomeCallable listEnterpriseCodeCallable(const Model::ListEnterpriseCodeRequest& request) const; + ListSmartAGApiUnsupportedFeatureOutcome listSmartAGApiUnsupportedFeature(const Model::ListSmartAGApiUnsupportedFeatureRequest &request)const; + void listSmartAGApiUnsupportedFeatureAsync(const Model::ListSmartAGApiUnsupportedFeatureRequest& request, const ListSmartAGApiUnsupportedFeatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSmartAGApiUnsupportedFeatureOutcomeCallable listSmartAGApiUnsupportedFeatureCallable(const Model::ListSmartAGApiUnsupportedFeatureRequest& request) const; + ListSmartAGByAccessPointOutcome listSmartAGByAccessPoint(const Model::ListSmartAGByAccessPointRequest &request)const; + void listSmartAGByAccessPointAsync(const Model::ListSmartAGByAccessPointRequest& request, const ListSmartAGByAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSmartAGByAccessPointOutcomeCallable listSmartAGByAccessPointCallable(const Model::ListSmartAGByAccessPointRequest& request) const; ModifyACLOutcome modifyACL(const Model::ModifyACLRequest &request)const; void modifyACLAsync(const Model::ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyACLOutcomeCallable modifyACLCallable(const Model::ModifyACLRequest& request) const; ModifyACLRuleOutcome modifyACLRule(const Model::ModifyACLRuleRequest &request)const; void modifyACLRuleAsync(const Model::ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyACLRuleOutcomeCallable modifyACLRuleCallable(const Model::ModifyACLRuleRequest& request) const; + ModifyClientUserDNSOutcome modifyClientUserDNS(const Model::ModifyClientUserDNSRequest &request)const; + void modifyClientUserDNSAsync(const Model::ModifyClientUserDNSRequest& request, const ModifyClientUserDNSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClientUserDNSOutcomeCallable modifyClientUserDNSCallable(const Model::ModifyClientUserDNSRequest& request) const; ModifyCloudConnectNetworkOutcome modifyCloudConnectNetwork(const Model::ModifyCloudConnectNetworkRequest &request)const; void modifyCloudConnectNetworkAsync(const Model::ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCloudConnectNetworkOutcomeCallable modifyCloudConnectNetworkCallable(const Model::ModifyCloudConnectNetworkRequest& request) const; @@ -1308,6 +1469,9 @@ namespace AlibabaCloud ModifyRouteDistributionStrategyOutcome modifyRouteDistributionStrategy(const Model::ModifyRouteDistributionStrategyRequest &request)const; void modifyRouteDistributionStrategyAsync(const Model::ModifyRouteDistributionStrategyRequest& request, const ModifyRouteDistributionStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyRouteDistributionStrategyOutcomeCallable modifyRouteDistributionStrategyCallable(const Model::ModifyRouteDistributionStrategyRequest& request) const; + ModifySAGAdminPasswordOutcome modifySAGAdminPassword(const Model::ModifySAGAdminPasswordRequest &request)const; + void modifySAGAdminPasswordAsync(const Model::ModifySAGAdminPasswordRequest& request, const ModifySAGAdminPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySAGAdminPasswordOutcomeCallable modifySAGAdminPasswordCallable(const Model::ModifySAGAdminPasswordRequest& request) const; ModifySagCidrOutcome modifySagCidr(const Model::ModifySagCidrRequest &request)const; void modifySagCidrAsync(const Model::ModifySagCidrRequest& request, const ModifySagCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySagCidrOutcomeCallable modifySagCidrCallable(const Model::ModifySagCidrRequest& request) const; @@ -1359,9 +1523,6 @@ namespace AlibabaCloud ModifySagWifiOutcome modifySagWifi(const Model::ModifySagWifiRequest &request)const; void modifySagWifiAsync(const Model::ModifySagWifiRequest& request, const ModifySagWifiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySagWifiOutcomeCallable modifySagWifiCallable(const Model::ModifySagWifiRequest& request) const; - ModifySerialNumberOutcome modifySerialNumber(const Model::ModifySerialNumberRequest &request)const; - void modifySerialNumberAsync(const Model::ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySerialNumberOutcomeCallable modifySerialNumberCallable(const Model::ModifySerialNumberRequest& request) const; ModifySmartAccessGatewayOutcome modifySmartAccessGateway(const Model::ModifySmartAccessGatewayRequest &request)const; void modifySmartAccessGatewayAsync(const Model::ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySmartAccessGatewayOutcomeCallable modifySmartAccessGatewayCallable(const Model::ModifySmartAccessGatewayRequest& request) const; @@ -1371,9 +1532,15 @@ namespace AlibabaCloud ModifySmartAccessGatewayUpBandwidthOutcome modifySmartAccessGatewayUpBandwidth(const Model::ModifySmartAccessGatewayUpBandwidthRequest &request)const; void modifySmartAccessGatewayUpBandwidthAsync(const Model::ModifySmartAccessGatewayUpBandwidthRequest& request, const ModifySmartAccessGatewayUpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySmartAccessGatewayUpBandwidthOutcomeCallable modifySmartAccessGatewayUpBandwidthCallable(const Model::ModifySmartAccessGatewayUpBandwidthRequest& request) const; + MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; + void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; OrchestrateSagECRouteBackupOutcome orchestrateSagECRouteBackup(const Model::OrchestrateSagECRouteBackupRequest &request)const; void orchestrateSagECRouteBackupAsync(const Model::OrchestrateSagECRouteBackupRequest& request, const OrchestrateSagECRouteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OrchestrateSagECRouteBackupOutcomeCallable orchestrateSagECRouteBackupCallable(const Model::OrchestrateSagECRouteBackupRequest& request) const; + ProbeAccessPointNetworkQualityOutcome probeAccessPointNetworkQuality(const Model::ProbeAccessPointNetworkQualityRequest &request)const; + void probeAccessPointNetworkQualityAsync(const Model::ProbeAccessPointNetworkQualityRequest& request, const ProbeAccessPointNetworkQualityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ProbeAccessPointNetworkQualityOutcomeCallable probeAccessPointNetworkQualityCallable(const Model::ProbeAccessPointNetworkQualityRequest& request) const; RebootSmartAccessGatewayOutcome rebootSmartAccessGateway(const Model::RebootSmartAccessGatewayRequest &request)const; void rebootSmartAccessGatewayAsync(const Model::RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RebootSmartAccessGatewayOutcomeCallable rebootSmartAccessGatewayCallable(const Model::RebootSmartAccessGatewayRequest& request) const; @@ -1389,15 +1556,12 @@ namespace AlibabaCloud RevokeSagInstanceFromCcnOutcome revokeSagInstanceFromCcn(const Model::RevokeSagInstanceFromCcnRequest &request)const; void revokeSagInstanceFromCcnAsync(const Model::RevokeSagInstanceFromCcnRequest& request, const RevokeSagInstanceFromCcnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeSagInstanceFromCcnOutcomeCallable revokeSagInstanceFromCcnCallable(const Model::RevokeSagInstanceFromCcnRequest& request) const; + RoamClientUserOutcome roamClientUser(const Model::RoamClientUserRequest &request)const; + void roamClientUserAsync(const Model::RoamClientUserRequest& request, const RoamClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RoamClientUserOutcomeCallable roamClientUserCallable(const Model::RoamClientUserRequest& request) const; SetSagRouteableAddressOutcome setSagRouteableAddress(const Model::SetSagRouteableAddressRequest &request)const; void setSagRouteableAddressAsync(const Model::SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetSagRouteableAddressOutcomeCallable setSagRouteableAddressCallable(const Model::SetSagRouteableAddressRequest& request) const; - SwitchCloudBoxHaStateOutcome switchCloudBoxHaState(const Model::SwitchCloudBoxHaStateRequest &request)const; - void switchCloudBoxHaStateAsync(const Model::SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchCloudBoxHaStateOutcomeCallable switchCloudBoxHaStateCallable(const Model::SwitchCloudBoxHaStateRequest& request) const; - SwitchSAGHaStateOutcome switchSAGHaState(const Model::SwitchSAGHaStateRequest &request)const; - void switchSAGHaStateAsync(const Model::SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchSAGHaStateOutcomeCallable switchSAGHaStateCallable(const Model::SwitchSAGHaStateRequest& request) const; SynchronizeSmartAGWebConfigOutcome synchronizeSmartAGWebConfig(const Model::SynchronizeSmartAGWebConfigRequest &request)const; void synchronizeSmartAGWebConfigAsync(const Model::SynchronizeSmartAGWebConfigRequest& request, const SynchronizeSmartAGWebConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SynchronizeSmartAGWebConfigOutcomeCallable synchronizeSmartAGWebConfigCallable(const Model::SynchronizeSmartAGWebConfigRequest& request) const; @@ -1419,6 +1583,18 @@ namespace AlibabaCloud UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; + UpdateEnterpriseCodeOutcome updateEnterpriseCode(const Model::UpdateEnterpriseCodeRequest &request)const; + void updateEnterpriseCodeAsync(const Model::UpdateEnterpriseCodeRequest& request, const UpdateEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEnterpriseCodeOutcomeCallable updateEnterpriseCodeCallable(const Model::UpdateEnterpriseCodeRequest& request) const; + UpdateSmartAGAccessPointOutcome updateSmartAGAccessPoint(const Model::UpdateSmartAGAccessPointRequest &request)const; + void updateSmartAGAccessPointAsync(const Model::UpdateSmartAGAccessPointRequest& request, const UpdateSmartAGAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAGAccessPointOutcomeCallable updateSmartAGAccessPointCallable(const Model::UpdateSmartAGAccessPointRequest& request) const; + UpdateSmartAGDpiAttributeOutcome updateSmartAGDpiAttribute(const Model::UpdateSmartAGDpiAttributeRequest &request)const; + void updateSmartAGDpiAttributeAsync(const Model::UpdateSmartAGDpiAttributeRequest& request, const UpdateSmartAGDpiAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAGDpiAttributeOutcomeCallable updateSmartAGDpiAttributeCallable(const Model::UpdateSmartAGDpiAttributeRequest& request) const; + UpdateSmartAGEnterpriseCodeOutcome updateSmartAGEnterpriseCode(const Model::UpdateSmartAGEnterpriseCodeRequest &request)const; + void updateSmartAGEnterpriseCodeAsync(const Model::UpdateSmartAGEnterpriseCodeRequest& request, const UpdateSmartAGEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAGEnterpriseCodeOutcomeCallable updateSmartAGEnterpriseCodeCallable(const Model::UpdateSmartAGEnterpriseCodeRequest& request) const; UpdateSmartAccessGatewayVersionOutcome updateSmartAccessGatewayVersion(const Model::UpdateSmartAccessGatewayVersionRequest &request)const; void updateSmartAccessGatewayVersionAsync(const Model::UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSmartAccessGatewayVersionOutcomeCallable updateSmartAccessGatewayVersionCallable(const Model::UpdateSmartAccessGatewayVersionRequest& request) const; diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h index 208a7244f..7667836ee 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud AddACLRuleRequest(); ~AddACLRuleRequest(); + std::vector getDpiGroupIds()const; + void setDpiGroupIds(const std::vector& dpiGroupIds); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourcePortRange()const; @@ -47,6 +49,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getDestCidr()const; void setDestCidr(const std::string& destCidr); + std::vector getDpiSignatureIds()const; + void setDpiSignatureIds(const std::vector& dpiSignatureIds); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getDirection()const; @@ -71,12 +75,14 @@ namespace AlibabaCloud void setName(const std::string& name); private: + std::vector dpiGroupIds_; long resourceOwnerId_; std::string sourcePortRange_; std::string sourceCidr_; std::string description_; std::string type_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string regionId_; std::string direction_; std::string policy_; diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h index 2f0754827..831c3587e 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h @@ -45,11 +45,13 @@ namespace AlibabaCloud std::string getAclId()const; std::string getAcrId()const; std::string getDestPortRange()const; + std::vector getDpiGroupIds()const; std::string getDirection()const; std::string getName()const; long getGmtCreate()const; std::string getType()const; std::string getDestCidr()const; + std::vector getDpiSignatureIds()const; std::string getIpProtocol()const; protected: @@ -63,11 +65,13 @@ namespace AlibabaCloud std::string aclId_; std::string acrId_; std::string destPortRange_; + std::vector dpiGroupIds_; std::string direction_; std::string name_; long gmtCreate_; std::string type_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string ipProtocol_; }; diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h b/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h new file mode 100644 index 000000000..cbecd3a98 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagCipherRequest : public RpcServiceRequest + { + + public: + ClearSagCipherRequest(); + ~ClearSagCipherRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnNumber()const; + void setSnNumber(const std::string& snNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSagId()const; + void setSagId(const std::string& sagId); + + private: + long resourceOwnerId_; + std::string snNumber_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h b/smartag/include/alibabacloud/smartag/model/ClearSagCipherResult.h similarity index 70% rename from smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h rename to smartag/include/alibabacloud/smartag/model/ClearSagCipherResult.h index d8f48307b..68231b60a 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h +++ b/smartag/include/alibabacloud/smartag/model/ClearSagCipherResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagCipherResult : public ServiceResult { public: - ModifySerialNumberResult(); - explicit ModifySerialNumberResult(const std::string &payload); - ~ModifySerialNumberResult(); + ClearSagCipherResult(); + explicit ClearSagCipherResult(const std::string &payload); + ~ClearSagCipherResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h new file mode 100644 index 000000000..e1fdcb5cf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.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_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateEnterpriseCodeRequest : public RpcServiceRequest + { + + public: + CreateEnterpriseCodeRequest(); + ~CreateEnterpriseCodeRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEnterpriseCode()const; + void setEnterpriseCode(const std::string& enterpriseCode); + bool getDryRun()const; + void setDryRun(bool dryRun); + + private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeResult.h similarity index 71% rename from smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h rename to smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeResult.h index aa606c14a..064b3cd5c 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT CreateEnterpriseCodeResult : public ServiceResult { public: - DeleteSAGLinkLevelHaResult(); - explicit DeleteSAGLinkLevelHaResult(const std::string &payload); - ~DeleteSAGLinkLevelHaResult(); + CreateEnterpriseCodeResult(); + explicit CreateEnterpriseCodeResult(const std::string &payload); + ~CreateEnterpriseCodeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h index 173265091..12528a648 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h @@ -49,8 +49,8 @@ namespace AlibabaCloud std::string getType()const; int getProbeTimeout()const; int getRttThreshold()const; - std::string getRegionId()const; int getProbeInterval()const; + std::string getRegionId()const; std::string getSmartAGId()const; int getRttFailThreshold()const; std::string getDstIpAddr()const; @@ -70,8 +70,8 @@ namespace AlibabaCloud std::string type_; int probeTimeout_; int rttThreshold_; - std::string regionId_; int probeInterval_; + std::string regionId_; std::string smartAGId_; int rttFailThreshold_; std::string dstIpAddr_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h index 97b4123e2..bc5131743 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h @@ -38,15 +38,15 @@ namespace AlibabaCloud explicit CreateNetworkOptimizationResult(const std::string &payload); ~CreateNetworkOptimizationResult(); std::string getState()const; - std::string getNetworkOptId()const; std::string getName()const; + std::string getNetworkOptId()const; protected: void parse(const std::string &payload); private: std::string state_; - std::string networkOptId_; std::string name_; + std::string networkOptId_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h index a37c5a3ca..fc8f6694e 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string getDescription()const; std::string getQosCarId()const; int getPriority()const; - int getMaxBandwidthAbs()const; int getMaxBandwidthPercent()const; + int getMaxBandwidthAbs()const; std::string getQosId()const; std::string getPercentSourceType()const; int getMinBandwidthPercent()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud std::string description_; std::string qosCarId_; int priority_; - int maxBandwidthAbs_; int maxBandwidthPercent_; + int maxBandwidthAbs_; std::string qosId_; std::string percentSourceType_; int minBandwidthPercent_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h index def1ebfcc..f4a93cceb 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud CreateQosPolicyRequest(); ~CreateQosPolicyRequest(); + std::vector getDpiGroupIds()const; + void setDpiGroupIds(const std::vector& dpiGroupIds); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourcePortRange()const; @@ -47,6 +49,8 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); std::string getDestCidr()const; void setDestCidr(const std::string& destCidr); + std::vector getDpiSignatureIds()const; + void setDpiSignatureIds(const std::vector& dpiSignatureIds); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getQosId()const; @@ -69,12 +73,14 @@ namespace AlibabaCloud void setName(const std::string& name); private: + std::vector dpiGroupIds_; long resourceOwnerId_; std::string sourcePortRange_; std::string sourceCidr_; std::string description_; std::string startTime_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string regionId_; std::string qosId_; std::string resourceOwnerAccount_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h index c1893019a..0327a52f5 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h @@ -38,33 +38,37 @@ namespace AlibabaCloud explicit CreateQosPolicyResult(const std::string &payload); ~CreateQosPolicyResult(); std::string getDescription()const; - std::string getDestCidr()const; - std::string getQosPolicyId()const; std::string getSourcePortRange()const; + std::string getQosPolicyId()const; std::string getEndTime()const; std::string getSourceCidr()const; int getPriority()const; std::string getStartTime()const; - std::string getQosId()const; - std::string getIpProtocol()const; std::string getDestPortRange()const; + std::vector getDpiGroupIds()const; std::string getName()const; + std::string getDestCidr()const; + std::vector getDpiSignatureIds()const; + std::string getIpProtocol()const; + std::string getQosId()const; protected: void parse(const std::string &payload); private: std::string description_; - std::string destCidr_; - std::string qosPolicyId_; std::string sourcePortRange_; + std::string qosPolicyId_; std::string endTime_; std::string sourceCidr_; int priority_; std::string startTime_; - std::string qosId_; - std::string ipProtocol_; std::string destPortRange_; + std::vector dpiGroupIds_; std::string name_; + std::string destCidr_; + std::vector dpiSignatureIds_; + std::string ipProtocol_; + std::string qosId_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h deleted file mode 100644 index 11cd6d39b..000000000 --- a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaRequest : public RpcServiceRequest - { - - public: - CreateSAGLinkLevelHaRequest(); - ~CreateSAGLinkLevelHaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getBackupLinkId()const; - void setBackupLinkId(const std::string& backupLinkId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getHaType()const; - void setHaType(const std::string& haType); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getMainLinkRegionId()const; - void setMainLinkRegionId(const std::string& mainLinkRegionId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMainLinkId()const; - void setMainLinkId(const std::string& mainLinkId); - std::string getBackupLinkRegionId()const; - void setBackupLinkRegionId(const std::string& backupLinkRegionId); - - private: - long resourceOwnerId_; - std::string backupLinkId_; - std::string resourceOwnerAccount_; - std::string haType_; - std::string ownerAccount_; - std::string mainLinkRegionId_; - std::string smartAGId_; - long ownerId_; - std::string mainLinkId_; - std::string backupLinkRegionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h index 1f26311ec..66865ca75 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h @@ -35,16 +35,32 @@ namespace AlibabaCloud CreateSmartAccessGatewayRequest(); ~CreateSmartAccessGatewayRequest(); - int getMaxBandWidth()const; - void setMaxBandWidth(int maxBandWidth); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); std::string getReceiverTown()const; void setReceiverTown(const std::string& receiverTown); std::string getReceiverDistrict()const; void setReceiverDistrict(const std::string& receiverDistrict); + std::string getBuyerMessage()const; + void setBuyerMessage(const std::string& buyerMessage); + std::string getReceiverState()const; + void setReceiverState(const std::string& receiverState); + int getPeriod()const; + void setPeriod(int period); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getReceiverPhone()const; + void setReceiverPhone(const std::string& receiverPhone); + std::string getHaType()const; + void setHaType(const std::string& haType); + std::string getName()const; + void setName(const std::string& name); + std::string getReceiverCountry()const; + void setReceiverCountry(const std::string& receiverCountry); + int getMaxBandWidth()const; + void setMaxBandWidth(int maxBandWidth); + std::string getDescription()const; + void setDescription(const std::string& description); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getUserCount()const; @@ -53,40 +69,26 @@ namespace AlibabaCloud void setReceiverAddress(const std::string& receiverAddress); std::string getInstanceType()const; void setInstanceType(const std::string& instanceType); - std::string getBuyerMessage()const; - void setBuyerMessage(const std::string& buyerMessage); std::string getHardWareSpec()const; void setHardWareSpec(const std::string& hardWareSpec); std::string getReceiverEmail()const; void setReceiverEmail(const std::string& receiverEmail); - std::string getReceiverState()const; - void setReceiverState(const std::string& receiverState); std::string getReceiverCity()const; void setReceiverCity(const std::string& receiverCity); - int getPeriod()const; - void setPeriod(int period); bool getAutoPay()const; void setAutoPay(bool autoPay); + std::string getCPEVersion()const; + void setCPEVersion(const std::string& cPEVersion); std::string getReceiverMobile()const; void setReceiverMobile(const std::string& receiverMobile); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReceiverPhone()const; - void setReceiverPhone(const std::string& receiverPhone); std::string getReceiverName()const; void setReceiverName(const std::string& receiverName); - std::string getHaType()const; - void setHaType(const std::string& haType); - std::string getName()const; - void setName(const std::string& name); bool getAlreadyHaveSag()const; void setAlreadyHaveSag(bool alreadyHaveSag); - std::string getReceiverCountry()const; - void setReceiverCountry(const std::string& receiverCountry); std::string getChargeType()const; void setChargeType(const std::string& chargeType); long getDataPlan()const; @@ -95,32 +97,33 @@ namespace AlibabaCloud void setReceiverZip(const std::string& receiverZip); private: - int maxBandWidth_; long resourceOwnerId_; - std::string description_; std::string receiverTown_; std::string receiverDistrict_; + std::string buyerMessage_; + std::string receiverState_; + int period_; + long ownerId_; + std::string receiverPhone_; + std::string haType_; + std::string name_; + std::string receiverCountry_; + int maxBandWidth_; + std::string description_; std::string regionId_; int userCount_; std::string receiverAddress_; std::string instanceType_; - std::string buyerMessage_; std::string hardWareSpec_; std::string receiverEmail_; - std::string receiverState_; std::string receiverCity_; - int period_; bool autoPay_; + std::string cPEVersion_; std::string receiverMobile_; std::string resourceOwnerAccount_; std::string ownerAccount_; - long ownerId_; - std::string receiverPhone_; std::string receiverName_; - std::string haType_; - std::string name_; bool alreadyHaveSag_; - std::string receiverCountry_; std::string chargeType_; long dataPlan_; std::string receiverZip_; diff --git a/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h new file mode 100644 index 000000000..df93e5538 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.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_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteEnterpriseCodeRequest : public RpcServiceRequest + { + + public: + DeleteEnterpriseCodeRequest(); + ~DeleteEnterpriseCodeRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEnterpriseCode()const; + void setEnterpriseCode(const std::string& enterpriseCode); + bool getDryRun()const; + void setDryRun(bool dryRun); + + private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeResult.h similarity index 71% rename from smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h rename to smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeResult.h index eb7c99002..0caf17071 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT DeleteEnterpriseCodeResult : public ServiceResult { public: - CreateSAGLinkLevelHaResult(); - explicit CreateSAGLinkLevelHaResult(const std::string &payload); - ~CreateSAGLinkLevelHaResult(); + DeleteEnterpriseCodeResult(); + explicit DeleteEnterpriseCodeResult(const std::string &payload); + ~DeleteEnterpriseCodeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h index a60a233d7..068751dd7 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h @@ -35,12 +35,15 @@ namespace AlibabaCloud DeleteSmartAccessGatewayRequest(); ~DeleteSmartAccessGatewayRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getRegionId()const; void setRegionId(const std::string& regionId); private: + long resourceOwnerId_; std::string instanceId_; std::string regionId_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h index b21a67cc6..2dd02edd7 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h @@ -43,10 +43,12 @@ namespace AlibabaCloud std::string acrId; std::string destPortRange; std::string direction; + std::vector dpiGroupIds; std::string name; long gmtCreate; std::string type; std::string destCidr; + std::vector dpiSignatureIds; std::string ipProtocol; }; diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h similarity index 82% rename from smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h rename to smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h index a8b3c55ec..3502d7f79 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ #include #include @@ -28,36 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT DescribeClientUserDNSRequest : public RpcServiceRequest { public: - SwitchCloudBoxHaStateRequest(); - ~SwitchCloudBoxHaStateRequest(); + DescribeClientUserDNSRequest(); + ~DescribeClientUserDNSRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; std::string regionId_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSResult.h b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSResult.h new file mode 100644 index 000000000..263fb871b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeClientUserDNSResult : public ServiceResult + { + public: + + + DescribeClientUserDNSResult(); + explicit DescribeClientUserDNSResult(const std::string &payload); + ~DescribeClientUserDNSResult(); + std::vector getAppDNS()const; + std::vector getRecoveredDNS()const; + + protected: + void parse(const std::string &payload); + private: + std::vector appDNS_; + std::vector recoveredDNS_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h index 2f977d229..8eca918a5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud std::string interworkingStatus; std::string availableCloudBoxCount; long createTime; - std::string associatedCenOwnerId; std::string cidrBlock; + std::string associatedCenOwnerId; std::string name; std::string ccnId; std::string associatedCenId; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h index 610bda4df..b72d49127 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersionType()const; + void setVersionType(const std::string& versionType); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); @@ -57,6 +59,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string versionType_; std::string smartAGId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyResult.h b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyResult.h index e5c9b7a67..162f24752 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getUpgradeType()const; std::string getTimeZone()const; std::string getSerialNumber()const; + std::string getJitter()const; std::string getDuration()const; std::string getCronExpression()const; std::string getSmartAGId()const; @@ -50,6 +51,7 @@ namespace AlibabaCloud std::string upgradeType_; std::string timeZone_; std::string serialNumber_; + std::string jitter_; std::string duration_; std::string cronExpression_; std::string smartAGId_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h index a382826f3..476a0584b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string type; std::string externalIp; std::string ipProtocol; - std::string sagId; std::string internalPort; + std::string sagId; std::string internalIp; std::string dnatEntryId; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h index e0a4348fc..50cf55b68 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { long gmtCreate; long cenUid; + bool grantTrafficService; std::string ccnInstanceId; std::string grantRuleId; std::string cenInstanceId; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h index d330161df..6d36b6447 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct GrantRule { std::string instanceId; + bool grantTrafficService; std::string ccnInstanceId; long createTime; long ccnUid; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h index 27151e817..381934f40 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud long endTime; std::string instanceId; std::string state; - long createTime; std::string maxBandwidth; + long createTime; std::string name; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h index a60dd6e67..727ecd452 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int sagCount; std::string instanceId; std::string state; - long createTime; std::string ccnId; + long createTime; std::string name; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h index 22e4f19ea..0878e4625 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string srcPort; std::string description; std::string srcCidr; - std::string pbrRuleId; std::string dstPort; + std::string pbrRuleId; std::string protocol; std::string dstCidr; std::string name; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h index 163d766dc..a59211e4f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string description; std::string qosCarId; int priority; - int maxBandwidthAbs; int maxBandwidthPercent; + int maxBandwidthAbs; std::string qosId; std::string percentSourceType; int minBandwidthPercent; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h index b112baee8..198d9701f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h @@ -35,17 +35,19 @@ namespace AlibabaCloud struct QosPolicy { std::string description; - std::string destCidr; - std::string qosPolicyId; std::string sourcePortRange; + std::string qosPolicyId; std::string endTime; std::string sourceCidr; int priority; std::string startTime; + std::string destPortRange; + std::vector dpiGroupIds; + std::string name; + std::string destCidr; + std::vector dpiSignatureIds; std::string qosId; std::string ipProtocol; - std::string destPortRange; - std::string name; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h index a55574b59..c28d2d016 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h @@ -37,9 +37,9 @@ namespace AlibabaCloud std::string status; std::string instanceId; std::string hcInstanceId; - long createTime; - std::string sourceType; std::string routeSource; + std::string sourceType; + long createTime; std::string routeDistribution; bool isConflict; std::string smartAGId; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h new file mode 100644 index 000000000..f5ba01978 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagDropTopNRequest : public RpcServiceRequest + { + + public: + DescribeSagDropTopNRequest(); + ~DescribeSagDropTopNRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getSize()const; + void setSize(int size); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int size_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNResult.h new file mode 100644 index 000000000..0260fc71c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagDropTopNResult : public ServiceResult + { + public: + struct DropTopNItem + { + std::string instanceId; + std::string regionId; + std::string dropRate; + std::string name; + }; + + + DescribeSagDropTopNResult(); + explicit DescribeSagDropTopNResult(const std::string &payload); + ~DescribeSagDropTopNResult(); + std::vector getDropTopN()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dropTopN_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h index 72a40461c..4693677af 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Port { - std::string portName; std::string virtualIp; + std::string portName; }; struct TaskState { diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h index 362d3bcb9..af7c43d12 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h @@ -32,6 +32,13 @@ namespace AlibabaCloud class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagLanListResult : public ServiceResult { public: + struct TaskState + { + std::string state; + std::string createTime; + std::string errorCode; + std::string errorMessage; + }; struct Lan { std::string iPType; @@ -42,13 +49,6 @@ namespace AlibabaCloud std::string portName; std::string endIp; }; - struct TaskState - { - std::string state; - std::string createTime; - std::string errorCode; - std::string errorMessage; - }; DescribeSagLanListResult(); diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h index 0e6064132..ccd393683 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string role; std::string status; + std::string vlan; std::string portName; std::string mac; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h index a979aac69..b52c2aa13 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud explicit DescribeSagRouteProtocolBgpResult(const std::string &payload); ~DescribeSagRouteProtocolBgpResult(); int getHoldTime()const; + std::string getAdvertiseIps()const; int getKeepAlive()const; std::string getRouterId()const; int getLocalAs()const; @@ -54,6 +55,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: int holdTime_; + std::string advertiseIps_; int keepAlive_; std::string routerId_; int localAs_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h index 6caa22bd2..d8f44ddd3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud int getDeadTime()const; int getMd5KeyId()const; std::string getAreaId()const; - std::string getRouterId()const; int getHelloTime()const; + std::string getRouterId()const; std::vector getTaskStates()const; std::string getAreaType()const; std::string getMd5Key()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud int deadTime_; int md5KeyId_; std::string areaId_; - std::string routerId_; int helloTime_; + std::string routerId_; std::vector taskStates_; std::string areaType_; std::string md5Key_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h index 8baebe5ca..935d0c08d 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h @@ -32,13 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagStaticRouteListResult : public ServiceResult { public: - struct StaticRoute - { - std::string nextHop; - std::string vlan; - std::string portName; - std::string destinationCidr; - }; struct TaskState { std::string state; @@ -46,19 +39,26 @@ namespace AlibabaCloud std::string errorCode; std::string errorMessage; }; + struct StaticRoute + { + std::string nextHop; + std::string vlan; + std::string portName; + std::string destinationCidr; + }; DescribeSagStaticRouteListResult(); explicit DescribeSagStaticRouteListResult(const std::string &payload); ~DescribeSagStaticRouteListResult(); - std::vector getStaticRoutes()const; std::vector getTaskStates()const; + std::vector getStaticRoutes()const; protected: void parse(const std::string &payload); private: - std::vector staticRoutes_; std::vector taskStates_; + std::vector staticRoutes_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h new file mode 100644 index 000000000..6b6a734cf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagTrafficTopNRequest : public RpcServiceRequest + { + + public: + DescribeSagTrafficTopNRequest(); + ~DescribeSagTrafficTopNRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getSize()const; + void setSize(int size); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int size_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNResult.h new file mode 100644 index 000000000..599b844c3 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagTrafficTopNResult : public ServiceResult + { + public: + struct TrafficTopNItem + { + std::string instanceId; + std::string trafficRate; + std::string regionId; + std::string name; + }; + + + DescribeSagTrafficTopNResult(); + explicit DescribeSagTrafficTopNResult(const std::string &payload); + ~DescribeSagTrafficTopNResult(); + std::vector getTrafficTopN()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trafficTopN_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h index a358d281f..6a3fe4570 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h @@ -38,6 +38,8 @@ namespace AlibabaCloud explicit DescribeSagWan4GResult(const std::string &payload); ~DescribeSagWan4GResult(); std::string getStatus()const; + std::string getTrafficState()const; + int getPriority()const; std::string getIp()const; std::string getMac()const; std::string getStrength()const; @@ -46,6 +48,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string status_; + std::string trafficState_; + int priority_; std::string ip_; std::string mac_; std::string strength_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h index 2263752a0..09907f853 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h @@ -35,11 +35,20 @@ namespace AlibabaCloud struct Wan { std::string iPType; - std::string username; - std::string gateway; + std::string trafficState; + int priority; + std::string sourceIps; + std::string iSP; std::string iP; std::string mask; + std::string startIp; + std::string vlan; std::string portName; + int weight; + std::string stopIp; + int bandWidth; + std::string username; + std::string gateway; }; struct TaskState { diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h index b0c8bc9c2..c16f0a282 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::vector getTaskStates()const; std::string getSsid()const; std::string getIsBroadcast()const; - std::string getAuthenticationType()const; std::string getEncryptAlgorithm()const; + std::string getAuthenticationType()const; protected: void parse(const std::string &payload); @@ -64,8 +64,8 @@ namespace AlibabaCloud std::vector taskStates_; std::string ssid_; std::string isBroadcast_; - std::string authenticationType_; std::string encryptAlgorithm_; + std::string authenticationType_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h index 2f423b8d1..af20280e3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h @@ -40,15 +40,18 @@ namespace AlibabaCloud std::string instanceId; std::string relateInstanceId; std::string bandwidth; - std::string relateInstanceRegionId; std::string commodityType; + std::string relateInstanceRegionId; std::string healthCheckTargetIp; }; struct Device { std::string monitorVersion; - long softwareVersion; + std::string secretKey; + std::string softwareVersion; std::string serialNumber; + int distributeSkStatus; + std::string dpiSignatureDbVersion; std::string haState; std::string hcState; }; @@ -59,11 +62,12 @@ namespace AlibabaCloud ~DescribeSmartAccessGatewayAttributeResult(); std::string getDescription()const; int getUpBandwidth4G()const; + std::string getResourceGroupId()const; long getEndTime()const; int getUserCount()const; + std::string getVpnStatus()const; std::string getMaxBandwidth()const; std::string getAssociatedCcnName()const; - std::string getVpnStatus()const; std::string getBoxControllerIp()const; std::vector getQosIds()const; std::string getCidrBlock()const; @@ -75,17 +79,20 @@ namespace AlibabaCloud std::string getRoutingStrategy()const; std::vector getFlowLogIds()const; std::string getAssociatedCcnId()const; - std::string getSmartAGId()const; std::string getInstanceType()const; + std::string getSmartAGId()const; int getSecurityLockThreshold()const; + std::string getResellerUid()const; std::string getStatus()const; long getCreateTime()const; long getDataPlan()const; bool getEnableOptimization()const; std::string getCity()const; - std::string getSerialNumber()const; + std::string getResellerInstanceId()const; std::string getBackupBoxControllerIp()const; + std::string getSerialNumber()const; std::string getTrafficMasterSn()const; + std::string getAccessPointId()const; std::vector getLinks()const; std::vector getAclIds()const; @@ -94,11 +101,12 @@ namespace AlibabaCloud private: std::string description_; int upBandwidth4G_; + std::string resourceGroupId_; long endTime_; int userCount_; + std::string vpnStatus_; std::string maxBandwidth_; std::string associatedCcnName_; - std::string vpnStatus_; std::string boxControllerIp_; std::vector qosIds_; std::string cidrBlock_; @@ -110,17 +118,20 @@ namespace AlibabaCloud std::string routingStrategy_; std::vector flowLogIds_; std::string associatedCcnId_; - std::string smartAGId_; std::string instanceType_; + std::string smartAGId_; int securityLockThreshold_; + std::string resellerUid_; std::string status_; long createTime_; long dataPlan_; bool enableOptimization_; std::string city_; - std::string serialNumber_; + std::string resellerInstanceId_; std::string backupBoxControllerIp_; + std::string serialNumber_; std::string trafficMasterSn_; + std::string accessPointId_; std::vector links_; std::vector aclIds_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h index 6159a7d53..9867c55b0 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getUserMail()const; + void setUserMail(const std::string& userMail); long getOwnerId()const; void setOwnerId(long ownerId); std::string getSmartAGId()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud int pageSize_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string userMail_; long ownerId_; std::string smartAGId_; std::string userName_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h index edace7d24..9fe4cd9d9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h @@ -45,8 +45,12 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersionType()const; + void setVersionType(const std::string& versionType); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); + std::string getSmartAGSn()const; + void setSmartAGSn(const std::string& smartAGSn); private: long resourceOwnerId_; @@ -54,7 +58,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string versionType_; std::string smartAGId_; + std::string smartAGSn_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h index ce066560d..545dda508 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getVersionComparator()const; void setVersionComparator(const std::string& versionComparator); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; @@ -57,6 +59,8 @@ namespace AlibabaCloud void setInstanceType(const std::string& instanceType); std::string getHardwareType()const; void setHardwareType(const std::string& hardwareType); + std::vector getSmartAGIds()const; + void setSmartAGIds(const std::vector& smartAGIds); std::string getSerialNumber()const; void setSerialNumber(const std::string& serialNumber); std::string getResourceOwnerAccount()const; @@ -84,10 +88,12 @@ namespace AlibabaCloud std::string unboundAclIds_; int pageNumber_; std::string versionComparator_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string instanceType_; std::string hardwareType_; + std::vector smartAGIds_; std::string serialNumber_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h index f3329ee48..6b4c84233 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h @@ -42,32 +42,43 @@ namespace AlibabaCloud std::string instanceId; std::string relateInstanceId; std::string bandwidth; - std::string relateInstanceRegionId; std::string commodityType; + std::string relateInstanceRegionId; }; std::string description; int upBandwidth4G; + std::string resourceGroupId; long endTime; int userCount; + std::string vpnStatus; std::string maxBandwidth; std::string associatedCcnName; + std::string dpiMonitorStatus; std::string cidrBlock; - int upBandwidthWan; std::string qosIds; + int upBandwidthWan; std::string name; + std::string ipsecStatus; std::string routingStrategy; std::string associatedCcnId; std::string backupSoftwareVersion; std::string smartAGId; + std::string dpiStatus; + std::string enterpriseCode; int securityLockThreshold; + std::string resellerUid; std::string status; + std::string idaasId; + std::string idaasApplicationId; long createTime; long dataPlan; std::string city; std::string hardwareVersion; long smartAGUid; + std::string resellerInstanceId; std::string softwareVersion; std::string serialNumber; + std::string accessPointId; std::vector links; std::string aclIds; std::string backupStatus; diff --git a/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h new file mode 100644 index 000000000..7e87761e3 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DiagnoseSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + DiagnoseSmartAccessGatewayRequest(); + ~DiagnoseSmartAccessGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getSmartAGSn()const; + void setSmartAGSn(const std::string& smartAGSn); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string smartAGId_; + std::string smartAGSn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayResult.h similarity index 67% rename from smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h rename to smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayResult.h index 0ebfff1ad..1cdca7854 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT DiagnoseSmartAccessGatewayResult : public ServiceResult { public: - CreateDedicatedLineBackupResult(); - explicit CreateDedicatedLineBackupResult(const std::string &payload); - ~CreateDedicatedLineBackupResult(); + DiagnoseSmartAccessGatewayResult(); + explicit DiagnoseSmartAccessGatewayResult(const std::string &payload); + ~DiagnoseSmartAccessGatewayResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h new file mode 100644 index 000000000..2df39e17a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAGDpiMonitorRequest : public RpcServiceRequest + { + + public: + DisableSmartAGDpiMonitorRequest(); + ~DisableSmartAGDpiMonitorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorResult.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorResult.h new file mode 100644 index 000000000..a43854db7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAGDpiMonitorResult : public ServiceResult + { + public: + + + DisableSmartAGDpiMonitorResult(); + explicit DisableSmartAGDpiMonitorResult(const std::string &payload); + ~DisableSmartAGDpiMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h new file mode 100644 index 000000000..9fab860d7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DiscribeSmartAccessGatewayDiagnosisReportRequest : public RpcServiceRequest + { + + public: + DiscribeSmartAccessGatewayDiagnosisReportRequest(); + ~DiscribeSmartAccessGatewayDiagnosisReportRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getSmartAGSn()const; + void setSmartAGSn(const std::string& smartAGSn); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string smartAGId_; + std::string smartAGSn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h new file mode 100644 index 000000000..91b93bf57 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DiscribeSmartAccessGatewayDiagnosisReportResult : public ServiceResult + { + public: + struct DiagnoseResult + { + struct Level + { + std::string biz; + std::string configuration; + std::string total; + }; + struct Statistics + { + int warning; + int total; + int error; + int info; + }; + struct Detail + { + struct Statistics1 + { + int warning; + int total; + int error; + int info; + }; + struct Item + { + struct EN + { + std::string itemLevel; + std::string itemType; + std::string itemName; + std::vector advice; + std::vector details2; + }; + struct CN + { + std::string itemLevel; + std::vector advice4; + std::string itemType; + std::string itemName; + std::vector details3; + }; + std::string type; + long endTime; + long startTime; + EN eN; + std::string itemName; + std::string level; + CN cN; + }; + std::string type; + std::vector items; + Statistics1 statistics1; + }; + std::string parameters; + int endTime; + std::string instanceId; + std::string userLevel; + int percent; + int startTime; + int finishedNumber; + Statistics statistics; + std::string boxType; + std::string storeType; + std::string monitorVersion; + std::string uId; + std::vector details; + int reportSLSSuccess; + std::string state; + std::string diagnoseId; + int totalNumber; + Level level; + std::string boxVersion; + std::string sN; + }; + + + DiscribeSmartAccessGatewayDiagnosisReportResult(); + explicit DiscribeSmartAccessGatewayDiagnosisReportResult(const std::string &payload); + ~DiscribeSmartAccessGatewayDiagnosisReportResult(); + DiagnoseResult getDiagnoseResult()const; + + protected: + void parse(const std::string &payload); + private: + DiagnoseResult diagnoseResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h new file mode 100644 index 000000000..a2e5be58f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.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_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAGDpiMonitorRequest : public RpcServiceRequest + { + + public: + EnableSmartAGDpiMonitorRequest(); + ~EnableSmartAGDpiMonitorRequest(); + + std::string getSlsLogStore()const; + void setSlsLogStore(const std::string& slsLogStore); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSlsProjectName()const; + void setSlsProjectName(const std::string& slsProjectName); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + + private: + std::string slsLogStore_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string slsProjectName_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorResult.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorResult.h new file mode 100644 index 000000000..98185d083 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAGDpiMonitorResult : public ServiceResult + { + public: + + + EnableSmartAGDpiMonitorResult(); + explicit EnableSmartAGDpiMonitorResult(const std::string &payload); + ~EnableSmartAGDpiMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h new file mode 100644 index 000000000..29fdc4ccb --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetAclAttributeRequest : public RpcServiceRequest + { + + public: + GetAclAttributeRequest(); + ~GetAclAttributeRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAclId()const; + void setAclId(const std::string& aclId); + + private: + std::string regionId_; + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetAclAttributeResult.h b/smartag/include/alibabacloud/smartag/model/GetAclAttributeResult.h new file mode 100644 index 000000000..83d260129 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GetAclAttributeResult.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_SMARTAG_MODEL_GETACLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetAclAttributeResult : public ServiceResult + { + public: + + + GetAclAttributeResult(); + explicit GetAclAttributeResult(const std::string &payload); + ~GetAclAttributeResult(); + std::string getAclId()const; + int getErrorConfigSmartAGCount()const; + std::string getAclName()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + int errorConfigSmartAGCount_; + std::string aclName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h new file mode 100644 index 000000000..c161606eb --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetQosAttributeRequest : public RpcServiceRequest + { + + public: + GetQosAttributeRequest(); + ~GetQosAttributeRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + std::string regionId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h b/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h new file mode 100644 index 000000000..b95cd8af0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetQosAttributeResult : public ServiceResult + { + public: + struct QosPolicy + { + std::string destCidr; + std::string sourcePortRange; + long endTime; + std::string sourceCidr; + int priority; + std::string qosPolicieName; + std::string qosPolicieDescription; + long startTime; + std::string ipProtocol; + std::string destPortRange; + }; + struct QosCar + { + int minBandwidthAbs; + std::string qosCarId; + int priority; + std::string qosCarDescription; + int maxBandwidthPercent; + int maxBandwidthAbs; + std::string qosCarName; + std::string percentSourceType; + int minBandwidthPercent; + std::string limitType; + }; + + + GetQosAttributeResult(); + explicit GetQosAttributeResult(const std::string &payload); + ~GetQosAttributeResult(); + std::vector getQosPolicies()const; + std::vector getQosCars()const; + int getErrorConfigSmartAGCount()const; + std::string getQosName()const; + std::string getQosDescription()const; + + protected: + void parse(const std::string &payload); + private: + std::vector qosPolicies_; + std::vector qosCars_; + int errorConfigSmartAGCount_; + std::string qosName_; + std::string qosDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h similarity index 79% rename from smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h rename to smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h index c5378283a..c4b7c3ede 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ #include #include @@ -28,36 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAGDpiAttributeRequest : public RpcServiceRequest { public: - DeleteDedicatedLineBackupRequest(); - ~DeleteDedicatedLineBackupRequest(); + GetSmartAGDpiAttributeRequest(); + ~GetSmartAGDpiAttributeRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; std::string regionId_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeResult.h b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeResult.h new file mode 100644 index 000000000..dd3ed0883 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAGDpiAttributeResult : public ServiceResult + { + public: + + + GetSmartAGDpiAttributeResult(); + explicit GetSmartAGDpiAttributeResult(const std::string &payload); + ~GetSmartAGDpiAttributeResult(); + std::string getLogstoreName()const; + std::string getProjectName()const; + std::string getSlsRegion()const; + std::string getDpiMonitorStatus()const; + std::string getDpiStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string logstoreName_; + std::string projectName_; + std::string slsRegion_; + std::string dpiMonitorStatus_; + std::string dpiStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h index 35a9c30f6..c4c5f7d7f 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h @@ -41,14 +41,16 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getCcnInstanceId()const; void setCcnInstanceId(const std::string& ccnInstanceId); + bool getGrantTrafficService()const; + void setGrantTrafficService(bool grantTrafficService); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getCenUid()const; - void setCenUid(const std::string& cenUid); + long getCenUid()const; + void setCenUid(long cenUid); std::string getCenInstanceId()const; void setCenInstanceId(const std::string& cenInstanceId); @@ -56,10 +58,11 @@ namespace AlibabaCloud long resourceOwnerId_; std::string regionId_; std::string ccnInstanceId_; + bool grantTrafficService_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string cenUid_; + long cenUid_; std::string cenInstanceId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h index f6ea3ce7c..6871c4532 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getCcnInstanceId()const; void setCcnInstanceId(const std::string& ccnInstanceId); + bool getGrantTrafficService()const; + void setGrantTrafficService(bool grantTrafficService); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -57,6 +59,7 @@ namespace AlibabaCloud long ccnUid_; std::string regionId_; std::string ccnInstanceId_; + bool grantTrafficService_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h similarity index 77% rename from smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h rename to smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h index 1db2024b8..7392063c6 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointNetworkQualitiesRequest : public RpcServiceRequest { public: - SwitchSAGHaStateRequest(); - ~SwitchSAGHaStateRequest(); + ListAccessPointNetworkQualitiesRequest(); + ~ListAccessPointNetworkQualitiesRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getHaType()const; - void setHaType(const std::string& haType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; std::string regionId_; - std::string haType_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesResult.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesResult.h new file mode 100644 index 000000000..bb0e6980e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesResult.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_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointNetworkQualitiesResult : public ServiceResult + { + public: + struct AccessPointNetworkQuality + { + std::string rtt; + std::string loss; + int id; + }; + + + ListAccessPointNetworkQualitiesResult(); + explicit ListAccessPointNetworkQualitiesResult(const std::string &payload); + ~ListAccessPointNetworkQualitiesResult(); + std::vector getAccessPointNetworkQualities()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accessPointNetworkQualities_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h similarity index 74% rename from smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h rename to smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h index b9dc35d0d..89ea38ed8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ #include #include @@ -28,39 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointsRequest : public RpcServiceRequest { public: - DeleteSAGLinkLevelHaRequest(); - ~DeleteSAGLinkLevelHaRequest(); + ListAccessPointsRequest(); + ~ListAccessPointsRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getPageNumber()const; + void setPageNumber(int pageNumber); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getHaType()const; - void setHaType(const std::string& haType); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; + int pageNumber_; std::string regionId_; - std::string haType_; + int pageSize_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h new file mode 100644 index 000000000..b558f314d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.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_SMARTAG_MODEL_LISTACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointsResult : public ServiceResult + { + public: + struct AccessPoint + { + int accessPointId; + int activeSmartAGCount; + std::string latitude; + int inactiveSmartAGCount; + std::string longitude; + }; + + + ListAccessPointsResult(); + explicit ListAccessPointsResult(const std::string &payload); + ~ListAccessPointsResult(); + std::vector getAccessPoints()const; + int getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accessPoints_; + int totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h new file mode 100644 index 000000000..314903e85 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiConfigErrorRequest : public RpcServiceRequest + { + + public: + ListDpiConfigErrorRequest(); + ~ListDpiConfigErrorRequest(); + + std::string getDpiConfigType()const; + void setDpiConfigType(const std::string& dpiConfigType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getRuleInstanceId()const; + void setRuleInstanceId(const std::string& ruleInstanceId); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + std::string dpiConfigType_; + std::string regionId_; + std::string nextToken_; + std::string smartAGId_; + std::string ruleInstanceId_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h new file mode 100644 index 000000000..cfed06cd8 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiConfigErrorResult : public ServiceResult + { + public: + struct DpiConfigErrorItem + { + struct RuleConfigErrorListItem + { + std::vector dpiSignatureIds; + std::string ruleId; + std::vector dpiGroupIds; + }; + std::string errorType; + std::vector ruleConfigErrorList; + std::string sN; + std::string smartAGId; + }; + + + ListDpiConfigErrorResult(); + explicit ListDpiConfigErrorResult(const std::string &payload); + ~ListDpiConfigErrorResult(); + std::string getNextToken()const; + std::vector getDpiConfigError()const; + int getMaxResults()const; + int getTotal()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector dpiConfigError_; + int maxResults_; + int total_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h new file mode 100644 index 000000000..c67166734 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiGroupsRequest : public RpcServiceRequest + { + + public: + ListDpiGroupsRequest(); + ~ListDpiGroupsRequest(); + + std::vector getDpiGroupIds()const; + void setDpiGroupIds(const std::vector& dpiGroupIds); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getDpiGroupNames()const; + void setDpiGroupNames(const std::vector& dpiGroupNames); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector dpiGroupNames_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h new file mode 100644 index 000000000..adc0e8bc5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.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_SMARTAG_MODEL_LISTDPIGROUPSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiGroupsResult : public ServiceResult + { + public: + struct DpiGroupItem + { + std::string minEngineVersion; + std::string dpiGroupName; + std::string minSignatureDbVersion; + std::string dpiGroupId; + }; + + + ListDpiGroupsResult(); + explicit ListDpiGroupsResult(const std::string &payload); + ~ListDpiGroupsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getDpiGroup()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector dpiGroup_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h new file mode 100644 index 000000000..7f181a006 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.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_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiSignaturesRequest : public RpcServiceRequest + { + + public: + ListDpiSignaturesRequest(); + ~ListDpiSignaturesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getDpiSignatureNames()const; + void setDpiSignatureNames(const std::vector& dpiSignatureNames); + std::vector getDpiSignatureIds()const; + void setDpiSignatureIds(const std::vector& dpiSignatureIds); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getDpiGroupId()const; + void setDpiGroupId(const std::string& dpiGroupId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + long resourceOwnerId_; + std::vector dpiSignatureNames_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string nextToken_; + std::string dpiGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesResult.h similarity index 53% rename from smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h rename to smartag/include/alibabacloud/smartag/model/ListDpiSignaturesResult.h index a26cdf75f..14209f351 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESRESULT_H_ #include #include @@ -29,38 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayRoutesResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT ListDpiSignaturesResult : public ServiceResult { public: - struct Route + struct DpiSignatureItem { - std::string destCidr; - std::string state; - std::string routeSource; - std::string sourceType; - std::string sourceInstanceId; - std::string conflictInfo; + std::string minEngineVersion; + std::string minSignatureDbVersion; + std::string dpiSignatureId; + std::string dpiSignatureName; + std::string dpiGroupId; }; - DescribeSmartAccessGatewayRoutesResult(); - explicit DescribeSmartAccessGatewayRoutesResult(const std::string &payload); - ~DescribeSmartAccessGatewayRoutesResult(); + ListDpiSignaturesResult(); + explicit ListDpiSignaturesResult(const std::string &payload); + ~ListDpiSignaturesResult(); int getTotalCount()const; - int getPageSize()const; - int getPageNubmer()const; - std::vector getRoutes()const; + std::string getNextToken()const; + std::vector getDpiSignature()const; protected: void parse(const std::string &payload); private: int totalCount_; - int pageSize_; - int pageNubmer_; - std::vector routes_; + std::string nextToken_; + std::vector dpiSignature_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h new file mode 100644 index 000000000..6a38a0d40 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListEnterpriseCodeRequest : public RpcServiceRequest + { + + public: + ListEnterpriseCodeRequest(); + ~ListEnterpriseCodeRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEnterpriseCode()const; + void setEnterpriseCode(const std::string& enterpriseCode); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + std::string regionId_; + std::string enterpriseCode_; + std::string nextToken_; + bool isDefault_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeResult.h b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeResult.h new file mode 100644 index 000000000..894e7b14c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListEnterpriseCodeResult : public ServiceResult + { + public: + struct EnterpriseCode + { + bool isDefault; + std::string enterpriseCode; + int smartAGCount; + }; + + + ListEnterpriseCodeResult(); + explicit ListEnterpriseCodeResult(const std::string &payload); + ~ListEnterpriseCodeResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getEnterpriseCodes()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector enterpriseCodes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h new file mode 100644 index 000000000..5286370cd --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGApiUnsupportedFeatureRequest : public RpcServiceRequest + { + + public: + ListSmartAGApiUnsupportedFeatureRequest(); + ~ListSmartAGApiUnsupportedFeatureRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getOpenApiName()const; + void setOpenApiName(const std::string& openApiName); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string openApiName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureResult.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureResult.h new file mode 100644 index 000000000..d42aed0d5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureResult.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_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATURERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGApiUnsupportedFeatureResult : public ServiceResult + { + public: + struct Feature + { + std::string feature; + }; + + + ListSmartAGApiUnsupportedFeatureResult(); + explicit ListSmartAGApiUnsupportedFeatureResult(const std::string &payload); + ~ListSmartAGApiUnsupportedFeatureResult(); + std::vector getFeatures()const; + + protected: + void parse(const std::string &payload); + private: + std::vector features_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATURERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h new file mode 100644 index 000000000..de786cd16 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGByAccessPointRequest : public RpcServiceRequest + { + + public: + ListSmartAGByAccessPointRequest(); + ~ListSmartAGByAccessPointRequest(); + + int getAccessPointId()const; + void setAccessPointId(int accessPointId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGStatus()const; + void setSmartAGStatus(const std::string& smartAGStatus); + + private: + int accessPointId_; + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointResult.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointResult.h new file mode 100644 index 000000000..6bc354ce1 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGByAccessPointResult : public ServiceResult + { + public: + struct SmartAccessGateway + { + std::string smartAGName; + std::string smartAGStatus; + std::string routingStrategy; + std::string associatedCcnId; + std::string smartAGId; + std::string hardwareVersion; + std::string smartAGDescription; + }; + + + ListSmartAGByAccessPointResult(); + explicit ListSmartAGByAccessPointResult(const std::string &payload); + ~ListSmartAGByAccessPointResult(); + int getTotalCount()const; + std::vector getSmartAccessGateways()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector smartAccessGateways_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h index 65a991633..251866c57 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud ModifyACLRuleRequest(); ~ModifyACLRuleRequest(); + std::vector getDpiGroupIds()const; + void setDpiGroupIds(const std::vector& dpiGroupIds); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourcePortRange()const; @@ -47,6 +49,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getDestCidr()const; void setDestCidr(const std::string& destCidr); + std::vector getDpiSignatureIds()const; + void setDpiSignatureIds(const std::vector& dpiSignatureIds); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getDirection()const; @@ -73,12 +77,14 @@ namespace AlibabaCloud void setName(const std::string& name); private: + std::vector dpiGroupIds_; long resourceOwnerId_; std::string sourcePortRange_; std::string sourceCidr_; std::string description_; std::string type_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string regionId_; std::string direction_; std::string policy_; diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h index 317e937e5..df1f8ab8e 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h @@ -45,10 +45,12 @@ namespace AlibabaCloud std::string getAclId()const; std::string getAcrId()const; std::string getDestPortRange()const; + std::vector getDpiGroupIds()const; std::string getDirection()const; std::string getName()const; long getGmtCreate()const; std::string getDestCidr()const; + std::vector getDpiSignatureIds()const; std::string getIpProtocol()const; protected: @@ -62,10 +64,12 @@ namespace AlibabaCloud std::string aclId_; std::string acrId_; std::string destPortRange_; + std::vector dpiGroupIds_; std::string direction_; std::string name_; long gmtCreate_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string ipProtocol_; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h similarity index 69% rename from smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h rename to smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h index 4df6a52aa..b4369f811 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ #include #include @@ -28,42 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayRoutesRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT ModifyClientUserDNSRequest : public RpcServiceRequest { public: - DescribeSmartAccessGatewayRoutesRequest(); - ~DescribeSmartAccessGatewayRoutesRequest(); + ModifyClientUserDNSRequest(); + ~ModifyClientUserDNSRequest(); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPageNubmer()const; - void setPageNubmer(const std::string& pageNubmer); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getRecoveredDNS()const; + void setRecoveredDNS(const std::vector& recoveredDNS); + std::vector getAppDNS()const; + void setAppDNS(const std::vector& appDNS); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string regionId_; - std::string ownerAccount_; - std::string pageSize_; - std::string smartAGId_; - long ownerId_; - std::string pageNubmer_; + long resourceOwnerId_; + std::vector recoveredDNS_; + std::vector appDNS_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSResult.h b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSResult.h new file mode 100644 index 000000000..e87a498c8 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyClientUserDNSResult : public ServiceResult + { + public: + + + ModifyClientUserDNSResult(); + explicit ModifyClientUserDNSResult(const std::string &payload); + ~ModifyClientUserDNSResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h index e23c82317..3acefe553 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h @@ -55,6 +55,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersionType()const; + void setVersionType(const std::string& versionType); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); @@ -69,6 +71,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string versionType_; std::string smartAGId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h index a06afc40c..3169f4e70 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud ModifyQosPolicyRequest(); ~ModifyQosPolicyRequest(); + std::vector getDpiGroupIds()const; + void setDpiGroupIds(const std::vector& dpiGroupIds); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourcePortRange()const; @@ -49,6 +51,8 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); std::string getDestCidr()const; void setDestCidr(const std::string& destCidr); + std::vector getDpiSignatureIds()const; + void setDpiSignatureIds(const std::vector& dpiSignatureIds); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getQosId()const; @@ -71,6 +75,7 @@ namespace AlibabaCloud void setName(const std::string& name); private: + std::vector dpiGroupIds_; long resourceOwnerId_; std::string sourcePortRange_; std::string qosPolicyId_; @@ -78,6 +83,7 @@ namespace AlibabaCloud std::string description_; std::string startTime_; std::string destCidr_; + std::vector dpiSignatureIds_; std::string regionId_; std::string qosId_; std::string resourceOwnerAccount_; diff --git a/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h new file mode 100644 index 000000000..539918b04 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySAGAdminPasswordRequest : public RpcServiceRequest + { + + public: + ModifySAGAdminPasswordRequest(); + ~ModifySAGAdminPasswordRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getSmartAGSn()const; + void setSmartAGSn(const std::string& smartAGSn); + + private: + long resourceOwnerId_; + std::string password_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordResult.h similarity index 68% rename from smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h rename to smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordResult.h index 0a1166903..dae907de7 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT ModifySAGAdminPasswordResult : public ServiceResult { public: - SwitchCloudBoxHaStateResult(); - explicit SwitchCloudBoxHaStateResult(const std::string &payload); - ~SwitchCloudBoxHaStateResult(); + ModifySAGAdminPasswordResult(); + explicit ModifySAGAdminPasswordResult(const std::string &payload); + ~ModifySAGAdminPasswordResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h index bb3b8f00d..c7c68d408 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getRole()const; void setRole(const std::string& role); + std::string getVlan()const; + void setVlan(const std::string& vlan); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getResourceOwnerAccount()const; @@ -57,6 +59,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string role_; + std::string vlan_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h index a376d159e..1e9b3beb3 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getAdvertiseIps()const; + void setAdvertiseIps(const std::string& advertiseIps); std::string getRouterId()const; void setRouterId(const std::string& routerId); int getLocalAs()const; @@ -66,6 +68,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string advertiseIps_; std::string routerId_; int localAs_; std::string smartAGId_; diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h index 804c2aa42..a5b654285 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h @@ -37,28 +37,44 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getISP()const; + void setISP(const std::string& iSP); std::string getPassword()const; void setPassword(const std::string& password); + std::string getVlan()const; + void setVlan(const std::string& vlan); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMask()const; void setMask(const std::string& mask); + std::string getStartIp()const; + void setStartIp(const std::string& startIp); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getIP()const; void setIP(const std::string& iP); + int getWeight()const; + void setWeight(int weight); long getOwnerId()const; void setOwnerId(long ownerId); std::string getIPType()const; void setIPType(const std::string& iPType); + int getPriority()const; + void setPriority(int priority); + std::string getSourceIps()const; + void setSourceIps(const std::string& sourceIps); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); std::string getSmartAGSn()const; void setSmartAGSn(const std::string& smartAGSn); std::string getPortName()const; void setPortName(const std::string& portName); + std::string getStopIp()const; + void setStopIp(const std::string& stopIp); std::string getGateway()const; void setGateway(const std::string& gateway); std::string getUsername()const; @@ -66,17 +82,25 @@ namespace AlibabaCloud private: long resourceOwnerId_; + std::string iSP_; std::string password_; + std::string vlan_; std::string regionId_; std::string mask_; + std::string startIp_; std::string resourceOwnerAccount_; + int bandwidth_; std::string ownerAccount_; std::string iP_; + int weight_; long ownerId_; std::string iPType_; + int priority_; + std::string sourceIps_; std::string smartAGId_; std::string smartAGSn_; std::string portName_; + std::string stopIp_; std::string gateway_; std::string username_; diff --git a/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h new file mode 100644 index 000000000..ec630ce5d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT MoveResourceGroupRequest : public RpcServiceRequest + { + + public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getNewResourceGroupId()const; + void setNewResourceGroupId(const std::string& newResourceGroupId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string newResourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/MoveResourceGroupResult.h b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupResult.h new file mode 100644 index 000000000..d8dec7c21 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT MoveResourceGroupResult : public ServiceResult + { + public: + + + MoveResourceGroupResult(); + explicit MoveResourceGroupResult(const std::string &payload); + ~MoveResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h new file mode 100644 index 000000000..406c34b83 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ProbeAccessPointNetworkQualityRequest : public RpcServiceRequest + { + + public: + ProbeAccessPointNetworkQualityRequest(); + ~ProbeAccessPointNetworkQualityRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getAccessPointIds()const; + void setAccessPointIds(const std::vector& accessPointIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector accessPointIds_; + long ownerId_; + std::string smartAGId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityResult.h b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityResult.h new file mode 100644 index 000000000..daa144a0d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ProbeAccessPointNetworkQualityResult : public ServiceResult + { + public: + + + ProbeAccessPointNetworkQualityResult(); + explicit ProbeAccessPointNetworkQualityResult(const std::string &payload); + ~ProbeAccessPointNetworkQualityResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h new file mode 100644 index 000000000..eaf54e3c7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RoamClientUserRequest : public RpcServiceRequest + { + + public: + RoamClientUserRequest(); + ~RoamClientUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOriginSmartAGId()const; + void setOriginSmartAGId(const std::string& originSmartAGId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTargetSmartAGId()const; + void setTargetSmartAGId(const std::string& targetSmartAGId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOriginRegionId()const; + void setOriginRegionId(const std::string& originRegionId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string originSmartAGId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string targetSmartAGId_; + std::string ownerAccount_; + long ownerId_; + std::string originRegionId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RoamClientUserResult.h b/smartag/include/alibabacloud/smartag/model/RoamClientUserResult.h new file mode 100644 index 000000000..e5f79a7b1 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RoamClientUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RoamClientUserResult : public ServiceResult + { + public: + + + RoamClientUserResult(); + explicit RoamClientUserResult(const std::string &payload); + ~RoamClientUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h new file mode 100644 index 000000000..f0cd45d18 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateEnterpriseCodeRequest : public RpcServiceRequest + { + + public: + UpdateEnterpriseCodeRequest(); + ~UpdateEnterpriseCodeRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEnterpriseCode()const; + void setEnterpriseCode(const std::string& enterpriseCode); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + bool getDryRun()const; + void setDryRun(bool dryRun); + + private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool isDefault_; + bool dryRun_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeResult.h similarity index 70% rename from smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h rename to smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeResult.h index 06b5a868d..0129018d2 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT UpdateEnterpriseCodeResult : public ServiceResult { public: - SwitchSAGHaStateResult(); - explicit SwitchSAGHaStateResult(const std::string &payload); - ~SwitchSAGHaStateResult(); + UpdateEnterpriseCodeResult(); + explicit UpdateEnterpriseCodeResult(const std::string &payload); + ~UpdateEnterpriseCodeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h similarity index 75% rename from smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h rename to smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h index bf4590da8..d7b92c0e9 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGAccessPointRequest : public RpcServiceRequest { public: - ModifySerialNumberRequest(); - ~ModifySerialNumberRequest(); + UpdateSmartAGAccessPointRequest(); + ~UpdateSmartAGAccessPointRequest(); + int getAccessPointId()const; + void setAccessPointId(int accessPointId); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: + int accessPointId_; long resourceOwnerId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; std::string regionId_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointResult.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointResult.h new file mode 100644 index 000000000..eb0bb786b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGAccessPointResult : public ServiceResult + { + public: + + + UpdateSmartAGAccessPointResult(); + explicit UpdateSmartAGAccessPointResult(const std::string &payload); + ~UpdateSmartAGAccessPointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h similarity index 71% rename from smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h rename to smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h index 76c0e7af8..f253ecbb3 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ #include #include @@ -28,42 +28,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupRequest : public RpcServiceRequest + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGDpiAttributeRequest : public RpcServiceRequest { public: - CreateDedicatedLineBackupRequest(); - ~CreateDedicatedLineBackupRequest(); + UpdateSmartAGDpiAttributeRequest(); + ~UpdateSmartAGDpiAttributeRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + bool getDpiEnabled()const; + void setDpiEnabled(bool dpiEnabled); std::string getRegionId()const; void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getVbrRegionId()const; - void setVbrRegionId(const std::string& vbrRegionId); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; + std::string clientToken_; + bool dpiEnabled_; std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string smartAGId_; long ownerId_; - std::string vbrId_; - std::string vbrRegionId_; + std::string smartAGId_; }; } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeResult.h similarity index 71% rename from smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h rename to smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeResult.h index b4af6f4f5..6cd72a022 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupResult : public ServiceResult + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGDpiAttributeResult : public ServiceResult { public: - DeleteDedicatedLineBackupResult(); - explicit DeleteDedicatedLineBackupResult(const std::string &payload); - ~DeleteDedicatedLineBackupResult(); + UpdateSmartAGDpiAttributeResult(); + explicit UpdateSmartAGDpiAttributeResult(const std::string &payload); + ~UpdateSmartAGDpiAttributeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h new file mode 100644 index 000000000..1e94a4eaf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGEnterpriseCodeRequest : public RpcServiceRequest + { + + public: + UpdateSmartAGEnterpriseCodeRequest(); + ~UpdateSmartAGEnterpriseCodeRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEnterpriseCode()const; + void setEnterpriseCode(const std::string& enterpriseCode); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + + private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; + std::string smartAGId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeResult.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeResult.h new file mode 100644 index 000000000..bfaef954f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGEnterpriseCodeResult : public ServiceResult + { + public: + + + UpdateSmartAGEnterpriseCodeResult(); + explicit UpdateSmartAGEnterpriseCodeResult(const std::string &payload); + ~UpdateSmartAGEnterpriseCodeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h index 0865d9f75..95bc2457a 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersionType()const; + void setVersionType(const std::string& versionType); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); @@ -60,6 +62,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string versionType_; std::string smartAGId_; }; diff --git a/smartag/src/SmartagClient.cc b/smartag/src/SmartagClient.cc index 19c1ec3de..943cb1513 100644 --- a/smartag/src/SmartagClient.cc +++ b/smartag/src/SmartagClient.cc @@ -555,6 +555,42 @@ SmartagClient::BindVbrOutcomeCallable SmartagClient::bindVbrCallable(const BindV return task->get_future(); } +SmartagClient::ClearSagCipherOutcome SmartagClient::clearSagCipher(const ClearSagCipherRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ClearSagCipherOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ClearSagCipherOutcome(ClearSagCipherResult(outcome.result())); + else + return ClearSagCipherOutcome(outcome.error()); +} + +void SmartagClient::clearSagCipherAsync(const ClearSagCipherRequest& request, const ClearSagCipherAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, clearSagCipher(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ClearSagCipherOutcomeCallable SmartagClient::clearSagCipherCallable(const ClearSagCipherRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->clearSagCipher(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::ClearSagRouteableAddressOutcome SmartagClient::clearSagRouteableAddress(const ClearSagRouteableAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,36 +699,36 @@ SmartagClient::CreateCloudConnectNetworkOutcomeCallable SmartagClient::createClo return task->get_future(); } -SmartagClient::CreateDedicatedLineBackupOutcome SmartagClient::createDedicatedLineBackup(const CreateDedicatedLineBackupRequest &request) const +SmartagClient::CreateEnterpriseCodeOutcome SmartagClient::createEnterpriseCode(const CreateEnterpriseCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(endpointOutcome.error()); + return CreateEnterpriseCodeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(CreateDedicatedLineBackupResult(outcome.result())); + return CreateEnterpriseCodeOutcome(CreateEnterpriseCodeResult(outcome.result())); else - return CreateDedicatedLineBackupOutcome(outcome.error()); + return CreateEnterpriseCodeOutcome(outcome.error()); } -void SmartagClient::createDedicatedLineBackupAsync(const CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const +void SmartagClient::createEnterpriseCodeAsync(const CreateEnterpriseCodeRequest& request, const CreateEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createDedicatedLineBackup(request), context); + handler(this, request, createEnterpriseCode(request), context); }; asyncExecute(new Runnable(fn)); } -SmartagClient::CreateDedicatedLineBackupOutcomeCallable SmartagClient::createDedicatedLineBackupCallable(const CreateDedicatedLineBackupRequest &request) const +SmartagClient::CreateEnterpriseCodeOutcomeCallable SmartagClient::createEnterpriseCodeCallable(const CreateEnterpriseCodeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createDedicatedLineBackup(request); + return this->createEnterpriseCode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -915,42 +951,6 @@ SmartagClient::CreateQosPolicyOutcomeCallable SmartagClient::createQosPolicyCall return task->get_future(); } -SmartagClient::CreateSAGLinkLevelHaOutcome SmartagClient::createSAGLinkLevelHa(const CreateSAGLinkLevelHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSAGLinkLevelHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSAGLinkLevelHaOutcome(CreateSAGLinkLevelHaResult(outcome.result())); - else - return CreateSAGLinkLevelHaOutcome(outcome.error()); -} - -void SmartagClient::createSAGLinkLevelHaAsync(const CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSAGLinkLevelHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSAGLinkLevelHaOutcomeCallable SmartagClient::createSAGLinkLevelHaCallable(const CreateSAGLinkLevelHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSAGLinkLevelHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::CreateSagExpressConnectInterfaceOutcome SmartagClient::createSagExpressConnectInterface(const CreateSagExpressConnectInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,42 +1275,6 @@ SmartagClient::DeleteCloudConnectNetworkOutcomeCallable SmartagClient::deleteClo return task->get_future(); } -SmartagClient::DeleteDedicatedLineBackupOutcome SmartagClient::deleteDedicatedLineBackup(const DeleteDedicatedLineBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(DeleteDedicatedLineBackupResult(outcome.result())); - else - return DeleteDedicatedLineBackupOutcome(outcome.error()); -} - -void SmartagClient::deleteDedicatedLineBackupAsync(const DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDedicatedLineBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteDedicatedLineBackupOutcomeCallable SmartagClient::deleteDedicatedLineBackupCallable(const DeleteDedicatedLineBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDedicatedLineBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DeleteDnatEntryOutcome SmartagClient::deleteDnatEntry(const DeleteDnatEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1311,42 @@ SmartagClient::DeleteDnatEntryOutcomeCallable SmartagClient::deleteDnatEntryCall return task->get_future(); } +SmartagClient::DeleteEnterpriseCodeOutcome SmartagClient::deleteEnterpriseCode(const DeleteEnterpriseCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEnterpriseCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEnterpriseCodeOutcome(DeleteEnterpriseCodeResult(outcome.result())); + else + return DeleteEnterpriseCodeOutcome(outcome.error()); +} + +void SmartagClient::deleteEnterpriseCodeAsync(const DeleteEnterpriseCodeRequest& request, const DeleteEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEnterpriseCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteEnterpriseCodeOutcomeCallable SmartagClient::deleteEnterpriseCodeCallable(const DeleteEnterpriseCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEnterpriseCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DeleteFlowLogOutcome SmartagClient::deleteFlowLog(const DeleteFlowLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,42 +1635,6 @@ SmartagClient::DeleteRouteDistributionStrategyOutcomeCallable SmartagClient::del return task->get_future(); } -SmartagClient::DeleteSAGLinkLevelHaOutcome SmartagClient::deleteSAGLinkLevelHa(const DeleteSAGLinkLevelHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSAGLinkLevelHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSAGLinkLevelHaOutcome(DeleteSAGLinkLevelHaResult(outcome.result())); - else - return DeleteSAGLinkLevelHaOutcome(outcome.error()); -} - -void SmartagClient::deleteSAGLinkLevelHaAsync(const DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSAGLinkLevelHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteSAGLinkLevelHaOutcomeCallable SmartagClient::deleteSAGLinkLevelHaCallable(const DeleteSAGLinkLevelHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSAGLinkLevelHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DeleteSagCidrOutcome SmartagClient::deleteSagCidr(const DeleteSagCidrRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +1959,42 @@ SmartagClient::DescribeBindableSmartAccessGatewaysOutcomeCallable SmartagClient: return task->get_future(); } +SmartagClient::DescribeClientUserDNSOutcome SmartagClient::describeClientUserDNS(const DescribeClientUserDNSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClientUserDNSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClientUserDNSOutcome(DescribeClientUserDNSResult(outcome.result())); + else + return DescribeClientUserDNSOutcome(outcome.error()); +} + +void SmartagClient::describeClientUserDNSAsync(const DescribeClientUserDNSRequest& request, const DescribeClientUserDNSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClientUserDNS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeClientUserDNSOutcomeCallable SmartagClient::describeClientUserDNSCallable(const DescribeClientUserDNSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClientUserDNS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DescribeCloudConnectNetworksOutcome SmartagClient::describeCloudConnectNetworks(const DescribeCloudConnectNetworksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2823,6 +2823,42 @@ SmartagClient::DescribeSagCurrentDnsOutcomeCallable SmartagClient::describeSagCu return task->get_future(); } +SmartagClient::DescribeSagDropTopNOutcome SmartagClient::describeSagDropTopN(const DescribeSagDropTopNRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagDropTopNOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagDropTopNOutcome(DescribeSagDropTopNResult(outcome.result())); + else + return DescribeSagDropTopNOutcome(outcome.error()); +} + +void SmartagClient::describeSagDropTopNAsync(const DescribeSagDropTopNRequest& request, const DescribeSagDropTopNAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagDropTopN(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagDropTopNOutcomeCallable SmartagClient::describeSagDropTopNCallable(const DescribeSagDropTopNRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagDropTopN(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DescribeSagECRouteBackupAttributeOutcome SmartagClient::describeSagECRouteBackupAttribute(const DescribeSagECRouteBackupAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,6 +3399,42 @@ SmartagClient::DescribeSagStaticRouteListOutcomeCallable SmartagClient::describe return task->get_future(); } +SmartagClient::DescribeSagTrafficTopNOutcome SmartagClient::describeSagTrafficTopN(const DescribeSagTrafficTopNRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagTrafficTopNOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagTrafficTopNOutcome(DescribeSagTrafficTopNResult(outcome.result())); + else + return DescribeSagTrafficTopNOutcome(outcome.error()); +} + +void SmartagClient::describeSagTrafficTopNAsync(const DescribeSagTrafficTopNRequest& request, const DescribeSagTrafficTopNAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagTrafficTopN(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagTrafficTopNOutcomeCallable SmartagClient::describeSagTrafficTopNCallable(const DescribeSagTrafficTopNRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagTrafficTopN(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DescribeSagUserDnsOutcome SmartagClient::describeSagUserDns(const DescribeSagUserDnsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,42 +3759,6 @@ SmartagClient::DescribeSmartAccessGatewayHaOutcomeCallable SmartagClient::descri return task->get_future(); } -SmartagClient::DescribeSmartAccessGatewayRoutesOutcome SmartagClient::describeSmartAccessGatewayRoutes(const DescribeSmartAccessGatewayRoutesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayRoutesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayRoutesOutcome(DescribeSmartAccessGatewayRoutesResult(outcome.result())); - else - return DescribeSmartAccessGatewayRoutesOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayRoutesAsync(const DescribeSmartAccessGatewayRoutesRequest& request, const DescribeSmartAccessGatewayRoutesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayRoutes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayRoutesOutcomeCallable SmartagClient::describeSmartAccessGatewayRoutesCallable(const DescribeSmartAccessGatewayRoutesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayRoutes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DescribeSmartAccessGatewayVersionsOutcome SmartagClient::describeSmartAccessGatewayVersions(const DescribeSmartAccessGatewayVersionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +4047,78 @@ SmartagClient::DetachNetworkOptimizationSagsOutcomeCallable SmartagClient::detac return task->get_future(); } +SmartagClient::DiagnoseSmartAccessGatewayOutcome SmartagClient::diagnoseSmartAccessGateway(const DiagnoseSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiagnoseSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiagnoseSmartAccessGatewayOutcome(DiagnoseSmartAccessGatewayResult(outcome.result())); + else + return DiagnoseSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::diagnoseSmartAccessGatewayAsync(const DiagnoseSmartAccessGatewayRequest& request, const DiagnoseSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, diagnoseSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DiagnoseSmartAccessGatewayOutcomeCallable SmartagClient::diagnoseSmartAccessGatewayCallable(const DiagnoseSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->diagnoseSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisableSmartAGDpiMonitorOutcome SmartagClient::disableSmartAGDpiMonitor(const DisableSmartAGDpiMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableSmartAGDpiMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableSmartAGDpiMonitorOutcome(DisableSmartAGDpiMonitorResult(outcome.result())); + else + return DisableSmartAGDpiMonitorOutcome(outcome.error()); +} + +void SmartagClient::disableSmartAGDpiMonitorAsync(const DisableSmartAGDpiMonitorRequest& request, const DisableSmartAGDpiMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableSmartAGDpiMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisableSmartAGDpiMonitorOutcomeCallable SmartagClient::disableSmartAGDpiMonitorCallable(const DisableSmartAGDpiMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableSmartAGDpiMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DisableSmartAccessGatewayUserOutcome SmartagClient::disableSmartAccessGatewayUser(const DisableSmartAccessGatewayUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4155,6 +4263,42 @@ SmartagClient::DisassociateQosOutcomeCallable SmartagClient::disassociateQosCall return task->get_future(); } +SmartagClient::DiscribeSmartAccessGatewayDiagnosisReportOutcome SmartagClient::discribeSmartAccessGatewayDiagnosisReport(const DiscribeSmartAccessGatewayDiagnosisReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiscribeSmartAccessGatewayDiagnosisReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiscribeSmartAccessGatewayDiagnosisReportOutcome(DiscribeSmartAccessGatewayDiagnosisReportResult(outcome.result())); + else + return DiscribeSmartAccessGatewayDiagnosisReportOutcome(outcome.error()); +} + +void SmartagClient::discribeSmartAccessGatewayDiagnosisReportAsync(const DiscribeSmartAccessGatewayDiagnosisReportRequest& request, const DiscribeSmartAccessGatewayDiagnosisReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, discribeSmartAccessGatewayDiagnosisReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DiscribeSmartAccessGatewayDiagnosisReportOutcomeCallable SmartagClient::discribeSmartAccessGatewayDiagnosisReportCallable(const DiscribeSmartAccessGatewayDiagnosisReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->discribeSmartAccessGatewayDiagnosisReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::DowngradeSmartAccessGatewayOutcome SmartagClient::downgradeSmartAccessGateway(const DowngradeSmartAccessGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4227,6 +4371,42 @@ SmartagClient::DowngradeSmartAccessGatewaySoftwareOutcomeCallable SmartagClient: return task->get_future(); } +SmartagClient::EnableSmartAGDpiMonitorOutcome SmartagClient::enableSmartAGDpiMonitor(const EnableSmartAGDpiMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableSmartAGDpiMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableSmartAGDpiMonitorOutcome(EnableSmartAGDpiMonitorResult(outcome.result())); + else + return EnableSmartAGDpiMonitorOutcome(outcome.error()); +} + +void SmartagClient::enableSmartAGDpiMonitorAsync(const EnableSmartAGDpiMonitorRequest& request, const EnableSmartAGDpiMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableSmartAGDpiMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::EnableSmartAGDpiMonitorOutcomeCallable SmartagClient::enableSmartAGDpiMonitorCallable(const EnableSmartAGDpiMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableSmartAGDpiMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::EnableSmartAccessGatewayUserOutcome SmartagClient::enableSmartAccessGatewayUser(const EnableSmartAccessGatewayUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4263,6 +4443,42 @@ SmartagClient::EnableSmartAccessGatewayUserOutcomeCallable SmartagClient::enable return task->get_future(); } +SmartagClient::GetAclAttributeOutcome SmartagClient::getAclAttribute(const GetAclAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAclAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAclAttributeOutcome(GetAclAttributeResult(outcome.result())); + else + return GetAclAttributeOutcome(outcome.error()); +} + +void SmartagClient::getAclAttributeAsync(const GetAclAttributeRequest& request, const GetAclAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAclAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetAclAttributeOutcomeCallable SmartagClient::getAclAttributeCallable(const GetAclAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAclAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::GetCloudConnectNetworkUseLimitOutcome SmartagClient::getCloudConnectNetworkUseLimit(const GetCloudConnectNetworkUseLimitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,6 +4515,78 @@ SmartagClient::GetCloudConnectNetworkUseLimitOutcomeCallable SmartagClient::getC return task->get_future(); } +SmartagClient::GetQosAttributeOutcome SmartagClient::getQosAttribute(const GetQosAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetQosAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetQosAttributeOutcome(GetQosAttributeResult(outcome.result())); + else + return GetQosAttributeOutcome(outcome.error()); +} + +void SmartagClient::getQosAttributeAsync(const GetQosAttributeRequest& request, const GetQosAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getQosAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetQosAttributeOutcomeCallable SmartagClient::getQosAttributeCallable(const GetQosAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getQosAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GetSmartAGDpiAttributeOutcome SmartagClient::getSmartAGDpiAttribute(const GetSmartAGDpiAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSmartAGDpiAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSmartAGDpiAttributeOutcome(GetSmartAGDpiAttributeResult(outcome.result())); + else + return GetSmartAGDpiAttributeOutcome(outcome.error()); +} + +void SmartagClient::getSmartAGDpiAttributeAsync(const GetSmartAGDpiAttributeRequest& request, const GetSmartAGDpiAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSmartAGDpiAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetSmartAGDpiAttributeOutcomeCallable SmartagClient::getSmartAGDpiAttributeCallable(const GetSmartAGDpiAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSmartAGDpiAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::GetSmartAccessGatewayUseLimitOutcome SmartagClient::getSmartAccessGatewayUseLimit(const GetSmartAccessGatewayUseLimitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4479,6 +4767,294 @@ SmartagClient::KickOutClientsOutcomeCallable SmartagClient::kickOutClientsCallab return task->get_future(); } +SmartagClient::ListAccessPointNetworkQualitiesOutcome SmartagClient::listAccessPointNetworkQualities(const ListAccessPointNetworkQualitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccessPointNetworkQualitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccessPointNetworkQualitiesOutcome(ListAccessPointNetworkQualitiesResult(outcome.result())); + else + return ListAccessPointNetworkQualitiesOutcome(outcome.error()); +} + +void SmartagClient::listAccessPointNetworkQualitiesAsync(const ListAccessPointNetworkQualitiesRequest& request, const ListAccessPointNetworkQualitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccessPointNetworkQualities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListAccessPointNetworkQualitiesOutcomeCallable SmartagClient::listAccessPointNetworkQualitiesCallable(const ListAccessPointNetworkQualitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccessPointNetworkQualities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListAccessPointsOutcome SmartagClient::listAccessPoints(const ListAccessPointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccessPointsOutcome(ListAccessPointsResult(outcome.result())); + else + return ListAccessPointsOutcome(outcome.error()); +} + +void SmartagClient::listAccessPointsAsync(const ListAccessPointsRequest& request, const ListAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListAccessPointsOutcomeCallable SmartagClient::listAccessPointsCallable(const ListAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListDpiConfigErrorOutcome SmartagClient::listDpiConfigError(const ListDpiConfigErrorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDpiConfigErrorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDpiConfigErrorOutcome(ListDpiConfigErrorResult(outcome.result())); + else + return ListDpiConfigErrorOutcome(outcome.error()); +} + +void SmartagClient::listDpiConfigErrorAsync(const ListDpiConfigErrorRequest& request, const ListDpiConfigErrorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDpiConfigError(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListDpiConfigErrorOutcomeCallable SmartagClient::listDpiConfigErrorCallable(const ListDpiConfigErrorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDpiConfigError(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListDpiGroupsOutcome SmartagClient::listDpiGroups(const ListDpiGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDpiGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDpiGroupsOutcome(ListDpiGroupsResult(outcome.result())); + else + return ListDpiGroupsOutcome(outcome.error()); +} + +void SmartagClient::listDpiGroupsAsync(const ListDpiGroupsRequest& request, const ListDpiGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDpiGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListDpiGroupsOutcomeCallable SmartagClient::listDpiGroupsCallable(const ListDpiGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDpiGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListDpiSignaturesOutcome SmartagClient::listDpiSignatures(const ListDpiSignaturesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDpiSignaturesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDpiSignaturesOutcome(ListDpiSignaturesResult(outcome.result())); + else + return ListDpiSignaturesOutcome(outcome.error()); +} + +void SmartagClient::listDpiSignaturesAsync(const ListDpiSignaturesRequest& request, const ListDpiSignaturesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDpiSignatures(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListDpiSignaturesOutcomeCallable SmartagClient::listDpiSignaturesCallable(const ListDpiSignaturesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDpiSignatures(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListEnterpriseCodeOutcome SmartagClient::listEnterpriseCode(const ListEnterpriseCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEnterpriseCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEnterpriseCodeOutcome(ListEnterpriseCodeResult(outcome.result())); + else + return ListEnterpriseCodeOutcome(outcome.error()); +} + +void SmartagClient::listEnterpriseCodeAsync(const ListEnterpriseCodeRequest& request, const ListEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEnterpriseCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListEnterpriseCodeOutcomeCallable SmartagClient::listEnterpriseCodeCallable(const ListEnterpriseCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEnterpriseCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListSmartAGApiUnsupportedFeatureOutcome SmartagClient::listSmartAGApiUnsupportedFeature(const ListSmartAGApiUnsupportedFeatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSmartAGApiUnsupportedFeatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSmartAGApiUnsupportedFeatureOutcome(ListSmartAGApiUnsupportedFeatureResult(outcome.result())); + else + return ListSmartAGApiUnsupportedFeatureOutcome(outcome.error()); +} + +void SmartagClient::listSmartAGApiUnsupportedFeatureAsync(const ListSmartAGApiUnsupportedFeatureRequest& request, const ListSmartAGApiUnsupportedFeatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSmartAGApiUnsupportedFeature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListSmartAGApiUnsupportedFeatureOutcomeCallable SmartagClient::listSmartAGApiUnsupportedFeatureCallable(const ListSmartAGApiUnsupportedFeatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSmartAGApiUnsupportedFeature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ListSmartAGByAccessPointOutcome SmartagClient::listSmartAGByAccessPoint(const ListSmartAGByAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSmartAGByAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSmartAGByAccessPointOutcome(ListSmartAGByAccessPointResult(outcome.result())); + else + return ListSmartAGByAccessPointOutcome(outcome.error()); +} + +void SmartagClient::listSmartAGByAccessPointAsync(const ListSmartAGByAccessPointRequest& request, const ListSmartAGByAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSmartAGByAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ListSmartAGByAccessPointOutcomeCallable SmartagClient::listSmartAGByAccessPointCallable(const ListSmartAGByAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSmartAGByAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::ModifyACLOutcome SmartagClient::modifyACL(const ModifyACLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +5127,42 @@ SmartagClient::ModifyACLRuleOutcomeCallable SmartagClient::modifyACLRuleCallable return task->get_future(); } +SmartagClient::ModifyClientUserDNSOutcome SmartagClient::modifyClientUserDNS(const ModifyClientUserDNSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClientUserDNSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClientUserDNSOutcome(ModifyClientUserDNSResult(outcome.result())); + else + return ModifyClientUserDNSOutcome(outcome.error()); +} + +void SmartagClient::modifyClientUserDNSAsync(const ModifyClientUserDNSRequest& request, const ModifyClientUserDNSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClientUserDNS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyClientUserDNSOutcomeCallable SmartagClient::modifyClientUserDNSCallable(const ModifyClientUserDNSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClientUserDNS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::ModifyCloudConnectNetworkOutcome SmartagClient::modifyCloudConnectNetwork(const ModifyCloudConnectNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4875,6 +5487,42 @@ SmartagClient::ModifyRouteDistributionStrategyOutcomeCallable SmartagClient::mod return task->get_future(); } +SmartagClient::ModifySAGAdminPasswordOutcome SmartagClient::modifySAGAdminPassword(const ModifySAGAdminPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySAGAdminPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySAGAdminPasswordOutcome(ModifySAGAdminPasswordResult(outcome.result())); + else + return ModifySAGAdminPasswordOutcome(outcome.error()); +} + +void SmartagClient::modifySAGAdminPasswordAsync(const ModifySAGAdminPasswordRequest& request, const ModifySAGAdminPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySAGAdminPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySAGAdminPasswordOutcomeCallable SmartagClient::modifySAGAdminPasswordCallable(const ModifySAGAdminPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySAGAdminPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::ModifySagCidrOutcome SmartagClient::modifySagCidr(const ModifySagCidrRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5487,42 +6135,6 @@ SmartagClient::ModifySagWifiOutcomeCallable SmartagClient::modifySagWifiCallable return task->get_future(); } -SmartagClient::ModifySerialNumberOutcome SmartagClient::modifySerialNumber(const ModifySerialNumberRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySerialNumberOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySerialNumberOutcome(ModifySerialNumberResult(outcome.result())); - else - return ModifySerialNumberOutcome(outcome.error()); -} - -void SmartagClient::modifySerialNumberAsync(const ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySerialNumber(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySerialNumberOutcomeCallable SmartagClient::modifySerialNumberCallable(const ModifySerialNumberRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySerialNumber(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::ModifySmartAccessGatewayOutcome SmartagClient::modifySmartAccessGateway(const ModifySmartAccessGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,6 +6243,42 @@ SmartagClient::ModifySmartAccessGatewayUpBandwidthOutcomeCallable SmartagClient: return task->get_future(); } +SmartagClient::MoveResourceGroupOutcome SmartagClient::moveResourceGroup(const MoveResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveResourceGroupOutcome(MoveResourceGroupResult(outcome.result())); + else + return MoveResourceGroupOutcome(outcome.error()); +} + +void SmartagClient::moveResourceGroupAsync(const MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::MoveResourceGroupOutcomeCallable SmartagClient::moveResourceGroupCallable(const MoveResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::OrchestrateSagECRouteBackupOutcome SmartagClient::orchestrateSagECRouteBackup(const OrchestrateSagECRouteBackupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5667,6 +6315,42 @@ SmartagClient::OrchestrateSagECRouteBackupOutcomeCallable SmartagClient::orchest return task->get_future(); } +SmartagClient::ProbeAccessPointNetworkQualityOutcome SmartagClient::probeAccessPointNetworkQuality(const ProbeAccessPointNetworkQualityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ProbeAccessPointNetworkQualityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ProbeAccessPointNetworkQualityOutcome(ProbeAccessPointNetworkQualityResult(outcome.result())); + else + return ProbeAccessPointNetworkQualityOutcome(outcome.error()); +} + +void SmartagClient::probeAccessPointNetworkQualityAsync(const ProbeAccessPointNetworkQualityRequest& request, const ProbeAccessPointNetworkQualityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, probeAccessPointNetworkQuality(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ProbeAccessPointNetworkQualityOutcomeCallable SmartagClient::probeAccessPointNetworkQualityCallable(const ProbeAccessPointNetworkQualityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->probeAccessPointNetworkQuality(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::RebootSmartAccessGatewayOutcome SmartagClient::rebootSmartAccessGateway(const RebootSmartAccessGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5847,6 +6531,42 @@ SmartagClient::RevokeSagInstanceFromCcnOutcomeCallable SmartagClient::revokeSagI return task->get_future(); } +SmartagClient::RoamClientUserOutcome SmartagClient::roamClientUser(const RoamClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RoamClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RoamClientUserOutcome(RoamClientUserResult(outcome.result())); + else + return RoamClientUserOutcome(outcome.error()); +} + +void SmartagClient::roamClientUserAsync(const RoamClientUserRequest& request, const RoamClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, roamClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RoamClientUserOutcomeCallable SmartagClient::roamClientUserCallable(const RoamClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->roamClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::SetSagRouteableAddressOutcome SmartagClient::setSagRouteableAddress(const SetSagRouteableAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5883,78 +6603,6 @@ SmartagClient::SetSagRouteableAddressOutcomeCallable SmartagClient::setSagRoutea return task->get_future(); } -SmartagClient::SwitchCloudBoxHaStateOutcome SmartagClient::switchCloudBoxHaState(const SwitchCloudBoxHaStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(SwitchCloudBoxHaStateResult(outcome.result())); - else - return SwitchCloudBoxHaStateOutcome(outcome.error()); -} - -void SmartagClient::switchCloudBoxHaStateAsync(const SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchCloudBoxHaState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SwitchCloudBoxHaStateOutcomeCallable SmartagClient::switchCloudBoxHaStateCallable(const SwitchCloudBoxHaStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchCloudBoxHaState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::SwitchSAGHaStateOutcome SmartagClient::switchSAGHaState(const SwitchSAGHaStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchSAGHaStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchSAGHaStateOutcome(SwitchSAGHaStateResult(outcome.result())); - else - return SwitchSAGHaStateOutcome(outcome.error()); -} - -void SmartagClient::switchSAGHaStateAsync(const SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchSAGHaState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SwitchSAGHaStateOutcomeCallable SmartagClient::switchSAGHaStateCallable(const SwitchSAGHaStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchSAGHaState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::SynchronizeSmartAGWebConfigOutcome SmartagClient::synchronizeSmartAGWebConfig(const SynchronizeSmartAGWebConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6207,6 +6855,150 @@ SmartagClient::UnlockSmartAccessGatewayOutcomeCallable SmartagClient::unlockSmar return task->get_future(); } +SmartagClient::UpdateEnterpriseCodeOutcome SmartagClient::updateEnterpriseCode(const UpdateEnterpriseCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEnterpriseCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEnterpriseCodeOutcome(UpdateEnterpriseCodeResult(outcome.result())); + else + return UpdateEnterpriseCodeOutcome(outcome.error()); +} + +void SmartagClient::updateEnterpriseCodeAsync(const UpdateEnterpriseCodeRequest& request, const UpdateEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEnterpriseCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateEnterpriseCodeOutcomeCallable SmartagClient::updateEnterpriseCodeCallable(const UpdateEnterpriseCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEnterpriseCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpdateSmartAGAccessPointOutcome SmartagClient::updateSmartAGAccessPoint(const UpdateSmartAGAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmartAGAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmartAGAccessPointOutcome(UpdateSmartAGAccessPointResult(outcome.result())); + else + return UpdateSmartAGAccessPointOutcome(outcome.error()); +} + +void SmartagClient::updateSmartAGAccessPointAsync(const UpdateSmartAGAccessPointRequest& request, const UpdateSmartAGAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmartAGAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateSmartAGAccessPointOutcomeCallable SmartagClient::updateSmartAGAccessPointCallable(const UpdateSmartAGAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmartAGAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpdateSmartAGDpiAttributeOutcome SmartagClient::updateSmartAGDpiAttribute(const UpdateSmartAGDpiAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmartAGDpiAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmartAGDpiAttributeOutcome(UpdateSmartAGDpiAttributeResult(outcome.result())); + else + return UpdateSmartAGDpiAttributeOutcome(outcome.error()); +} + +void SmartagClient::updateSmartAGDpiAttributeAsync(const UpdateSmartAGDpiAttributeRequest& request, const UpdateSmartAGDpiAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmartAGDpiAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateSmartAGDpiAttributeOutcomeCallable SmartagClient::updateSmartAGDpiAttributeCallable(const UpdateSmartAGDpiAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmartAGDpiAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpdateSmartAGEnterpriseCodeOutcome SmartagClient::updateSmartAGEnterpriseCode(const UpdateSmartAGEnterpriseCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmartAGEnterpriseCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmartAGEnterpriseCodeOutcome(UpdateSmartAGEnterpriseCodeResult(outcome.result())); + else + return UpdateSmartAGEnterpriseCodeOutcome(outcome.error()); +} + +void SmartagClient::updateSmartAGEnterpriseCodeAsync(const UpdateSmartAGEnterpriseCodeRequest& request, const UpdateSmartAGEnterpriseCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmartAGEnterpriseCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateSmartAGEnterpriseCodeOutcomeCallable SmartagClient::updateSmartAGEnterpriseCodeCallable(const UpdateSmartAGEnterpriseCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmartAGEnterpriseCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SmartagClient::UpdateSmartAccessGatewayVersionOutcome SmartagClient::updateSmartAccessGatewayVersion(const UpdateSmartAccessGatewayVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/smartag/src/model/AddACLRuleRequest.cc b/smartag/src/model/AddACLRuleRequest.cc index 6f3f09d0f..93692383e 100644 --- a/smartag/src/model/AddACLRuleRequest.cc +++ b/smartag/src/model/AddACLRuleRequest.cc @@ -27,6 +27,19 @@ AddACLRuleRequest::AddACLRuleRequest() : AddACLRuleRequest::~AddACLRuleRequest() {} +std::vector AddACLRuleRequest::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + +void AddACLRuleRequest::setDpiGroupIds(const std::vector& dpiGroupIds) +{ + dpiGroupIds_ = dpiGroupIds; + for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { + setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); + } +} + long AddACLRuleRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -93,6 +106,19 @@ void AddACLRuleRequest::setDestCidr(const std::string& destCidr) setParameter("DestCidr", destCidr); } +std::vector AddACLRuleRequest::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +void AddACLRuleRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) +{ + dpiSignatureIds_ = dpiSignatureIds; + for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { + setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); + } +} + std::string AddACLRuleRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/AddACLRuleResult.cc b/smartag/src/model/AddACLRuleResult.cc index dc2c8a364..fa5fbeebc 100644 --- a/smartag/src/model/AddACLRuleResult.cc +++ b/smartag/src/model/AddACLRuleResult.cc @@ -39,34 +39,40 @@ void AddACLRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AcrId"].isNull()) - acrId_ = value["AcrId"].asString(); - if(!value["AclId"].isNull()) - aclId_ = value["AclId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["Direction"].isNull()) - direction_ = value["Direction"].asString(); - if(!value["SourceCidr"].isNull()) - sourceCidr_ = value["SourceCidr"].asString(); - if(!value["DestCidr"].isNull()) - destCidr_ = value["DestCidr"].asString(); - if(!value["IpProtocol"].isNull()) - ipProtocol_ = value["IpProtocol"].asString(); - if(!value["SourcePortRange"].isNull()) - sourcePortRange_ = value["SourcePortRange"].asString(); - if(!value["DestPortRange"].isNull()) - destPortRange_ = value["DestPortRange"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; + for (const auto &item : allDpiGroupIds) + dpiGroupIds_.push_back(item.asString()); if(!value["Policy"].isNull()) policy_ = value["Policy"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); + if(!value["SourceCidr"].isNull()) + sourceCidr_ = value["SourceCidr"].asString(); if(!value["Priority"].isNull()) priority_ = std::stoi(value["Priority"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AcrId"].isNull()) + acrId_ = value["AcrId"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); + if(!value["Direction"].isNull()) + direction_ = value["Direction"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["GmtCreate"].isNull()) gmtCreate_ = std::stol(value["GmtCreate"].asString()); if(!value["Type"].isNull()) type_ = value["Type"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); + if(!value["DestCidr"].isNull()) + destCidr_ = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); } @@ -110,6 +116,11 @@ std::string AddACLRuleResult::getDestPortRange()const return destPortRange_; } +std::vector AddACLRuleResult::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + std::string AddACLRuleResult::getDirection()const { return direction_; @@ -135,6 +146,11 @@ std::string AddACLRuleResult::getDestCidr()const return destCidr_; } +std::vector AddACLRuleResult::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + std::string AddACLRuleResult::getIpProtocol()const { return ipProtocol_; diff --git a/smartag/src/model/ClearSagCipherRequest.cc b/smartag/src/model/ClearSagCipherRequest.cc new file mode 100644 index 000000000..c79af5bf0 --- /dev/null +++ b/smartag/src/model/ClearSagCipherRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ClearSagCipherRequest; + +ClearSagCipherRequest::ClearSagCipherRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ClearSagCipher") +{ + setMethod(HttpRequest::Method::Post); +} + +ClearSagCipherRequest::~ClearSagCipherRequest() +{} + +long ClearSagCipherRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ClearSagCipherRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ClearSagCipherRequest::getSnNumber()const +{ + return snNumber_; +} + +void ClearSagCipherRequest::setSnNumber(const std::string& snNumber) +{ + snNumber_ = snNumber; + setParameter("SnNumber", snNumber); +} + +std::string ClearSagCipherRequest::getRegionId()const +{ + return regionId_; +} + +void ClearSagCipherRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ClearSagCipherRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ClearSagCipherRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ClearSagCipherRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ClearSagCipherRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ClearSagCipherRequest::getOwnerId()const +{ + return ownerId_; +} + +void ClearSagCipherRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ClearSagCipherRequest::getSagId()const +{ + return sagId_; +} + +void ClearSagCipherRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setParameter("SagId", sagId); +} + diff --git a/smartag/src/model/SwitchSAGHaStateResult.cc b/smartag/src/model/ClearSagCipherResult.cc similarity index 62% rename from smartag/src/model/SwitchSAGHaStateResult.cc rename to smartag/src/model/ClearSagCipherResult.cc index 1856d6845..f28903b49 100644 --- a/smartag/src/model/SwitchSAGHaStateResult.cc +++ b/smartag/src/model/ClearSagCipherResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -SwitchSAGHaStateResult::SwitchSAGHaStateResult() : +ClearSagCipherResult::ClearSagCipherResult() : ServiceResult() {} -SwitchSAGHaStateResult::SwitchSAGHaStateResult(const std::string &payload) : +ClearSagCipherResult::ClearSagCipherResult(const std::string &payload) : ServiceResult() { parse(payload); } -SwitchSAGHaStateResult::~SwitchSAGHaStateResult() +ClearSagCipherResult::~ClearSagCipherResult() {} -void SwitchSAGHaStateResult::parse(const std::string &payload) +void ClearSagCipherResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); } diff --git a/smartag/src/model/CreateCloudConnectNetworkResult.cc b/smartag/src/model/CreateCloudConnectNetworkResult.cc index 94722257a..522ce6c10 100644 --- a/smartag/src/model/CreateCloudConnectNetworkResult.cc +++ b/smartag/src/model/CreateCloudConnectNetworkResult.cc @@ -39,18 +39,18 @@ void CreateCloudConnectNetworkResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CcnId"].isNull()) - ccnId_ = value["CcnId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["SnatCidrBlock"].isNull()) - snatCidrBlock_ = value["SnatCidrBlock"].asString(); + if(!value["CcnId"].isNull()) + ccnId_ = value["CcnId"].asString(); if(!value["CidrBlock"].isNull()) cidrBlock_ = value["CidrBlock"].asString(); + if(!value["SnatCidrBlock"].isNull()) + snatCidrBlock_ = value["SnatCidrBlock"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } diff --git a/smartag/src/model/CreateDedicatedLineBackupRequest.cc b/smartag/src/model/CreateDedicatedLineBackupRequest.cc deleted file mode 100644 index 7ed1e7af0..000000000 --- a/smartag/src/model/CreateDedicatedLineBackupRequest.cc +++ /dev/null @@ -1,115 +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::Smartag::Model::CreateDedicatedLineBackupRequest; - -CreateDedicatedLineBackupRequest::CreateDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateDedicatedLineBackup") -{} - -CreateDedicatedLineBackupRequest::~CreateDedicatedLineBackupRequest() -{} - -long CreateDedicatedLineBackupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateDedicatedLineBackupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CreateDedicatedLineBackupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateDedicatedLineBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string CreateDedicatedLineBackupRequest::getRegionId()const -{ - return regionId_; -} - -void CreateDedicatedLineBackupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string CreateDedicatedLineBackupRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void CreateDedicatedLineBackupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string CreateDedicatedLineBackupRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void CreateDedicatedLineBackupRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long CreateDedicatedLineBackupRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateDedicatedLineBackupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateDedicatedLineBackupRequest::getVbrId()const -{ - return vbrId_; -} - -void CreateDedicatedLineBackupRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setCoreParameter("VbrId", vbrId); -} - -std::string CreateDedicatedLineBackupRequest::getVbrRegionId()const -{ - return vbrRegionId_; -} - -void CreateDedicatedLineBackupRequest::setVbrRegionId(const std::string& vbrRegionId) -{ - vbrRegionId_ = vbrRegionId; - setCoreParameter("VbrRegionId", vbrRegionId); -} - diff --git a/smartag/src/model/CreateEnterpriseCodeRequest.cc b/smartag/src/model/CreateEnterpriseCodeRequest.cc new file mode 100644 index 000000000..7d009b6db --- /dev/null +++ b/smartag/src/model/CreateEnterpriseCodeRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateEnterpriseCodeRequest; + +CreateEnterpriseCodeRequest::CreateEnterpriseCodeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateEnterpriseCode") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateEnterpriseCodeRequest::~CreateEnterpriseCodeRequest() +{} + +std::string CreateEnterpriseCodeRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateEnterpriseCodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateEnterpriseCodeRequest::getRegionId()const +{ + return regionId_; +} + +void CreateEnterpriseCodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateEnterpriseCodeRequest::getEnterpriseCode()const +{ + return enterpriseCode_; +} + +void CreateEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) +{ + enterpriseCode_ = enterpriseCode; + setParameter("EnterpriseCode", enterpriseCode); +} + +bool CreateEnterpriseCodeRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateEnterpriseCodeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + diff --git a/smartag/src/model/DeleteSAGLinkLevelHaResult.cc b/smartag/src/model/CreateEnterpriseCodeResult.cc similarity index 63% rename from smartag/src/model/DeleteSAGLinkLevelHaResult.cc rename to smartag/src/model/CreateEnterpriseCodeResult.cc index 6c8a46653..653dfdd0c 100644 --- a/smartag/src/model/DeleteSAGLinkLevelHaResult.cc +++ b/smartag/src/model/CreateEnterpriseCodeResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult() : +CreateEnterpriseCodeResult::CreateEnterpriseCodeResult() : ServiceResult() {} -DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult(const std::string &payload) : +CreateEnterpriseCodeResult::CreateEnterpriseCodeResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteSAGLinkLevelHaResult::~DeleteSAGLinkLevelHaResult() +CreateEnterpriseCodeResult::~CreateEnterpriseCodeResult() {} -void DeleteSAGLinkLevelHaResult::parse(const std::string &payload) +void CreateEnterpriseCodeResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); } diff --git a/smartag/src/model/CreateHealthCheckResult.cc b/smartag/src/model/CreateHealthCheckResult.cc index 58e42c96e..9c2f2f262 100644 --- a/smartag/src/model/CreateHealthCheckResult.cc +++ b/smartag/src/model/CreateHealthCheckResult.cc @@ -39,40 +39,40 @@ void CreateHealthCheckResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); - if(!value["DstIpAddr"].isNull()) - dstIpAddr_ = value["DstIpAddr"].asString(); - if(!value["DstPort"].isNull()) - dstPort_ = std::stoi(value["DstPort"].asString()); - if(!value["SrcIpAddr"].isNull()) - srcIpAddr_ = value["SrcIpAddr"].asString(); if(!value["SrcPort"].isNull()) srcPort_ = std::stoi(value["SrcPort"].asString()); - if(!value["ProbeInterval"].isNull()) - probeInterval_ = std::stoi(value["ProbeInterval"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["SrcIpAddr"].isNull()) + srcIpAddr_ = value["SrcIpAddr"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["FailCountThreshold"].isNull()) + failCountThreshold_ = std::stoi(value["FailCountThreshold"].asString()); + if(!value["DstPort"].isNull()) + dstPort_ = std::stoi(value["DstPort"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["ProbeCount"].isNull()) probeCount_ = std::stoi(value["ProbeCount"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); if(!value["ProbeTimeout"].isNull()) probeTimeout_ = std::stoi(value["ProbeTimeout"].asString()); if(!value["RttThreshold"].isNull()) rttThreshold_ = std::stoi(value["RttThreshold"].asString()); + if(!value["ProbeInterval"].isNull()) + probeInterval_ = std::stoi(value["ProbeInterval"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); if(!value["RttFailThreshold"].isNull()) rttFailThreshold_ = std::stoi(value["RttFailThreshold"].asString()); - if(!value["FailCountThreshold"].isNull()) - failCountThreshold_ = std::stoi(value["FailCountThreshold"].asString()); + if(!value["DstIpAddr"].isNull()) + dstIpAddr_ = value["DstIpAddr"].asString(); } @@ -136,16 +136,16 @@ int CreateHealthCheckResult::getRttThreshold()const return rttThreshold_; } -std::string CreateHealthCheckResult::getRegionId()const -{ - return regionId_; -} - int CreateHealthCheckResult::getProbeInterval()const { return probeInterval_; } +std::string CreateHealthCheckResult::getRegionId()const +{ + return regionId_; +} + std::string CreateHealthCheckResult::getSmartAGId()const { return smartAGId_; diff --git a/smartag/src/model/CreateNetworkOptimizationResult.cc b/smartag/src/model/CreateNetworkOptimizationResult.cc index 4b8ea71bd..cfcff9e2e 100644 --- a/smartag/src/model/CreateNetworkOptimizationResult.cc +++ b/smartag/src/model/CreateNetworkOptimizationResult.cc @@ -39,12 +39,12 @@ void CreateNetworkOptimizationResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["NetworkOptId"].isNull()) - networkOptId_ = value["NetworkOptId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["NetworkOptId"].isNull()) + networkOptId_ = value["NetworkOptId"].asString(); } @@ -53,13 +53,13 @@ std::string CreateNetworkOptimizationResult::getState()const return state_; } -std::string CreateNetworkOptimizationResult::getNetworkOptId()const -{ - return networkOptId_; -} - std::string CreateNetworkOptimizationResult::getName()const { return name_; } +std::string CreateNetworkOptimizationResult::getNetworkOptId()const +{ + return networkOptId_; +} + diff --git a/smartag/src/model/CreateQosCarResult.cc b/smartag/src/model/CreateQosCarResult.cc index 95711a6ac..747daef6c 100644 --- a/smartag/src/model/CreateQosCarResult.cc +++ b/smartag/src/model/CreateQosCarResult.cc @@ -39,26 +39,26 @@ void CreateQosCarResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["QosId"].isNull()) - qosId_ = value["QosId"].asString(); - if(!value["QosCarId"].isNull()) - qosCarId_ = value["QosCarId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["Priority"].isNull()) - priority_ = std::stoi(value["Priority"].asString()); - if(!value["LimitType"].isNull()) - limitType_ = value["LimitType"].asString(); if(!value["MinBandwidthAbs"].isNull()) minBandwidthAbs_ = std::stoi(value["MinBandwidthAbs"].asString()); - if(!value["MaxBandwidthAbs"].isNull()) - maxBandwidthAbs_ = std::stoi(value["MaxBandwidthAbs"].asString()); - if(!value["MinBandwidthPercent"].isNull()) - minBandwidthPercent_ = std::stoi(value["MinBandwidthPercent"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["QosCarId"].isNull()) + qosCarId_ = value["QosCarId"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); if(!value["MaxBandwidthPercent"].isNull()) maxBandwidthPercent_ = std::stoi(value["MaxBandwidthPercent"].asString()); + if(!value["MaxBandwidthAbs"].isNull()) + maxBandwidthAbs_ = std::stoi(value["MaxBandwidthAbs"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); if(!value["PercentSourceType"].isNull()) percentSourceType_ = value["PercentSourceType"].asString(); + if(!value["MinBandwidthPercent"].isNull()) + minBandwidthPercent_ = std::stoi(value["MinBandwidthPercent"].asString()); + if(!value["LimitType"].isNull()) + limitType_ = value["LimitType"].asString(); } @@ -82,16 +82,16 @@ int CreateQosCarResult::getPriority()const return priority_; } -int CreateQosCarResult::getMaxBandwidthAbs()const -{ - return maxBandwidthAbs_; -} - int CreateQosCarResult::getMaxBandwidthPercent()const { return maxBandwidthPercent_; } +int CreateQosCarResult::getMaxBandwidthAbs()const +{ + return maxBandwidthAbs_; +} + std::string CreateQosCarResult::getQosId()const { return qosId_; diff --git a/smartag/src/model/CreateQosPolicyRequest.cc b/smartag/src/model/CreateQosPolicyRequest.cc index cc4b8fbf6..97de729f6 100644 --- a/smartag/src/model/CreateQosPolicyRequest.cc +++ b/smartag/src/model/CreateQosPolicyRequest.cc @@ -27,6 +27,19 @@ CreateQosPolicyRequest::CreateQosPolicyRequest() : CreateQosPolicyRequest::~CreateQosPolicyRequest() {} +std::vector CreateQosPolicyRequest::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + +void CreateQosPolicyRequest::setDpiGroupIds(const std::vector& dpiGroupIds) +{ + dpiGroupIds_ = dpiGroupIds; + for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { + setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); + } +} + long CreateQosPolicyRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -93,6 +106,19 @@ void CreateQosPolicyRequest::setDestCidr(const std::string& destCidr) setParameter("DestCidr", destCidr); } +std::vector CreateQosPolicyRequest::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +void CreateQosPolicyRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) +{ + dpiSignatureIds_ = dpiSignatureIds; + for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { + setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); + } +} + std::string CreateQosPolicyRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/CreateQosPolicyResult.cc b/smartag/src/model/CreateQosPolicyResult.cc index c25b52a05..8a67e0615 100644 --- a/smartag/src/model/CreateQosPolicyResult.cc +++ b/smartag/src/model/CreateQosPolicyResult.cc @@ -39,28 +39,34 @@ void CreateQosPolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["QosId"].isNull()) - qosId_ = value["QosId"].asString(); - if(!value["QosPolicyId"].isNull()) - qosPolicyId_ = value["QosPolicyId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["Priority"].isNull()) - priority_ = std::stoi(value["Priority"].asString()); - if(!value["SourceCidr"].isNull()) - sourceCidr_ = value["SourceCidr"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; + for (const auto &item : allDpiGroupIds) + dpiGroupIds_.push_back(item.asString()); if(!value["DestCidr"].isNull()) destCidr_ = value["DestCidr"].asString(); - if(!value["IpProtocol"].isNull()) - ipProtocol_ = value["IpProtocol"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["SourcePortRange"].isNull()) sourcePortRange_ = value["SourcePortRange"].asString(); - if(!value["DestPortRange"].isNull()) - destPortRange_ = value["DestPortRange"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); + if(!value["QosPolicyId"].isNull()) + qosPolicyId_ = value["QosPolicyId"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); + if(!value["SourceCidr"].isNull()) + sourceCidr_ = value["SourceCidr"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); @@ -71,9 +77,9 @@ std::string CreateQosPolicyResult::getDescription()const return description_; } -std::string CreateQosPolicyResult::getDestCidr()const +std::string CreateQosPolicyResult::getSourcePortRange()const { - return destCidr_; + return sourcePortRange_; } std::string CreateQosPolicyResult::getQosPolicyId()const @@ -81,11 +87,6 @@ std::string CreateQosPolicyResult::getQosPolicyId()const return qosPolicyId_; } -std::string CreateQosPolicyResult::getSourcePortRange()const -{ - return sourcePortRange_; -} - std::string CreateQosPolicyResult::getEndTime()const { return endTime_; @@ -106,23 +107,38 @@ std::string CreateQosPolicyResult::getStartTime()const return startTime_; } -std::string CreateQosPolicyResult::getQosId()const -{ - return qosId_; -} - -std::string CreateQosPolicyResult::getIpProtocol()const -{ - return ipProtocol_; -} - std::string CreateQosPolicyResult::getDestPortRange()const { return destPortRange_; } +std::vector CreateQosPolicyResult::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + std::string CreateQosPolicyResult::getName()const { return name_; } +std::string CreateQosPolicyResult::getDestCidr()const +{ + return destCidr_; +} + +std::vector CreateQosPolicyResult::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +std::string CreateQosPolicyResult::getIpProtocol()const +{ + return ipProtocol_; +} + +std::string CreateQosPolicyResult::getQosId()const +{ + return qosId_; +} + diff --git a/smartag/src/model/CreateSAGLinkLevelHaRequest.cc b/smartag/src/model/CreateSAGLinkLevelHaRequest.cc deleted file mode 100644 index 96eb55bf4..000000000 --- a/smartag/src/model/CreateSAGLinkLevelHaRequest.cc +++ /dev/null @@ -1,137 +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::Smartag::Model::CreateSAGLinkLevelHaRequest; - -CreateSAGLinkLevelHaRequest::CreateSAGLinkLevelHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSAGLinkLevelHa") -{} - -CreateSAGLinkLevelHaRequest::~CreateSAGLinkLevelHaRequest() -{} - -long CreateSAGLinkLevelHaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateSAGLinkLevelHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CreateSAGLinkLevelHaRequest::getBackupLinkId()const -{ - return backupLinkId_; -} - -void CreateSAGLinkLevelHaRequest::setBackupLinkId(const std::string& backupLinkId) -{ - backupLinkId_ = backupLinkId; - setCoreParameter("BackupLinkId", backupLinkId); -} - -std::string CreateSAGLinkLevelHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateSAGLinkLevelHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string CreateSAGLinkLevelHaRequest::getHaType()const -{ - return haType_; -} - -void CreateSAGLinkLevelHaRequest::setHaType(const std::string& haType) -{ - haType_ = haType; - setCoreParameter("HaType", haType); -} - -std::string CreateSAGLinkLevelHaRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void CreateSAGLinkLevelHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string CreateSAGLinkLevelHaRequest::getMainLinkRegionId()const -{ - return mainLinkRegionId_; -} - -void CreateSAGLinkLevelHaRequest::setMainLinkRegionId(const std::string& mainLinkRegionId) -{ - mainLinkRegionId_ = mainLinkRegionId; - setCoreParameter("MainLinkRegionId", mainLinkRegionId); -} - -std::string CreateSAGLinkLevelHaRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void CreateSAGLinkLevelHaRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long CreateSAGLinkLevelHaRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateSAGLinkLevelHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateSAGLinkLevelHaRequest::getMainLinkId()const -{ - return mainLinkId_; -} - -void CreateSAGLinkLevelHaRequest::setMainLinkId(const std::string& mainLinkId) -{ - mainLinkId_ = mainLinkId; - setCoreParameter("MainLinkId", mainLinkId); -} - -std::string CreateSAGLinkLevelHaRequest::getBackupLinkRegionId()const -{ - return backupLinkRegionId_; -} - -void CreateSAGLinkLevelHaRequest::setBackupLinkRegionId(const std::string& backupLinkRegionId) -{ - backupLinkRegionId_ = backupLinkRegionId; - setCoreParameter("BackupLinkRegionId", backupLinkRegionId); -} - diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc index e422fd824..530f94499 100644 --- a/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc @@ -39,14 +39,14 @@ void CreateSmartAccessGatewayClientUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ClientIp"].isNull()) - clientIp_ = value["ClientIp"].asString(); - if(!value["UserMail"].isNull()) - userMail_ = value["UserMail"].asString(); if(!value["UserName"].isNull()) userName_ = value["UserName"].asString(); + if(!value["UserMail"].isNull()) + userMail_ = value["UserMail"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["ClientIp"].isNull()) + clientIp_ = value["ClientIp"].asString(); } diff --git a/smartag/src/model/CreateSmartAccessGatewayRequest.cc b/smartag/src/model/CreateSmartAccessGatewayRequest.cc index 32143e682..64f7f8b32 100644 --- a/smartag/src/model/CreateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayRequest.cc @@ -27,17 +27,6 @@ CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() {} -int CreateSmartAccessGatewayRequest::getMaxBandWidth()const -{ - return maxBandWidth_; -} - -void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth) -{ - maxBandWidth_ = maxBandWidth; - setParameter("MaxBandWidth", std::to_string(maxBandWidth)); -} - long CreateSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -49,17 +38,6 @@ void CreateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string CreateSmartAccessGatewayRequest::getDescription()const -{ - return description_; -} - -void CreateSmartAccessGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - std::string CreateSmartAccessGatewayRequest::getReceiverTown()const { return receiverTown_; @@ -82,6 +60,116 @@ void CreateSmartAccessGatewayRequest::setReceiverDistrict(const std::string& rec setParameter("ReceiverDistrict", receiverDistrict); } +std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const +{ + return buyerMessage_; +} + +void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string& buyerMessage) +{ + buyerMessage_ = buyerMessage; + setParameter("BuyerMessage", buyerMessage); +} + +std::string CreateSmartAccessGatewayRequest::getReceiverState()const +{ + return receiverState_; +} + +void CreateSmartAccessGatewayRequest::setReceiverState(const std::string& receiverState) +{ + receiverState_ = receiverState; + setParameter("ReceiverState", receiverState); +} + +int CreateSmartAccessGatewayRequest::getPeriod()const +{ + return period_; +} + +void CreateSmartAccessGatewayRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +long CreateSmartAccessGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const +{ + return receiverPhone_; +} + +void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string& receiverPhone) +{ + receiverPhone_ = receiverPhone; + setParameter("ReceiverPhone", receiverPhone); +} + +std::string CreateSmartAccessGatewayRequest::getHaType()const +{ + return haType_; +} + +void CreateSmartAccessGatewayRequest::setHaType(const std::string& haType) +{ + haType_ = haType; + setParameter("HaType", haType); +} + +std::string CreateSmartAccessGatewayRequest::getName()const +{ + return name_; +} + +void CreateSmartAccessGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const +{ + return receiverCountry_; +} + +void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string& receiverCountry) +{ + receiverCountry_ = receiverCountry; + setParameter("ReceiverCountry", receiverCountry); +} + +int CreateSmartAccessGatewayRequest::getMaxBandWidth()const +{ + return maxBandWidth_; +} + +void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth) +{ + maxBandWidth_ = maxBandWidth; + setParameter("MaxBandWidth", std::to_string(maxBandWidth)); +} + +std::string CreateSmartAccessGatewayRequest::getDescription()const +{ + return description_; +} + +void CreateSmartAccessGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + std::string CreateSmartAccessGatewayRequest::getRegionId()const { return regionId_; @@ -126,17 +214,6 @@ void CreateSmartAccessGatewayRequest::setInstanceType(const std::string& instanc setParameter("InstanceType", instanceType); } -std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const -{ - return buyerMessage_; -} - -void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string& buyerMessage) -{ - buyerMessage_ = buyerMessage; - setParameter("BuyerMessage", buyerMessage); -} - std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const { return hardWareSpec_; @@ -159,17 +236,6 @@ void CreateSmartAccessGatewayRequest::setReceiverEmail(const std::string& receiv setParameter("ReceiverEmail", receiverEmail); } -std::string CreateSmartAccessGatewayRequest::getReceiverState()const -{ - return receiverState_; -} - -void CreateSmartAccessGatewayRequest::setReceiverState(const std::string& receiverState) -{ - receiverState_ = receiverState; - setParameter("ReceiverState", receiverState); -} - std::string CreateSmartAccessGatewayRequest::getReceiverCity()const { return receiverCity_; @@ -181,17 +247,6 @@ void CreateSmartAccessGatewayRequest::setReceiverCity(const std::string& receive setParameter("ReceiverCity", receiverCity); } -int CreateSmartAccessGatewayRequest::getPeriod()const -{ - return period_; -} - -void CreateSmartAccessGatewayRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); -} - bool CreateSmartAccessGatewayRequest::getAutoPay()const { return autoPay_; @@ -203,6 +258,17 @@ void CreateSmartAccessGatewayRequest::setAutoPay(bool autoPay) setParameter("AutoPay", autoPay ? "true" : "false"); } +std::string CreateSmartAccessGatewayRequest::getCPEVersion()const +{ + return cPEVersion_; +} + +void CreateSmartAccessGatewayRequest::setCPEVersion(const std::string& cPEVersion) +{ + cPEVersion_ = cPEVersion; + setParameter("CPEVersion", cPEVersion); +} + std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const { return receiverMobile_; @@ -236,28 +302,6 @@ void CreateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAc setParameter("OwnerAccount", ownerAccount); } -long CreateSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const -{ - return receiverPhone_; -} - -void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string& receiverPhone) -{ - receiverPhone_ = receiverPhone; - setParameter("ReceiverPhone", receiverPhone); -} - std::string CreateSmartAccessGatewayRequest::getReceiverName()const { return receiverName_; @@ -269,28 +313,6 @@ void CreateSmartAccessGatewayRequest::setReceiverName(const std::string& receive setParameter("ReceiverName", receiverName); } -std::string CreateSmartAccessGatewayRequest::getHaType()const -{ - return haType_; -} - -void CreateSmartAccessGatewayRequest::setHaType(const std::string& haType) -{ - haType_ = haType; - setParameter("HaType", haType); -} - -std::string CreateSmartAccessGatewayRequest::getName()const -{ - return name_; -} - -void CreateSmartAccessGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - bool CreateSmartAccessGatewayRequest::getAlreadyHaveSag()const { return alreadyHaveSag_; @@ -302,17 +324,6 @@ void CreateSmartAccessGatewayRequest::setAlreadyHaveSag(bool alreadyHaveSag) setParameter("AlreadyHaveSag", alreadyHaveSag ? "true" : "false"); } -std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const -{ - return receiverCountry_; -} - -void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string& receiverCountry) -{ - receiverCountry_ = receiverCountry; - setParameter("ReceiverCountry", receiverCountry); -} - std::string CreateSmartAccessGatewayRequest::getChargeType()const { return chargeType_; diff --git a/smartag/src/model/CreateSmartAccessGatewayResult.cc b/smartag/src/model/CreateSmartAccessGatewayResult.cc index 46d2da730..36bf4f662 100644 --- a/smartag/src/model/CreateSmartAccessGatewayResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayResult.cc @@ -39,14 +39,14 @@ void CreateSmartAccessGatewayResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = value["OrderId"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } diff --git a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc b/smartag/src/model/DeleteDedicatedLineBackupRequest.cc deleted file mode 100644 index bb8ce5251..000000000 --- a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc +++ /dev/null @@ -1,93 +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::Smartag::Model::DeleteDedicatedLineBackupRequest; - -DeleteDedicatedLineBackupRequest::DeleteDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteDedicatedLineBackup") -{} - -DeleteDedicatedLineBackupRequest::~DeleteDedicatedLineBackupRequest() -{} - -long DeleteDedicatedLineBackupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteDedicatedLineBackupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteDedicatedLineBackupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteDedicatedLineBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteDedicatedLineBackupRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteDedicatedLineBackupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DeleteDedicatedLineBackupRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteDedicatedLineBackupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string DeleteDedicatedLineBackupRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DeleteDedicatedLineBackupRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long DeleteDedicatedLineBackupRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteDedicatedLineBackupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DeleteEnterpriseCodeRequest.cc b/smartag/src/model/DeleteEnterpriseCodeRequest.cc new file mode 100644 index 000000000..462a4be53 --- /dev/null +++ b/smartag/src/model/DeleteEnterpriseCodeRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteEnterpriseCodeRequest; + +DeleteEnterpriseCodeRequest::DeleteEnterpriseCodeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteEnterpriseCode") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteEnterpriseCodeRequest::~DeleteEnterpriseCodeRequest() +{} + +std::string DeleteEnterpriseCodeRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteEnterpriseCodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteEnterpriseCodeRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteEnterpriseCodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteEnterpriseCodeRequest::getEnterpriseCode()const +{ + return enterpriseCode_; +} + +void DeleteEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) +{ + enterpriseCode_ = enterpriseCode; + setParameter("EnterpriseCode", enterpriseCode); +} + +bool DeleteEnterpriseCodeRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteEnterpriseCodeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + diff --git a/smartag/src/model/CreateSAGLinkLevelHaResult.cc b/smartag/src/model/DeleteEnterpriseCodeResult.cc similarity index 63% rename from smartag/src/model/CreateSAGLinkLevelHaResult.cc rename to smartag/src/model/DeleteEnterpriseCodeResult.cc index 08c82fcc7..b6add3003 100644 --- a/smartag/src/model/CreateSAGLinkLevelHaResult.cc +++ b/smartag/src/model/DeleteEnterpriseCodeResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult() : +DeleteEnterpriseCodeResult::DeleteEnterpriseCodeResult() : ServiceResult() {} -CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult(const std::string &payload) : +DeleteEnterpriseCodeResult::DeleteEnterpriseCodeResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateSAGLinkLevelHaResult::~CreateSAGLinkLevelHaResult() +DeleteEnterpriseCodeResult::~DeleteEnterpriseCodeResult() {} -void CreateSAGLinkLevelHaResult::parse(const std::string &payload) +void DeleteEnterpriseCodeResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); } diff --git a/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc b/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc deleted file mode 100644 index e567af3f5..000000000 --- a/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc +++ /dev/null @@ -1,104 +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::Smartag::Model::DeleteSAGLinkLevelHaRequest; - -DeleteSAGLinkLevelHaRequest::DeleteSAGLinkLevelHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSAGLinkLevelHa") -{} - -DeleteSAGLinkLevelHaRequest::~DeleteSAGLinkLevelHaRequest() -{} - -long DeleteSAGLinkLevelHaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteSAGLinkLevelHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteSAGLinkLevelHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteSAGLinkLevelHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteSAGLinkLevelHaRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteSAGLinkLevelHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DeleteSAGLinkLevelHaRequest::getHaType()const -{ - return haType_; -} - -void DeleteSAGLinkLevelHaRequest::setHaType(const std::string& haType) -{ - haType_ = haType; - setCoreParameter("HaType", haType); -} - -std::string DeleteSAGLinkLevelHaRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteSAGLinkLevelHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string DeleteSAGLinkLevelHaRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DeleteSAGLinkLevelHaRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long DeleteSAGLinkLevelHaRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteSAGLinkLevelHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DeleteSmartAccessGatewayRequest.cc b/smartag/src/model/DeleteSmartAccessGatewayRequest.cc index fba7ce01d..28187fa17 100644 --- a/smartag/src/model/DeleteSmartAccessGatewayRequest.cc +++ b/smartag/src/model/DeleteSmartAccessGatewayRequest.cc @@ -27,6 +27,17 @@ DeleteSmartAccessGatewayRequest::DeleteSmartAccessGatewayRequest() : DeleteSmartAccessGatewayRequest::~DeleteSmartAccessGatewayRequest() {} +long DeleteSmartAccessGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + std::string DeleteSmartAccessGatewayRequest::getInstanceId()const { return instanceId_; diff --git a/smartag/src/model/DescribeACLAttributeResult.cc b/smartag/src/model/DescribeACLAttributeResult.cc index f52c55ff9..f50b2b981 100644 --- a/smartag/src/model/DescribeACLAttributeResult.cc +++ b/smartag/src/model/DescribeACLAttributeResult.cc @@ -43,42 +43,48 @@ void DescribeACLAttributeResult::parse(const std::string &payload) for (auto valueAcrsAcr : allAcrsNode) { Acr acrsObject; - if(!valueAcrsAcr["AcrId"].isNull()) - acrsObject.acrId = valueAcrsAcr["AcrId"].asString(); + if(!valueAcrsAcr["Policy"].isNull()) + acrsObject.policy = valueAcrsAcr["Policy"].asString(); if(!valueAcrsAcr["Description"].isNull()) acrsObject.description = valueAcrsAcr["Description"].asString(); - if(!valueAcrsAcr["Direction"].isNull()) - acrsObject.direction = valueAcrsAcr["Direction"].asString(); + if(!valueAcrsAcr["SourcePortRange"].isNull()) + acrsObject.sourcePortRange = valueAcrsAcr["SourcePortRange"].asString(); if(!valueAcrsAcr["SourceCidr"].isNull()) acrsObject.sourceCidr = valueAcrsAcr["SourceCidr"].asString(); + if(!valueAcrsAcr["Priority"].isNull()) + acrsObject.priority = std::stoi(valueAcrsAcr["Priority"].asString()); + if(!valueAcrsAcr["AclId"].isNull()) + acrsObject.aclId = valueAcrsAcr["AclId"].asString(); + if(!valueAcrsAcr["AcrId"].isNull()) + acrsObject.acrId = valueAcrsAcr["AcrId"].asString(); + if(!valueAcrsAcr["DestPortRange"].isNull()) + acrsObject.destPortRange = valueAcrsAcr["DestPortRange"].asString(); + if(!valueAcrsAcr["Direction"].isNull()) + acrsObject.direction = valueAcrsAcr["Direction"].asString(); + if(!valueAcrsAcr["Name"].isNull()) + acrsObject.name = valueAcrsAcr["Name"].asString(); + if(!valueAcrsAcr["GmtCreate"].isNull()) + acrsObject.gmtCreate = std::stol(valueAcrsAcr["GmtCreate"].asString()); + if(!valueAcrsAcr["Type"].isNull()) + acrsObject.type = valueAcrsAcr["Type"].asString(); if(!valueAcrsAcr["DestCidr"].isNull()) acrsObject.destCidr = valueAcrsAcr["DestCidr"].asString(); if(!valueAcrsAcr["IpProtocol"].isNull()) acrsObject.ipProtocol = valueAcrsAcr["IpProtocol"].asString(); - if(!valueAcrsAcr["SourcePortRange"].isNull()) - acrsObject.sourcePortRange = valueAcrsAcr["SourcePortRange"].asString(); - if(!valueAcrsAcr["DestPortRange"].isNull()) - acrsObject.destPortRange = valueAcrsAcr["DestPortRange"].asString(); - if(!valueAcrsAcr["Policy"].isNull()) - acrsObject.policy = valueAcrsAcr["Policy"].asString(); - if(!valueAcrsAcr["Priority"].isNull()) - acrsObject.priority = std::stoi(valueAcrsAcr["Priority"].asString()); - if(!valueAcrsAcr["GmtCreate"].isNull()) - acrsObject.gmtCreate = std::stol(valueAcrsAcr["GmtCreate"].asString()); - if(!valueAcrsAcr["AclId"].isNull()) - acrsObject.aclId = valueAcrsAcr["AclId"].asString(); - if(!valueAcrsAcr["Type"].isNull()) - acrsObject.type = valueAcrsAcr["Type"].asString(); - if(!valueAcrsAcr["Name"].isNull()) - acrsObject.name = valueAcrsAcr["Name"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (auto value : allDpiSignatureIds) + acrsObject.dpiSignatureIds.push_back(value.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; + for (auto value : allDpiGroupIds) + acrsObject.dpiGroupIds.push_back(value.asString()); acrs_.push_back(acrsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeACLsResult.cc b/smartag/src/model/DescribeACLsResult.cc index c1116f93c..a3158e21c 100644 --- a/smartag/src/model/DescribeACLsResult.cc +++ b/smartag/src/model/DescribeACLsResult.cc @@ -43,20 +43,20 @@ void DescribeACLsResult::parse(const std::string &payload) for (auto valueAclsAcl : allAclsNode) { Acl aclsObject; + if(!valueAclsAcl["SagCount"].isNull()) + aclsObject.sagCount = valueAclsAcl["SagCount"].asString(); if(!valueAclsAcl["AclId"].isNull()) aclsObject.aclId = valueAclsAcl["AclId"].asString(); if(!valueAclsAcl["Name"].isNull()) aclsObject.name = valueAclsAcl["Name"].asString(); - if(!valueAclsAcl["SagCount"].isNull()) - aclsObject.sagCount = valueAclsAcl["SagCount"].asString(); acls_.push_back(aclsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc index 07979d372..c063a1966 100644 --- a/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc @@ -43,20 +43,20 @@ void DescribeBindableSmartAccessGatewaysResult::parse(const std::string &payload for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) + smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) - smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeClientUserDNSRequest.cc b/smartag/src/model/DescribeClientUserDNSRequest.cc new file mode 100644 index 000000000..573dd1f2c --- /dev/null +++ b/smartag/src/model/DescribeClientUserDNSRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeClientUserDNSRequest; + +DescribeClientUserDNSRequest::DescribeClientUserDNSRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeClientUserDNS") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClientUserDNSRequest::~DescribeClientUserDNSRequest() +{} + +long DescribeClientUserDNSRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClientUserDNSRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClientUserDNSRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeClientUserDNSRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeClientUserDNSRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeClientUserDNSRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeClientUserDNSRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeClientUserDNSRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClientUserDNSRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeClientUserDNSRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeClientUserDNSRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/SwitchCloudBoxHaStateResult.cc b/smartag/src/model/DescribeClientUserDNSResult.cc similarity index 52% rename from smartag/src/model/SwitchCloudBoxHaStateResult.cc rename to smartag/src/model/DescribeClientUserDNSResult.cc index e7835575c..dca417c78 100644 --- a/smartag/src/model/SwitchCloudBoxHaStateResult.cc +++ b/smartag/src/model/DescribeClientUserDNSResult.cc @@ -14,35 +14,47 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() : +DescribeClientUserDNSResult::DescribeClientUserDNSResult() : ServiceResult() {} -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) : +DescribeClientUserDNSResult::DescribeClientUserDNSResult(const std::string &payload) : ServiceResult() { parse(payload); } -SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult() +DescribeClientUserDNSResult::~DescribeClientUserDNSResult() {} -void SwitchCloudBoxHaStateResult::parse(const std::string &payload) +void DescribeClientUserDNSResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allAppDNS = value["AppDNS"]["AppDNS"]; + for (const auto &item : allAppDNS) + appDNS_.push_back(item.asString()); + auto allRecoveredDNS = value["RecoveredDNS"]["RecoveredDNS"]; + for (const auto &item : allRecoveredDNS) + recoveredDNS_.push_back(item.asString()); } +std::vector DescribeClientUserDNSResult::getAppDNS()const +{ + return appDNS_; +} + +std::vector DescribeClientUserDNSResult::getRecoveredDNS()const +{ + return recoveredDNS_; +} + diff --git a/smartag/src/model/DescribeCloudConnectNetworksResult.cc b/smartag/src/model/DescribeCloudConnectNetworksResult.cc index 9f8f1ea59..32b39cabb 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksResult.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksResult.cc @@ -43,48 +43,48 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) for (auto valueCloudConnectNetworksCloudConnectNetwork : allCloudConnectNetworksNode) { CloudConnectNetwork cloudConnectNetworksObject; - if(!valueCloudConnectNetworksCloudConnectNetwork["CcnId"].isNull()) - cloudConnectNetworksObject.ccnId = valueCloudConnectNetworksCloudConnectNetwork["CcnId"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["Name"].isNull()) - cloudConnectNetworksObject.name = valueCloudConnectNetworksCloudConnectNetwork["Name"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].isNull()) - cloudConnectNetworksObject.associatedCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].isNull()) - cloudConnectNetworksObject.availableCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].isNull()) - cloudConnectNetworksObject.associatedCenId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].isNull()) - cloudConnectNetworksObject.associatedCenOwnerId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["Description"].isNull()) - cloudConnectNetworksObject.description = valueCloudConnectNetworksCloudConnectNetwork["Description"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].isNull()) - cloudConnectNetworksObject.createTime = std::stol(valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].asString()); if(!valueCloudConnectNetworksCloudConnectNetwork["IsDefault"].isNull()) cloudConnectNetworksObject.isDefault = valueCloudConnectNetworksCloudConnectNetwork["IsDefault"].asString() == "true"; - if(!valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].isNull()) - cloudConnectNetworksObject.cidrBlock = valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].isNull()) - cloudConnectNetworksObject.snatCidrBlock = valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["Description"].isNull()) + cloudConnectNetworksObject.description = valueCloudConnectNetworksCloudConnectNetwork["Description"].asString(); if(!valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].isNull()) cloudConnectNetworksObject.interworkingStatus = valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].asString(); - auto allTagsNode = allCloudConnectNetworksNode["Tags"]["Tag"]; - for (auto allCloudConnectNetworksNodeTagsTag : allTagsNode) + if(!valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].isNull()) + cloudConnectNetworksObject.availableCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["CcnId"].isNull()) + cloudConnectNetworksObject.ccnId = valueCloudConnectNetworksCloudConnectNetwork["CcnId"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].isNull()) + cloudConnectNetworksObject.createTime = std::stol(valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].asString()); + if(!valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].isNull()) + cloudConnectNetworksObject.cidrBlock = valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].isNull()) + cloudConnectNetworksObject.associatedCenOwnerId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].isNull()) + cloudConnectNetworksObject.associatedCenId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].isNull()) + cloudConnectNetworksObject.snatCidrBlock = valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].isNull()) + cloudConnectNetworksObject.associatedCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["Name"].isNull()) + cloudConnectNetworksObject.name = valueCloudConnectNetworksCloudConnectNetwork["Name"].asString(); + auto allTagsNode = valueCloudConnectNetworksCloudConnectNetwork["Tags"]["Tag"]; + for (auto valueCloudConnectNetworksCloudConnectNetworkTagsTag : allTagsNode) { CloudConnectNetwork::Tag tagsObject; - if(!allCloudConnectNetworksNodeTagsTag["Key"].isNull()) - tagsObject.key = allCloudConnectNetworksNodeTagsTag["Key"].asString(); - if(!allCloudConnectNetworksNodeTagsTag["Value"].isNull()) - tagsObject.value = allCloudConnectNetworksNodeTagsTag["Value"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].isNull()) + tagsObject.value = valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetworkTagsTag["Key"].isNull()) + tagsObject.key = valueCloudConnectNetworksCloudConnectNetworkTagsTag["Key"].asString(); cloudConnectNetworksObject.tags.push_back(tagsObject); } cloudConnectNetworks_.push_back(cloudConnectNetworksObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc b/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc index 2fd51e791..61a6a14a1 100644 --- a/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc +++ b/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc @@ -93,6 +93,17 @@ void DescribeDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string DescribeDeviceAutoUpgradePolicyRequest::getVersionType()const +{ + return versionType_; +} + +void DescribeDeviceAutoUpgradePolicyRequest::setVersionType(const std::string& versionType) +{ + versionType_ = versionType; + setParameter("VersionType", versionType); +} + std::string DescribeDeviceAutoUpgradePolicyRequest::getSmartAGId()const { return smartAGId_; diff --git a/smartag/src/model/DescribeDeviceAutoUpgradePolicyResult.cc b/smartag/src/model/DescribeDeviceAutoUpgradePolicyResult.cc index 5664746ee..d0d98a921 100644 --- a/smartag/src/model/DescribeDeviceAutoUpgradePolicyResult.cc +++ b/smartag/src/model/DescribeDeviceAutoUpgradePolicyResult.cc @@ -39,18 +39,20 @@ void DescribeDeviceAutoUpgradePolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); - if(!value["SerialNumber"].isNull()) - serialNumber_ = value["SerialNumber"].asString(); if(!value["UpgradeType"].isNull()) upgradeType_ = value["UpgradeType"].asString(); - if(!value["CronExpression"].isNull()) - cronExpression_ = value["CronExpression"].asString(); - if(!value["Duration"].isNull()) - duration_ = value["Duration"].asString(); if(!value["TimeZone"].isNull()) timeZone_ = value["TimeZone"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["Jitter"].isNull()) + jitter_ = value["Jitter"].asString(); + if(!value["Duration"].isNull()) + duration_ = value["Duration"].asString(); + if(!value["CronExpression"].isNull()) + cronExpression_ = value["CronExpression"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); } @@ -69,6 +71,11 @@ std::string DescribeDeviceAutoUpgradePolicyResult::getSerialNumber()const return serialNumber_; } +std::string DescribeDeviceAutoUpgradePolicyResult::getJitter()const +{ + return jitter_; +} + std::string DescribeDeviceAutoUpgradePolicyResult::getDuration()const { return duration_; diff --git a/smartag/src/model/DescribeDnatEntriesResult.cc b/smartag/src/model/DescribeDnatEntriesResult.cc index a71dfd080..cb39632e6 100644 --- a/smartag/src/model/DescribeDnatEntriesResult.cc +++ b/smartag/src/model/DescribeDnatEntriesResult.cc @@ -43,30 +43,30 @@ void DescribeDnatEntriesResult::parse(const std::string &payload) for (auto valueDnatEntriesDnatEntry : allDnatEntriesNode) { DnatEntry dnatEntriesObject; - if(!valueDnatEntriesDnatEntry["DnatEntryId"].isNull()) - dnatEntriesObject.dnatEntryId = valueDnatEntriesDnatEntry["DnatEntryId"].asString(); - if(!valueDnatEntriesDnatEntry["Type"].isNull()) - dnatEntriesObject.type = valueDnatEntriesDnatEntry["Type"].asString(); - if(!valueDnatEntriesDnatEntry["SagId"].isNull()) - dnatEntriesObject.sagId = valueDnatEntriesDnatEntry["SagId"].asString(); - if(!valueDnatEntriesDnatEntry["ExternalIp"].isNull()) - dnatEntriesObject.externalIp = valueDnatEntriesDnatEntry["ExternalIp"].asString(); if(!valueDnatEntriesDnatEntry["ExternalPort"].isNull()) dnatEntriesObject.externalPort = valueDnatEntriesDnatEntry["ExternalPort"].asString(); - if(!valueDnatEntriesDnatEntry["InternalIp"].isNull()) - dnatEntriesObject.internalIp = valueDnatEntriesDnatEntry["InternalIp"].asString(); + if(!valueDnatEntriesDnatEntry["Type"].isNull()) + dnatEntriesObject.type = valueDnatEntriesDnatEntry["Type"].asString(); + if(!valueDnatEntriesDnatEntry["ExternalIp"].isNull()) + dnatEntriesObject.externalIp = valueDnatEntriesDnatEntry["ExternalIp"].asString(); if(!valueDnatEntriesDnatEntry["IpProtocol"].isNull()) dnatEntriesObject.ipProtocol = valueDnatEntriesDnatEntry["IpProtocol"].asString(); if(!valueDnatEntriesDnatEntry["InternalPort"].isNull()) dnatEntriesObject.internalPort = valueDnatEntriesDnatEntry["InternalPort"].asString(); + if(!valueDnatEntriesDnatEntry["SagId"].isNull()) + dnatEntriesObject.sagId = valueDnatEntriesDnatEntry["SagId"].asString(); + if(!valueDnatEntriesDnatEntry["InternalIp"].isNull()) + dnatEntriesObject.internalIp = valueDnatEntriesDnatEntry["InternalIp"].asString(); + if(!valueDnatEntriesDnatEntry["DnatEntryId"].isNull()) + dnatEntriesObject.dnatEntryId = valueDnatEntriesDnatEntry["DnatEntryId"].asString(); dnatEntries_.push_back(dnatEntriesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeFlowLogSagsResult.cc b/smartag/src/model/DescribeFlowLogSagsResult.cc index c7021bdf6..cecb8c80f 100644 --- a/smartag/src/model/DescribeFlowLogSagsResult.cc +++ b/smartag/src/model/DescribeFlowLogSagsResult.cc @@ -43,20 +43,20 @@ void DescribeFlowLogSagsResult::parse(const std::string &payload) for (auto valueSagsSag : allSagsNode) { Sag sagsObject; - if(!valueSagsSag["SmartAGId"].isNull()) - sagsObject.smartAGId = valueSagsSag["SmartAGId"].asString(); if(!valueSagsSag["Description"].isNull()) sagsObject.description = valueSagsSag["Description"].asString(); + if(!valueSagsSag["SmartAGId"].isNull()) + sagsObject.smartAGId = valueSagsSag["SmartAGId"].asString(); if(!valueSagsSag["Name"].isNull()) sagsObject.name = valueSagsSag["Name"].asString(); sags_.push_back(sagsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeFlowLogsResult.cc b/smartag/src/model/DescribeFlowLogsResult.cc index fa5e2a9cf..49ebb8325 100644 --- a/smartag/src/model/DescribeFlowLogsResult.cc +++ b/smartag/src/model/DescribeFlowLogsResult.cc @@ -43,42 +43,42 @@ void DescribeFlowLogsResult::parse(const std::string &payload) for (auto valueFlowLogsFlowLogSetType : allFlowLogsNode) { FlowLogSetType flowLogsObject; - if(!valueFlowLogsFlowLogSetType["FlowLogId"].isNull()) - flowLogsObject.flowLogId = valueFlowLogsFlowLogSetType["FlowLogId"].asString(); + if(!valueFlowLogsFlowLogSetType["NetflowServerPort"].isNull()) + flowLogsObject.netflowServerPort = valueFlowLogsFlowLogSetType["NetflowServerPort"].asString(); + if(!valueFlowLogsFlowLogSetType["Status"].isNull()) + flowLogsObject.status = valueFlowLogsFlowLogSetType["Status"].asString(); + if(!valueFlowLogsFlowLogSetType["LogstoreName"].isNull()) + flowLogsObject.logstoreName = valueFlowLogsFlowLogSetType["LogstoreName"].asString(); if(!valueFlowLogsFlowLogSetType["Description"].isNull()) flowLogsObject.description = valueFlowLogsFlowLogSetType["Description"].asString(); if(!valueFlowLogsFlowLogSetType["ActiveAging"].isNull()) flowLogsObject.activeAging = std::stoi(valueFlowLogsFlowLogSetType["ActiveAging"].asString()); - if(!valueFlowLogsFlowLogSetType["InactiveAging"].isNull()) - flowLogsObject.inactiveAging = std::stoi(valueFlowLogsFlowLogSetType["InactiveAging"].asString()); - if(!valueFlowLogsFlowLogSetType["OutputType"].isNull()) - flowLogsObject.outputType = valueFlowLogsFlowLogSetType["OutputType"].asString(); - if(!valueFlowLogsFlowLogSetType["SlsRegionId"].isNull()) - flowLogsObject.slsRegionId = valueFlowLogsFlowLogSetType["SlsRegionId"].asString(); if(!valueFlowLogsFlowLogSetType["ProjectName"].isNull()) flowLogsObject.projectName = valueFlowLogsFlowLogSetType["ProjectName"].asString(); - if(!valueFlowLogsFlowLogSetType["LogstoreName"].isNull()) - flowLogsObject.logstoreName = valueFlowLogsFlowLogSetType["LogstoreName"].asString(); if(!valueFlowLogsFlowLogSetType["NetflowServerIp"].isNull()) flowLogsObject.netflowServerIp = valueFlowLogsFlowLogSetType["NetflowServerIp"].asString(); - if(!valueFlowLogsFlowLogSetType["NetflowServerPort"].isNull()) - flowLogsObject.netflowServerPort = valueFlowLogsFlowLogSetType["NetflowServerPort"].asString(); if(!valueFlowLogsFlowLogSetType["NetflowVersion"].isNull()) flowLogsObject.netflowVersion = valueFlowLogsFlowLogSetType["NetflowVersion"].asString(); - if(!valueFlowLogsFlowLogSetType["Status"].isNull()) - flowLogsObject.status = valueFlowLogsFlowLogSetType["Status"].asString(); + if(!valueFlowLogsFlowLogSetType["InactiveAging"].isNull()) + flowLogsObject.inactiveAging = std::stoi(valueFlowLogsFlowLogSetType["InactiveAging"].asString()); + if(!valueFlowLogsFlowLogSetType["FlowLogId"].isNull()) + flowLogsObject.flowLogId = valueFlowLogsFlowLogSetType["FlowLogId"].asString(); if(!valueFlowLogsFlowLogSetType["Name"].isNull()) flowLogsObject.name = valueFlowLogsFlowLogSetType["Name"].asString(); if(!valueFlowLogsFlowLogSetType["TotalSagNum"].isNull()) flowLogsObject.totalSagNum = std::stoi(valueFlowLogsFlowLogSetType["TotalSagNum"].asString()); + if(!valueFlowLogsFlowLogSetType["SlsRegionId"].isNull()) + flowLogsObject.slsRegionId = valueFlowLogsFlowLogSetType["SlsRegionId"].asString(); + if(!valueFlowLogsFlowLogSetType["OutputType"].isNull()) + flowLogsObject.outputType = valueFlowLogsFlowLogSetType["OutputType"].asString(); flowLogs_.push_back(flowLogsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeGrantRulesResult.cc b/smartag/src/model/DescribeGrantRulesResult.cc index cc1b5506c..0f43ea756 100644 --- a/smartag/src/model/DescribeGrantRulesResult.cc +++ b/smartag/src/model/DescribeGrantRulesResult.cc @@ -43,30 +43,32 @@ void DescribeGrantRulesResult::parse(const std::string &payload) for (auto valueGrantRulesGrantRule : allGrantRulesNode) { GrantRule grantRulesObject; - if(!valueGrantRulesGrantRule["GrantRuleId"].isNull()) - grantRulesObject.grantRuleId = valueGrantRulesGrantRule["GrantRuleId"].asString(); - if(!valueGrantRulesGrantRule["CenUid"].isNull()) - grantRulesObject.cenUid = std::stol(valueGrantRulesGrantRule["CenUid"].asString()); - if(!valueGrantRulesGrantRule["CcnUid"].isNull()) - grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); - if(!valueGrantRulesGrantRule["CenInstanceId"].isNull()) - grantRulesObject.cenInstanceId = valueGrantRulesGrantRule["CenInstanceId"].asString(); - if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) - grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); if(!valueGrantRulesGrantRule["GmtCreate"].isNull()) grantRulesObject.gmtCreate = std::stol(valueGrantRulesGrantRule["GmtCreate"].asString()); + if(!valueGrantRulesGrantRule["CenUid"].isNull()) + grantRulesObject.cenUid = std::stol(valueGrantRulesGrantRule["CenUid"].asString()); + if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) + grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; + if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); + if(!valueGrantRulesGrantRule["GrantRuleId"].isNull()) + grantRulesObject.grantRuleId = valueGrantRulesGrantRule["GrantRuleId"].asString(); + if(!valueGrantRulesGrantRule["CenInstanceId"].isNull()) + grantRulesObject.cenInstanceId = valueGrantRulesGrantRule["CenInstanceId"].asString(); if(!valueGrantRulesGrantRule["GmtModified"].isNull()) grantRulesObject.gmtModified = std::stol(valueGrantRulesGrantRule["GmtModified"].asString()); + if(!valueGrantRulesGrantRule["CcnUid"].isNull()) + grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); if(!valueGrantRulesGrantRule["RegionId"].isNull()) grantRulesObject.regionId = valueGrantRulesGrantRule["RegionId"].asString(); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeGrantSagRulesResult.cc b/smartag/src/model/DescribeGrantSagRulesResult.cc index 1e0e65485..7f1a065db 100644 --- a/smartag/src/model/DescribeGrantSagRulesResult.cc +++ b/smartag/src/model/DescribeGrantSagRulesResult.cc @@ -45,22 +45,24 @@ void DescribeGrantSagRulesResult::parse(const std::string &payload) GrantRule grantRulesObject; if(!valueGrantRulesGrantRule["InstanceId"].isNull()) grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); - if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) - grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); + if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) + grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; + if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); if(!valueGrantRulesGrantRule["CreateTime"].isNull()) grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); if(!valueGrantRulesGrantRule["CcnUid"].isNull()) grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); - if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) - grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); + if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) + grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeGrantSagVbrRulesResult.cc b/smartag/src/model/DescribeGrantSagVbrRulesResult.cc index 1b14330ef..38e08b625 100644 --- a/smartag/src/model/DescribeGrantSagVbrRulesResult.cc +++ b/smartag/src/model/DescribeGrantSagVbrRulesResult.cc @@ -43,30 +43,30 @@ void DescribeGrantSagVbrRulesResult::parse(const std::string &payload) for (auto valueGrantRulesGrantRule : allGrantRulesNode) { GrantRule grantRulesObject; - if(!valueGrantRulesGrantRule["CreateTime"].isNull()) - grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); - if(!valueGrantRulesGrantRule["InstanceId"].isNull()) - grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); if(!valueGrantRulesGrantRule["VbrUid"].isNull()) grantRulesObject.vbrUid = std::stol(valueGrantRulesGrantRule["VbrUid"].asString()); - if(!valueGrantRulesGrantRule["VbrInstanceId"].isNull()) - grantRulesObject.vbrInstanceId = valueGrantRulesGrantRule["VbrInstanceId"].asString(); - if(!valueGrantRulesGrantRule["VbrRegionId"].isNull()) - grantRulesObject.vbrRegionId = valueGrantRulesGrantRule["VbrRegionId"].asString(); if(!valueGrantRulesGrantRule["SmartAGUid"].isNull()) grantRulesObject.smartAGUid = std::stol(valueGrantRulesGrantRule["SmartAGUid"].asString()); - if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) - grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); + if(!valueGrantRulesGrantRule["VbrInstanceId"].isNull()) + grantRulesObject.vbrInstanceId = valueGrantRulesGrantRule["VbrInstanceId"].asString(); + if(!valueGrantRulesGrantRule["InstanceId"].isNull()) + grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); + if(!valueGrantRulesGrantRule["CreateTime"].isNull()) + grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); if(!valueGrantRulesGrantRule["Bound"].isNull()) grantRulesObject.bound = valueGrantRulesGrantRule["Bound"].asString() == "true"; + if(!valueGrantRulesGrantRule["VbrRegionId"].isNull()) + grantRulesObject.vbrRegionId = valueGrantRulesGrantRule["VbrRegionId"].asString(); + if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) + grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeHealthCheckAttributeResult.cc b/smartag/src/model/DescribeHealthCheckAttributeResult.cc index 80eada9cb..da7878586 100644 --- a/smartag/src/model/DescribeHealthCheckAttributeResult.cc +++ b/smartag/src/model/DescribeHealthCheckAttributeResult.cc @@ -39,38 +39,38 @@ void DescribeHealthCheckAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["HcInstanceId"].isNull()) - hcInstanceId_ = value["HcInstanceId"].asString(); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); - if(!value["DstIpAddr"].isNull()) - dstIpAddr_ = value["DstIpAddr"].asString(); - if(!value["DstPort"].isNull()) - dstPort_ = std::stoi(value["DstPort"].asString()); - if(!value["SrcIpAddr"].isNull()) - srcIpAddr_ = value["SrcIpAddr"].asString(); if(!value["SrcPort"].isNull()) srcPort_ = std::stoi(value["SrcPort"].asString()); - if(!value["ProbeInterval"].isNull()) - probeInterval_ = std::stoi(value["ProbeInterval"].asString()); - if(!value["ProbeCount"].isNull()) - probeCount_ = std::stoi(value["ProbeCount"].asString()); - if(!value["ProbeTimeout"].isNull()) - probeTimeout_ = std::stoi(value["ProbeTimeout"].asString()); - if(!value["RttThreshold"].isNull()) - rttThreshold_ = std::stoi(value["RttThreshold"].asString()); - if(!value["RttFailThreshold"].isNull()) - rttFailThreshold_ = std::stoi(value["RttFailThreshold"].asString()); + if(!value["SrcIpAddr"].isNull()) + srcIpAddr_ = value["SrcIpAddr"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); if(!value["FailCountThreshold"].isNull()) failCountThreshold_ = std::stoi(value["FailCountThreshold"].asString()); + if(!value["DstPort"].isNull()) + dstPort_ = std::stoi(value["DstPort"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["ProbeCount"].isNull()) + probeCount_ = std::stoi(value["ProbeCount"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["ProbeTimeout"].isNull()) + probeTimeout_ = std::stoi(value["ProbeTimeout"].asString()); + if(!value["HcInstanceId"].isNull()) + hcInstanceId_ = value["HcInstanceId"].asString(); + if(!value["RttThreshold"].isNull()) + rttThreshold_ = std::stoi(value["RttThreshold"].asString()); + if(!value["ProbeInterval"].isNull()) + probeInterval_ = std::stoi(value["ProbeInterval"].asString()); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["RttFailThreshold"].isNull()) + rttFailThreshold_ = std::stoi(value["RttFailThreshold"].asString()); + if(!value["DstIpAddr"].isNull()) + dstIpAddr_ = value["DstIpAddr"].asString(); } diff --git a/smartag/src/model/DescribeHealthChecksResult.cc b/smartag/src/model/DescribeHealthChecksResult.cc index ba23ba5c2..dd10d05a9 100644 --- a/smartag/src/model/DescribeHealthChecksResult.cc +++ b/smartag/src/model/DescribeHealthChecksResult.cc @@ -43,48 +43,48 @@ void DescribeHealthChecksResult::parse(const std::string &payload) for (auto valueHealthChecksHealthCheck : allHealthChecksNode) { HealthCheck healthChecksObject; - if(!valueHealthChecksHealthCheck["HcInstanceId"].isNull()) - healthChecksObject.hcInstanceId = valueHealthChecksHealthCheck["HcInstanceId"].asString(); - if(!valueHealthChecksHealthCheck["SmartAGId"].isNull()) - healthChecksObject.smartAGId = valueHealthChecksHealthCheck["SmartAGId"].asString(); - if(!valueHealthChecksHealthCheck["Name"].isNull()) - healthChecksObject.name = valueHealthChecksHealthCheck["Name"].asString(); - if(!valueHealthChecksHealthCheck["Description"].isNull()) - healthChecksObject.description = valueHealthChecksHealthCheck["Description"].asString(); - if(!valueHealthChecksHealthCheck["Type"].isNull()) - healthChecksObject.type = valueHealthChecksHealthCheck["Type"].asString(); - if(!valueHealthChecksHealthCheck["DstIpAddr"].isNull()) - healthChecksObject.dstIpAddr = valueHealthChecksHealthCheck["DstIpAddr"].asString(); - if(!valueHealthChecksHealthCheck["DstPort"].isNull()) - healthChecksObject.dstPort = std::stoi(valueHealthChecksHealthCheck["DstPort"].asString()); - if(!valueHealthChecksHealthCheck["SrcIpAddr"].isNull()) - healthChecksObject.srcIpAddr = valueHealthChecksHealthCheck["SrcIpAddr"].asString(); - if(!valueHealthChecksHealthCheck["SrcPort"].isNull()) - healthChecksObject.srcPort = std::stoi(valueHealthChecksHealthCheck["SrcPort"].asString()); - if(!valueHealthChecksHealthCheck["ProbeInterval"].isNull()) - healthChecksObject.probeInterval = std::stoi(valueHealthChecksHealthCheck["ProbeInterval"].asString()); - if(!valueHealthChecksHealthCheck["ProbeCount"].isNull()) - healthChecksObject.probeCount = std::stoi(valueHealthChecksHealthCheck["ProbeCount"].asString()); - if(!valueHealthChecksHealthCheck["ProbeTimeout"].isNull()) - healthChecksObject.probeTimeout = std::stoi(valueHealthChecksHealthCheck["ProbeTimeout"].asString()); - if(!valueHealthChecksHealthCheck["RttThreshold"].isNull()) - healthChecksObject.rttThreshold = std::stoi(valueHealthChecksHealthCheck["RttThreshold"].asString()); - if(!valueHealthChecksHealthCheck["RttFailThreshold"].isNull()) - healthChecksObject.rttFailThreshold = std::stoi(valueHealthChecksHealthCheck["RttFailThreshold"].asString()); - if(!valueHealthChecksHealthCheck["FailCountThreshold"].isNull()) - healthChecksObject.failCountThreshold = std::stoi(valueHealthChecksHealthCheck["FailCountThreshold"].asString()); - if(!valueHealthChecksHealthCheck["RelationCount"].isNull()) - healthChecksObject.relationCount = std::stoi(valueHealthChecksHealthCheck["RelationCount"].asString()); if(!valueHealthChecksHealthCheck["Status"].isNull()) healthChecksObject.status = valueHealthChecksHealthCheck["Status"].asString(); + if(!valueHealthChecksHealthCheck["Description"].isNull()) + healthChecksObject.description = valueHealthChecksHealthCheck["Description"].asString(); + if(!valueHealthChecksHealthCheck["SrcPort"].isNull()) + healthChecksObject.srcPort = std::stoi(valueHealthChecksHealthCheck["SrcPort"].asString()); + if(!valueHealthChecksHealthCheck["SrcIpAddr"].isNull()) + healthChecksObject.srcIpAddr = valueHealthChecksHealthCheck["SrcIpAddr"].asString(); + if(!valueHealthChecksHealthCheck["FailCountThreshold"].isNull()) + healthChecksObject.failCountThreshold = std::stoi(valueHealthChecksHealthCheck["FailCountThreshold"].asString()); + if(!valueHealthChecksHealthCheck["DstPort"].isNull()) + healthChecksObject.dstPort = std::stoi(valueHealthChecksHealthCheck["DstPort"].asString()); + if(!valueHealthChecksHealthCheck["Name"].isNull()) + healthChecksObject.name = valueHealthChecksHealthCheck["Name"].asString(); + if(!valueHealthChecksHealthCheck["ProbeCount"].isNull()) + healthChecksObject.probeCount = std::stoi(valueHealthChecksHealthCheck["ProbeCount"].asString()); + if(!valueHealthChecksHealthCheck["Type"].isNull()) + healthChecksObject.type = valueHealthChecksHealthCheck["Type"].asString(); + if(!valueHealthChecksHealthCheck["ProbeTimeout"].isNull()) + healthChecksObject.probeTimeout = std::stoi(valueHealthChecksHealthCheck["ProbeTimeout"].asString()); + if(!valueHealthChecksHealthCheck["HcInstanceId"].isNull()) + healthChecksObject.hcInstanceId = valueHealthChecksHealthCheck["HcInstanceId"].asString(); + if(!valueHealthChecksHealthCheck["RttThreshold"].isNull()) + healthChecksObject.rttThreshold = std::stoi(valueHealthChecksHealthCheck["RttThreshold"].asString()); + if(!valueHealthChecksHealthCheck["ProbeInterval"].isNull()) + healthChecksObject.probeInterval = std::stoi(valueHealthChecksHealthCheck["ProbeInterval"].asString()); + if(!valueHealthChecksHealthCheck["RelationCount"].isNull()) + healthChecksObject.relationCount = std::stoi(valueHealthChecksHealthCheck["RelationCount"].asString()); + if(!valueHealthChecksHealthCheck["SmartAGId"].isNull()) + healthChecksObject.smartAGId = valueHealthChecksHealthCheck["SmartAGId"].asString(); + if(!valueHealthChecksHealthCheck["RttFailThreshold"].isNull()) + healthChecksObject.rttFailThreshold = std::stoi(valueHealthChecksHealthCheck["RttFailThreshold"].asString()); + if(!valueHealthChecksHealthCheck["DstIpAddr"].isNull()) + healthChecksObject.dstIpAddr = valueHealthChecksHealthCheck["DstIpAddr"].asString(); healthChecks_.push_back(healthChecksObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc index 4d3abaee7..9eacb7cce 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc @@ -43,26 +43,26 @@ void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].isNull()) - smartAccessGatewaysObject.instanceId = valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) - smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["State"].isNull()) - smartAccessGatewaysObject.state = valueSmartAccessGatewaysSmartAccessGateway["State"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) - smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].isNull()) + smartAccessGatewaysObject.instanceId = valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["State"].isNull()) + smartAccessGatewaysObject.state = valueSmartAccessGatewaysSmartAccessGateway["State"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) + smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) + smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc index b014882db..425422bef 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc @@ -43,18 +43,18 @@ void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload for (auto valueSettingsSetting : allSettingsNode) { Setting settingsObject; - if(!valueSettingsSetting["Domain"].isNull()) - settingsObject.domain = valueSettingsSetting["Domain"].asString(); if(!valueSettingsSetting["Type"].isNull()) settingsObject.type = valueSettingsSetting["Type"].asString(); + if(!valueSettingsSetting["Domain"].isNull()) + settingsObject.domain = valueSettingsSetting["Domain"].asString(); settings_.push_back(settingsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeNetworkOptimizationsResult.cc b/smartag/src/model/DescribeNetworkOptimizationsResult.cc index 9067c9bbf..25c1d494f 100644 --- a/smartag/src/model/DescribeNetworkOptimizationsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationsResult.cc @@ -43,26 +43,26 @@ void DescribeNetworkOptimizationsResult::parse(const std::string &payload) for (auto valueNetworkOptimizationsNetworkOptimization : allNetworkOptimizationsNode) { NetworkOptimization networkOptimizationsObject; - if(!valueNetworkOptimizationsNetworkOptimization["InstanceId"].isNull()) - networkOptimizationsObject.instanceId = valueNetworkOptimizationsNetworkOptimization["InstanceId"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["Name"].isNull()) - networkOptimizationsObject.name = valueNetworkOptimizationsNetworkOptimization["Name"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["State"].isNull()) - networkOptimizationsObject.state = valueNetworkOptimizationsNetworkOptimization["State"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["CreateTime"].isNull()) - networkOptimizationsObject.createTime = std::stol(valueNetworkOptimizationsNetworkOptimization["CreateTime"].asString()); if(!valueNetworkOptimizationsNetworkOptimization["SagCount"].isNull()) networkOptimizationsObject.sagCount = std::stoi(valueNetworkOptimizationsNetworkOptimization["SagCount"].asString()); + if(!valueNetworkOptimizationsNetworkOptimization["InstanceId"].isNull()) + networkOptimizationsObject.instanceId = valueNetworkOptimizationsNetworkOptimization["InstanceId"].asString(); + if(!valueNetworkOptimizationsNetworkOptimization["State"].isNull()) + networkOptimizationsObject.state = valueNetworkOptimizationsNetworkOptimization["State"].asString(); if(!valueNetworkOptimizationsNetworkOptimization["CcnId"].isNull()) networkOptimizationsObject.ccnId = valueNetworkOptimizationsNetworkOptimization["CcnId"].asString(); + if(!valueNetworkOptimizationsNetworkOptimization["CreateTime"].isNull()) + networkOptimizationsObject.createTime = std::stol(valueNetworkOptimizationsNetworkOptimization["CreateTime"].asString()); + if(!valueNetworkOptimizationsNetworkOptimization["Name"].isNull()) + networkOptimizationsObject.name = valueNetworkOptimizationsNetworkOptimization["Name"].asString(); networkOptimizations_.push_back(networkOptimizationsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribePbrInterfacesResult.cc b/smartag/src/model/DescribePbrInterfacesResult.cc index 61981ce48..50d731461 100644 --- a/smartag/src/model/DescribePbrInterfacesResult.cc +++ b/smartag/src/model/DescribePbrInterfacesResult.cc @@ -43,14 +43,14 @@ void DescribePbrInterfacesResult::parse(const std::string &payload) for (auto valuePbrInterfacesPbrInterface : allPbrInterfacesNode) { PbrInterface pbrInterfacesObject; - if(!valuePbrInterfacesPbrInterface["InterfaceName"].isNull()) - pbrInterfacesObject.interfaceName = valuePbrInterfacesPbrInterface["InterfaceName"].asString(); - if(!valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].isNull()) - pbrInterfacesObject.healthCheckInstanceId = valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].asString(); - if(!valuePbrInterfacesPbrInterface["Priority"].isNull()) - pbrInterfacesObject.priority = std::stoi(valuePbrInterfacesPbrInterface["Priority"].asString()); if(!valuePbrInterfacesPbrInterface["Action"].isNull()) pbrInterfacesObject.action = valuePbrInterfacesPbrInterface["Action"].asString(); + if(!valuePbrInterfacesPbrInterface["Priority"].isNull()) + pbrInterfacesObject.priority = std::stoi(valuePbrInterfacesPbrInterface["Priority"].asString()); + if(!valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].isNull()) + pbrInterfacesObject.healthCheckInstanceId = valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].asString(); + if(!valuePbrInterfacesPbrInterface["InterfaceName"].isNull()) + pbrInterfacesObject.interfaceName = valuePbrInterfacesPbrInterface["InterfaceName"].asString(); pbrInterfaces_.push_back(pbrInterfacesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribePbrRulesResult.cc b/smartag/src/model/DescribePbrRulesResult.cc index 7ac9f83f4..6b26caf44 100644 --- a/smartag/src/model/DescribePbrRulesResult.cc +++ b/smartag/src/model/DescribePbrRulesResult.cc @@ -43,30 +43,30 @@ void DescribePbrRulesResult::parse(const std::string &payload) for (auto valuePbrRulesPbrRule : allPbrRulesNode) { PbrRule pbrRulesObject; - if(!valuePbrRulesPbrRule["PbrRuleId"].isNull()) - pbrRulesObject.pbrRuleId = valuePbrRulesPbrRule["PbrRuleId"].asString(); - if(!valuePbrRulesPbrRule["SrcCidr"].isNull()) - pbrRulesObject.srcCidr = valuePbrRulesPbrRule["SrcCidr"].asString(); - if(!valuePbrRulesPbrRule["DstCidr"].isNull()) - pbrRulesObject.dstCidr = valuePbrRulesPbrRule["DstCidr"].asString(); if(!valuePbrRulesPbrRule["SrcPort"].isNull()) pbrRulesObject.srcPort = valuePbrRulesPbrRule["SrcPort"].asString(); - if(!valuePbrRulesPbrRule["DstPort"].isNull()) - pbrRulesObject.dstPort = valuePbrRulesPbrRule["DstPort"].asString(); - if(!valuePbrRulesPbrRule["Protocol"].isNull()) - pbrRulesObject.protocol = valuePbrRulesPbrRule["Protocol"].asString(); - if(!valuePbrRulesPbrRule["Name"].isNull()) - pbrRulesObject.name = valuePbrRulesPbrRule["Name"].asString(); if(!valuePbrRulesPbrRule["Description"].isNull()) pbrRulesObject.description = valuePbrRulesPbrRule["Description"].asString(); + if(!valuePbrRulesPbrRule["SrcCidr"].isNull()) + pbrRulesObject.srcCidr = valuePbrRulesPbrRule["SrcCidr"].asString(); + if(!valuePbrRulesPbrRule["DstPort"].isNull()) + pbrRulesObject.dstPort = valuePbrRulesPbrRule["DstPort"].asString(); + if(!valuePbrRulesPbrRule["PbrRuleId"].isNull()) + pbrRulesObject.pbrRuleId = valuePbrRulesPbrRule["PbrRuleId"].asString(); + if(!valuePbrRulesPbrRule["Protocol"].isNull()) + pbrRulesObject.protocol = valuePbrRulesPbrRule["Protocol"].asString(); + if(!valuePbrRulesPbrRule["DstCidr"].isNull()) + pbrRulesObject.dstCidr = valuePbrRulesPbrRule["DstCidr"].asString(); + if(!valuePbrRulesPbrRule["Name"].isNull()) + pbrRulesObject.name = valuePbrRulesPbrRule["Name"].asString(); pbrRules_.push_back(pbrRulesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribePolicyBasedRoutingsResult.cc b/smartag/src/model/DescribePolicyBasedRoutingsResult.cc index 9cc8596cb..020713429 100644 --- a/smartag/src/model/DescribePolicyBasedRoutingsResult.cc +++ b/smartag/src/model/DescribePolicyBasedRoutingsResult.cc @@ -45,20 +45,20 @@ void DescribePolicyBasedRoutingsResult::parse(const std::string &payload) PolicyBasedRouting policyBasedRoutingsObject; if(!valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].isNull()) policyBasedRoutingsObject.pbrInstanceId = valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].asString(); + if(!valuePolicyBasedRoutingsPolicyBasedRouting["Description"].isNull()) + policyBasedRoutingsObject.description = valuePolicyBasedRoutingsPolicyBasedRouting["Description"].asString(); if(!valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].isNull()) policyBasedRoutingsObject.priority = std::stoi(valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].asString()); if(!valuePolicyBasedRoutingsPolicyBasedRouting["Name"].isNull()) policyBasedRoutingsObject.name = valuePolicyBasedRoutingsPolicyBasedRouting["Name"].asString(); - if(!valuePolicyBasedRoutingsPolicyBasedRouting["Description"].isNull()) - policyBasedRoutingsObject.description = valuePolicyBasedRoutingsPolicyBasedRouting["Description"].asString(); policyBasedRoutings_.push_back(policyBasedRoutingsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeQosCarsResult.cc b/smartag/src/model/DescribeQosCarsResult.cc index 037a660e6..079c44f47 100644 --- a/smartag/src/model/DescribeQosCarsResult.cc +++ b/smartag/src/model/DescribeQosCarsResult.cc @@ -43,36 +43,36 @@ void DescribeQosCarsResult::parse(const std::string &payload) for (auto valueQosCarsQosCar : allQosCarsNode) { QosCar qosCarsObject; - if(!valueQosCarsQosCar["QosCarId"].isNull()) - qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); - if(!valueQosCarsQosCar["QosId"].isNull()) - qosCarsObject.qosId = valueQosCarsQosCar["QosId"].asString(); - if(!valueQosCarsQosCar["Description"].isNull()) - qosCarsObject.description = valueQosCarsQosCar["Description"].asString(); - if(!valueQosCarsQosCar["Priority"].isNull()) - qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); - if(!valueQosCarsQosCar["LimitType"].isNull()) - qosCarsObject.limitType = valueQosCarsQosCar["LimitType"].asString(); if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); - if(!valueQosCarsQosCar["MaxBandwidthAbs"].isNull()) - qosCarsObject.maxBandwidthAbs = std::stoi(valueQosCarsQosCar["MaxBandwidthAbs"].asString()); - if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) - qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["Description"].isNull()) + qosCarsObject.description = valueQosCarsQosCar["Description"].asString(); + if(!valueQosCarsQosCar["QosCarId"].isNull()) + qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); + if(!valueQosCarsQosCar["Priority"].isNull()) + qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["MaxBandwidthAbs"].isNull()) + qosCarsObject.maxBandwidthAbs = std::stoi(valueQosCarsQosCar["MaxBandwidthAbs"].asString()); + if(!valueQosCarsQosCar["QosId"].isNull()) + qosCarsObject.qosId = valueQosCarsQosCar["QosId"].asString(); if(!valueQosCarsQosCar["PercentSourceType"].isNull()) qosCarsObject.percentSourceType = valueQosCarsQosCar["PercentSourceType"].asString(); + if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) + qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["LimitType"].isNull()) + qosCarsObject.limitType = valueQosCarsQosCar["LimitType"].asString(); if(!valueQosCarsQosCar["Name"].isNull()) qosCarsObject.name = valueQosCarsQosCar["Name"].asString(); qosCars_.push_back(qosCarsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeQosPoliciesResult.cc b/smartag/src/model/DescribeQosPoliciesResult.cc index ef0e5ea8f..fcbfe917d 100644 --- a/smartag/src/model/DescribeQosPoliciesResult.cc +++ b/smartag/src/model/DescribeQosPoliciesResult.cc @@ -43,38 +43,44 @@ void DescribeQosPoliciesResult::parse(const std::string &payload) for (auto valueQosPoliciesQosPolicy : allQosPoliciesNode) { QosPolicy qosPoliciesObject; - if(!valueQosPoliciesQosPolicy["QosPolicyId"].isNull()) - qosPoliciesObject.qosPolicyId = valueQosPoliciesQosPolicy["QosPolicyId"].asString(); - if(!valueQosPoliciesQosPolicy["QosId"].isNull()) - qosPoliciesObject.qosId = valueQosPoliciesQosPolicy["QosId"].asString(); - if(!valueQosPoliciesQosPolicy["Priority"].isNull()) - qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); - if(!valueQosPoliciesQosPolicy["Description"].isNull()) - qosPoliciesObject.description = valueQosPoliciesQosPolicy["Description"].asString(); - if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) - qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); - if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) - qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["Description"].isNull()) + qosPoliciesObject.description = valueQosPoliciesQosPolicy["Description"].asString(); if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); - if(!valueQosPoliciesQosPolicy["DestPortRange"].isNull()) - qosPoliciesObject.destPortRange = valueQosPoliciesQosPolicy["DestPortRange"].asString(); - if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) - qosPoliciesObject.startTime = valueQosPoliciesQosPolicy["StartTime"].asString(); + if(!valueQosPoliciesQosPolicy["QosPolicyId"].isNull()) + qosPoliciesObject.qosPolicyId = valueQosPoliciesQosPolicy["QosPolicyId"].asString(); if(!valueQosPoliciesQosPolicy["EndTime"].isNull()) qosPoliciesObject.endTime = valueQosPoliciesQosPolicy["EndTime"].asString(); + if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) + qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); + if(!valueQosPoliciesQosPolicy["Priority"].isNull()) + qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); + if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) + qosPoliciesObject.startTime = valueQosPoliciesQosPolicy["StartTime"].asString(); + if(!valueQosPoliciesQosPolicy["QosId"].isNull()) + qosPoliciesObject.qosId = valueQosPoliciesQosPolicy["QosId"].asString(); + if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) + qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["DestPortRange"].isNull()) + qosPoliciesObject.destPortRange = valueQosPoliciesQosPolicy["DestPortRange"].asString(); if(!valueQosPoliciesQosPolicy["Name"].isNull()) qosPoliciesObject.name = valueQosPoliciesQosPolicy["Name"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (auto value : allDpiSignatureIds) + qosPoliciesObject.dpiSignatureIds.push_back(value.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; + for (auto value : allDpiGroupIds) + qosPoliciesObject.dpiGroupIds.push_back(value.asString()); qosPolicies_.push_back(qosPoliciesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeQosesResult.cc b/smartag/src/model/DescribeQosesResult.cc index 9bc313537..602f0a6ac 100644 --- a/smartag/src/model/DescribeQosesResult.cc +++ b/smartag/src/model/DescribeQosesResult.cc @@ -43,24 +43,24 @@ void DescribeQosesResult::parse(const std::string &payload) for (auto valueQosesQos : allQosesNode) { Qos qosesObject; - if(!valueQosesQos["QosId"].isNull()) - qosesObject.qosId = valueQosesQos["QosId"].asString(); - if(!valueQosesQos["QosName"].isNull()) - qosesObject.qosName = valueQosesQos["QosName"].asString(); if(!valueQosesQos["SagCount"].isNull()) qosesObject.sagCount = valueQosesQos["SagCount"].asString(); + if(!valueQosesQos["QosId"].isNull()) + qosesObject.qosId = valueQosesQos["QosId"].asString(); if(!valueQosesQos["SmartAGIds"].isNull()) qosesObject.smartAGIds = valueQosesQos["SmartAGIds"].asString(); + if(!valueQosesQos["QosName"].isNull()) + qosesObject.qosName = valueQosesQos["QosName"].asString(); if(!valueQosesQos["QosDescription"].isNull()) qosesObject.qosDescription = valueQosesQos["QosDescription"].asString(); qoses_.push_back(qosesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeRegionsResult.cc b/smartag/src/model/DescribeRegionsResult.cc index e51192634..195ec194d 100644 --- a/smartag/src/model/DescribeRegionsResult.cc +++ b/smartag/src/model/DescribeRegionsResult.cc @@ -45,10 +45,10 @@ void DescribeRegionsResult::parse(const std::string &payload) Region regionsObject; if(!valueRegionsRegion["RegionId"].isNull()) regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); - if(!valueRegionsRegion["LocalName"].isNull()) - regionsObject.localName = valueRegionsRegion["LocalName"].asString(); if(!valueRegionsRegion["RegionEndpoint"].isNull()) regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); regions_.push_back(regionsObject); } diff --git a/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc b/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc index 041ae4ca2..057b7a9bb 100644 --- a/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc +++ b/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc @@ -43,38 +43,38 @@ void DescribeRouteDistributionStrategiesResult::parse(const std::string &payload for (auto valueStrategiesStrategy : allStrategiesNode) { Strategy strategiesObject; - if(!valueStrategiesStrategy["CreateTime"].isNull()) - strategiesObject.createTime = std::stol(valueStrategiesStrategy["CreateTime"].asString()); - if(!valueStrategiesStrategy["InstanceId"].isNull()) - strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString(); - if(!valueStrategiesStrategy["SmartAGId"].isNull()) - strategiesObject.smartAGId = valueStrategiesStrategy["SmartAGId"].asString(); - if(!valueStrategiesStrategy["HcInstanceId"].isNull()) - strategiesObject.hcInstanceId = valueStrategiesStrategy["HcInstanceId"].asString(); - if(!valueStrategiesStrategy["SourceType"].isNull()) - strategiesObject.sourceType = valueStrategiesStrategy["SourceType"].asString(); - if(!valueStrategiesStrategy["DestCidrBlock"].isNull()) - strategiesObject.destCidrBlock = valueStrategiesStrategy["DestCidrBlock"].asString(); - if(!valueStrategiesStrategy["RouteSource"].isNull()) - strategiesObject.routeSource = valueStrategiesStrategy["RouteSource"].asString(); - if(!valueStrategiesStrategy["RouteDistribution"].isNull()) - strategiesObject.routeDistribution = valueStrategiesStrategy["RouteDistribution"].asString(); if(!valueStrategiesStrategy["Status"].isNull()) strategiesObject.status = valueStrategiesStrategy["Status"].asString(); + if(!valueStrategiesStrategy["InstanceId"].isNull()) + strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString(); + if(!valueStrategiesStrategy["HcInstanceId"].isNull()) + strategiesObject.hcInstanceId = valueStrategiesStrategy["HcInstanceId"].asString(); + if(!valueStrategiesStrategy["RouteSource"].isNull()) + strategiesObject.routeSource = valueStrategiesStrategy["RouteSource"].asString(); + if(!valueStrategiesStrategy["SourceType"].isNull()) + strategiesObject.sourceType = valueStrategiesStrategy["SourceType"].asString(); + if(!valueStrategiesStrategy["CreateTime"].isNull()) + strategiesObject.createTime = std::stol(valueStrategiesStrategy["CreateTime"].asString()); + if(!valueStrategiesStrategy["RouteDistribution"].isNull()) + strategiesObject.routeDistribution = valueStrategiesStrategy["RouteDistribution"].asString(); if(!valueStrategiesStrategy["IsConflict"].isNull()) strategiesObject.isConflict = valueStrategiesStrategy["IsConflict"].asString() == "true"; + if(!valueStrategiesStrategy["SmartAGId"].isNull()) + strategiesObject.smartAGId = valueStrategiesStrategy["SmartAGId"].asString(); if(!valueStrategiesStrategy["StrategyPublishStatus"].isNull()) strategiesObject.strategyPublishStatus = valueStrategiesStrategy["StrategyPublishStatus"].asString(); if(!valueStrategiesStrategy["ConflictInfo"].isNull()) strategiesObject.conflictInfo = valueStrategiesStrategy["ConflictInfo"].asString(); + if(!valueStrategiesStrategy["DestCidrBlock"].isNull()) + strategiesObject.destCidrBlock = valueStrategiesStrategy["DestCidrBlock"].asString(); strategies_.push_back(strategiesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeSAGDeviceInfoResult.cc b/smartag/src/model/DescribeSAGDeviceInfoResult.cc index 90929f6eb..841ea2be6 100644 --- a/smartag/src/model/DescribeSAGDeviceInfoResult.cc +++ b/smartag/src/model/DescribeSAGDeviceInfoResult.cc @@ -39,22 +39,22 @@ void DescribeSAGDeviceInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["ControllerState"].isNull()) + controllerState_ = value["ControllerState"].asString(); + if(!value["ServiceIP"].isNull()) + serviceIP_ = value["ServiceIP"].asString(); + if(!value["SmartAGType"].isNull()) + smartAGType_ = value["SmartAGType"].asString(); + if(!value["SynStatus"].isNull()) + synStatus_ = value["SynStatus"].asString(); if(!value["Version"].isNull()) version_ = value["Version"].asString(); if(!value["VpnState"].isNull()) vpnState_ = value["VpnState"].asString(); - if(!value["SmartAGType"].isNull()) - smartAGType_ = value["SmartAGType"].asString(); - if(!value["ControllerState"].isNull()) - controllerState_ = value["ControllerState"].asString(); if(!value["StartupTime"].isNull()) startupTime_ = value["StartupTime"].asString(); if(!value["LastConnectedControllerTime"].isNull()) lastConnectedControllerTime_ = value["LastConnectedControllerTime"].asString(); - if(!value["ServiceIP"].isNull()) - serviceIP_ = value["ServiceIP"].asString(); - if(!value["SynStatus"].isNull()) - synStatus_ = value["SynStatus"].asString(); } diff --git a/smartag/src/model/DescribeSagCurrentDnsResult.cc b/smartag/src/model/DescribeSagCurrentDnsResult.cc index 10466fceb..56918776a 100644 --- a/smartag/src/model/DescribeSagCurrentDnsResult.cc +++ b/smartag/src/model/DescribeSagCurrentDnsResult.cc @@ -39,10 +39,10 @@ void DescribeSagCurrentDnsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["MasterDns"].isNull()) - masterDns_ = value["MasterDns"].asString(); if(!value["SlaveDns"].isNull()) slaveDns_ = value["SlaveDns"].asString(); + if(!value["MasterDns"].isNull()) + masterDns_ = value["MasterDns"].asString(); } diff --git a/smartag/src/model/DescribeSagDropTopNRequest.cc b/smartag/src/model/DescribeSagDropTopNRequest.cc new file mode 100644 index 000000000..70464002f --- /dev/null +++ b/smartag/src/model/DescribeSagDropTopNRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagDropTopNRequest; + +DescribeSagDropTopNRequest::DescribeSagDropTopNRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagDropTopN") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSagDropTopNRequest::~DescribeSagDropTopNRequest() +{} + +long DescribeSagDropTopNRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSagDropTopNRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSagDropTopNRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSagDropTopNRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSagDropTopNRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSagDropTopNRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSagDropTopNRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSagDropTopNRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeSagDropTopNRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSagDropTopNRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSagDropTopNRequest::getSize()const +{ + return size_; +} + +void DescribeSagDropTopNRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + diff --git a/smartag/src/model/DescribeSagDropTopNResult.cc b/smartag/src/model/DescribeSagDropTopNResult.cc new file mode 100644 index 000000000..edfa7a74b --- /dev/null +++ b/smartag/src/model/DescribeSagDropTopNResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagDropTopNResult::DescribeSagDropTopNResult() : + ServiceResult() +{} + +DescribeSagDropTopNResult::DescribeSagDropTopNResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagDropTopNResult::~DescribeSagDropTopNResult() +{} + +void DescribeSagDropTopNResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDropTopNNode = value["DropTopN"]["DropTopNItem"]; + for (auto valueDropTopNDropTopNItem : allDropTopNNode) + { + DropTopNItem dropTopNObject; + if(!valueDropTopNDropTopNItem["InstanceId"].isNull()) + dropTopNObject.instanceId = valueDropTopNDropTopNItem["InstanceId"].asString(); + if(!valueDropTopNDropTopNItem["RegionId"].isNull()) + dropTopNObject.regionId = valueDropTopNDropTopNItem["RegionId"].asString(); + if(!valueDropTopNDropTopNItem["DropRate"].isNull()) + dropTopNObject.dropRate = valueDropTopNDropTopNItem["DropRate"].asString(); + if(!valueDropTopNDropTopNItem["Name"].isNull()) + dropTopNObject.name = valueDropTopNDropTopNItem["Name"].asString(); + dropTopN_.push_back(dropTopNObject); + } + +} + +std::vector DescribeSagDropTopNResult::getDropTopN()const +{ + return dropTopN_; +} + diff --git a/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc b/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc index 72a433cbb..4eb04a649 100644 --- a/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc +++ b/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc @@ -43,24 +43,24 @@ void DescribeSagECRouteBackupAttributeResult::parse(const std::string &payload) for (auto valueCidrsCidr : allCidrsNode) { Cidr cidrsObject; - if(!valueCidrsCidr["Cidr"].isNull()) - cidrsObject.cidr = valueCidrsCidr["Cidr"].asString(); if(!valueCidrsCidr["EnableBackup"].isNull()) cidrsObject.enableBackup = valueCidrsCidr["EnableBackup"].asString() == "true"; + if(!valueCidrsCidr["Cidr"].isNull()) + cidrsObject.cidr = valueCidrsCidr["Cidr"].asString(); cidrs_.push_back(cidrsObject); } - if(!value["SagId"].isNull()) - sagId_ = value["SagId"].asString(); if(!value["HcIp"].isNull()) hcIp_ = value["HcIp"].asString(); - if(!value["ExpressConnectionInterface"].isNull()) - expressConnectionInterface_ = value["ExpressConnectionInterface"].asString(); - if(!value["ExpressConnectionNexthop"].isNull()) - expressConnectionNexthop_ = value["ExpressConnectionNexthop"].asString(); - if(!value["RouteBackup"].isNull()) - routeBackup_ = value["RouteBackup"].asString() == "true"; if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["ExpressConnectionInterface"].isNull()) + expressConnectionInterface_ = value["ExpressConnectionInterface"].asString(); + if(!value["RouteBackup"].isNull()) + routeBackup_ = value["RouteBackup"].asString() == "true"; + if(!value["ExpressConnectionNexthop"].isNull()) + expressConnectionNexthop_ = value["ExpressConnectionNexthop"].asString(); + if(!value["SagId"].isNull()) + sagId_ = value["SagId"].asString(); } diff --git a/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc b/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc index d197ce585..465231210 100644 --- a/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc +++ b/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc @@ -43,12 +43,12 @@ void DescribeSagExpressConnectInterfaceListResult::parse(const std::string &payl for (auto valueInterfacesInterface : allInterfacesNode) { Interface interfacesObject; - if(!valueInterfacesInterface["Vlan"].isNull()) - interfacesObject.vlan = valueInterfacesInterface["Vlan"].asString(); if(!valueInterfacesInterface["IP"].isNull()) interfacesObject.iP = valueInterfacesInterface["IP"].asString(); if(!valueInterfacesInterface["Mask"].isNull()) interfacesObject.mask = valueInterfacesInterface["Mask"].asString(); + if(!valueInterfacesInterface["Vlan"].isNull()) + interfacesObject.vlan = valueInterfacesInterface["Vlan"].asString(); interfaces_.push_back(interfacesObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; @@ -57,12 +57,12 @@ void DescribeSagExpressConnectInterfaceListResult::parse(const std::string &payl TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc b/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc index 3cad04676..45d14a99e 100644 --- a/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc +++ b/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc @@ -45,12 +45,12 @@ void DescribeSagGlobalRouteProtocolResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["RouteProtocol"].isNull()) diff --git a/smartag/src/model/DescribeSagHaResult.cc b/smartag/src/model/DescribeSagHaResult.cc index 350009d24..8c21717fa 100644 --- a/smartag/src/model/DescribeSagHaResult.cc +++ b/smartag/src/model/DescribeSagHaResult.cc @@ -43,10 +43,10 @@ void DescribeSagHaResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["PortName"].isNull()) - portsObject.portName = valuePortsPort["PortName"].asString(); if(!valuePortsPort["VirtualIp"].isNull()) portsObject.virtualIp = valuePortsPort["VirtualIp"].asString(); + if(!valuePortsPort["PortName"].isNull()) + portsObject.portName = valuePortsPort["PortName"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; @@ -55,12 +55,12 @@ void DescribeSagHaResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["Mode"].isNull()) diff --git a/smartag/src/model/DescribeSagLanListResult.cc b/smartag/src/model/DescribeSagLanListResult.cc index 17f2b3fba..ca03d84bb 100644 --- a/smartag/src/model/DescribeSagLanListResult.cc +++ b/smartag/src/model/DescribeSagLanListResult.cc @@ -39,40 +39,40 @@ void DescribeSagLanListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLansNode = value["Lans"]["Lan"]; - for (auto valueLansLan : allLansNode) - { - Lan lansObject; - if(!valueLansLan["PortName"].isNull()) - lansObject.portName = valueLansLan["PortName"].asString(); - if(!valueLansLan["IPType"].isNull()) - lansObject.iPType = valueLansLan["IPType"].asString(); - if(!valueLansLan["IP"].isNull()) - lansObject.iP = valueLansLan["IP"].asString(); - if(!valueLansLan["Mask"].isNull()) - lansObject.mask = valueLansLan["Mask"].asString(); - if(!valueLansLan["StartIp"].isNull()) - lansObject.startIp = valueLansLan["StartIp"].asString(); - if(!valueLansLan["EndIp"].isNull()) - lansObject.endIp = valueLansLan["EndIp"].asString(); - if(!valueLansLan["Lease"].isNull()) - lansObject.lease = valueLansLan["Lease"].asString(); - lans_.push_back(lansObject); - } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } + auto allLansNode = value["Lans"]["Lan"]; + for (auto valueLansLan : allLansNode) + { + Lan lansObject; + if(!valueLansLan["IPType"].isNull()) + lansObject.iPType = valueLansLan["IPType"].asString(); + if(!valueLansLan["Lease"].isNull()) + lansObject.lease = valueLansLan["Lease"].asString(); + if(!valueLansLan["IP"].isNull()) + lansObject.iP = valueLansLan["IP"].asString(); + if(!valueLansLan["Mask"].isNull()) + lansObject.mask = valueLansLan["Mask"].asString(); + if(!valueLansLan["StartIp"].isNull()) + lansObject.startIp = valueLansLan["StartIp"].asString(); + if(!valueLansLan["PortName"].isNull()) + lansObject.portName = valueLansLan["PortName"].asString(); + if(!valueLansLan["EndIp"].isNull()) + lansObject.endIp = valueLansLan["EndIp"].asString(); + lans_.push_back(lansObject); + } } diff --git a/smartag/src/model/DescribeSagManagementPortResult.cc b/smartag/src/model/DescribeSagManagementPortResult.cc index 51a3f2127..ec297b20f 100644 --- a/smartag/src/model/DescribeSagManagementPortResult.cc +++ b/smartag/src/model/DescribeSagManagementPortResult.cc @@ -45,20 +45,20 @@ void DescribeSagManagementPortResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } + if(!value["Gateway"].isNull()) + gateway_ = value["Gateway"].asString(); if(!value["IP"].isNull()) iP_ = value["IP"].asString(); if(!value["Mask"].isNull()) mask_ = value["Mask"].asString(); - if(!value["Gateway"].isNull()) - gateway_ = value["Gateway"].asString(); } diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc index c0795cd91..be66b985a 100644 --- a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc @@ -43,10 +43,10 @@ void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) for (auto valueSagStatisticsStatistics : allSagStatisticsNode) { Statistics sagStatisticsObject; - if(!valueSagStatisticsStatistics["SmartAGId"].isNull()) - sagStatisticsObject.smartAGId = valueSagStatisticsStatistics["SmartAGId"].asString(); if(!valueSagStatisticsStatistics["OnlineCount"].isNull()) sagStatisticsObject.onlineCount = valueSagStatisticsStatistics["OnlineCount"].asString(); + if(!valueSagStatisticsStatistics["SmartAGId"].isNull()) + sagStatisticsObject.smartAGId = valueSagStatisticsStatistics["SmartAGId"].asString(); sagStatistics_.push_back(sagStatisticsObject); } diff --git a/smartag/src/model/DescribeSagPortListResult.cc b/smartag/src/model/DescribeSagPortListResult.cc index 2ff37f29f..537d1ed43 100644 --- a/smartag/src/model/DescribeSagPortListResult.cc +++ b/smartag/src/model/DescribeSagPortListResult.cc @@ -43,14 +43,16 @@ void DescribeSagPortListResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["PortName"].isNull()) - portsObject.portName = valuePortsPort["PortName"].asString(); if(!valuePortsPort["Role"].isNull()) portsObject.role = valuePortsPort["Role"].asString(); - if(!valuePortsPort["Mac"].isNull()) - portsObject.mac = valuePortsPort["Mac"].asString(); if(!valuePortsPort["Status"].isNull()) portsObject.status = valuePortsPort["Status"].asString(); + if(!valuePortsPort["Vlan"].isNull()) + portsObject.vlan = valuePortsPort["Vlan"].asString(); + if(!valuePortsPort["PortName"].isNull()) + portsObject.portName = valuePortsPort["PortName"].asString(); + if(!valuePortsPort["Mac"].isNull()) + portsObject.mac = valuePortsPort["Mac"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; @@ -59,12 +61,12 @@ void DescribeSagPortListResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc b/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc index 574f43bfd..20a85e75a 100644 --- a/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc +++ b/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc @@ -43,20 +43,20 @@ void DescribeSagPortRouteProtocolListResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["PortName"].isNull()) - portsObject.portName = valuePortsPort["PortName"].asString(); + if(!valuePortsPort["RemoteAs"].isNull()) + portsObject.remoteAs = valuePortsPort["RemoteAs"].asString(); + if(!valuePortsPort["Status"].isNull()) + portsObject.status = valuePortsPort["Status"].asString(); if(!valuePortsPort["RouteProtocol"].isNull()) portsObject.routeProtocol = valuePortsPort["RouteProtocol"].asString(); if(!valuePortsPort["RemoteIp"].isNull()) portsObject.remoteIp = valuePortsPort["RemoteIp"].asString(); - if(!valuePortsPort["RemoteAs"].isNull()) - portsObject.remoteAs = valuePortsPort["RemoteAs"].asString(); - if(!valuePortsPort["Vlan"].isNull()) - portsObject.vlan = valuePortsPort["Vlan"].asString(); - if(!valuePortsPort["Status"].isNull()) - portsObject.status = valuePortsPort["Status"].asString(); if(!valuePortsPort["NeighborIp"].isNull()) portsObject.neighborIp = valuePortsPort["NeighborIp"].asString(); + if(!valuePortsPort["Vlan"].isNull()) + portsObject.vlan = valuePortsPort["Vlan"].asString(); + if(!valuePortsPort["PortName"].isNull()) + portsObject.portName = valuePortsPort["PortName"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; @@ -65,12 +65,12 @@ void DescribeSagPortRouteProtocolListResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagRemoteAccessResult.cc b/smartag/src/model/DescribeSagRemoteAccessResult.cc index 599b61a9c..55935b0f8 100644 --- a/smartag/src/model/DescribeSagRemoteAccessResult.cc +++ b/smartag/src/model/DescribeSagRemoteAccessResult.cc @@ -49,14 +49,14 @@ void DescribeSagRemoteAccessResult::parse(const std::string &payload) remoteAccessesObject.remoteAccessIp = valueRemoteAccessesRemoteAccess["RemoteAccessIp"].asString(); remoteAccesses_.push_back(remoteAccessesObject); } - 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["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/smartag/src/model/DescribeSagRouteListResult.cc b/smartag/src/model/DescribeSagRouteListResult.cc index 4fe660590..eac099abf 100644 --- a/smartag/src/model/DescribeSagRouteListResult.cc +++ b/smartag/src/model/DescribeSagRouteListResult.cc @@ -43,16 +43,16 @@ void DescribeSagRouteListResult::parse(const std::string &payload) for (auto valueRoutesRoute : allRoutesNode) { Route routesObject; - if(!valueRoutesRoute["PortName"].isNull()) - routesObject.portName = valueRoutesRoute["PortName"].asString(); if(!valueRoutesRoute["RouteProtocol"].isNull()) routesObject.routeProtocol = valueRoutesRoute["RouteProtocol"].asString(); - if(!valueRoutesRoute["DestinationCidr"].isNull()) - routesObject.destinationCidr = valueRoutesRoute["DestinationCidr"].asString(); if(!valueRoutesRoute["NextHop"].isNull()) routesObject.nextHop = valueRoutesRoute["NextHop"].asString(); + if(!valueRoutesRoute["PortName"].isNull()) + routesObject.portName = valueRoutesRoute["PortName"].asString(); if(!valueRoutesRoute["Cost"].isNull()) routesObject.cost = valueRoutesRoute["Cost"].asString(); + if(!valueRoutesRoute["DestinationCidr"].isNull()) + routesObject.destinationCidr = valueRoutesRoute["DestinationCidr"].asString(); auto allConflictCidrs = value["ConflictCidrs"]["ConfilitCidr"]; for (auto value : allConflictCidrs) routesObject.conflictCidrs.push_back(value.asString()); diff --git a/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc b/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc index 032906073..0a2e484ba 100644 --- a/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc +++ b/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc @@ -45,22 +45,24 @@ void DescribeSagRouteProtocolBgpResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } + if(!value["HoldTime"].isNull()) + holdTime_ = std::stoi(value["HoldTime"].asString()); + if(!value["AdvertiseIps"].isNull()) + advertiseIps_ = value["AdvertiseIps"].asString(); + if(!value["KeepAlive"].isNull()) + keepAlive_ = std::stoi(value["KeepAlive"].asString()); if(!value["RouterId"].isNull()) routerId_ = value["RouterId"].asString(); if(!value["LocalAs"].isNull()) localAs_ = std::stoi(value["LocalAs"].asString()); - if(!value["HoldTime"].isNull()) - holdTime_ = std::stoi(value["HoldTime"].asString()); - if(!value["KeepAlive"].isNull()) - keepAlive_ = std::stoi(value["KeepAlive"].asString()); } @@ -69,6 +71,11 @@ int DescribeSagRouteProtocolBgpResult::getHoldTime()const return holdTime_; } +std::string DescribeSagRouteProtocolBgpResult::getAdvertiseIps()const +{ + return advertiseIps_; +} + int DescribeSagRouteProtocolBgpResult::getKeepAlive()const { return keepAlive_; diff --git a/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc b/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc index 7c86b48fe..cc63c35cf 100644 --- a/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc +++ b/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc @@ -45,30 +45,30 @@ void DescribeSagRouteProtocolOspfResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } - if(!value["RouterId"].isNull()) - routerId_ = value["RouterId"].asString(); - if(!value["AreaId"].isNull()) - areaId_ = value["AreaId"].asString(); - if(!value["AreaType"].isNull()) - areaType_ = value["AreaType"].asString(); if(!value["DeadTime"].isNull()) deadTime_ = std::stoi(value["DeadTime"].asString()); - if(!value["HelloTime"].isNull()) - helloTime_ = std::stoi(value["HelloTime"].asString()); - if(!value["AuthenticationType"].isNull()) - authenticationType_ = value["AuthenticationType"].asString(); if(!value["Md5KeyId"].isNull()) md5KeyId_ = std::stoi(value["Md5KeyId"].asString()); + if(!value["AreaId"].isNull()) + areaId_ = value["AreaId"].asString(); + if(!value["HelloTime"].isNull()) + helloTime_ = std::stoi(value["HelloTime"].asString()); + if(!value["RouterId"].isNull()) + routerId_ = value["RouterId"].asString(); + if(!value["AreaType"].isNull()) + areaType_ = value["AreaType"].asString(); if(!value["Md5Key"].isNull()) md5Key_ = value["Md5Key"].asString(); + if(!value["AuthenticationType"].isNull()) + authenticationType_ = value["AuthenticationType"].asString(); } @@ -87,16 +87,16 @@ std::string DescribeSagRouteProtocolOspfResult::getAreaId()const return areaId_; } -std::string DescribeSagRouteProtocolOspfResult::getRouterId()const -{ - return routerId_; -} - int DescribeSagRouteProtocolOspfResult::getHelloTime()const { return helloTime_; } +std::string DescribeSagRouteProtocolOspfResult::getRouterId()const +{ + return routerId_; +} + std::vector DescribeSagRouteProtocolOspfResult::getTaskStates()const { return taskStates_; diff --git a/smartag/src/model/DescribeSagRouteableAddressResult.cc b/smartag/src/model/DescribeSagRouteableAddressResult.cc index d24757579..24280c3a3 100644 --- a/smartag/src/model/DescribeSagRouteableAddressResult.cc +++ b/smartag/src/model/DescribeSagRouteableAddressResult.cc @@ -39,10 +39,10 @@ void DescribeSagRouteableAddressResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RouteableAddress"].isNull()) - routeableAddress_ = value["RouteableAddress"].asString(); if(!value["Origin"].isNull()) origin_ = value["Origin"].asString(); + if(!value["RouteableAddress"].isNull()) + routeableAddress_ = value["RouteableAddress"].asString(); } diff --git a/smartag/src/model/DescribeSagStaticRouteListResult.cc b/smartag/src/model/DescribeSagStaticRouteListResult.cc index 9812cd320..5c0dafbf8 100644 --- a/smartag/src/model/DescribeSagStaticRouteListResult.cc +++ b/smartag/src/model/DescribeSagStaticRouteListResult.cc @@ -39,44 +39,44 @@ void DescribeSagStaticRouteListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allStaticRoutesNode = value["StaticRoutes"]["StaticRoute"]; - for (auto valueStaticRoutesStaticRoute : allStaticRoutesNode) - { - StaticRoute staticRoutesObject; - if(!valueStaticRoutesStaticRoute["PortName"].isNull()) - staticRoutesObject.portName = valueStaticRoutesStaticRoute["PortName"].asString(); - if(!valueStaticRoutesStaticRoute["DestinationCidr"].isNull()) - staticRoutesObject.destinationCidr = valueStaticRoutesStaticRoute["DestinationCidr"].asString(); - if(!valueStaticRoutesStaticRoute["NextHop"].isNull()) - staticRoutesObject.nextHop = valueStaticRoutesStaticRoute["NextHop"].asString(); - if(!valueStaticRoutesStaticRoute["Vlan"].isNull()) - staticRoutesObject.vlan = valueStaticRoutesStaticRoute["Vlan"].asString(); - staticRoutes_.push_back(staticRoutesObject); - } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } + auto allStaticRoutesNode = value["StaticRoutes"]["StaticRoute"]; + for (auto valueStaticRoutesStaticRoute : allStaticRoutesNode) + { + StaticRoute staticRoutesObject; + if(!valueStaticRoutesStaticRoute["NextHop"].isNull()) + staticRoutesObject.nextHop = valueStaticRoutesStaticRoute["NextHop"].asString(); + if(!valueStaticRoutesStaticRoute["Vlan"].isNull()) + staticRoutesObject.vlan = valueStaticRoutesStaticRoute["Vlan"].asString(); + if(!valueStaticRoutesStaticRoute["PortName"].isNull()) + staticRoutesObject.portName = valueStaticRoutesStaticRoute["PortName"].asString(); + if(!valueStaticRoutesStaticRoute["DestinationCidr"].isNull()) + staticRoutesObject.destinationCidr = valueStaticRoutesStaticRoute["DestinationCidr"].asString(); + staticRoutes_.push_back(staticRoutesObject); + } } -std::vector DescribeSagStaticRouteListResult::getStaticRoutes()const -{ - return staticRoutes_; -} - std::vector DescribeSagStaticRouteListResult::getTaskStates()const { return taskStates_; } +std::vector DescribeSagStaticRouteListResult::getStaticRoutes()const +{ + return staticRoutes_; +} + diff --git a/smartag/src/model/DescribeSagTrafficTopNRequest.cc b/smartag/src/model/DescribeSagTrafficTopNRequest.cc new file mode 100644 index 000000000..e4f40100d --- /dev/null +++ b/smartag/src/model/DescribeSagTrafficTopNRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagTrafficTopNRequest; + +DescribeSagTrafficTopNRequest::DescribeSagTrafficTopNRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagTrafficTopN") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSagTrafficTopNRequest::~DescribeSagTrafficTopNRequest() +{} + +long DescribeSagTrafficTopNRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSagTrafficTopNRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSagTrafficTopNRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSagTrafficTopNRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSagTrafficTopNRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSagTrafficTopNRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSagTrafficTopNRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSagTrafficTopNRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeSagTrafficTopNRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSagTrafficTopNRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSagTrafficTopNRequest::getSize()const +{ + return size_; +} + +void DescribeSagTrafficTopNRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + diff --git a/smartag/src/model/DescribeSagTrafficTopNResult.cc b/smartag/src/model/DescribeSagTrafficTopNResult.cc new file mode 100644 index 000000000..fa0d27033 --- /dev/null +++ b/smartag/src/model/DescribeSagTrafficTopNResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagTrafficTopNResult::DescribeSagTrafficTopNResult() : + ServiceResult() +{} + +DescribeSagTrafficTopNResult::DescribeSagTrafficTopNResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagTrafficTopNResult::~DescribeSagTrafficTopNResult() +{} + +void DescribeSagTrafficTopNResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTrafficTopNNode = value["TrafficTopN"]["TrafficTopNItem"]; + for (auto valueTrafficTopNTrafficTopNItem : allTrafficTopNNode) + { + TrafficTopNItem trafficTopNObject; + if(!valueTrafficTopNTrafficTopNItem["InstanceId"].isNull()) + trafficTopNObject.instanceId = valueTrafficTopNTrafficTopNItem["InstanceId"].asString(); + if(!valueTrafficTopNTrafficTopNItem["TrafficRate"].isNull()) + trafficTopNObject.trafficRate = valueTrafficTopNTrafficTopNItem["TrafficRate"].asString(); + if(!valueTrafficTopNTrafficTopNItem["RegionId"].isNull()) + trafficTopNObject.regionId = valueTrafficTopNTrafficTopNItem["RegionId"].asString(); + if(!valueTrafficTopNTrafficTopNItem["Name"].isNull()) + trafficTopNObject.name = valueTrafficTopNTrafficTopNItem["Name"].asString(); + trafficTopN_.push_back(trafficTopNObject); + } + +} + +std::vector DescribeSagTrafficTopNResult::getTrafficTopN()const +{ + return trafficTopN_; +} + diff --git a/smartag/src/model/DescribeSagUserDnsResult.cc b/smartag/src/model/DescribeSagUserDnsResult.cc index 2d814c0c3..f287dbe58 100644 --- a/smartag/src/model/DescribeSagUserDnsResult.cc +++ b/smartag/src/model/DescribeSagUserDnsResult.cc @@ -45,18 +45,18 @@ void DescribeSagUserDnsResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } - if(!value["MasterDns"].isNull()) - masterDns_ = value["MasterDns"].asString(); if(!value["SlaveDns"].isNull()) slaveDns_ = value["SlaveDns"].asString(); + if(!value["MasterDns"].isNull()) + masterDns_ = value["MasterDns"].asString(); } diff --git a/smartag/src/model/DescribeSagWan4GResult.cc b/smartag/src/model/DescribeSagWan4GResult.cc index ea27ed2a6..3daefe614 100644 --- a/smartag/src/model/DescribeSagWan4GResult.cc +++ b/smartag/src/model/DescribeSagWan4GResult.cc @@ -39,12 +39,16 @@ void DescribeSagWan4GResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["TrafficState"].isNull()) + trafficState_ = value["TrafficState"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); if(!value["Ip"].isNull()) ip_ = value["Ip"].asString(); if(!value["Mac"].isNull()) mac_ = value["Mac"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); if(!value["Strength"].isNull()) strength_ = value["Strength"].asString(); @@ -55,6 +59,16 @@ std::string DescribeSagWan4GResult::getStatus()const return status_; } +std::string DescribeSagWan4GResult::getTrafficState()const +{ + return trafficState_; +} + +int DescribeSagWan4GResult::getPriority()const +{ + return priority_; +} + std::string DescribeSagWan4GResult::getIp()const { return ip_; diff --git a/smartag/src/model/DescribeSagWanListResult.cc b/smartag/src/model/DescribeSagWanListResult.cc index c48de3518..4602a3713 100644 --- a/smartag/src/model/DescribeSagWanListResult.cc +++ b/smartag/src/model/DescribeSagWanListResult.cc @@ -43,18 +43,36 @@ void DescribeSagWanListResult::parse(const std::string &payload) for (auto valueWansWan : allWansNode) { Wan wansObject; - if(!valueWansWan["PortName"].isNull()) - wansObject.portName = valueWansWan["PortName"].asString(); if(!valueWansWan["IPType"].isNull()) wansObject.iPType = valueWansWan["IPType"].asString(); + if(!valueWansWan["TrafficState"].isNull()) + wansObject.trafficState = valueWansWan["TrafficState"].asString(); + if(!valueWansWan["Priority"].isNull()) + wansObject.priority = std::stoi(valueWansWan["Priority"].asString()); + if(!valueWansWan["SourceIps"].isNull()) + wansObject.sourceIps = valueWansWan["SourceIps"].asString(); + if(!valueWansWan["ISP"].isNull()) + wansObject.iSP = valueWansWan["ISP"].asString(); if(!valueWansWan["IP"].isNull()) wansObject.iP = valueWansWan["IP"].asString(); if(!valueWansWan["Mask"].isNull()) wansObject.mask = valueWansWan["Mask"].asString(); - if(!valueWansWan["Gateway"].isNull()) - wansObject.gateway = valueWansWan["Gateway"].asString(); + if(!valueWansWan["StartIp"].isNull()) + wansObject.startIp = valueWansWan["StartIp"].asString(); + if(!valueWansWan["Vlan"].isNull()) + wansObject.vlan = valueWansWan["Vlan"].asString(); + if(!valueWansWan["PortName"].isNull()) + wansObject.portName = valueWansWan["PortName"].asString(); + if(!valueWansWan["Weight"].isNull()) + wansObject.weight = std::stoi(valueWansWan["Weight"].asString()); + if(!valueWansWan["StopIp"].isNull()) + wansObject.stopIp = valueWansWan["StopIp"].asString(); + if(!valueWansWan["BandWidth"].isNull()) + wansObject.bandWidth = std::stoi(valueWansWan["BandWidth"].asString()); if(!valueWansWan["Username"].isNull()) wansObject.username = valueWansWan["Username"].asString(); + if(!valueWansWan["Gateway"].isNull()) + wansObject.gateway = valueWansWan["Gateway"].asString(); wans_.push_back(wansObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; @@ -63,12 +81,12 @@ void DescribeSagWanListResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagWanSnatResult.cc b/smartag/src/model/DescribeSagWanSnatResult.cc index 03a6aafbb..bd0b0fbbd 100644 --- a/smartag/src/model/DescribeSagWanSnatResult.cc +++ b/smartag/src/model/DescribeSagWanSnatResult.cc @@ -45,12 +45,12 @@ void DescribeSagWanSnatResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["Snat"].isNull()) diff --git a/smartag/src/model/DescribeSagWifiResult.cc b/smartag/src/model/DescribeSagWifiResult.cc index 28373a914..eae2c0d83 100644 --- a/smartag/src/model/DescribeSagWifiResult.cc +++ b/smartag/src/model/DescribeSagWifiResult.cc @@ -45,30 +45,30 @@ void DescribeSagWifiResult::parse(const std::string &payload) TaskState taskStatesObject; if(!valueTaskStatesTaskState["State"].isNull()) taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); if(!valueTaskStatesTaskState["ErrorCode"].isNull()) taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["IsEnable"].isNull()) isEnable_ = value["IsEnable"].asString(); - if(!value["Ssid"].isNull()) - ssid_ = value["Ssid"].asString(); - if(!value["IsBroadcast"].isNull()) - isBroadcast_ = value["IsBroadcast"].asString(); if(!value["Channel"].isNull()) channel_ = value["Channel"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = value["Bandwidth"].asString(); if(!value["IsAuth"].isNull()) isAuth_ = value["IsAuth"].asString(); - if(!value["AuthenticationType"].isNull()) - authenticationType_ = value["AuthenticationType"].asString(); + if(!value["Ssid"].isNull()) + ssid_ = value["Ssid"].asString(); + if(!value["IsBroadcast"].isNull()) + isBroadcast_ = value["IsBroadcast"].asString(); if(!value["EncryptAlgorithm"].isNull()) encryptAlgorithm_ = value["EncryptAlgorithm"].asString(); + if(!value["AuthenticationType"].isNull()) + authenticationType_ = value["AuthenticationType"].asString(); } @@ -107,13 +107,13 @@ std::string DescribeSagWifiResult::getIsBroadcast()const return isBroadcast_; } -std::string DescribeSagWifiResult::getAuthenticationType()const -{ - return authenticationType_; -} - std::string DescribeSagWifiResult::getEncryptAlgorithm()const { return encryptAlgorithm_; } +std::string DescribeSagWifiResult::getAuthenticationType()const +{ + return authenticationType_; +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc index 391b56c37..293217259 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc @@ -43,22 +43,22 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload for (auto valueLinksLink : allLinksNode) { Link linksObject; - if(!valueLinksLink["InstanceId"].isNull()) - linksObject.instanceId = valueLinksLink["InstanceId"].asString(); - if(!valueLinksLink["Type"].isNull()) - linksObject.type = valueLinksLink["Type"].asString(); if(!valueLinksLink["Status"].isNull()) linksObject.status = valueLinksLink["Status"].asString(); + if(!valueLinksLink["Type"].isNull()) + linksObject.type = valueLinksLink["Type"].asString(); if(!valueLinksLink["EndTime"].isNull()) linksObject.endTime = std::stol(valueLinksLink["EndTime"].asString()); - if(!valueLinksLink["Bandwidth"].isNull()) - linksObject.bandwidth = valueLinksLink["Bandwidth"].asString(); + if(!valueLinksLink["InstanceId"].isNull()) + linksObject.instanceId = valueLinksLink["InstanceId"].asString(); if(!valueLinksLink["RelateInstanceId"].isNull()) linksObject.relateInstanceId = valueLinksLink["RelateInstanceId"].asString(); - if(!valueLinksLink["RelateInstanceRegionId"].isNull()) - linksObject.relateInstanceRegionId = valueLinksLink["RelateInstanceRegionId"].asString(); + if(!valueLinksLink["Bandwidth"].isNull()) + linksObject.bandwidth = valueLinksLink["Bandwidth"].asString(); if(!valueLinksLink["CommodityType"].isNull()) linksObject.commodityType = valueLinksLink["CommodityType"].asString(); + if(!valueLinksLink["RelateInstanceRegionId"].isNull()) + linksObject.relateInstanceRegionId = valueLinksLink["RelateInstanceRegionId"].asString(); if(!valueLinksLink["HealthCheckTargetIp"].isNull()) linksObject.healthCheckTargetIp = valueLinksLink["HealthCheckTargetIp"].asString(); links_.push_back(linksObject); @@ -67,79 +67,93 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload for (auto valueDevicesDevice : allDevicesNode) { Device devicesObject; - if(!valueDevicesDevice["SerialNumber"].isNull()) - devicesObject.serialNumber = valueDevicesDevice["SerialNumber"].asString(); - if(!valueDevicesDevice["HcState"].isNull()) - devicesObject.hcState = valueDevicesDevice["HcState"].asString(); - if(!valueDevicesDevice["HaState"].isNull()) - devicesObject.haState = valueDevicesDevice["HaState"].asString(); - if(!valueDevicesDevice["SoftwareVersion"].isNull()) - devicesObject.softwareVersion = std::stol(valueDevicesDevice["SoftwareVersion"].asString()); if(!valueDevicesDevice["MonitorVersion"].isNull()) devicesObject.monitorVersion = valueDevicesDevice["MonitorVersion"].asString(); + if(!valueDevicesDevice["SecretKey"].isNull()) + devicesObject.secretKey = valueDevicesDevice["SecretKey"].asString(); + if(!valueDevicesDevice["SoftwareVersion"].isNull()) + devicesObject.softwareVersion = valueDevicesDevice["SoftwareVersion"].asString(); + if(!valueDevicesDevice["SerialNumber"].isNull()) + devicesObject.serialNumber = valueDevicesDevice["SerialNumber"].asString(); + if(!valueDevicesDevice["DistributeSkStatus"].isNull()) + devicesObject.distributeSkStatus = std::stoi(valueDevicesDevice["DistributeSkStatus"].asString()); + if(!valueDevicesDevice["DpiSignatureDbVersion"].isNull()) + devicesObject.dpiSignatureDbVersion = valueDevicesDevice["DpiSignatureDbVersion"].asString(); + if(!valueDevicesDevice["HaState"].isNull()) + devicesObject.haState = valueDevicesDevice["HaState"].asString(); + if(!valueDevicesDevice["HcState"].isNull()) + devicesObject.hcState = valueDevicesDevice["HcState"].asString(); devices_.push_back(devicesObject); } - auto allAclIds = value["AclIds"]["AclId"]; - for (const auto &item : allAclIds) - aclIds_.push_back(item.asString()); auto allQosIds = value["QosIds"]["QosId"]; for (const auto &item : allQosIds) qosIds_.push_back(item.asString()); auto allFlowLogIds = value["FlowLogIds"]["FlowLogId"]; for (const auto &item : allFlowLogIds) flowLogIds_.push_back(item.asString()); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["City"].isNull()) - city_ = value["City"].asString(); - if(!value["MaxBandwidth"].isNull()) - maxBandwidth_ = value["MaxBandwidth"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["CidrBlock"].isNull()) - cidrBlock_ = value["CidrBlock"].asString(); - if(!value["AssociatedCcnId"].isNull()) - associatedCcnId_ = value["AssociatedCcnId"].asString(); - if(!value["AssociatedCcnName"].isNull()) - associatedCcnName_ = value["AssociatedCcnName"].asString(); + auto allAclIds = value["AclIds"]["AclId"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); - if(!value["InstanceType"].isNull()) - instanceType_ = value["InstanceType"].asString(); - if(!value["SerialNumber"].isNull()) - serialNumber_ = value["SerialNumber"].asString(); - if(!value["SecurityLockThreshold"].isNull()) - securityLockThreshold_ = std::stoi(value["SecurityLockThreshold"].asString()); - if(!value["DataPlan"].isNull()) - dataPlan_ = std::stol(value["DataPlan"].asString()); - if(!value["UserCount"].isNull()) - userCount_ = std::stoi(value["UserCount"].asString()); - if(!value["RoutingStrategy"].isNull()) - routingStrategy_ = value["RoutingStrategy"].asString(); - if(!value["IpsecStatus"].isNull()) - ipsecStatus_ = value["IpsecStatus"].asString(); - if(!value["VpnStatus"].isNull()) - vpnStatus_ = value["VpnStatus"].asString(); - if(!value["TrafficMasterSn"].isNull()) - trafficMasterSn_ = value["TrafficMasterSn"].asString(); - if(!value["BoxControllerIp"].isNull()) - boxControllerIp_ = value["BoxControllerIp"].asString(); - if(!value["BackupBoxControllerIp"].isNull()) - backupBoxControllerIp_ = value["BackupBoxControllerIp"].asString(); - if(!value["UpBandwidthWan"].isNull()) - upBandwidthWan_ = std::stoi(value["UpBandwidthWan"].asString()); if(!value["UpBandwidth4G"].isNull()) upBandwidth4G_ = std::stoi(value["UpBandwidth4G"].asString()); - if(!value["EnableOptimization"].isNull()) - enableOptimization_ = value["EnableOptimization"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["UserCount"].isNull()) + userCount_ = std::stoi(value["UserCount"].asString()); + if(!value["VpnStatus"].isNull()) + vpnStatus_ = value["VpnStatus"].asString(); + if(!value["MaxBandwidth"].isNull()) + maxBandwidth_ = value["MaxBandwidth"].asString(); + if(!value["AssociatedCcnName"].isNull()) + associatedCcnName_ = value["AssociatedCcnName"].asString(); + if(!value["BoxControllerIp"].isNull()) + boxControllerIp_ = value["BoxControllerIp"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["UpBandwidthWan"].isNull()) + upBandwidthWan_ = std::stoi(value["UpBandwidthWan"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["OptimizationType"].isNull()) optimizationType_ = value["OptimizationType"].asString() == "true"; + if(!value["IpsecStatus"].isNull()) + ipsecStatus_ = value["IpsecStatus"].asString(); + if(!value["RoutingStrategy"].isNull()) + routingStrategy_ = value["RoutingStrategy"].asString(); + if(!value["AssociatedCcnId"].isNull()) + associatedCcnId_ = value["AssociatedCcnId"].asString(); + if(!value["InstanceType"].isNull()) + instanceType_ = value["InstanceType"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["SecurityLockThreshold"].isNull()) + securityLockThreshold_ = std::stoi(value["SecurityLockThreshold"].asString()); + if(!value["ResellerUid"].isNull()) + resellerUid_ = value["ResellerUid"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["DataPlan"].isNull()) + dataPlan_ = std::stol(value["DataPlan"].asString()); + if(!value["EnableOptimization"].isNull()) + enableOptimization_ = value["EnableOptimization"].asString() == "true"; + if(!value["City"].isNull()) + city_ = value["City"].asString(); + if(!value["ResellerInstanceId"].isNull()) + resellerInstanceId_ = value["ResellerInstanceId"].asString(); + if(!value["BackupBoxControllerIp"].isNull()) + backupBoxControllerIp_ = value["BackupBoxControllerIp"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["TrafficMasterSn"].isNull()) + trafficMasterSn_ = value["TrafficMasterSn"].asString(); + if(!value["AccessPointId"].isNull()) + accessPointId_ = value["AccessPointId"].asString(); } @@ -153,6 +167,11 @@ int DescribeSmartAccessGatewayAttributeResult::getUpBandwidth4G()const return upBandwidth4G_; } +std::string DescribeSmartAccessGatewayAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + long DescribeSmartAccessGatewayAttributeResult::getEndTime()const { return endTime_; @@ -163,6 +182,11 @@ int DescribeSmartAccessGatewayAttributeResult::getUserCount()const return userCount_; } +std::string DescribeSmartAccessGatewayAttributeResult::getVpnStatus()const +{ + return vpnStatus_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getMaxBandwidth()const { return maxBandwidth_; @@ -173,11 +197,6 @@ std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnName()con return associatedCcnName_; } -std::string DescribeSmartAccessGatewayAttributeResult::getVpnStatus()const -{ - return vpnStatus_; -} - std::string DescribeSmartAccessGatewayAttributeResult::getBoxControllerIp()const { return boxControllerIp_; @@ -233,21 +252,26 @@ std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnId()const return associatedCcnId_; } -std::string DescribeSmartAccessGatewayAttributeResult::getSmartAGId()const -{ - return smartAGId_; -} - std::string DescribeSmartAccessGatewayAttributeResult::getInstanceType()const { return instanceType_; } +std::string DescribeSmartAccessGatewayAttributeResult::getSmartAGId()const +{ + return smartAGId_; +} + int DescribeSmartAccessGatewayAttributeResult::getSecurityLockThreshold()const { return securityLockThreshold_; } +std::string DescribeSmartAccessGatewayAttributeResult::getResellerUid()const +{ + return resellerUid_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getStatus()const { return status_; @@ -273,9 +297,9 @@ std::string DescribeSmartAccessGatewayAttributeResult::getCity()const return city_; } -std::string DescribeSmartAccessGatewayAttributeResult::getSerialNumber()const +std::string DescribeSmartAccessGatewayAttributeResult::getResellerInstanceId()const { - return serialNumber_; + return resellerInstanceId_; } std::string DescribeSmartAccessGatewayAttributeResult::getBackupBoxControllerIp()const @@ -283,11 +307,21 @@ std::string DescribeSmartAccessGatewayAttributeResult::getBackupBoxControllerIp( return backupBoxControllerIp_; } +std::string DescribeSmartAccessGatewayAttributeResult::getSerialNumber()const +{ + return serialNumber_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getTrafficMasterSn()const { return trafficMasterSn_; } +std::string DescribeSmartAccessGatewayAttributeResult::getAccessPointId()const +{ + return accessPointId_; +} + std::vector DescribeSmartAccessGatewayAttributeResult::getLinks()const { return links_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc index a08c6706f..c70fa17e4 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc @@ -93,6 +93,17 @@ void DescribeSmartAccessGatewayClientUsersRequest::setOwnerAccount(const std::st setParameter("OwnerAccount", ownerAccount); } +std::string DescribeSmartAccessGatewayClientUsersRequest::getUserMail()const +{ + return userMail_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setUserMail(const std::string& userMail) +{ + userMail_ = userMail; + setParameter("UserMail", userMail); +} + long DescribeSmartAccessGatewayClientUsersRequest::getOwnerId()const { return ownerId_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc index 3d47dfcd7..fe31918db 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc @@ -43,24 +43,24 @@ void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &paylo for (auto valueUsersUser : allUsersNode) { User usersObject; - if(!valueUsersUser["ClientIp"].isNull()) - usersObject.clientIp = valueUsersUser["ClientIp"].asString(); - if(!valueUsersUser["UserMail"].isNull()) - usersObject.userMail = valueUsersUser["UserMail"].asString(); if(!valueUsersUser["UserName"].isNull()) usersObject.userName = valueUsersUser["UserName"].asString(); - if(!valueUsersUser["Bandwidth"].isNull()) - usersObject.bandwidth = std::stoi(valueUsersUser["Bandwidth"].asString()); + if(!valueUsersUser["UserMail"].isNull()) + usersObject.userMail = valueUsersUser["UserMail"].asString(); if(!valueUsersUser["State"].isNull()) usersObject.state = std::stoi(valueUsersUser["State"].asString()); + if(!valueUsersUser["Bandwidth"].isNull()) + usersObject.bandwidth = std::stoi(valueUsersUser["Bandwidth"].asString()); + if(!valueUsersUser["ClientIp"].isNull()) + usersObject.clientIp = valueUsersUser["ClientIp"].asString(); users_.push_back(usersObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc index cf551892f..185777424 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc @@ -43,30 +43,30 @@ void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) for (auto valueLinkBackupInfoListLinkBackupInfoListItem : allLinkBackupInfoListNode) { LinkBackupInfoListItem linkBackupInfoListObject; - if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].isNull()) - linkBackupInfoListObject.linkLevelBackupState = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].isNull()) - linkBackupInfoListObject.linkLevelBackupType = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].isNull()) - linkBackupInfoListObject.mainLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].isNull()) + linkBackupInfoListObject.backupLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].asString(); if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].isNull()) linkBackupInfoListObject.mainLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].asString(); if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].isNull()) linkBackupInfoListObject.backupLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].isNull()) - linkBackupInfoListObject.backupLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].isNull()) + linkBackupInfoListObject.linkLevelBackupType = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].isNull()) + linkBackupInfoListObject.mainLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].isNull()) + linkBackupInfoListObject.linkLevelBackupState = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].asString(); linkBackupInfoList_.push_back(linkBackupInfoListObject); } if(!value["DeviceLevelBackupState"].isNull()) deviceLevelBackupState_ = value["DeviceLevelBackupState"].asString(); - if(!value["DeviceLevelBackupType"].isNull()) - deviceLevelBackupType_ = value["DeviceLevelBackupType"].asString(); - if(!value["MainDeviceId"].isNull()) - mainDeviceId_ = value["MainDeviceId"].asString(); if(!value["BackupDeviceId"].isNull()) backupDeviceId_ = value["BackupDeviceId"].asString(); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); + if(!value["DeviceLevelBackupType"].isNull()) + deviceLevelBackupType_ = value["DeviceLevelBackupType"].asString(); + if(!value["MainDeviceId"].isNull()) + mainDeviceId_ = value["MainDeviceId"].asString(); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc deleted file mode 100644 index 8a516c339..000000000 --- a/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc +++ /dev/null @@ -1,115 +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::Smartag::Model::DescribeSmartAccessGatewayRoutesRequest; - -DescribeSmartAccessGatewayRoutesRequest::DescribeSmartAccessGatewayRoutesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayRoutes") -{} - -DescribeSmartAccessGatewayRoutesRequest::~DescribeSmartAccessGatewayRoutesRequest() -{} - -long DescribeSmartAccessGatewayRoutesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", pageSize); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long DescribeSmartAccessGatewayRoutesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeSmartAccessGatewayRoutesRequest::getPageNubmer()const -{ - return pageNubmer_; -} - -void DescribeSmartAccessGatewayRoutesRequest::setPageNubmer(const std::string& pageNubmer) -{ - pageNubmer_ = pageNubmer; - setCoreParameter("PageNubmer", pageNubmer); -} - diff --git a/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc b/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc deleted file mode 100644 index 7c9eea92b..000000000 --- a/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayRoutesResult::DescribeSmartAccessGatewayRoutesResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayRoutesResult::DescribeSmartAccessGatewayRoutesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayRoutesResult::~DescribeSmartAccessGatewayRoutesResult() -{} - -void DescribeSmartAccessGatewayRoutesResult::parse(const std::string &payload) -{ - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; - Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; - setRequestId(value["RequestId"].asString()); - auto allRoutes = value["Routes"]["Route"]; - for (auto value : allRoutes) - { - Route routesObject; - if(!value["SourceInstanceId"].isNull()) - routesObject.sourceInstanceId = value["SourceInstanceId"].asString(); - if(!value["DestCidr"].isNull()) - routesObject.destCidr = value["DestCidr"].asString(); - if(!value["State"].isNull()) - routesObject.state = value["State"].asString(); - if(!value["RouteSource"].isNull()) - routesObject.routeSource = value["RouteSource"].asString(); - if(!value["SourceType"].isNull()) - routesObject.sourceType = value["SourceType"].asString(); - if(!value["ConflictInfo"].isNull()) - routesObject.conflictInfo = value["ConflictInfo"].asString(); - routes_.push_back(routesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNubmer"].isNull()) - pageNubmer_ = std::stoi(value["PageNubmer"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int DescribeSmartAccessGatewayRoutesResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeSmartAccessGatewayRoutesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeSmartAccessGatewayRoutesResult::getPageNubmer()const -{ - return pageNubmer_; -} - -std::vector DescribeSmartAccessGatewayRoutesResult::getRoutes()const -{ - return routes_; -} - diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc index b7b53097b..2f575735b 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc @@ -82,6 +82,17 @@ void DescribeSmartAccessGatewayVersionsRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string DescribeSmartAccessGatewayVersionsRequest::getVersionType()const +{ + return versionType_; +} + +void DescribeSmartAccessGatewayVersionsRequest::setVersionType(const std::string& versionType) +{ + versionType_ = versionType; + setParameter("VersionType", versionType); +} + std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGId()const { return smartAGId_; @@ -93,3 +104,14 @@ void DescribeSmartAccessGatewayVersionsRequest::setSmartAGId(const std::string& setParameter("SmartAGId", smartAGId); } +std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGSn()const +{ + return smartAGSn_; +} + +void DescribeSmartAccessGatewayVersionsRequest::setSmartAGSn(const std::string& smartAGSn) +{ + smartAGSn_ = smartAGSn; + setParameter("SmartAGSn", smartAGSn); +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc index f7beb98eb..6975487eb 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc @@ -45,12 +45,12 @@ void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) SmartAGVersion smartAGVersionsObject; if(!valueSmartAGVersionsSmartAGVersion["VersionCode"].isNull()) smartAGVersionsObject.versionCode = valueSmartAGVersionsSmartAGVersion["VersionCode"].asString(); - if(!valueSmartAGVersionsSmartAGVersion["VersionName"].isNull()) - smartAGVersionsObject.versionName = valueSmartAGVersionsSmartAGVersion["VersionName"].asString(); - if(!valueSmartAGVersionsSmartAGVersion["CreateTime"].isNull()) - smartAGVersionsObject.createTime = std::stol(valueSmartAGVersionsSmartAGVersion["CreateTime"].asString()); if(!valueSmartAGVersionsSmartAGVersion["Type"].isNull()) smartAGVersionsObject.type = valueSmartAGVersionsSmartAGVersion["Type"].asString(); + if(!valueSmartAGVersionsSmartAGVersion["CreateTime"].isNull()) + smartAGVersionsObject.createTime = std::stol(valueSmartAGVersionsSmartAGVersion["CreateTime"].asString()); + if(!valueSmartAGVersionsSmartAGVersion["VersionName"].isNull()) + smartAGVersionsObject.versionName = valueSmartAGVersionsSmartAGVersion["VersionName"].asString(); smartAGVersions_.push_back(smartAGVersionsObject); } diff --git a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc index 320230866..4ed79bba2 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc @@ -104,6 +104,17 @@ void DescribeSmartAccessGatewaysRequest::setVersionComparator(const std::string& setParameter("VersionComparator", versionComparator); } +std::string DescribeSmartAccessGatewaysRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeSmartAccessGatewaysRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeSmartAccessGatewaysRequest::getRegionId()const { return regionId_; @@ -148,6 +159,19 @@ void DescribeSmartAccessGatewaysRequest::setHardwareType(const std::string& hard setParameter("HardwareType", hardwareType); } +std::vector DescribeSmartAccessGatewaysRequest::getSmartAGIds()const +{ + return smartAGIds_; +} + +void DescribeSmartAccessGatewaysRequest::setSmartAGIds(const std::vector& smartAGIds) +{ + smartAGIds_ = smartAGIds; + for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) { + setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1)); + } +} + std::string DescribeSmartAccessGatewaysRequest::getSerialNumber()const { return serialNumber_; diff --git a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc index f98baf5e6..d0c3e4ab9 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc @@ -43,86 +43,108 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) - smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) - smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["City"].isNull()) - smartAccessGatewaysObject.city = valueSmartAccessGatewaysSmartAccessGateway["City"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) - smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["Status"].isNull()) - smartAccessGatewaysObject.status = valueSmartAccessGatewaysSmartAccessGateway["Status"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].isNull()) - smartAccessGatewaysObject.cidrBlock = valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) - smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].isNull()) - smartAccessGatewaysObject.associatedCcnName = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["Description"].isNull()) smartAccessGatewaysObject.description = valueSmartAccessGatewaysSmartAccessGateway["Description"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) - smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) - smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].isNull()) - smartAccessGatewaysObject.softwareVersion = valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) - smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].isNull()) - smartAccessGatewaysObject.serialNumber = valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].isNull()) - smartAccessGatewaysObject.securityLockThreshold = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["AclIds"].isNull()) - smartAccessGatewaysObject.aclIds = valueSmartAccessGatewaysSmartAccessGateway["AclIds"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].isNull()) - smartAccessGatewaysObject.dataPlan = std::stol(valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["UserCount"].isNull()) - smartAccessGatewaysObject.userCount = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UserCount"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) - smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].isNull()) - smartAccessGatewaysObject.upBandwidthWan = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].asString()); if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].isNull()) smartAccessGatewaysObject.upBandwidth4G = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].isNull()) + smartAccessGatewaysObject.resourceGroupId = valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) + smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["UserCount"].isNull()) + smartAccessGatewaysObject.userCount = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UserCount"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].isNull()) + smartAccessGatewaysObject.vpnStatus = valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) + smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].isNull()) + smartAccessGatewaysObject.associatedCcnName = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].isNull()) + smartAccessGatewaysObject.dpiMonitorStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].isNull()) + smartAccessGatewaysObject.cidrBlock = valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["QosIds"].isNull()) smartAccessGatewaysObject.qosIds = valueSmartAccessGatewaysSmartAccessGateway["QosIds"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].isNull()) + smartAccessGatewaysObject.upBandwidthWan = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) + smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].isNull()) + smartAccessGatewaysObject.ipsecStatus = valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) + smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) + smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].isNull()) smartAccessGatewaysObject.backupSoftwareVersion = valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) + smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].isNull()) + smartAccessGatewaysObject.dpiStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].isNull()) + smartAccessGatewaysObject.enterpriseCode = valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].isNull()) + smartAccessGatewaysObject.securityLockThreshold = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].isNull()) + smartAccessGatewaysObject.resellerUid = valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["Status"].isNull()) + smartAccessGatewaysObject.status = valueSmartAccessGatewaysSmartAccessGateway["Status"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].isNull()) + smartAccessGatewaysObject.idaasId = valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].isNull()) + smartAccessGatewaysObject.idaasApplicationId = valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) + smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].isNull()) + smartAccessGatewaysObject.dataPlan = std::stol(valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["City"].isNull()) + smartAccessGatewaysObject.city = valueSmartAccessGatewaysSmartAccessGateway["City"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) + smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].isNull()) + smartAccessGatewaysObject.resellerInstanceId = valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].isNull()) + smartAccessGatewaysObject.softwareVersion = valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].isNull()) + smartAccessGatewaysObject.serialNumber = valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].isNull()) + smartAccessGatewaysObject.accessPointId = valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AclIds"].isNull()) + smartAccessGatewaysObject.aclIds = valueSmartAccessGatewaysSmartAccessGateway["AclIds"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["BackupStatus"].isNull()) smartAccessGatewaysObject.backupStatus = valueSmartAccessGatewaysSmartAccessGateway["BackupStatus"].asString(); - auto allLinksNode = allSmartAccessGatewaysNode["Links"]["Link"]; - for (auto allSmartAccessGatewaysNodeLinksLink : allLinksNode) + auto allLinksNode = valueSmartAccessGatewaysSmartAccessGateway["Links"]["Link"]; + for (auto valueSmartAccessGatewaysSmartAccessGatewayLinksLink : allLinksNode) { SmartAccessGateway::Link linksObject; - if(!allSmartAccessGatewaysNodeLinksLink["InstanceId"].isNull()) - linksObject.instanceId = allSmartAccessGatewaysNodeLinksLink["InstanceId"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["Type"].isNull()) - linksObject.type = allSmartAccessGatewaysNodeLinksLink["Type"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["Status"].isNull()) - linksObject.status = allSmartAccessGatewaysNodeLinksLink["Status"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["EndTime"].isNull()) - linksObject.endTime = std::stol(allSmartAccessGatewaysNodeLinksLink["EndTime"].asString()); - if(!allSmartAccessGatewaysNodeLinksLink["Bandwidth"].isNull()) - linksObject.bandwidth = allSmartAccessGatewaysNodeLinksLink["Bandwidth"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["RelateInstanceId"].isNull()) - linksObject.relateInstanceId = allSmartAccessGatewaysNodeLinksLink["RelateInstanceId"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["RelateInstanceRegionId"].isNull()) - linksObject.relateInstanceRegionId = allSmartAccessGatewaysNodeLinksLink["RelateInstanceRegionId"].asString(); - if(!allSmartAccessGatewaysNodeLinksLink["CommodityType"].isNull()) - linksObject.commodityType = allSmartAccessGatewaysNodeLinksLink["CommodityType"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].isNull()) + linksObject.status = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Type"].isNull()) + linksObject.type = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Type"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["EndTime"].isNull()) + linksObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGatewayLinksLink["EndTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].isNull()) + linksObject.instanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].isNull()) + linksObject.relateInstanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Bandwidth"].isNull()) + linksObject.bandwidth = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Bandwidth"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].isNull()) + linksObject.commodityType = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceRegionId"].isNull()) + linksObject.relateInstanceRegionId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceRegionId"].asString(); smartAccessGatewaysObject.links.push_back(linksObject); } smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeSnatEntriesResult.cc b/smartag/src/model/DescribeSnatEntriesResult.cc index 5e00b9801..466d50c4c 100644 --- a/smartag/src/model/DescribeSnatEntriesResult.cc +++ b/smartag/src/model/DescribeSnatEntriesResult.cc @@ -45,20 +45,20 @@ void DescribeSnatEntriesResult::parse(const std::string &payload) SnatEntry snatEntriesObject; if(!valueSnatEntriesSnatEntry["InstanceId"].isNull()) snatEntriesObject.instanceId = valueSnatEntriesSnatEntry["InstanceId"].asString(); + if(!valueSnatEntriesSnatEntry["CreateTime"].isNull()) + snatEntriesObject.createTime = std::stol(valueSnatEntriesSnatEntry["CreateTime"].asString()); if(!valueSnatEntriesSnatEntry["CidrBlock"].isNull()) snatEntriesObject.cidrBlock = valueSnatEntriesSnatEntry["CidrBlock"].asString(); if(!valueSnatEntriesSnatEntry["SnatIp"].isNull()) snatEntriesObject.snatIp = valueSnatEntriesSnatEntry["SnatIp"].asString(); - if(!valueSnatEntriesSnatEntry["CreateTime"].isNull()) - snatEntriesObject.createTime = std::stol(valueSnatEntriesSnatEntry["CreateTime"].asString()); snatEntries_.push_back(snatEntriesObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc b/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc index f2fd4110c..ec34de446 100644 --- a/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc +++ b/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc @@ -43,10 +43,10 @@ void DescribeUnbindFlowLogSagsResult::parse(const std::string &payload) for (auto valueSagsSag : allSagsNode) { Sag sagsObject; - if(!valueSagsSag["SmartAGId"].isNull()) - sagsObject.smartAGId = valueSagsSag["SmartAGId"].asString(); if(!valueSagsSag["Description"].isNull()) sagsObject.description = valueSagsSag["Description"].asString(); + if(!valueSagsSag["SmartAGId"].isNull()) + sagsObject.smartAGId = valueSagsSag["SmartAGId"].asString(); if(!valueSagsSag["Name"].isNull()) sagsObject.name = valueSagsSag["Name"].asString(); sags_.push_back(sagsObject); diff --git a/smartag/src/model/DescribeUserOnlineClientsResult.cc b/smartag/src/model/DescribeUserOnlineClientsResult.cc index 682ecece7..45171e622 100644 --- a/smartag/src/model/DescribeUserOnlineClientsResult.cc +++ b/smartag/src/model/DescribeUserOnlineClientsResult.cc @@ -43,10 +43,10 @@ void DescribeUserOnlineClientsResult::parse(const std::string &payload) for (auto valueUsersUser : allUsersNode) { User usersObject; - if(!valueUsersUser["ClientIp"].isNull()) - usersObject.clientIp = valueUsersUser["ClientIp"].asString(); if(!valueUsersUser["OnlineTime"].isNull()) usersObject.onlineTime = valueUsersUser["OnlineTime"].asString(); + if(!valueUsersUser["ClientIp"].isNull()) + usersObject.clientIp = valueUsersUser["ClientIp"].asString(); users_.push_back(usersObject); } diff --git a/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc b/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc new file mode 100644 index 000000000..5163a3d8f --- /dev/null +++ b/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DiagnoseSmartAccessGatewayRequest; + +DiagnoseSmartAccessGatewayRequest::DiagnoseSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DiagnoseSmartAccessGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +DiagnoseSmartAccessGatewayRequest::~DiagnoseSmartAccessGatewayRequest() +{} + +long DiagnoseSmartAccessGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DiagnoseSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DiagnoseSmartAccessGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DiagnoseSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DiagnoseSmartAccessGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DiagnoseSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DiagnoseSmartAccessGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DiagnoseSmartAccessGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DiagnoseSmartAccessGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DiagnoseSmartAccessGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DiagnoseSmartAccessGatewayRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DiagnoseSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + +std::string DiagnoseSmartAccessGatewayRequest::getSmartAGSn()const +{ + return smartAGSn_; +} + +void DiagnoseSmartAccessGatewayRequest::setSmartAGSn(const std::string& smartAGSn) +{ + smartAGSn_ = smartAGSn; + setParameter("SmartAGSn", smartAGSn); +} + diff --git a/smartag/src/model/DiagnoseSmartAccessGatewayResult.cc b/smartag/src/model/DiagnoseSmartAccessGatewayResult.cc new file mode 100644 index 000000000..1cfd7c4a7 --- /dev/null +++ b/smartag/src/model/DiagnoseSmartAccessGatewayResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DiagnoseSmartAccessGatewayResult::DiagnoseSmartAccessGatewayResult() : + ServiceResult() +{} + +DiagnoseSmartAccessGatewayResult::DiagnoseSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiagnoseSmartAccessGatewayResult::~DiagnoseSmartAccessGatewayResult() +{} + +void DiagnoseSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc b/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc new file mode 100644 index 000000000..3a3da796b --- /dev/null +++ b/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DisableSmartAGDpiMonitorRequest; + +DisableSmartAGDpiMonitorRequest::DisableSmartAGDpiMonitorRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAGDpiMonitor") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableSmartAGDpiMonitorRequest::~DisableSmartAGDpiMonitorRequest() +{} + +long DisableSmartAGDpiMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisableSmartAGDpiMonitorRequest::getClientToken()const +{ + return clientToken_; +} + +void DisableSmartAGDpiMonitorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DisableSmartAGDpiMonitorRequest::getRegionId()const +{ + return regionId_; +} + +void DisableSmartAGDpiMonitorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DisableSmartAGDpiMonitorRequest::getDryRun()const +{ + return dryRun_; +} + +void DisableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DisableSmartAGDpiMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisableSmartAGDpiMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DisableSmartAGDpiMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisableSmartAGDpiMonitorRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DisableSmartAGDpiMonitorRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/DisableSmartAGDpiMonitorResult.cc b/smartag/src/model/DisableSmartAGDpiMonitorResult.cc new file mode 100644 index 000000000..d510b9642 --- /dev/null +++ b/smartag/src/model/DisableSmartAGDpiMonitorResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisableSmartAGDpiMonitorResult::DisableSmartAGDpiMonitorResult() : + ServiceResult() +{} + +DisableSmartAGDpiMonitorResult::DisableSmartAGDpiMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableSmartAGDpiMonitorResult::~DisableSmartAGDpiMonitorResult() +{} + +void DisableSmartAGDpiMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc new file mode 100644 index 000000000..62119d705 --- /dev/null +++ b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DiscribeSmartAccessGatewayDiagnosisReportRequest; + +DiscribeSmartAccessGatewayDiagnosisReportRequest::DiscribeSmartAccessGatewayDiagnosisReportRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DiscribeSmartAccessGatewayDiagnosisReport") +{ + setMethod(HttpRequest::Method::Post); +} + +DiscribeSmartAccessGatewayDiagnosisReportRequest::~DiscribeSmartAccessGatewayDiagnosisReportRequest() +{} + +long DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerId()const +{ + return ownerId_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getRegionId()const +{ + return regionId_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGSn()const +{ + return smartAGSn_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGSn(const std::string& smartAGSn) +{ + smartAGSn_ = smartAGSn; + setParameter("SmartAGSn", smartAGSn); +} + diff --git a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc new file mode 100644 index 000000000..7572d617f --- /dev/null +++ b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DiscribeSmartAccessGatewayDiagnosisReportResult::DiscribeSmartAccessGatewayDiagnosisReportResult() : + ServiceResult() +{} + +DiscribeSmartAccessGatewayDiagnosisReportResult::DiscribeSmartAccessGatewayDiagnosisReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiscribeSmartAccessGatewayDiagnosisReportResult::~DiscribeSmartAccessGatewayDiagnosisReportResult() +{} + +void DiscribeSmartAccessGatewayDiagnosisReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto diagnoseResultNode = value["DiagnoseResult"]; + if(!diagnoseResultNode["Parameters"].isNull()) + diagnoseResult_.parameters = diagnoseResultNode["Parameters"].asString(); + if(!diagnoseResultNode["EndTime"].isNull()) + diagnoseResult_.endTime = std::stoi(diagnoseResultNode["EndTime"].asString()); + if(!diagnoseResultNode["InstanceId"].isNull()) + diagnoseResult_.instanceId = diagnoseResultNode["InstanceId"].asString(); + if(!diagnoseResultNode["UserLevel"].isNull()) + diagnoseResult_.userLevel = diagnoseResultNode["UserLevel"].asString(); + if(!diagnoseResultNode["Percent"].isNull()) + diagnoseResult_.percent = std::stoi(diagnoseResultNode["Percent"].asString()); + if(!diagnoseResultNode["StartTime"].isNull()) + diagnoseResult_.startTime = std::stoi(diagnoseResultNode["StartTime"].asString()); + if(!diagnoseResultNode["FinishedNumber"].isNull()) + diagnoseResult_.finishedNumber = std::stoi(diagnoseResultNode["FinishedNumber"].asString()); + if(!diagnoseResultNode["BoxType"].isNull()) + diagnoseResult_.boxType = diagnoseResultNode["BoxType"].asString(); + if(!diagnoseResultNode["StoreType"].isNull()) + diagnoseResult_.storeType = diagnoseResultNode["StoreType"].asString(); + if(!diagnoseResultNode["MonitorVersion"].isNull()) + diagnoseResult_.monitorVersion = diagnoseResultNode["MonitorVersion"].asString(); + if(!diagnoseResultNode["UId"].isNull()) + diagnoseResult_.uId = diagnoseResultNode["UId"].asString(); + if(!diagnoseResultNode["ReportSLSSuccess"].isNull()) + diagnoseResult_.reportSLSSuccess = std::stoi(diagnoseResultNode["ReportSLSSuccess"].asString()); + if(!diagnoseResultNode["State"].isNull()) + diagnoseResult_.state = diagnoseResultNode["State"].asString(); + if(!diagnoseResultNode["DiagnoseId"].isNull()) + diagnoseResult_.diagnoseId = diagnoseResultNode["DiagnoseId"].asString(); + if(!diagnoseResultNode["TotalNumber"].isNull()) + diagnoseResult_.totalNumber = std::stoi(diagnoseResultNode["TotalNumber"].asString()); + if(!diagnoseResultNode["BoxVersion"].isNull()) + diagnoseResult_.boxVersion = diagnoseResultNode["BoxVersion"].asString(); + if(!diagnoseResultNode["SN"].isNull()) + diagnoseResult_.sN = diagnoseResultNode["SN"].asString(); + auto allDetailsNode = diagnoseResultNode["Details"]["Detail"]; + for (auto diagnoseResultNodeDetailsDetail : allDetailsNode) + { + DiagnoseResult::Detail detailObject; + if(!diagnoseResultNodeDetailsDetail["Type"].isNull()) + detailObject.type = diagnoseResultNodeDetailsDetail["Type"].asString(); + auto allItemsNode = diagnoseResultNodeDetailsDetail["Items"]["Item"]; + for (auto diagnoseResultNodeDetailsDetailItemsItem : allItemsNode) + { + DiagnoseResult::Detail::Item itemsObject; + if(!diagnoseResultNodeDetailsDetailItemsItem["Type"].isNull()) + itemsObject.type = diagnoseResultNodeDetailsDetailItemsItem["Type"].asString(); + if(!diagnoseResultNodeDetailsDetailItemsItem["EndTime"].isNull()) + itemsObject.endTime = std::stol(diagnoseResultNodeDetailsDetailItemsItem["EndTime"].asString()); + if(!diagnoseResultNodeDetailsDetailItemsItem["StartTime"].isNull()) + itemsObject.startTime = std::stol(diagnoseResultNodeDetailsDetailItemsItem["StartTime"].asString()); + if(!diagnoseResultNodeDetailsDetailItemsItem["ItemName"].isNull()) + itemsObject.itemName = diagnoseResultNodeDetailsDetailItemsItem["ItemName"].asString(); + if(!diagnoseResultNodeDetailsDetailItemsItem["Level"].isNull()) + itemsObject.level = diagnoseResultNodeDetailsDetailItemsItem["Level"].asString(); + auto eNNode = value["EN"]; + if(!eNNode["ItemLevel"].isNull()) + itemsObject.eN.itemLevel = eNNode["ItemLevel"].asString(); + if(!eNNode["ItemType"].isNull()) + itemsObject.eN.itemType = eNNode["ItemType"].asString(); + if(!eNNode["ItemName"].isNull()) + itemsObject.eN.itemName = eNNode["ItemName"].asString(); + auto allDetails2 = eNNode["Details"]["Detail"]; + for (auto value : allDetails2) + itemsObject.eN.details2.push_back(value.asString()); + auto allAdvice = eNNode["Advice"]["Advice"]; + for (auto value : allAdvice) + itemsObject.eN.advice.push_back(value.asString()); + auto cNNode = value["CN"]; + if(!cNNode["ItemLevel"].isNull()) + itemsObject.cN.itemLevel = cNNode["ItemLevel"].asString(); + if(!cNNode["ItemType"].isNull()) + itemsObject.cN.itemType = cNNode["ItemType"].asString(); + if(!cNNode["ItemName"].isNull()) + itemsObject.cN.itemName = cNNode["ItemName"].asString(); + auto allDetails3 = cNNode["Details"]["Detail"]; + for (auto value : allDetails3) + itemsObject.cN.details3.push_back(value.asString()); + auto allAdvice4 = cNNode["Advice"]["Advice"]; + for (auto value : allAdvice4) + itemsObject.cN.advice4.push_back(value.asString()); + detailObject.items.push_back(itemsObject); + } + auto statistics1Node = value["Statistics"]; + if(!statistics1Node["Warning"].isNull()) + detailObject.statistics1.warning = std::stoi(statistics1Node["Warning"].asString()); + if(!statistics1Node["Total"].isNull()) + detailObject.statistics1.total = std::stoi(statistics1Node["Total"].asString()); + if(!statistics1Node["Error"].isNull()) + detailObject.statistics1.error = std::stoi(statistics1Node["Error"].asString()); + if(!statistics1Node["Info"].isNull()) + detailObject.statistics1.info = std::stoi(statistics1Node["Info"].asString()); + diagnoseResult_.details.push_back(detailObject); + } + auto levelNode = diagnoseResultNode["Level"]; + if(!levelNode["Biz"].isNull()) + diagnoseResult_.level.biz = levelNode["Biz"].asString(); + if(!levelNode["Configuration"].isNull()) + diagnoseResult_.level.configuration = levelNode["Configuration"].asString(); + if(!levelNode["Total"].isNull()) + diagnoseResult_.level.total = levelNode["Total"].asString(); + auto statisticsNode = diagnoseResultNode["Statistics"]; + if(!statisticsNode["Warning"].isNull()) + diagnoseResult_.statistics.warning = std::stoi(statisticsNode["Warning"].asString()); + if(!statisticsNode["Total"].isNull()) + diagnoseResult_.statistics.total = std::stoi(statisticsNode["Total"].asString()); + if(!statisticsNode["Error"].isNull()) + diagnoseResult_.statistics.error = std::stoi(statisticsNode["Error"].asString()); + if(!statisticsNode["Info"].isNull()) + diagnoseResult_.statistics.info = std::stoi(statisticsNode["Info"].asString()); + +} + +DiscribeSmartAccessGatewayDiagnosisReportResult::DiagnoseResult DiscribeSmartAccessGatewayDiagnosisReportResult::getDiagnoseResult()const +{ + return diagnoseResult_; +} + diff --git a/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc b/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc new file mode 100644 index 000000000..b2efb7d5f --- /dev/null +++ b/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::EnableSmartAGDpiMonitorRequest; + +EnableSmartAGDpiMonitorRequest::EnableSmartAGDpiMonitorRequest() : + RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAGDpiMonitor") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableSmartAGDpiMonitorRequest::~EnableSmartAGDpiMonitorRequest() +{} + +std::string EnableSmartAGDpiMonitorRequest::getSlsLogStore()const +{ + return slsLogStore_; +} + +void EnableSmartAGDpiMonitorRequest::setSlsLogStore(const std::string& slsLogStore) +{ + slsLogStore_ = slsLogStore; + setParameter("SlsLogStore", slsLogStore); +} + +long EnableSmartAGDpiMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnableSmartAGDpiMonitorRequest::getClientToken()const +{ + return clientToken_; +} + +void EnableSmartAGDpiMonitorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EnableSmartAGDpiMonitorRequest::getRegionId()const +{ + return regionId_; +} + +void EnableSmartAGDpiMonitorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string EnableSmartAGDpiMonitorRequest::getSlsProjectName()const +{ + return slsProjectName_; +} + +void EnableSmartAGDpiMonitorRequest::setSlsProjectName(const std::string& slsProjectName) +{ + slsProjectName_ = slsProjectName; + setParameter("SlsProjectName", slsProjectName); +} + +bool EnableSmartAGDpiMonitorRequest::getDryRun()const +{ + return dryRun_; +} + +void EnableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string EnableSmartAGDpiMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnableSmartAGDpiMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long EnableSmartAGDpiMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string EnableSmartAGDpiMonitorRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void EnableSmartAGDpiMonitorRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/ModifySerialNumberResult.cc b/smartag/src/model/EnableSmartAGDpiMonitorResult.cc similarity index 61% rename from smartag/src/model/ModifySerialNumberResult.cc rename to smartag/src/model/EnableSmartAGDpiMonitorResult.cc index 8eee620f8..cc9b47ec7 100644 --- a/smartag/src/model/ModifySerialNumberResult.cc +++ b/smartag/src/model/EnableSmartAGDpiMonitorResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -ModifySerialNumberResult::ModifySerialNumberResult() : +EnableSmartAGDpiMonitorResult::EnableSmartAGDpiMonitorResult() : ServiceResult() {} -ModifySerialNumberResult::ModifySerialNumberResult(const std::string &payload) : +EnableSmartAGDpiMonitorResult::EnableSmartAGDpiMonitorResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifySerialNumberResult::~ModifySerialNumberResult() +EnableSmartAGDpiMonitorResult::~EnableSmartAGDpiMonitorResult() {} -void ModifySerialNumberResult::parse(const std::string &payload) +void EnableSmartAGDpiMonitorResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); } diff --git a/smartag/src/model/GetAclAttributeRequest.cc b/smartag/src/model/GetAclAttributeRequest.cc new file mode 100644 index 000000000..876d5feff --- /dev/null +++ b/smartag/src/model/GetAclAttributeRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Smartag::Model::GetAclAttributeRequest; + +GetAclAttributeRequest::GetAclAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetAclAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAclAttributeRequest::~GetAclAttributeRequest() +{} + +std::string GetAclAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void GetAclAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetAclAttributeRequest::getAclId()const +{ + return aclId_; +} + +void GetAclAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + diff --git a/smartag/src/model/CreateDedicatedLineBackupResult.cc b/smartag/src/model/GetAclAttributeResult.cc similarity index 50% rename from smartag/src/model/CreateDedicatedLineBackupResult.cc rename to smartag/src/model/GetAclAttributeResult.cc index 14e4c7c5b..a2b9ca0ee 100644 --- a/smartag/src/model/CreateDedicatedLineBackupResult.cc +++ b/smartag/src/model/GetAclAttributeResult.cc @@ -14,35 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult() : +GetAclAttributeResult::GetAclAttributeResult() : ServiceResult() {} -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult(const std::string &payload) : +GetAclAttributeResult::GetAclAttributeResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateDedicatedLineBackupResult::~CreateDedicatedLineBackupResult() +GetAclAttributeResult::~GetAclAttributeResult() {} -void CreateDedicatedLineBackupResult::parse(const std::string &payload) +void GetAclAttributeResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["ErrorConfigSmartAGCount"].isNull()) + errorConfigSmartAGCount_ = std::stoi(value["ErrorConfigSmartAGCount"].asString()); + if(!value["AclName"].isNull()) + aclName_ = value["AclName"].asString(); } +std::string GetAclAttributeResult::getAclId()const +{ + return aclId_; +} + +int GetAclAttributeResult::getErrorConfigSmartAGCount()const +{ + return errorConfigSmartAGCount_; +} + +std::string GetAclAttributeResult::getAclName()const +{ + return aclName_; +} + diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc index e4f2b4d74..d3cdc1b22 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc @@ -39,10 +39,10 @@ void GetCloudConnectNetworkUseLimitResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TotalAmount"].isNull()) - totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); + if(!value["TotalAmount"].isNull()) + totalAmount_ = std::stoi(value["TotalAmount"].asString()); } diff --git a/smartag/src/model/GetQosAttributeRequest.cc b/smartag/src/model/GetQosAttributeRequest.cc new file mode 100644 index 000000000..8565fc37d --- /dev/null +++ b/smartag/src/model/GetQosAttributeRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Smartag::Model::GetQosAttributeRequest; + +GetQosAttributeRequest::GetQosAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetQosAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +GetQosAttributeRequest::~GetQosAttributeRequest() +{} + +std::string GetQosAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void GetQosAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetQosAttributeRequest::getQosId()const +{ + return qosId_; +} + +void GetQosAttributeRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setParameter("QosId", qosId); +} + diff --git a/smartag/src/model/GetQosAttributeResult.cc b/smartag/src/model/GetQosAttributeResult.cc new file mode 100644 index 000000000..0c2da3dcc --- /dev/null +++ b/smartag/src/model/GetQosAttributeResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetQosAttributeResult::GetQosAttributeResult() : + ServiceResult() +{} + +GetQosAttributeResult::GetQosAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetQosAttributeResult::~GetQosAttributeResult() +{} + +void GetQosAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQosPoliciesNode = value["QosPolicies"]["QosPolicy"]; + for (auto valueQosPoliciesQosPolicy : allQosPoliciesNode) + { + QosPolicy qosPoliciesObject; + if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) + qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); + if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) + qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); + if(!valueQosPoliciesQosPolicy["EndTime"].isNull()) + qosPoliciesObject.endTime = std::stol(valueQosPoliciesQosPolicy["EndTime"].asString()); + if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) + qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); + if(!valueQosPoliciesQosPolicy["Priority"].isNull()) + qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); + if(!valueQosPoliciesQosPolicy["QosPolicieName"].isNull()) + qosPoliciesObject.qosPolicieName = valueQosPoliciesQosPolicy["QosPolicieName"].asString(); + if(!valueQosPoliciesQosPolicy["QosPolicieDescription"].isNull()) + qosPoliciesObject.qosPolicieDescription = valueQosPoliciesQosPolicy["QosPolicieDescription"].asString(); + if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) + qosPoliciesObject.startTime = std::stol(valueQosPoliciesQosPolicy["StartTime"].asString()); + if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) + qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["DestPortRange"].isNull()) + qosPoliciesObject.destPortRange = valueQosPoliciesQosPolicy["DestPortRange"].asString(); + qosPolicies_.push_back(qosPoliciesObject); + } + auto allQosCarsNode = value["QosCars"]["QosCar"]; + for (auto valueQosCarsQosCar : allQosCarsNode) + { + QosCar qosCarsObject; + if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) + qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); + if(!valueQosCarsQosCar["QosCarId"].isNull()) + qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); + if(!valueQosCarsQosCar["Priority"].isNull()) + qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); + if(!valueQosCarsQosCar["QosCarDescription"].isNull()) + qosCarsObject.qosCarDescription = valueQosCarsQosCar["QosCarDescription"].asString(); + if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) + qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["MaxBandwidthAbs"].isNull()) + qosCarsObject.maxBandwidthAbs = std::stoi(valueQosCarsQosCar["MaxBandwidthAbs"].asString()); + if(!valueQosCarsQosCar["QosCarName"].isNull()) + qosCarsObject.qosCarName = valueQosCarsQosCar["QosCarName"].asString(); + if(!valueQosCarsQosCar["PercentSourceType"].isNull()) + qosCarsObject.percentSourceType = valueQosCarsQosCar["PercentSourceType"].asString(); + if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) + qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["LimitType"].isNull()) + qosCarsObject.limitType = valueQosCarsQosCar["LimitType"].asString(); + qosCars_.push_back(qosCarsObject); + } + if(!value["ErrorConfigSmartAGCount"].isNull()) + errorConfigSmartAGCount_ = std::stoi(value["ErrorConfigSmartAGCount"].asString()); + if(!value["QosName"].isNull()) + qosName_ = value["QosName"].asString(); + if(!value["QosDescription"].isNull()) + qosDescription_ = value["QosDescription"].asString(); + +} + +std::vector GetQosAttributeResult::getQosPolicies()const +{ + return qosPolicies_; +} + +std::vector GetQosAttributeResult::getQosCars()const +{ + return qosCars_; +} + +int GetQosAttributeResult::getErrorConfigSmartAGCount()const +{ + return errorConfigSmartAGCount_; +} + +std::string GetQosAttributeResult::getQosName()const +{ + return qosName_; +} + +std::string GetQosAttributeResult::getQosDescription()const +{ + return qosDescription_; +} + diff --git a/smartag/src/model/GetSmartAGDpiAttributeRequest.cc b/smartag/src/model/GetSmartAGDpiAttributeRequest.cc new file mode 100644 index 000000000..371289265 --- /dev/null +++ b/smartag/src/model/GetSmartAGDpiAttributeRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::GetSmartAGDpiAttributeRequest; + +GetSmartAGDpiAttributeRequest::GetSmartAGDpiAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetSmartAGDpiAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSmartAGDpiAttributeRequest::~GetSmartAGDpiAttributeRequest() +{} + +long GetSmartAGDpiAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetSmartAGDpiAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void GetSmartAGDpiAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetSmartAGDpiAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetSmartAGDpiAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GetSmartAGDpiAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long GetSmartAGDpiAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetSmartAGDpiAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetSmartAGDpiAttributeRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void GetSmartAGDpiAttributeRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/GetSmartAGDpiAttributeResult.cc b/smartag/src/model/GetSmartAGDpiAttributeResult.cc new file mode 100644 index 000000000..d14147736 --- /dev/null +++ b/smartag/src/model/GetSmartAGDpiAttributeResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetSmartAGDpiAttributeResult::GetSmartAGDpiAttributeResult() : + ServiceResult() +{} + +GetSmartAGDpiAttributeResult::GetSmartAGDpiAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSmartAGDpiAttributeResult::~GetSmartAGDpiAttributeResult() +{} + +void GetSmartAGDpiAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["LogstoreName"].isNull()) + logstoreName_ = value["LogstoreName"].asString(); + if(!value["ProjectName"].isNull()) + projectName_ = value["ProjectName"].asString(); + if(!value["SlsRegion"].isNull()) + slsRegion_ = value["SlsRegion"].asString(); + if(!value["DpiMonitorStatus"].isNull()) + dpiMonitorStatus_ = value["DpiMonitorStatus"].asString(); + if(!value["DpiStatus"].isNull()) + dpiStatus_ = value["DpiStatus"].asString(); + +} + +std::string GetSmartAGDpiAttributeResult::getLogstoreName()const +{ + return logstoreName_; +} + +std::string GetSmartAGDpiAttributeResult::getProjectName()const +{ + return projectName_; +} + +std::string GetSmartAGDpiAttributeResult::getSlsRegion()const +{ + return slsRegion_; +} + +std::string GetSmartAGDpiAttributeResult::getDpiMonitorStatus()const +{ + return dpiMonitorStatus_; +} + +std::string GetSmartAGDpiAttributeResult::getDpiStatus()const +{ + return dpiStatus_; +} + diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc index 41e315ad2..7e5430474 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc @@ -39,10 +39,10 @@ void GetSmartAccessGatewayUseLimitResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TotalAmount"].isNull()) - totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); + if(!value["TotalAmount"].isNull()) + totalAmount_ = std::stoi(value["TotalAmount"].asString()); } diff --git a/smartag/src/model/GrantInstanceToCbnRequest.cc b/smartag/src/model/GrantInstanceToCbnRequest.cc index 0edcde2e0..5e918cebb 100644 --- a/smartag/src/model/GrantInstanceToCbnRequest.cc +++ b/smartag/src/model/GrantInstanceToCbnRequest.cc @@ -60,6 +60,17 @@ void GrantInstanceToCbnRequest::setCcnInstanceId(const std::string& ccnInstanceI setParameter("CcnInstanceId", ccnInstanceId); } +bool GrantInstanceToCbnRequest::getGrantTrafficService()const +{ + return grantTrafficService_; +} + +void GrantInstanceToCbnRequest::setGrantTrafficService(bool grantTrafficService) +{ + grantTrafficService_ = grantTrafficService; + setParameter("GrantTrafficService", grantTrafficService ? "true" : "false"); +} + std::string GrantInstanceToCbnRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -93,15 +104,15 @@ void GrantInstanceToCbnRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -std::string GrantInstanceToCbnRequest::getCenUid()const +long GrantInstanceToCbnRequest::getCenUid()const { return cenUid_; } -void GrantInstanceToCbnRequest::setCenUid(const std::string& cenUid) +void GrantInstanceToCbnRequest::setCenUid(long cenUid) { cenUid_ = cenUid; - setParameter("CenUid", cenUid); + setParameter("CenUid", std::to_string(cenUid)); } std::string GrantInstanceToCbnRequest::getCenInstanceId()const diff --git a/smartag/src/model/GrantSagInstanceToCcnRequest.cc b/smartag/src/model/GrantSagInstanceToCcnRequest.cc index 31e1999a8..0acc0ce2a 100644 --- a/smartag/src/model/GrantSagInstanceToCcnRequest.cc +++ b/smartag/src/model/GrantSagInstanceToCcnRequest.cc @@ -71,6 +71,17 @@ void GrantSagInstanceToCcnRequest::setCcnInstanceId(const std::string& ccnInstan setParameter("CcnInstanceId", ccnInstanceId); } +bool GrantSagInstanceToCcnRequest::getGrantTrafficService()const +{ + return grantTrafficService_; +} + +void GrantSagInstanceToCcnRequest::setGrantTrafficService(bool grantTrafficService) +{ + grantTrafficService_ = grantTrafficService; + setParameter("GrantTrafficService", grantTrafficService ? "true" : "false"); +} + std::string GrantSagInstanceToCcnRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc b/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc new file mode 100644 index 000000000..d935df1a8 --- /dev/null +++ b/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ListAccessPointNetworkQualitiesRequest; + +ListAccessPointNetworkQualitiesRequest::ListAccessPointNetworkQualitiesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListAccessPointNetworkQualities") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAccessPointNetworkQualitiesRequest::~ListAccessPointNetworkQualitiesRequest() +{} + +long ListAccessPointNetworkQualitiesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListAccessPointNetworkQualitiesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListAccessPointNetworkQualitiesRequest::getRegionId()const +{ + return regionId_; +} + +void ListAccessPointNetworkQualitiesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListAccessPointNetworkQualitiesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListAccessPointNetworkQualitiesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListAccessPointNetworkQualitiesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListAccessPointNetworkQualitiesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListAccessPointNetworkQualitiesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListAccessPointNetworkQualitiesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListAccessPointNetworkQualitiesRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ListAccessPointNetworkQualitiesRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc b/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc new file mode 100644 index 000000000..001f7b6b7 --- /dev/null +++ b/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListAccessPointNetworkQualitiesResult::ListAccessPointNetworkQualitiesResult() : + ServiceResult() +{} + +ListAccessPointNetworkQualitiesResult::ListAccessPointNetworkQualitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccessPointNetworkQualitiesResult::~ListAccessPointNetworkQualitiesResult() +{} + +void ListAccessPointNetworkQualitiesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccessPointNetworkQualitiesNode = value["AccessPointNetworkQualities"]["AccessPointNetworkQuality"]; + for (auto valueAccessPointNetworkQualitiesAccessPointNetworkQuality : allAccessPointNetworkQualitiesNode) + { + AccessPointNetworkQuality accessPointNetworkQualitiesObject; + if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].isNull()) + accessPointNetworkQualitiesObject.rtt = valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].asString(); + if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Loss"].isNull()) + accessPointNetworkQualitiesObject.loss = valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Loss"].asString(); + if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Id"].isNull()) + accessPointNetworkQualitiesObject.id = std::stoi(valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Id"].asString()); + accessPointNetworkQualities_.push_back(accessPointNetworkQualitiesObject); + } + +} + +std::vector ListAccessPointNetworkQualitiesResult::getAccessPointNetworkQualities()const +{ + return accessPointNetworkQualities_; +} + diff --git a/smartag/src/model/ListAccessPointsRequest.cc b/smartag/src/model/ListAccessPointsRequest.cc new file mode 100644 index 000000000..0e6a40ab3 --- /dev/null +++ b/smartag/src/model/ListAccessPointsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ListAccessPointsRequest; + +ListAccessPointsRequest::ListAccessPointsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListAccessPoints") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAccessPointsRequest::~ListAccessPointsRequest() +{} + +long ListAccessPointsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListAccessPointsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAccessPointsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAccessPointsRequest::getRegionId()const +{ + return regionId_; +} + +void ListAccessPointsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListAccessPointsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAccessPointsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAccessPointsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListAccessPointsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListAccessPointsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListAccessPointsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListAccessPointsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListAccessPointsRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ListAccessPointsRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/ListAccessPointsResult.cc b/smartag/src/model/ListAccessPointsResult.cc new file mode 100644 index 000000000..b5ddf7a8d --- /dev/null +++ b/smartag/src/model/ListAccessPointsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListAccessPointsResult::ListAccessPointsResult() : + ServiceResult() +{} + +ListAccessPointsResult::ListAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccessPointsResult::~ListAccessPointsResult() +{} + +void ListAccessPointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccessPointsNode = value["AccessPoints"]["AccessPoint"]; + for (auto valueAccessPointsAccessPoint : allAccessPointsNode) + { + AccessPoint accessPointsObject; + if(!valueAccessPointsAccessPoint["AccessPointId"].isNull()) + accessPointsObject.accessPointId = std::stoi(valueAccessPointsAccessPoint["AccessPointId"].asString()); + if(!valueAccessPointsAccessPoint["ActiveSmartAGCount"].isNull()) + accessPointsObject.activeSmartAGCount = std::stoi(valueAccessPointsAccessPoint["ActiveSmartAGCount"].asString()); + if(!valueAccessPointsAccessPoint["Latitude"].isNull()) + accessPointsObject.latitude = valueAccessPointsAccessPoint["Latitude"].asString(); + if(!valueAccessPointsAccessPoint["InactiveSmartAGCount"].isNull()) + accessPointsObject.inactiveSmartAGCount = std::stoi(valueAccessPointsAccessPoint["InactiveSmartAGCount"].asString()); + if(!valueAccessPointsAccessPoint["Longitude"].isNull()) + accessPointsObject.longitude = valueAccessPointsAccessPoint["Longitude"].asString(); + accessPoints_.push_back(accessPointsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListAccessPointsResult::getAccessPoints()const +{ + return accessPoints_; +} + +int ListAccessPointsResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/smartag/src/model/ListDpiConfigErrorRequest.cc b/smartag/src/model/ListDpiConfigErrorRequest.cc new file mode 100644 index 000000000..94112eee9 --- /dev/null +++ b/smartag/src/model/ListDpiConfigErrorRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ListDpiConfigErrorRequest; + +ListDpiConfigErrorRequest::ListDpiConfigErrorRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListDpiConfigError") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDpiConfigErrorRequest::~ListDpiConfigErrorRequest() +{} + +std::string ListDpiConfigErrorRequest::getDpiConfigType()const +{ + return dpiConfigType_; +} + +void ListDpiConfigErrorRequest::setDpiConfigType(const std::string& dpiConfigType) +{ + dpiConfigType_ = dpiConfigType; + setParameter("DpiConfigType", dpiConfigType); +} + +std::string ListDpiConfigErrorRequest::getRegionId()const +{ + return regionId_; +} + +void ListDpiConfigErrorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListDpiConfigErrorRequest::getNextToken()const +{ + return nextToken_; +} + +void ListDpiConfigErrorRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListDpiConfigErrorRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ListDpiConfigErrorRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + +std::string ListDpiConfigErrorRequest::getRuleInstanceId()const +{ + return ruleInstanceId_; +} + +void ListDpiConfigErrorRequest::setRuleInstanceId(const std::string& ruleInstanceId) +{ + ruleInstanceId_ = ruleInstanceId; + setParameter("RuleInstanceId", ruleInstanceId); +} + +int ListDpiConfigErrorRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListDpiConfigErrorRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/smartag/src/model/ListDpiConfigErrorResult.cc b/smartag/src/model/ListDpiConfigErrorResult.cc new file mode 100644 index 000000000..3ce7e5261 --- /dev/null +++ b/smartag/src/model/ListDpiConfigErrorResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListDpiConfigErrorResult::ListDpiConfigErrorResult() : + ServiceResult() +{} + +ListDpiConfigErrorResult::ListDpiConfigErrorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDpiConfigErrorResult::~ListDpiConfigErrorResult() +{} + +void ListDpiConfigErrorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDpiConfigErrorNode = value["DpiConfigError"]["DpiConfigErrorItem"]; + for (auto valueDpiConfigErrorDpiConfigErrorItem : allDpiConfigErrorNode) + { + DpiConfigErrorItem dpiConfigErrorObject; + if(!valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].isNull()) + dpiConfigErrorObject.errorType = valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].asString(); + if(!valueDpiConfigErrorDpiConfigErrorItem["SN"].isNull()) + dpiConfigErrorObject.sN = valueDpiConfigErrorDpiConfigErrorItem["SN"].asString(); + if(!valueDpiConfigErrorDpiConfigErrorItem["SmartAGId"].isNull()) + dpiConfigErrorObject.smartAGId = valueDpiConfigErrorDpiConfigErrorItem["SmartAGId"].asString(); + auto allRuleConfigErrorListNode = valueDpiConfigErrorDpiConfigErrorItem["RuleConfigErrorList"]["RuleConfigErrorListItem"]; + for (auto valueDpiConfigErrorDpiConfigErrorItemRuleConfigErrorListRuleConfigErrorListItem : allRuleConfigErrorListNode) + { + DpiConfigErrorItem::RuleConfigErrorListItem ruleConfigErrorListObject; + if(!valueDpiConfigErrorDpiConfigErrorItemRuleConfigErrorListRuleConfigErrorListItem["RuleId"].isNull()) + ruleConfigErrorListObject.ruleId = valueDpiConfigErrorDpiConfigErrorItemRuleConfigErrorListRuleConfigErrorListItem["RuleId"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureIds"]; + for (auto value : allDpiSignatureIds) + ruleConfigErrorListObject.dpiSignatureIds.push_back(value.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupIds"]; + for (auto value : allDpiGroupIds) + ruleConfigErrorListObject.dpiGroupIds.push_back(value.asString()); + dpiConfigErrorObject.ruleConfigErrorList.push_back(ruleConfigErrorListObject); + } + dpiConfigError_.push_back(dpiConfigErrorObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::string ListDpiConfigErrorResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListDpiConfigErrorResult::getDpiConfigError()const +{ + return dpiConfigError_; +} + +int ListDpiConfigErrorResult::getMaxResults()const +{ + return maxResults_; +} + +int ListDpiConfigErrorResult::getTotal()const +{ + return total_; +} + diff --git a/smartag/src/model/ListDpiGroupsRequest.cc b/smartag/src/model/ListDpiGroupsRequest.cc new file mode 100644 index 000000000..06ed71c3e --- /dev/null +++ b/smartag/src/model/ListDpiGroupsRequest.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 + +using AlibabaCloud::Smartag::Model::ListDpiGroupsRequest; + +ListDpiGroupsRequest::ListDpiGroupsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListDpiGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDpiGroupsRequest::~ListDpiGroupsRequest() +{} + +std::vector ListDpiGroupsRequest::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + +void ListDpiGroupsRequest::setDpiGroupIds(const std::vector& dpiGroupIds) +{ + dpiGroupIds_ = dpiGroupIds; + for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { + setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); + } +} + +long ListDpiGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListDpiGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListDpiGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void ListDpiGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListDpiGroupsRequest::getNextToken()const +{ + return nextToken_; +} + +void ListDpiGroupsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListDpiGroupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListDpiGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListDpiGroupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListDpiGroupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListDpiGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListDpiGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector ListDpiGroupsRequest::getDpiGroupNames()const +{ + return dpiGroupNames_; +} + +void ListDpiGroupsRequest::setDpiGroupNames(const std::vector& dpiGroupNames) +{ + dpiGroupNames_ = dpiGroupNames; + for(int dep1 = 0; dep1!= dpiGroupNames.size(); dep1++) { + setParameter("DpiGroupNames."+ std::to_string(dep1), dpiGroupNames.at(dep1)); + } +} + +int ListDpiGroupsRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListDpiGroupsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/smartag/src/model/ListDpiGroupsResult.cc b/smartag/src/model/ListDpiGroupsResult.cc new file mode 100644 index 000000000..217ca874d --- /dev/null +++ b/smartag/src/model/ListDpiGroupsResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListDpiGroupsResult::ListDpiGroupsResult() : + ServiceResult() +{} + +ListDpiGroupsResult::ListDpiGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDpiGroupsResult::~ListDpiGroupsResult() +{} + +void ListDpiGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDpiGroupNode = value["DpiGroup"]["DpiGroupItem"]; + for (auto valueDpiGroupDpiGroupItem : allDpiGroupNode) + { + DpiGroupItem dpiGroupObject; + if(!valueDpiGroupDpiGroupItem["MinEngineVersion"].isNull()) + dpiGroupObject.minEngineVersion = valueDpiGroupDpiGroupItem["MinEngineVersion"].asString(); + if(!valueDpiGroupDpiGroupItem["DpiGroupName"].isNull()) + dpiGroupObject.dpiGroupName = valueDpiGroupDpiGroupItem["DpiGroupName"].asString(); + if(!valueDpiGroupDpiGroupItem["MinSignatureDbVersion"].isNull()) + dpiGroupObject.minSignatureDbVersion = valueDpiGroupDpiGroupItem["MinSignatureDbVersion"].asString(); + if(!valueDpiGroupDpiGroupItem["DpiGroupId"].isNull()) + dpiGroupObject.dpiGroupId = valueDpiGroupDpiGroupItem["DpiGroupId"].asString(); + dpiGroup_.push_back(dpiGroupObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +int ListDpiGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDpiGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListDpiGroupsResult::getDpiGroup()const +{ + return dpiGroup_; +} + diff --git a/smartag/src/model/ListDpiSignaturesRequest.cc b/smartag/src/model/ListDpiSignaturesRequest.cc new file mode 100644 index 000000000..9451c6864 --- /dev/null +++ b/smartag/src/model/ListDpiSignaturesRequest.cc @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ListDpiSignaturesRequest; + +ListDpiSignaturesRequest::ListDpiSignaturesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListDpiSignatures") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDpiSignaturesRequest::~ListDpiSignaturesRequest() +{} + +long ListDpiSignaturesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListDpiSignaturesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListDpiSignaturesRequest::getDpiSignatureNames()const +{ + return dpiSignatureNames_; +} + +void ListDpiSignaturesRequest::setDpiSignatureNames(const std::vector& dpiSignatureNames) +{ + dpiSignatureNames_ = dpiSignatureNames; + for(int dep1 = 0; dep1!= dpiSignatureNames.size(); dep1++) { + setParameter("DpiSignatureNames."+ std::to_string(dep1), dpiSignatureNames.at(dep1)); + } +} + +std::vector ListDpiSignaturesRequest::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +void ListDpiSignaturesRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) +{ + dpiSignatureIds_ = dpiSignatureIds; + for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { + setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); + } +} + +std::string ListDpiSignaturesRequest::getRegionId()const +{ + return regionId_; +} + +void ListDpiSignaturesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListDpiSignaturesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListDpiSignaturesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListDpiSignaturesRequest::getDpiGroupId()const +{ + return dpiGroupId_; +} + +void ListDpiSignaturesRequest::setDpiGroupId(const std::string& dpiGroupId) +{ + dpiGroupId_ = dpiGroupId; + setParameter("DpiGroupId", dpiGroupId); +} + +std::string ListDpiSignaturesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListDpiSignaturesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListDpiSignaturesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListDpiSignaturesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListDpiSignaturesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListDpiSignaturesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int ListDpiSignaturesRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListDpiSignaturesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/smartag/src/model/ListDpiSignaturesResult.cc b/smartag/src/model/ListDpiSignaturesResult.cc new file mode 100644 index 000000000..af9853487 --- /dev/null +++ b/smartag/src/model/ListDpiSignaturesResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListDpiSignaturesResult::ListDpiSignaturesResult() : + ServiceResult() +{} + +ListDpiSignaturesResult::ListDpiSignaturesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDpiSignaturesResult::~ListDpiSignaturesResult() +{} + +void ListDpiSignaturesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDpiSignatureNode = value["DpiSignature"]["DpiSignatureItem"]; + for (auto valueDpiSignatureDpiSignatureItem : allDpiSignatureNode) + { + DpiSignatureItem dpiSignatureObject; + if(!valueDpiSignatureDpiSignatureItem["MinEngineVersion"].isNull()) + dpiSignatureObject.minEngineVersion = valueDpiSignatureDpiSignatureItem["MinEngineVersion"].asString(); + if(!valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].isNull()) + dpiSignatureObject.minSignatureDbVersion = valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].asString(); + if(!valueDpiSignatureDpiSignatureItem["DpiSignatureId"].isNull()) + dpiSignatureObject.dpiSignatureId = valueDpiSignatureDpiSignatureItem["DpiSignatureId"].asString(); + if(!valueDpiSignatureDpiSignatureItem["DpiSignatureName"].isNull()) + dpiSignatureObject.dpiSignatureName = valueDpiSignatureDpiSignatureItem["DpiSignatureName"].asString(); + if(!valueDpiSignatureDpiSignatureItem["DpiGroupId"].isNull()) + dpiSignatureObject.dpiGroupId = valueDpiSignatureDpiSignatureItem["DpiGroupId"].asString(); + dpiSignature_.push_back(dpiSignatureObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +int ListDpiSignaturesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDpiSignaturesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListDpiSignaturesResult::getDpiSignature()const +{ + return dpiSignature_; +} + diff --git a/smartag/src/model/ListEnterpriseCodeRequest.cc b/smartag/src/model/ListEnterpriseCodeRequest.cc new file mode 100644 index 000000000..4bc583d29 --- /dev/null +++ b/smartag/src/model/ListEnterpriseCodeRequest.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 + +using AlibabaCloud::Smartag::Model::ListEnterpriseCodeRequest; + +ListEnterpriseCodeRequest::ListEnterpriseCodeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListEnterpriseCode") +{ + setMethod(HttpRequest::Method::Post); +} + +ListEnterpriseCodeRequest::~ListEnterpriseCodeRequest() +{} + +std::string ListEnterpriseCodeRequest::getRegionId()const +{ + return regionId_; +} + +void ListEnterpriseCodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListEnterpriseCodeRequest::getEnterpriseCode()const +{ + return enterpriseCode_; +} + +void ListEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) +{ + enterpriseCode_ = enterpriseCode; + setParameter("EnterpriseCode", enterpriseCode); +} + +std::string ListEnterpriseCodeRequest::getNextToken()const +{ + return nextToken_; +} + +void ListEnterpriseCodeRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +bool ListEnterpriseCodeRequest::getIsDefault()const +{ + return isDefault_; +} + +void ListEnterpriseCodeRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", isDefault ? "true" : "false"); +} + +int ListEnterpriseCodeRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListEnterpriseCodeRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/smartag/src/model/ListEnterpriseCodeResult.cc b/smartag/src/model/ListEnterpriseCodeResult.cc new file mode 100644 index 000000000..a1df0f425 --- /dev/null +++ b/smartag/src/model/ListEnterpriseCodeResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListEnterpriseCodeResult::ListEnterpriseCodeResult() : + ServiceResult() +{} + +ListEnterpriseCodeResult::ListEnterpriseCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEnterpriseCodeResult::~ListEnterpriseCodeResult() +{} + +void ListEnterpriseCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnterpriseCodesNode = value["EnterpriseCodes"]["EnterpriseCode"]; + for (auto valueEnterpriseCodesEnterpriseCode : allEnterpriseCodesNode) + { + EnterpriseCode enterpriseCodesObject; + if(!valueEnterpriseCodesEnterpriseCode["IsDefault"].isNull()) + enterpriseCodesObject.isDefault = valueEnterpriseCodesEnterpriseCode["IsDefault"].asString() == "true"; + if(!valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].isNull()) + enterpriseCodesObject.enterpriseCode = valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].asString(); + if(!valueEnterpriseCodesEnterpriseCode["SmartAGCount"].isNull()) + enterpriseCodesObject.smartAGCount = std::stoi(valueEnterpriseCodesEnterpriseCode["SmartAGCount"].asString()); + enterpriseCodes_.push_back(enterpriseCodesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListEnterpriseCodeResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListEnterpriseCodeResult::getNextToken()const +{ + return nextToken_; +} + +int ListEnterpriseCodeResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListEnterpriseCodeResult::getEnterpriseCodes()const +{ + return enterpriseCodes_; +} + diff --git a/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc b/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc new file mode 100644 index 000000000..080de0abf --- /dev/null +++ b/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ListSmartAGApiUnsupportedFeatureRequest; + +ListSmartAGApiUnsupportedFeatureRequest::ListSmartAGApiUnsupportedFeatureRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGApiUnsupportedFeature") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSmartAGApiUnsupportedFeatureRequest::~ListSmartAGApiUnsupportedFeatureRequest() +{} + +long ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getRegionId()const +{ + return regionId_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setParameter("SerialNumber", serialNumber); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListSmartAGApiUnsupportedFeatureRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + +std::string ListSmartAGApiUnsupportedFeatureRequest::getOpenApiName()const +{ + return openApiName_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setOpenApiName(const std::string& openApiName) +{ + openApiName_ = openApiName; + setParameter("OpenApiName", openApiName); +} + diff --git a/smartag/src/model/ListSmartAGApiUnsupportedFeatureResult.cc b/smartag/src/model/ListSmartAGApiUnsupportedFeatureResult.cc new file mode 100644 index 000000000..3f991e0c1 --- /dev/null +++ b/smartag/src/model/ListSmartAGApiUnsupportedFeatureResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListSmartAGApiUnsupportedFeatureResult::ListSmartAGApiUnsupportedFeatureResult() : + ServiceResult() +{} + +ListSmartAGApiUnsupportedFeatureResult::ListSmartAGApiUnsupportedFeatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSmartAGApiUnsupportedFeatureResult::~ListSmartAGApiUnsupportedFeatureResult() +{} + +void ListSmartAGApiUnsupportedFeatureResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFeaturesNode = value["Features"]["Feature"]; + for (auto valueFeaturesFeature : allFeaturesNode) + { + Feature featuresObject; + if(!valueFeaturesFeature["Feature"].isNull()) + featuresObject.feature = valueFeaturesFeature["Feature"].asString(); + features_.push_back(featuresObject); + } + +} + +std::vector ListSmartAGApiUnsupportedFeatureResult::getFeatures()const +{ + return features_; +} + diff --git a/smartag/src/model/ListSmartAGByAccessPointRequest.cc b/smartag/src/model/ListSmartAGByAccessPointRequest.cc new file mode 100644 index 000000000..f64b17edd --- /dev/null +++ b/smartag/src/model/ListSmartAGByAccessPointRequest.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 + +using AlibabaCloud::Smartag::Model::ListSmartAGByAccessPointRequest; + +ListSmartAGByAccessPointRequest::ListSmartAGByAccessPointRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGByAccessPoint") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSmartAGByAccessPointRequest::~ListSmartAGByAccessPointRequest() +{} + +int ListSmartAGByAccessPointRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void ListSmartAGByAccessPointRequest::setAccessPointId(int accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", std::to_string(accessPointId)); +} + +long ListSmartAGByAccessPointRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListSmartAGByAccessPointRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListSmartAGByAccessPointRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSmartAGByAccessPointRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSmartAGByAccessPointRequest::getRegionId()const +{ + return regionId_; +} + +void ListSmartAGByAccessPointRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListSmartAGByAccessPointRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSmartAGByAccessPointRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListSmartAGByAccessPointRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListSmartAGByAccessPointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListSmartAGByAccessPointRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListSmartAGByAccessPointRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListSmartAGByAccessPointRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListSmartAGByAccessPointRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListSmartAGByAccessPointRequest::getSmartAGStatus()const +{ + return smartAGStatus_; +} + +void ListSmartAGByAccessPointRequest::setSmartAGStatus(const std::string& smartAGStatus) +{ + smartAGStatus_ = smartAGStatus; + setParameter("SmartAGStatus", smartAGStatus); +} + diff --git a/smartag/src/model/ListSmartAGByAccessPointResult.cc b/smartag/src/model/ListSmartAGByAccessPointResult.cc new file mode 100644 index 000000000..4286bf107 --- /dev/null +++ b/smartag/src/model/ListSmartAGByAccessPointResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ListSmartAGByAccessPointResult::ListSmartAGByAccessPointResult() : + ServiceResult() +{} + +ListSmartAGByAccessPointResult::ListSmartAGByAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSmartAGByAccessPointResult::~ListSmartAGByAccessPointResult() +{} + +void ListSmartAGByAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSmartAccessGatewaysNode = value["SmartAccessGateways"]["SmartAccessGateway"]; + for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) + { + SmartAccessGateway smartAccessGatewaysObject; + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].isNull()) + smartAccessGatewaysObject.smartAGName = valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].isNull()) + smartAccessGatewaysObject.smartAGStatus = valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) + smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) + smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) + smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) + smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGDescription"].isNull()) + smartAccessGatewaysObject.smartAGDescription = valueSmartAccessGatewaysSmartAccessGateway["SmartAGDescription"].asString(); + smartAccessGateways_.push_back(smartAccessGatewaysObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListSmartAGByAccessPointResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListSmartAGByAccessPointResult::getSmartAccessGateways()const +{ + return smartAccessGateways_; +} + diff --git a/smartag/src/model/ModifyACLRuleRequest.cc b/smartag/src/model/ModifyACLRuleRequest.cc index 6a833a5b8..85b449e3c 100644 --- a/smartag/src/model/ModifyACLRuleRequest.cc +++ b/smartag/src/model/ModifyACLRuleRequest.cc @@ -27,6 +27,19 @@ ModifyACLRuleRequest::ModifyACLRuleRequest() : ModifyACLRuleRequest::~ModifyACLRuleRequest() {} +std::vector ModifyACLRuleRequest::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + +void ModifyACLRuleRequest::setDpiGroupIds(const std::vector& dpiGroupIds) +{ + dpiGroupIds_ = dpiGroupIds; + for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { + setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); + } +} + long ModifyACLRuleRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -93,6 +106,19 @@ void ModifyACLRuleRequest::setDestCidr(const std::string& destCidr) setParameter("DestCidr", destCidr); } +std::vector ModifyACLRuleRequest::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +void ModifyACLRuleRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) +{ + dpiSignatureIds_ = dpiSignatureIds; + for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { + setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); + } +} + std::string ModifyACLRuleRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/ModifyACLRuleResult.cc b/smartag/src/model/ModifyACLRuleResult.cc index eea8c97d7..4cb215feb 100644 --- a/smartag/src/model/ModifyACLRuleResult.cc +++ b/smartag/src/model/ModifyACLRuleResult.cc @@ -39,32 +39,38 @@ void ModifyACLRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AcrId"].isNull()) - acrId_ = value["AcrId"].asString(); - if(!value["AclId"].isNull()) - aclId_ = value["AclId"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); + auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; + for (const auto &item : allDpiGroupIds) + dpiGroupIds_.push_back(item.asString()); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["Direction"].isNull()) - direction_ = value["Direction"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); if(!value["SourceCidr"].isNull()) sourceCidr_ = value["SourceCidr"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AcrId"].isNull()) + acrId_ = value["AcrId"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); + if(!value["Direction"].isNull()) + direction_ = value["Direction"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); if(!value["DestCidr"].isNull()) destCidr_ = value["DestCidr"].asString(); if(!value["IpProtocol"].isNull()) ipProtocol_ = value["IpProtocol"].asString(); - if(!value["SourcePortRange"].isNull()) - sourcePortRange_ = value["SourcePortRange"].asString(); - if(!value["DestPortRange"].isNull()) - destPortRange_ = value["DestPortRange"].asString(); - if(!value["Policy"].isNull()) - policy_ = value["Policy"].asString(); - if(!value["Priority"].isNull()) - priority_ = std::stoi(value["Priority"].asString()); - if(!value["GmtCreate"].isNull()) - gmtCreate_ = std::stol(value["GmtCreate"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); } @@ -108,6 +114,11 @@ std::string ModifyACLRuleResult::getDestPortRange()const return destPortRange_; } +std::vector ModifyACLRuleResult::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + std::string ModifyACLRuleResult::getDirection()const { return direction_; @@ -128,6 +139,11 @@ std::string ModifyACLRuleResult::getDestCidr()const return destCidr_; } +std::vector ModifyACLRuleResult::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + std::string ModifyACLRuleResult::getIpProtocol()const { return ipProtocol_; diff --git a/smartag/src/model/ModifyClientUserDNSRequest.cc b/smartag/src/model/ModifyClientUserDNSRequest.cc new file mode 100644 index 000000000..8cbdf1944 --- /dev/null +++ b/smartag/src/model/ModifyClientUserDNSRequest.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyClientUserDNSRequest; + +ModifyClientUserDNSRequest::ModifyClientUserDNSRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyClientUserDNS") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyClientUserDNSRequest::~ModifyClientUserDNSRequest() +{} + +long ModifyClientUserDNSRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ModifyClientUserDNSRequest::getRecoveredDNS()const +{ + return recoveredDNS_; +} + +void ModifyClientUserDNSRequest::setRecoveredDNS(const std::vector& recoveredDNS) +{ + recoveredDNS_ = recoveredDNS; + for(int dep1 = 0; dep1!= recoveredDNS.size(); dep1++) { + setParameter("RecoveredDNS."+ std::to_string(dep1), recoveredDNS.at(dep1)); + } +} + +std::vector ModifyClientUserDNSRequest::getAppDNS()const +{ + return appDNS_; +} + +void ModifyClientUserDNSRequest::setAppDNS(const std::vector& appDNS) +{ + appDNS_ = appDNS; + for(int dep1 = 0; dep1!= appDNS.size(); dep1++) { + setParameter("AppDNS."+ std::to_string(dep1), appDNS.at(dep1)); + } +} + +std::string ModifyClientUserDNSRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyClientUserDNSRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyClientUserDNSRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyClientUserDNSRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyClientUserDNSRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyClientUserDNSRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyClientUserDNSRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyClientUserDNSRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyClientUserDNSRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifyClientUserDNSRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/ModifyClientUserDNSResult.cc b/smartag/src/model/ModifyClientUserDNSResult.cc new file mode 100644 index 000000000..7205d66c6 --- /dev/null +++ b/smartag/src/model/ModifyClientUserDNSResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyClientUserDNSResult::ModifyClientUserDNSResult() : + ServiceResult() +{} + +ModifyClientUserDNSResult::ModifyClientUserDNSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyClientUserDNSResult::~ModifyClientUserDNSResult() +{} + +void ModifyClientUserDNSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc b/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc index 5dc1127a6..7c6012bfe 100644 --- a/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc +++ b/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc @@ -137,6 +137,17 @@ void ModifyDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string ModifyDeviceAutoUpgradePolicyRequest::getVersionType()const +{ + return versionType_; +} + +void ModifyDeviceAutoUpgradePolicyRequest::setVersionType(const std::string& versionType) +{ + versionType_ = versionType; + setParameter("VersionType", versionType); +} + std::string ModifyDeviceAutoUpgradePolicyRequest::getSmartAGId()const { return smartAGId_; diff --git a/smartag/src/model/ModifyQosPolicyRequest.cc b/smartag/src/model/ModifyQosPolicyRequest.cc index 58c269b8e..dfd301edf 100644 --- a/smartag/src/model/ModifyQosPolicyRequest.cc +++ b/smartag/src/model/ModifyQosPolicyRequest.cc @@ -27,6 +27,19 @@ ModifyQosPolicyRequest::ModifyQosPolicyRequest() : ModifyQosPolicyRequest::~ModifyQosPolicyRequest() {} +std::vector ModifyQosPolicyRequest::getDpiGroupIds()const +{ + return dpiGroupIds_; +} + +void ModifyQosPolicyRequest::setDpiGroupIds(const std::vector& dpiGroupIds) +{ + dpiGroupIds_ = dpiGroupIds; + for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { + setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); + } +} + long ModifyQosPolicyRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -104,6 +117,19 @@ void ModifyQosPolicyRequest::setDestCidr(const std::string& destCidr) setParameter("DestCidr", destCidr); } +std::vector ModifyQosPolicyRequest::getDpiSignatureIds()const +{ + return dpiSignatureIds_; +} + +void ModifyQosPolicyRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) +{ + dpiSignatureIds_ = dpiSignatureIds; + for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { + setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); + } +} + std::string ModifyQosPolicyRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/ModifySAGAdminPasswordRequest.cc b/smartag/src/model/ModifySAGAdminPasswordRequest.cc new file mode 100644 index 000000000..27920cc2c --- /dev/null +++ b/smartag/src/model/ModifySAGAdminPasswordRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySAGAdminPasswordRequest; + +ModifySAGAdminPasswordRequest::ModifySAGAdminPasswordRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySAGAdminPassword") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySAGAdminPasswordRequest::~ModifySAGAdminPasswordRequest() +{} + +long ModifySAGAdminPasswordRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySAGAdminPasswordRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySAGAdminPasswordRequest::getPassword()const +{ + return password_; +} + +void ModifySAGAdminPasswordRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string ModifySAGAdminPasswordRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySAGAdminPasswordRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifySAGAdminPasswordRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySAGAdminPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySAGAdminPasswordRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySAGAdminPasswordRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifySAGAdminPasswordRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySAGAdminPasswordRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySAGAdminPasswordRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySAGAdminPasswordRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + +std::string ModifySAGAdminPasswordRequest::getSmartAGSn()const +{ + return smartAGSn_; +} + +void ModifySAGAdminPasswordRequest::setSmartAGSn(const std::string& smartAGSn) +{ + smartAGSn_ = smartAGSn; + setParameter("SmartAGSn", smartAGSn); +} + diff --git a/smartag/src/model/ModifySAGAdminPasswordResult.cc b/smartag/src/model/ModifySAGAdminPasswordResult.cc new file mode 100644 index 000000000..43ee323dd --- /dev/null +++ b/smartag/src/model/ModifySAGAdminPasswordResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySAGAdminPasswordResult::ModifySAGAdminPasswordResult() : + ServiceResult() +{} + +ModifySAGAdminPasswordResult::ModifySAGAdminPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySAGAdminPasswordResult::~ModifySAGAdminPasswordResult() +{} + +void ModifySAGAdminPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySagPortRoleRequest.cc b/smartag/src/model/ModifySagPortRoleRequest.cc index 96fa3715d..e6b0aaf5b 100644 --- a/smartag/src/model/ModifySagPortRoleRequest.cc +++ b/smartag/src/model/ModifySagPortRoleRequest.cc @@ -49,6 +49,17 @@ void ModifySagPortRoleRequest::setRole(const std::string& role) setParameter("Role", role); } +std::string ModifySagPortRoleRequest::getVlan()const +{ + return vlan_; +} + +void ModifySagPortRoleRequest::setVlan(const std::string& vlan) +{ + vlan_ = vlan; + setParameter("Vlan", vlan); +} + std::string ModifySagPortRoleRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/ModifySagRemoteAccessResult.cc b/smartag/src/model/ModifySagRemoteAccessResult.cc index 3a8a29f9c..c0ca1a546 100644 --- a/smartag/src/model/ModifySagRemoteAccessResult.cc +++ b/smartag/src/model/ModifySagRemoteAccessResult.cc @@ -39,16 +39,16 @@ void ModifySagRemoteAccessResult::parse(const std::string &payload) 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["SerialNumber"].isNull()) serialNumber_ = value["SerialNumber"].asString(); if(!value["RemoteAccessIp"].isNull()) remoteAccessIp_ = value["RemoteAccessIp"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc b/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc index faab5526f..69f0e3c18 100644 --- a/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc +++ b/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc @@ -104,6 +104,17 @@ void ModifySagRouteProtocolBgpRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string ModifySagRouteProtocolBgpRequest::getAdvertiseIps()const +{ + return advertiseIps_; +} + +void ModifySagRouteProtocolBgpRequest::setAdvertiseIps(const std::string& advertiseIps) +{ + advertiseIps_ = advertiseIps; + setParameter("AdvertiseIps", advertiseIps); +} + std::string ModifySagRouteProtocolBgpRequest::getRouterId()const { return routerId_; diff --git a/smartag/src/model/ModifySagWanRequest.cc b/smartag/src/model/ModifySagWanRequest.cc index dc2409180..4d816d141 100644 --- a/smartag/src/model/ModifySagWanRequest.cc +++ b/smartag/src/model/ModifySagWanRequest.cc @@ -38,6 +38,17 @@ void ModifySagWanRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string ModifySagWanRequest::getISP()const +{ + return iSP_; +} + +void ModifySagWanRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + std::string ModifySagWanRequest::getPassword()const { return password_; @@ -49,6 +60,17 @@ void ModifySagWanRequest::setPassword(const std::string& password) setParameter("Password", password); } +std::string ModifySagWanRequest::getVlan()const +{ + return vlan_; +} + +void ModifySagWanRequest::setVlan(const std::string& vlan) +{ + vlan_ = vlan; + setParameter("Vlan", vlan); +} + std::string ModifySagWanRequest::getRegionId()const { return regionId_; @@ -71,6 +93,17 @@ void ModifySagWanRequest::setMask(const std::string& mask) setParameter("Mask", mask); } +std::string ModifySagWanRequest::getStartIp()const +{ + return startIp_; +} + +void ModifySagWanRequest::setStartIp(const std::string& startIp) +{ + startIp_ = startIp; + setParameter("StartIp", startIp); +} + std::string ModifySagWanRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -82,6 +115,17 @@ void ModifySagWanRequest::setResourceOwnerAccount(const std::string& resourceOwn setParameter("ResourceOwnerAccount", resourceOwnerAccount); } +int ModifySagWanRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifySagWanRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + std::string ModifySagWanRequest::getOwnerAccount()const { return ownerAccount_; @@ -104,6 +148,17 @@ void ModifySagWanRequest::setIP(const std::string& iP) setParameter("IP", iP); } +int ModifySagWanRequest::getWeight()const +{ + return weight_; +} + +void ModifySagWanRequest::setWeight(int weight) +{ + weight_ = weight; + setParameter("Weight", std::to_string(weight)); +} + long ModifySagWanRequest::getOwnerId()const { return ownerId_; @@ -126,6 +181,28 @@ void ModifySagWanRequest::setIPType(const std::string& iPType) setParameter("IPType", iPType); } +int ModifySagWanRequest::getPriority()const +{ + return priority_; +} + +void ModifySagWanRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +std::string ModifySagWanRequest::getSourceIps()const +{ + return sourceIps_; +} + +void ModifySagWanRequest::setSourceIps(const std::string& sourceIps) +{ + sourceIps_ = sourceIps; + setParameter("SourceIps", sourceIps); +} + std::string ModifySagWanRequest::getSmartAGId()const { return smartAGId_; @@ -159,6 +236,17 @@ void ModifySagWanRequest::setPortName(const std::string& portName) setParameter("PortName", portName); } +std::string ModifySagWanRequest::getStopIp()const +{ + return stopIp_; +} + +void ModifySagWanRequest::setStopIp(const std::string& stopIp) +{ + stopIp_ = stopIp; + setParameter("StopIp", stopIp); +} + std::string ModifySagWanRequest::getGateway()const { return gateway_; diff --git a/smartag/src/model/ModifySerialNumberRequest.cc b/smartag/src/model/ModifySerialNumberRequest.cc deleted file mode 100644 index dcd8c5221..000000000 --- a/smartag/src/model/ModifySerialNumberRequest.cc +++ /dev/null @@ -1,104 +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::Smartag::Model::ModifySerialNumberRequest; - -ModifySerialNumberRequest::ModifySerialNumberRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySerialNumber") -{} - -ModifySerialNumberRequest::~ModifySerialNumberRequest() -{} - -long ModifySerialNumberRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifySerialNumberRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifySerialNumberRequest::getSerialNumber()const -{ - return serialNumber_; -} - -void ModifySerialNumberRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setCoreParameter("SerialNumber", serialNumber); -} - -std::string ModifySerialNumberRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifySerialNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifySerialNumberRequest::getRegionId()const -{ - return regionId_; -} - -void ModifySerialNumberRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string ModifySerialNumberRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifySerialNumberRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string ModifySerialNumberRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void ModifySerialNumberRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long ModifySerialNumberRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifySerialNumberRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc index f08a4ef95..0fb6995d6 100644 --- a/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc @@ -39,14 +39,14 @@ void ModifySmartAccessGatewayClientUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ClientIp"].isNull()) - clientIp_ = value["ClientIp"].asString(); - if(!value["UserMail"].isNull()) - userMail_ = value["UserMail"].asString(); if(!value["UserName"].isNull()) userName_ = value["UserName"].asString(); + if(!value["UserMail"].isNull()) + userMail_ = value["UserMail"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["ClientIp"].isNull()) + clientIp_ = value["ClientIp"].asString(); } diff --git a/smartag/src/model/MoveResourceGroupRequest.cc b/smartag/src/model/MoveResourceGroupRequest.cc new file mode 100644 index 000000000..15ce3b246 --- /dev/null +++ b/smartag/src/model/MoveResourceGroupRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() : + RpcServiceRequest("smartag", "2018-03-13", "MoveResourceGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +MoveResourceGroupRequest::~MoveResourceGroupRequest() +{} + +long MoveResourceGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MoveResourceGroupRequest::getRegionId()const +{ + return regionId_; +} + +void MoveResourceGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string MoveResourceGroupRequest::getResourceId()const +{ + return resourceId_; +} + +void MoveResourceGroupRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string MoveResourceGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MoveResourceGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void MoveResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long MoveResourceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void MoveResourceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MoveResourceGroupRequest::getResourceType()const +{ + return resourceType_; +} + +void MoveResourceGroupRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string MoveResourceGroupRequest::getNewResourceGroupId()const +{ + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) +{ + newResourceGroupId_ = newResourceGroupId; + setParameter("NewResourceGroupId", newResourceGroupId); +} + diff --git a/smartag/src/model/MoveResourceGroupResult.cc b/smartag/src/model/MoveResourceGroupResult.cc new file mode 100644 index 000000000..c02816181 --- /dev/null +++ b/smartag/src/model/MoveResourceGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +MoveResourceGroupResult::MoveResourceGroupResult() : + ServiceResult() +{} + +MoveResourceGroupResult::MoveResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveResourceGroupResult::~MoveResourceGroupResult() +{} + +void MoveResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc b/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc new file mode 100644 index 000000000..640491c67 --- /dev/null +++ b/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::ProbeAccessPointNetworkQualityRequest; + +ProbeAccessPointNetworkQualityRequest::ProbeAccessPointNetworkQualityRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ProbeAccessPointNetworkQuality") +{ + setMethod(HttpRequest::Method::Post); +} + +ProbeAccessPointNetworkQualityRequest::~ProbeAccessPointNetworkQualityRequest() +{} + +long ProbeAccessPointNetworkQualityRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ProbeAccessPointNetworkQualityRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ProbeAccessPointNetworkQualityRequest::getRegionId()const +{ + return regionId_; +} + +void ProbeAccessPointNetworkQualityRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ProbeAccessPointNetworkQualityRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ProbeAccessPointNetworkQualityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ProbeAccessPointNetworkQualityRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ProbeAccessPointNetworkQualityRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::vector ProbeAccessPointNetworkQualityRequest::getAccessPointIds()const +{ + return accessPointIds_; +} + +void ProbeAccessPointNetworkQualityRequest::setAccessPointIds(const std::vector& accessPointIds) +{ + accessPointIds_ = accessPointIds; + for(int dep1 = 0; dep1!= accessPointIds.size(); dep1++) { + setParameter("AccessPointIds."+ std::to_string(dep1), std::to_string(accessPointIds.at(dep1))); + } +} + +long ProbeAccessPointNetworkQualityRequest::getOwnerId()const +{ + return ownerId_; +} + +void ProbeAccessPointNetworkQualityRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ProbeAccessPointNetworkQualityRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ProbeAccessPointNetworkQualityRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/ProbeAccessPointNetworkQualityResult.cc b/smartag/src/model/ProbeAccessPointNetworkQualityResult.cc new file mode 100644 index 000000000..ad7f6dc99 --- /dev/null +++ b/smartag/src/model/ProbeAccessPointNetworkQualityResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ProbeAccessPointNetworkQualityResult::ProbeAccessPointNetworkQualityResult() : + ServiceResult() +{} + +ProbeAccessPointNetworkQualityResult::ProbeAccessPointNetworkQualityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ProbeAccessPointNetworkQualityResult::~ProbeAccessPointNetworkQualityResult() +{} + +void ProbeAccessPointNetworkQualityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RoamClientUserRequest.cc b/smartag/src/model/RoamClientUserRequest.cc new file mode 100644 index 000000000..b82be5466 --- /dev/null +++ b/smartag/src/model/RoamClientUserRequest.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 + +using AlibabaCloud::Smartag::Model::RoamClientUserRequest; + +RoamClientUserRequest::RoamClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RoamClientUser") +{ + setMethod(HttpRequest::Method::Post); +} + +RoamClientUserRequest::~RoamClientUserRequest() +{} + +long RoamClientUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RoamClientUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RoamClientUserRequest::getOriginSmartAGId()const +{ + return originSmartAGId_; +} + +void RoamClientUserRequest::setOriginSmartAGId(const std::string& originSmartAGId) +{ + originSmartAGId_ = originSmartAGId; + setParameter("OriginSmartAGId", originSmartAGId); +} + +std::string RoamClientUserRequest::getRegionId()const +{ + return regionId_; +} + +void RoamClientUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RoamClientUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RoamClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RoamClientUserRequest::getTargetSmartAGId()const +{ + return targetSmartAGId_; +} + +void RoamClientUserRequest::setTargetSmartAGId(const std::string& targetSmartAGId) +{ + targetSmartAGId_ = targetSmartAGId; + setParameter("TargetSmartAGId", targetSmartAGId); +} + +std::string RoamClientUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RoamClientUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RoamClientUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void RoamClientUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RoamClientUserRequest::getOriginRegionId()const +{ + return originRegionId_; +} + +void RoamClientUserRequest::setOriginRegionId(const std::string& originRegionId) +{ + originRegionId_ = originRegionId; + setParameter("OriginRegionId", originRegionId); +} + +std::string RoamClientUserRequest::getUserName()const +{ + return userName_; +} + +void RoamClientUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/smartag/src/model/RoamClientUserResult.cc b/smartag/src/model/RoamClientUserResult.cc new file mode 100644 index 000000000..cf8e20ff4 --- /dev/null +++ b/smartag/src/model/RoamClientUserResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RoamClientUserResult::RoamClientUserResult() : + ServiceResult() +{} + +RoamClientUserResult::RoamClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RoamClientUserResult::~RoamClientUserResult() +{} + +void RoamClientUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc b/smartag/src/model/SwitchCloudBoxHaStateRequest.cc deleted file mode 100644 index 9e3e3da51..000000000 --- a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc +++ /dev/null @@ -1,93 +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::Smartag::Model::SwitchCloudBoxHaStateRequest; - -SwitchCloudBoxHaStateRequest::SwitchCloudBoxHaStateRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SwitchCloudBoxHaState") -{} - -SwitchCloudBoxHaStateRequest::~SwitchCloudBoxHaStateRequest() -{} - -long SwitchCloudBoxHaStateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SwitchCloudBoxHaStateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string SwitchCloudBoxHaStateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void SwitchCloudBoxHaStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string SwitchCloudBoxHaStateRequest::getRegionId()const -{ - return regionId_; -} - -void SwitchCloudBoxHaStateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string SwitchCloudBoxHaStateRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void SwitchCloudBoxHaStateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string SwitchCloudBoxHaStateRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void SwitchCloudBoxHaStateRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long SwitchCloudBoxHaStateRequest::getOwnerId()const -{ - return ownerId_; -} - -void SwitchCloudBoxHaStateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/SwitchSAGHaStateRequest.cc b/smartag/src/model/SwitchSAGHaStateRequest.cc deleted file mode 100644 index 89c4307e4..000000000 --- a/smartag/src/model/SwitchSAGHaStateRequest.cc +++ /dev/null @@ -1,104 +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::Smartag::Model::SwitchSAGHaStateRequest; - -SwitchSAGHaStateRequest::SwitchSAGHaStateRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SwitchSAGHaState") -{} - -SwitchSAGHaStateRequest::~SwitchSAGHaStateRequest() -{} - -long SwitchSAGHaStateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SwitchSAGHaStateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string SwitchSAGHaStateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void SwitchSAGHaStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string SwitchSAGHaStateRequest::getRegionId()const -{ - return regionId_; -} - -void SwitchSAGHaStateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string SwitchSAGHaStateRequest::getHaType()const -{ - return haType_; -} - -void SwitchSAGHaStateRequest::setHaType(const std::string& haType) -{ - haType_ = haType; - setCoreParameter("HaType", haType); -} - -std::string SwitchSAGHaStateRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void SwitchSAGHaStateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -std::string SwitchSAGHaStateRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void SwitchSAGHaStateRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setCoreParameter("SmartAGId", smartAGId); -} - -long SwitchSAGHaStateRequest::getOwnerId()const -{ - return ownerId_; -} - -void SwitchSAGHaStateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/UnicomOrderConfirmResult.cc b/smartag/src/model/UnicomOrderConfirmResult.cc index 07282ef01..cb1b22f91 100644 --- a/smartag/src/model/UnicomOrderConfirmResult.cc +++ b/smartag/src/model/UnicomOrderConfirmResult.cc @@ -39,10 +39,10 @@ void UnicomOrderConfirmResult::parse(const std::string &payload) 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["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/smartag/src/model/UnicomSignConfirmResult.cc b/smartag/src/model/UnicomSignConfirmResult.cc index c7b0c3089..7ba9771d4 100644 --- a/smartag/src/model/UnicomSignConfirmResult.cc +++ b/smartag/src/model/UnicomSignConfirmResult.cc @@ -39,10 +39,10 @@ void UnicomSignConfirmResult::parse(const std::string &payload) 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["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/smartag/src/model/UpdateEnterpriseCodeRequest.cc b/smartag/src/model/UpdateEnterpriseCodeRequest.cc new file mode 100644 index 000000000..3cfd562c0 --- /dev/null +++ b/smartag/src/model/UpdateEnterpriseCodeRequest.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 + +using AlibabaCloud::Smartag::Model::UpdateEnterpriseCodeRequest; + +UpdateEnterpriseCodeRequest::UpdateEnterpriseCodeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateEnterpriseCode") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEnterpriseCodeRequest::~UpdateEnterpriseCodeRequest() +{} + +std::string UpdateEnterpriseCodeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateEnterpriseCodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateEnterpriseCodeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateEnterpriseCodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateEnterpriseCodeRequest::getEnterpriseCode()const +{ + return enterpriseCode_; +} + +void UpdateEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) +{ + enterpriseCode_ = enterpriseCode; + setParameter("EnterpriseCode", enterpriseCode); +} + +bool UpdateEnterpriseCodeRequest::getIsDefault()const +{ + return isDefault_; +} + +void UpdateEnterpriseCodeRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", isDefault ? "true" : "false"); +} + +bool UpdateEnterpriseCodeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateEnterpriseCodeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + diff --git a/smartag/src/model/UpdateEnterpriseCodeResult.cc b/smartag/src/model/UpdateEnterpriseCodeResult.cc new file mode 100644 index 000000000..a09bbd4c4 --- /dev/null +++ b/smartag/src/model/UpdateEnterpriseCodeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpdateEnterpriseCodeResult::UpdateEnterpriseCodeResult() : + ServiceResult() +{} + +UpdateEnterpriseCodeResult::UpdateEnterpriseCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEnterpriseCodeResult::~UpdateEnterpriseCodeResult() +{} + +void UpdateEnterpriseCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpdateSmartAGAccessPointRequest.cc b/smartag/src/model/UpdateSmartAGAccessPointRequest.cc new file mode 100644 index 000000000..f88106f32 --- /dev/null +++ b/smartag/src/model/UpdateSmartAGAccessPointRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateSmartAGAccessPointRequest; + +UpdateSmartAGAccessPointRequest::UpdateSmartAGAccessPointRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGAccessPoint") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSmartAGAccessPointRequest::~UpdateSmartAGAccessPointRequest() +{} + +int UpdateSmartAGAccessPointRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void UpdateSmartAGAccessPointRequest::setAccessPointId(int accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", std::to_string(accessPointId)); +} + +long UpdateSmartAGAccessPointRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateSmartAGAccessPointRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateSmartAGAccessPointRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateSmartAGAccessPointRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateSmartAGAccessPointRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateSmartAGAccessPointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateSmartAGAccessPointRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateSmartAGAccessPointRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateSmartAGAccessPointRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateSmartAGAccessPointRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateSmartAGAccessPointRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void UpdateSmartAGAccessPointRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/UpdateSmartAGAccessPointResult.cc b/smartag/src/model/UpdateSmartAGAccessPointResult.cc new file mode 100644 index 000000000..9672ae9c4 --- /dev/null +++ b/smartag/src/model/UpdateSmartAGAccessPointResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpdateSmartAGAccessPointResult::UpdateSmartAGAccessPointResult() : + ServiceResult() +{} + +UpdateSmartAGAccessPointResult::UpdateSmartAGAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSmartAGAccessPointResult::~UpdateSmartAGAccessPointResult() +{} + +void UpdateSmartAGAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc b/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc new file mode 100644 index 000000000..69d22b1a4 --- /dev/null +++ b/smartag/src/model/UpdateSmartAGDpiAttributeRequest.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 + +using AlibabaCloud::Smartag::Model::UpdateSmartAGDpiAttributeRequest; + +UpdateSmartAGDpiAttributeRequest::UpdateSmartAGDpiAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGDpiAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSmartAGDpiAttributeRequest::~UpdateSmartAGDpiAttributeRequest() +{} + +long UpdateSmartAGDpiAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateSmartAGDpiAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateSmartAGDpiAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +bool UpdateSmartAGDpiAttributeRequest::getDpiEnabled()const +{ + return dpiEnabled_; +} + +void UpdateSmartAGDpiAttributeRequest::setDpiEnabled(bool dpiEnabled) +{ + dpiEnabled_ = dpiEnabled; + setParameter("DpiEnabled", dpiEnabled ? "true" : "false"); +} + +std::string UpdateSmartAGDpiAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateSmartAGDpiAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool UpdateSmartAGDpiAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateSmartAGDpiAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateSmartAGDpiAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateSmartAGDpiAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateSmartAGDpiAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateSmartAGDpiAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateSmartAGDpiAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateSmartAGDpiAttributeRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void UpdateSmartAGDpiAttributeRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/DeleteDedicatedLineBackupResult.cc b/smartag/src/model/UpdateSmartAGDpiAttributeResult.cc similarity index 63% rename from smartag/src/model/DeleteDedicatedLineBackupResult.cc rename to smartag/src/model/UpdateSmartAGDpiAttributeResult.cc index fa5ef316f..5ed16c61a 100644 --- a/smartag/src/model/DeleteDedicatedLineBackupResult.cc +++ b/smartag/src/model/UpdateSmartAGDpiAttributeResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Smartag; using namespace AlibabaCloud::Smartag::Model; -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() : +UpdateSmartAGDpiAttributeResult::UpdateSmartAGDpiAttributeResult() : ServiceResult() {} -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) : +UpdateSmartAGDpiAttributeResult::UpdateSmartAGDpiAttributeResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult() +UpdateSmartAGDpiAttributeResult::~UpdateSmartAGDpiAttributeResult() {} -void DeleteDedicatedLineBackupResult::parse(const std::string &payload) +void UpdateSmartAGDpiAttributeResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); } diff --git a/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc b/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc new file mode 100644 index 000000000..7d307ba6c --- /dev/null +++ b/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.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 + +using AlibabaCloud::Smartag::Model::UpdateSmartAGEnterpriseCodeRequest; + +UpdateSmartAGEnterpriseCodeRequest::UpdateSmartAGEnterpriseCodeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGEnterpriseCode") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSmartAGEnterpriseCodeRequest::~UpdateSmartAGEnterpriseCodeRequest() +{} + +std::string UpdateSmartAGEnterpriseCodeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateSmartAGEnterpriseCodeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateSmartAGEnterpriseCodeRequest::getEnterpriseCode()const +{ + return enterpriseCode_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) +{ + enterpriseCode_ = enterpriseCode; + setParameter("EnterpriseCode", enterpriseCode); +} + +bool UpdateSmartAGEnterpriseCodeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateSmartAGEnterpriseCodeRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setParameter("SmartAGId", smartAGId); +} + diff --git a/smartag/src/model/UpdateSmartAGEnterpriseCodeResult.cc b/smartag/src/model/UpdateSmartAGEnterpriseCodeResult.cc new file mode 100644 index 000000000..eb4356cd2 --- /dev/null +++ b/smartag/src/model/UpdateSmartAGEnterpriseCodeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpdateSmartAGEnterpriseCodeResult::UpdateSmartAGEnterpriseCodeResult() : + ServiceResult() +{} + +UpdateSmartAGEnterpriseCodeResult::UpdateSmartAGEnterpriseCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSmartAGEnterpriseCodeResult::~UpdateSmartAGEnterpriseCodeResult() +{} + +void UpdateSmartAGEnterpriseCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc index 66327c166..c447c1130 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc @@ -104,6 +104,17 @@ void UpdateSmartAccessGatewayVersionRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string UpdateSmartAccessGatewayVersionRequest::getVersionType()const +{ + return versionType_; +} + +void UpdateSmartAccessGatewayVersionRequest::setVersionType(const std::string& versionType) +{ + versionType_ = versionType; + setParameter("VersionType", versionType); +} + std::string UpdateSmartAccessGatewayVersionRequest::getSmartAGId()const { return smartAGId_;