From e922990dbc22e68a72ae2d653b3e5c9951b0a2e9 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 16 Nov 2023 02:31:04 +0000 Subject: [PATCH] Supported SortBy for ListUserDevices. --- VERSION | 2 +- csas/CMakeLists.txt | 56 ++ csas/include/alibabacloud/csas/CsasClient.h | 112 ++++ .../model/CreateRegistrationPolicyRequest.h | 85 +++ .../model/CreateRegistrationPolicyResult.h | 76 +++ .../model/DeleteRegistrationPoliciesRequest.h | 45 ++ .../model/DeleteRegistrationPoliciesResult.h | 49 ++ .../csas/model/GetRegistrationPolicyRequest.h | 45 ++ .../csas/model/GetRegistrationPolicyResult.h | 81 +++ .../csas/model/GetUserDeviceRequest.h | 45 ++ .../csas/model/GetUserDeviceResult.h | 85 +++ ...iveDeviceRegistrationApplicationsRequest.h | 72 +++ ...siveDeviceRegistrationApplicationsResult.h | 68 +++ .../csas/model/ListPrivateAccessTagsRequest.h | 3 + ...tRegistrationPoliciesForUserGroupRequest.h | 45 ++ ...stRegistrationPoliciesForUserGroupResult.h | 80 +++ .../model/ListRegistrationPoliciesRequest.h | 69 +++ .../model/ListRegistrationPoliciesResult.h | 78 +++ .../model/ListSoftwareForUserDeviceRequest.h | 51 ++ .../model/ListSoftwareForUserDeviceResult.h | 60 +++ .../csas/model/ListUserDevicesRequest.h | 96 ++++ .../csas/model/ListUserDevicesResult.h | 81 +++ ...stUserGroupsForRegistrationPolicyRequest.h | 45 ++ ...istUserGroupsForRegistrationPolicyResult.h | 71 +++ ...iceRegistrationApplicationsStatusRequest.h | 48 ++ ...viceRegistrationApplicationsStatusResult.h | 66 +++ .../model/UpdateRegistrationPolicyRequest.h | 88 +++ .../model/UpdateRegistrationPolicyResult.h | 76 +++ .../UpdateUserDevicesSharingStatusRequest.h | 48 ++ .../UpdateUserDevicesSharingStatusResult.h | 79 +++ .../model/UpdateUserDevicesStatusRequest.h | 48 ++ .../model/UpdateUserDevicesStatusResult.h | 79 +++ csas/src/CsasClient.cc | 504 ++++++++++++++++++ .../model/CreateRegistrationPolicyRequest.cc | 143 +++++ .../model/CreateRegistrationPolicyResult.cc | 87 +++ .../DeleteRegistrationPoliciesRequest.cc | 47 ++ .../model/DeleteRegistrationPoliciesResult.cc | 44 ++ .../src/model/GetRegistrationPolicyRequest.cc | 45 ++ csas/src/model/GetRegistrationPolicyResult.cc | 131 +++++ csas/src/model/GetUserDeviceRequest.cc | 45 ++ csas/src/model/GetUserDeviceResult.cc | 110 ++++ ...veDeviceRegistrationApplicationsRequest.cc | 130 +++++ ...iveDeviceRegistrationApplicationsResult.cc | 86 +++ .../src/model/ListPrivateAccessTagsRequest.cc | 9 + ...RegistrationPoliciesForUserGroupRequest.cc | 47 ++ ...tRegistrationPoliciesForUserGroupResult.cc | 97 ++++ .../model/ListRegistrationPoliciesRequest.cc | 119 +++++ .../model/ListRegistrationPoliciesResult.cc | 99 ++++ .../model/ListSoftwareForUserDeviceRequest.cc | 63 +++ .../model/ListSoftwareForUserDeviceResult.cc | 71 +++ csas/src/model/ListUserDevicesRequest.cc | 214 ++++++++ csas/src/model/ListUserDevicesResult.cc | 112 ++++ ...tUserGroupsForRegistrationPolicyRequest.cc | 47 ++ ...stUserGroupsForRegistrationPolicyResult.cc | 85 +++ ...ceRegistrationApplicationsStatusRequest.cc | 56 ++ ...iceRegistrationApplicationsStatusResult.cc | 79 +++ .../model/UpdateRegistrationPolicyRequest.cc | 152 ++++++ .../model/UpdateRegistrationPolicyResult.cc | 87 +++ .../UpdateUserDevicesSharingStatusRequest.cc | 56 ++ .../UpdateUserDevicesSharingStatusResult.cc | 105 ++++ .../model/UpdateUserDevicesStatusRequest.cc | 56 ++ .../model/UpdateUserDevicesStatusResult.cc | 105 ++++ 62 files changed, 5062 insertions(+), 1 deletion(-) create mode 100644 csas/include/alibabacloud/csas/model/CreateRegistrationPolicyRequest.h create mode 100644 csas/include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h create mode 100644 csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesRequest.h create mode 100644 csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesResult.h create mode 100644 csas/include/alibabacloud/csas/model/GetRegistrationPolicyRequest.h create mode 100644 csas/include/alibabacloud/csas/model/GetRegistrationPolicyResult.h create mode 100644 csas/include/alibabacloud/csas/model/GetUserDeviceRequest.h create mode 100644 csas/include/alibabacloud/csas/model/GetUserDeviceResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListRegistrationPoliciesRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListRegistrationPoliciesResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListUserDevicesRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListUserDevicesResult.h create mode 100644 csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h create mode 100644 csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h create mode 100644 csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h create mode 100644 csas/src/model/CreateRegistrationPolicyRequest.cc create mode 100644 csas/src/model/CreateRegistrationPolicyResult.cc create mode 100644 csas/src/model/DeleteRegistrationPoliciesRequest.cc create mode 100644 csas/src/model/DeleteRegistrationPoliciesResult.cc create mode 100644 csas/src/model/GetRegistrationPolicyRequest.cc create mode 100644 csas/src/model/GetRegistrationPolicyResult.cc create mode 100644 csas/src/model/GetUserDeviceRequest.cc create mode 100644 csas/src/model/GetUserDeviceResult.cc create mode 100644 csas/src/model/ListExcessiveDeviceRegistrationApplicationsRequest.cc create mode 100644 csas/src/model/ListExcessiveDeviceRegistrationApplicationsResult.cc create mode 100644 csas/src/model/ListRegistrationPoliciesForUserGroupRequest.cc create mode 100644 csas/src/model/ListRegistrationPoliciesForUserGroupResult.cc create mode 100644 csas/src/model/ListRegistrationPoliciesRequest.cc create mode 100644 csas/src/model/ListRegistrationPoliciesResult.cc create mode 100644 csas/src/model/ListSoftwareForUserDeviceRequest.cc create mode 100644 csas/src/model/ListSoftwareForUserDeviceResult.cc create mode 100644 csas/src/model/ListUserDevicesRequest.cc create mode 100644 csas/src/model/ListUserDevicesResult.cc create mode 100644 csas/src/model/ListUserGroupsForRegistrationPolicyRequest.cc create mode 100644 csas/src/model/ListUserGroupsForRegistrationPolicyResult.cc create mode 100644 csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.cc create mode 100644 csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.cc create mode 100644 csas/src/model/UpdateRegistrationPolicyRequest.cc create mode 100644 csas/src/model/UpdateRegistrationPolicyResult.cc create mode 100644 csas/src/model/UpdateUserDevicesSharingStatusRequest.cc create mode 100644 csas/src/model/UpdateUserDevicesSharingStatusResult.cc create mode 100644 csas/src/model/UpdateUserDevicesStatusRequest.cc create mode 100644 csas/src/model/UpdateUserDevicesStatusResult.cc diff --git a/VERSION b/VERSION index b7a7b1691..b033bf97f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1805 \ No newline at end of file +1.36.1806 \ No newline at end of file diff --git a/csas/CMakeLists.txt b/csas/CMakeLists.txt index cb2497dee..7fe036faa 100644 --- a/csas/CMakeLists.txt +++ b/csas/CMakeLists.txt @@ -31,6 +31,8 @@ set(csas_public_header_model include/alibabacloud/csas/model/CreatePrivateAccessPolicyResult.h include/alibabacloud/csas/model/CreatePrivateAccessTagRequest.h include/alibabacloud/csas/model/CreatePrivateAccessTagResult.h + include/alibabacloud/csas/model/CreateRegistrationPolicyRequest.h + include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h include/alibabacloud/csas/model/CreateUserGroupRequest.h include/alibabacloud/csas/model/CreateUserGroupResult.h include/alibabacloud/csas/model/DeleteDynamicRouteRequest.h @@ -41,6 +43,8 @@ set(csas_public_header_model include/alibabacloud/csas/model/DeletePrivateAccessPolicyResult.h include/alibabacloud/csas/model/DeletePrivateAccessTagRequest.h include/alibabacloud/csas/model/DeletePrivateAccessTagResult.h + include/alibabacloud/csas/model/DeleteRegistrationPoliciesRequest.h + include/alibabacloud/csas/model/DeleteRegistrationPoliciesResult.h include/alibabacloud/csas/model/DeleteUserGroupRequest.h include/alibabacloud/csas/model/DeleteUserGroupResult.h include/alibabacloud/csas/model/DetachApplication2ConnectorRequest.h @@ -51,6 +55,10 @@ set(csas_public_header_model include/alibabacloud/csas/model/GetPrivateAccessApplicationResult.h include/alibabacloud/csas/model/GetPrivateAccessPolicyRequest.h include/alibabacloud/csas/model/GetPrivateAccessPolicyResult.h + include/alibabacloud/csas/model/GetRegistrationPolicyRequest.h + include/alibabacloud/csas/model/GetRegistrationPolicyResult.h + include/alibabacloud/csas/model/GetUserDeviceRequest.h + include/alibabacloud/csas/model/GetUserDeviceResult.h include/alibabacloud/csas/model/GetUserGroupRequest.h include/alibabacloud/csas/model/GetUserGroupResult.h include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyRequest.h @@ -63,6 +71,8 @@ set(csas_public_header_model include/alibabacloud/csas/model/ListDynamicRouteRegionsResult.h include/alibabacloud/csas/model/ListDynamicRoutesRequest.h include/alibabacloud/csas/model/ListDynamicRoutesResult.h + include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsRequest.h + include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsResult.h include/alibabacloud/csas/model/ListPolicesForPrivateAccessApplicationRequest.h include/alibabacloud/csas/model/ListPolicesForPrivateAccessApplicationResult.h include/alibabacloud/csas/model/ListPolicesForPrivateAccessTagRequest.h @@ -79,20 +89,38 @@ set(csas_public_header_model include/alibabacloud/csas/model/ListPrivateAccessTagsResult.h include/alibabacloud/csas/model/ListPrivateAccessTagsForDynamicRouteRequest.h include/alibabacloud/csas/model/ListPrivateAccessTagsForDynamicRouteResult.h + include/alibabacloud/csas/model/ListRegistrationPoliciesRequest.h + include/alibabacloud/csas/model/ListRegistrationPoliciesResult.h + include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupRequest.h + include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupResult.h + include/alibabacloud/csas/model/ListSoftwareForUserDeviceRequest.h + include/alibabacloud/csas/model/ListSoftwareForUserDeviceResult.h include/alibabacloud/csas/model/ListTagsForPrivateAccessApplicationRequest.h include/alibabacloud/csas/model/ListTagsForPrivateAccessApplicationResult.h include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyRequest.h include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyResult.h + include/alibabacloud/csas/model/ListUserDevicesRequest.h + include/alibabacloud/csas/model/ListUserDevicesResult.h include/alibabacloud/csas/model/ListUserGroupsRequest.h include/alibabacloud/csas/model/ListUserGroupsResult.h include/alibabacloud/csas/model/ListUserGroupsForPrivateAccessPolicyRequest.h include/alibabacloud/csas/model/ListUserGroupsForPrivateAccessPolicyResult.h + include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h + include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h include/alibabacloud/csas/model/UpdateDynamicRouteRequest.h include/alibabacloud/csas/model/UpdateDynamicRouteResult.h + include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h + include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.h include/alibabacloud/csas/model/UpdatePrivateAccessApplicationRequest.h include/alibabacloud/csas/model/UpdatePrivateAccessApplicationResult.h include/alibabacloud/csas/model/UpdatePrivateAccessPolicyRequest.h include/alibabacloud/csas/model/UpdatePrivateAccessPolicyResult.h + include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h + include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h + include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h + include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h + include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h + include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h include/alibabacloud/csas/model/UpdateUserGroupRequest.h include/alibabacloud/csas/model/UpdateUserGroupResult.h ) @@ -108,6 +136,8 @@ set(csas_src src/model/CreatePrivateAccessPolicyResult.cc src/model/CreatePrivateAccessTagRequest.cc src/model/CreatePrivateAccessTagResult.cc + src/model/CreateRegistrationPolicyRequest.cc + src/model/CreateRegistrationPolicyResult.cc src/model/CreateUserGroupRequest.cc src/model/CreateUserGroupResult.cc src/model/DeleteDynamicRouteRequest.cc @@ -118,6 +148,8 @@ set(csas_src src/model/DeletePrivateAccessPolicyResult.cc src/model/DeletePrivateAccessTagRequest.cc src/model/DeletePrivateAccessTagResult.cc + src/model/DeleteRegistrationPoliciesRequest.cc + src/model/DeleteRegistrationPoliciesResult.cc src/model/DeleteUserGroupRequest.cc src/model/DeleteUserGroupResult.cc src/model/DetachApplication2ConnectorRequest.cc @@ -128,6 +160,10 @@ set(csas_src src/model/GetPrivateAccessApplicationResult.cc src/model/GetPrivateAccessPolicyRequest.cc src/model/GetPrivateAccessPolicyResult.cc + src/model/GetRegistrationPolicyRequest.cc + src/model/GetRegistrationPolicyResult.cc + src/model/GetUserDeviceRequest.cc + src/model/GetUserDeviceResult.cc src/model/GetUserGroupRequest.cc src/model/GetUserGroupResult.cc src/model/ListApplicationsForPrivateAccessPolicyRequest.cc @@ -140,6 +176,8 @@ set(csas_src src/model/ListDynamicRouteRegionsResult.cc src/model/ListDynamicRoutesRequest.cc src/model/ListDynamicRoutesResult.cc + src/model/ListExcessiveDeviceRegistrationApplicationsRequest.cc + src/model/ListExcessiveDeviceRegistrationApplicationsResult.cc src/model/ListPolicesForPrivateAccessApplicationRequest.cc src/model/ListPolicesForPrivateAccessApplicationResult.cc src/model/ListPolicesForPrivateAccessTagRequest.cc @@ -156,20 +194,38 @@ set(csas_src src/model/ListPrivateAccessTagsResult.cc src/model/ListPrivateAccessTagsForDynamicRouteRequest.cc src/model/ListPrivateAccessTagsForDynamicRouteResult.cc + src/model/ListRegistrationPoliciesRequest.cc + src/model/ListRegistrationPoliciesResult.cc + src/model/ListRegistrationPoliciesForUserGroupRequest.cc + src/model/ListRegistrationPoliciesForUserGroupResult.cc + src/model/ListSoftwareForUserDeviceRequest.cc + src/model/ListSoftwareForUserDeviceResult.cc src/model/ListTagsForPrivateAccessApplicationRequest.cc src/model/ListTagsForPrivateAccessApplicationResult.cc src/model/ListTagsForPrivateAccessPolicyRequest.cc src/model/ListTagsForPrivateAccessPolicyResult.cc + src/model/ListUserDevicesRequest.cc + src/model/ListUserDevicesResult.cc src/model/ListUserGroupsRequest.cc src/model/ListUserGroupsResult.cc src/model/ListUserGroupsForPrivateAccessPolicyRequest.cc src/model/ListUserGroupsForPrivateAccessPolicyResult.cc + src/model/ListUserGroupsForRegistrationPolicyRequest.cc + src/model/ListUserGroupsForRegistrationPolicyResult.cc src/model/UpdateDynamicRouteRequest.cc src/model/UpdateDynamicRouteResult.cc + src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.cc + src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.cc src/model/UpdatePrivateAccessApplicationRequest.cc src/model/UpdatePrivateAccessApplicationResult.cc src/model/UpdatePrivateAccessPolicyRequest.cc src/model/UpdatePrivateAccessPolicyResult.cc + src/model/UpdateRegistrationPolicyRequest.cc + src/model/UpdateRegistrationPolicyResult.cc + src/model/UpdateUserDevicesSharingStatusRequest.cc + src/model/UpdateUserDevicesSharingStatusResult.cc + src/model/UpdateUserDevicesStatusRequest.cc + src/model/UpdateUserDevicesStatusResult.cc src/model/UpdateUserGroupRequest.cc src/model/UpdateUserGroupResult.cc ) diff --git a/csas/include/alibabacloud/csas/CsasClient.h b/csas/include/alibabacloud/csas/CsasClient.h index 9044f8dbd..5e2d211c6 100644 --- a/csas/include/alibabacloud/csas/CsasClient.h +++ b/csas/include/alibabacloud/csas/CsasClient.h @@ -32,6 +32,8 @@ #include "model/CreatePrivateAccessPolicyResult.h" #include "model/CreatePrivateAccessTagRequest.h" #include "model/CreatePrivateAccessTagResult.h" +#include "model/CreateRegistrationPolicyRequest.h" +#include "model/CreateRegistrationPolicyResult.h" #include "model/CreateUserGroupRequest.h" #include "model/CreateUserGroupResult.h" #include "model/DeleteDynamicRouteRequest.h" @@ -42,6 +44,8 @@ #include "model/DeletePrivateAccessPolicyResult.h" #include "model/DeletePrivateAccessTagRequest.h" #include "model/DeletePrivateAccessTagResult.h" +#include "model/DeleteRegistrationPoliciesRequest.h" +#include "model/DeleteRegistrationPoliciesResult.h" #include "model/DeleteUserGroupRequest.h" #include "model/DeleteUserGroupResult.h" #include "model/DetachApplication2ConnectorRequest.h" @@ -52,6 +56,10 @@ #include "model/GetPrivateAccessApplicationResult.h" #include "model/GetPrivateAccessPolicyRequest.h" #include "model/GetPrivateAccessPolicyResult.h" +#include "model/GetRegistrationPolicyRequest.h" +#include "model/GetRegistrationPolicyResult.h" +#include "model/GetUserDeviceRequest.h" +#include "model/GetUserDeviceResult.h" #include "model/GetUserGroupRequest.h" #include "model/GetUserGroupResult.h" #include "model/ListApplicationsForPrivateAccessPolicyRequest.h" @@ -64,6 +72,8 @@ #include "model/ListDynamicRouteRegionsResult.h" #include "model/ListDynamicRoutesRequest.h" #include "model/ListDynamicRoutesResult.h" +#include "model/ListExcessiveDeviceRegistrationApplicationsRequest.h" +#include "model/ListExcessiveDeviceRegistrationApplicationsResult.h" #include "model/ListPolicesForPrivateAccessApplicationRequest.h" #include "model/ListPolicesForPrivateAccessApplicationResult.h" #include "model/ListPolicesForPrivateAccessTagRequest.h" @@ -80,20 +90,38 @@ #include "model/ListPrivateAccessTagsResult.h" #include "model/ListPrivateAccessTagsForDynamicRouteRequest.h" #include "model/ListPrivateAccessTagsForDynamicRouteResult.h" +#include "model/ListRegistrationPoliciesRequest.h" +#include "model/ListRegistrationPoliciesResult.h" +#include "model/ListRegistrationPoliciesForUserGroupRequest.h" +#include "model/ListRegistrationPoliciesForUserGroupResult.h" +#include "model/ListSoftwareForUserDeviceRequest.h" +#include "model/ListSoftwareForUserDeviceResult.h" #include "model/ListTagsForPrivateAccessApplicationRequest.h" #include "model/ListTagsForPrivateAccessApplicationResult.h" #include "model/ListTagsForPrivateAccessPolicyRequest.h" #include "model/ListTagsForPrivateAccessPolicyResult.h" +#include "model/ListUserDevicesRequest.h" +#include "model/ListUserDevicesResult.h" #include "model/ListUserGroupsRequest.h" #include "model/ListUserGroupsResult.h" #include "model/ListUserGroupsForPrivateAccessPolicyRequest.h" #include "model/ListUserGroupsForPrivateAccessPolicyResult.h" +#include "model/ListUserGroupsForRegistrationPolicyRequest.h" +#include "model/ListUserGroupsForRegistrationPolicyResult.h" #include "model/UpdateDynamicRouteRequest.h" #include "model/UpdateDynamicRouteResult.h" +#include "model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h" +#include "model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.h" #include "model/UpdatePrivateAccessApplicationRequest.h" #include "model/UpdatePrivateAccessApplicationResult.h" #include "model/UpdatePrivateAccessPolicyRequest.h" #include "model/UpdatePrivateAccessPolicyResult.h" +#include "model/UpdateRegistrationPolicyRequest.h" +#include "model/UpdateRegistrationPolicyResult.h" +#include "model/UpdateUserDevicesSharingStatusRequest.h" +#include "model/UpdateUserDevicesSharingStatusResult.h" +#include "model/UpdateUserDevicesStatusRequest.h" +#include "model/UpdateUserDevicesStatusResult.h" #include "model/UpdateUserGroupRequest.h" #include "model/UpdateUserGroupResult.h" @@ -120,6 +148,9 @@ namespace AlibabaCloud typedef Outcome CreatePrivateAccessTagOutcome; typedef std::future CreatePrivateAccessTagOutcomeCallable; typedef std::function&)> CreatePrivateAccessTagAsyncHandler; + typedef Outcome CreateRegistrationPolicyOutcome; + typedef std::future CreateRegistrationPolicyOutcomeCallable; + typedef std::function&)> CreateRegistrationPolicyAsyncHandler; typedef Outcome CreateUserGroupOutcome; typedef std::future CreateUserGroupOutcomeCallable; typedef std::function&)> CreateUserGroupAsyncHandler; @@ -135,6 +166,9 @@ namespace AlibabaCloud typedef Outcome DeletePrivateAccessTagOutcome; typedef std::future DeletePrivateAccessTagOutcomeCallable; typedef std::function&)> DeletePrivateAccessTagAsyncHandler; + typedef Outcome DeleteRegistrationPoliciesOutcome; + typedef std::future DeleteRegistrationPoliciesOutcomeCallable; + typedef std::function&)> DeleteRegistrationPoliciesAsyncHandler; typedef Outcome DeleteUserGroupOutcome; typedef std::future DeleteUserGroupOutcomeCallable; typedef std::function&)> DeleteUserGroupAsyncHandler; @@ -150,6 +184,12 @@ namespace AlibabaCloud typedef Outcome GetPrivateAccessPolicyOutcome; typedef std::future GetPrivateAccessPolicyOutcomeCallable; typedef std::function&)> GetPrivateAccessPolicyAsyncHandler; + typedef Outcome GetRegistrationPolicyOutcome; + typedef std::future GetRegistrationPolicyOutcomeCallable; + typedef std::function&)> GetRegistrationPolicyAsyncHandler; + typedef Outcome GetUserDeviceOutcome; + typedef std::future GetUserDeviceOutcomeCallable; + typedef std::function&)> GetUserDeviceAsyncHandler; typedef Outcome GetUserGroupOutcome; typedef std::future GetUserGroupOutcomeCallable; typedef std::function&)> GetUserGroupAsyncHandler; @@ -168,6 +208,9 @@ namespace AlibabaCloud typedef Outcome ListDynamicRoutesOutcome; typedef std::future ListDynamicRoutesOutcomeCallable; typedef std::function&)> ListDynamicRoutesAsyncHandler; + typedef Outcome ListExcessiveDeviceRegistrationApplicationsOutcome; + typedef std::future ListExcessiveDeviceRegistrationApplicationsOutcomeCallable; + typedef std::function&)> ListExcessiveDeviceRegistrationApplicationsAsyncHandler; typedef Outcome ListPolicesForPrivateAccessApplicationOutcome; typedef std::future ListPolicesForPrivateAccessApplicationOutcomeCallable; typedef std::function&)> ListPolicesForPrivateAccessApplicationAsyncHandler; @@ -192,27 +235,54 @@ namespace AlibabaCloud typedef Outcome ListPrivateAccessTagsForDynamicRouteOutcome; typedef std::future ListPrivateAccessTagsForDynamicRouteOutcomeCallable; typedef std::function&)> ListPrivateAccessTagsForDynamicRouteAsyncHandler; + typedef Outcome ListRegistrationPoliciesOutcome; + typedef std::future ListRegistrationPoliciesOutcomeCallable; + typedef std::function&)> ListRegistrationPoliciesAsyncHandler; + typedef Outcome ListRegistrationPoliciesForUserGroupOutcome; + typedef std::future ListRegistrationPoliciesForUserGroupOutcomeCallable; + typedef std::function&)> ListRegistrationPoliciesForUserGroupAsyncHandler; + typedef Outcome ListSoftwareForUserDeviceOutcome; + typedef std::future ListSoftwareForUserDeviceOutcomeCallable; + typedef std::function&)> ListSoftwareForUserDeviceAsyncHandler; typedef Outcome ListTagsForPrivateAccessApplicationOutcome; typedef std::future ListTagsForPrivateAccessApplicationOutcomeCallable; typedef std::function&)> ListTagsForPrivateAccessApplicationAsyncHandler; typedef Outcome ListTagsForPrivateAccessPolicyOutcome; typedef std::future ListTagsForPrivateAccessPolicyOutcomeCallable; typedef std::function&)> ListTagsForPrivateAccessPolicyAsyncHandler; + typedef Outcome ListUserDevicesOutcome; + typedef std::future ListUserDevicesOutcomeCallable; + typedef std::function&)> ListUserDevicesAsyncHandler; typedef Outcome ListUserGroupsOutcome; typedef std::future ListUserGroupsOutcomeCallable; typedef std::function&)> ListUserGroupsAsyncHandler; typedef Outcome ListUserGroupsForPrivateAccessPolicyOutcome; typedef std::future ListUserGroupsForPrivateAccessPolicyOutcomeCallable; typedef std::function&)> ListUserGroupsForPrivateAccessPolicyAsyncHandler; + typedef Outcome ListUserGroupsForRegistrationPolicyOutcome; + typedef std::future ListUserGroupsForRegistrationPolicyOutcomeCallable; + typedef std::function&)> ListUserGroupsForRegistrationPolicyAsyncHandler; typedef Outcome UpdateDynamicRouteOutcome; typedef std::future UpdateDynamicRouteOutcomeCallable; typedef std::function&)> UpdateDynamicRouteAsyncHandler; + typedef Outcome UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome; + typedef std::future UpdateExcessiveDeviceRegistrationApplicationsStatusOutcomeCallable; + typedef std::function&)> UpdateExcessiveDeviceRegistrationApplicationsStatusAsyncHandler; typedef Outcome UpdatePrivateAccessApplicationOutcome; typedef std::future UpdatePrivateAccessApplicationOutcomeCallable; typedef std::function&)> UpdatePrivateAccessApplicationAsyncHandler; typedef Outcome UpdatePrivateAccessPolicyOutcome; typedef std::future UpdatePrivateAccessPolicyOutcomeCallable; typedef std::function&)> UpdatePrivateAccessPolicyAsyncHandler; + typedef Outcome UpdateRegistrationPolicyOutcome; + typedef std::future UpdateRegistrationPolicyOutcomeCallable; + typedef std::function&)> UpdateRegistrationPolicyAsyncHandler; + typedef Outcome UpdateUserDevicesSharingStatusOutcome; + typedef std::future UpdateUserDevicesSharingStatusOutcomeCallable; + typedef std::function&)> UpdateUserDevicesSharingStatusAsyncHandler; + typedef Outcome UpdateUserDevicesStatusOutcome; + typedef std::future UpdateUserDevicesStatusOutcomeCallable; + typedef std::function&)> UpdateUserDevicesStatusAsyncHandler; typedef Outcome UpdateUserGroupOutcome; typedef std::future UpdateUserGroupOutcomeCallable; typedef std::function&)> UpdateUserGroupAsyncHandler; @@ -236,6 +306,9 @@ namespace AlibabaCloud CreatePrivateAccessTagOutcome createPrivateAccessTag(const Model::CreatePrivateAccessTagRequest &request)const; void createPrivateAccessTagAsync(const Model::CreatePrivateAccessTagRequest& request, const CreatePrivateAccessTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePrivateAccessTagOutcomeCallable createPrivateAccessTagCallable(const Model::CreatePrivateAccessTagRequest& request) const; + CreateRegistrationPolicyOutcome createRegistrationPolicy(const Model::CreateRegistrationPolicyRequest &request)const; + void createRegistrationPolicyAsync(const Model::CreateRegistrationPolicyRequest& request, const CreateRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRegistrationPolicyOutcomeCallable createRegistrationPolicyCallable(const Model::CreateRegistrationPolicyRequest& request) const; CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const; void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const; @@ -251,6 +324,9 @@ namespace AlibabaCloud DeletePrivateAccessTagOutcome deletePrivateAccessTag(const Model::DeletePrivateAccessTagRequest &request)const; void deletePrivateAccessTagAsync(const Model::DeletePrivateAccessTagRequest& request, const DeletePrivateAccessTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePrivateAccessTagOutcomeCallable deletePrivateAccessTagCallable(const Model::DeletePrivateAccessTagRequest& request) const; + DeleteRegistrationPoliciesOutcome deleteRegistrationPolicies(const Model::DeleteRegistrationPoliciesRequest &request)const; + void deleteRegistrationPoliciesAsync(const Model::DeleteRegistrationPoliciesRequest& request, const DeleteRegistrationPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRegistrationPoliciesOutcomeCallable deleteRegistrationPoliciesCallable(const Model::DeleteRegistrationPoliciesRequest& request) const; DeleteUserGroupOutcome deleteUserGroup(const Model::DeleteUserGroupRequest &request)const; void deleteUserGroupAsync(const Model::DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserGroupOutcomeCallable deleteUserGroupCallable(const Model::DeleteUserGroupRequest& request) const; @@ -266,6 +342,12 @@ namespace AlibabaCloud GetPrivateAccessPolicyOutcome getPrivateAccessPolicy(const Model::GetPrivateAccessPolicyRequest &request)const; void getPrivateAccessPolicyAsync(const Model::GetPrivateAccessPolicyRequest& request, const GetPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPrivateAccessPolicyOutcomeCallable getPrivateAccessPolicyCallable(const Model::GetPrivateAccessPolicyRequest& request) const; + GetRegistrationPolicyOutcome getRegistrationPolicy(const Model::GetRegistrationPolicyRequest &request)const; + void getRegistrationPolicyAsync(const Model::GetRegistrationPolicyRequest& request, const GetRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRegistrationPolicyOutcomeCallable getRegistrationPolicyCallable(const Model::GetRegistrationPolicyRequest& request) const; + GetUserDeviceOutcome getUserDevice(const Model::GetUserDeviceRequest &request)const; + void getUserDeviceAsync(const Model::GetUserDeviceRequest& request, const GetUserDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserDeviceOutcomeCallable getUserDeviceCallable(const Model::GetUserDeviceRequest& request) const; GetUserGroupOutcome getUserGroup(const Model::GetUserGroupRequest &request)const; void getUserGroupAsync(const Model::GetUserGroupRequest& request, const GetUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserGroupOutcomeCallable getUserGroupCallable(const Model::GetUserGroupRequest& request) const; @@ -284,6 +366,9 @@ namespace AlibabaCloud ListDynamicRoutesOutcome listDynamicRoutes(const Model::ListDynamicRoutesRequest &request)const; void listDynamicRoutesAsync(const Model::ListDynamicRoutesRequest& request, const ListDynamicRoutesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDynamicRoutesOutcomeCallable listDynamicRoutesCallable(const Model::ListDynamicRoutesRequest& request) const; + ListExcessiveDeviceRegistrationApplicationsOutcome listExcessiveDeviceRegistrationApplications(const Model::ListExcessiveDeviceRegistrationApplicationsRequest &request)const; + void listExcessiveDeviceRegistrationApplicationsAsync(const Model::ListExcessiveDeviceRegistrationApplicationsRequest& request, const ListExcessiveDeviceRegistrationApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExcessiveDeviceRegistrationApplicationsOutcomeCallable listExcessiveDeviceRegistrationApplicationsCallable(const Model::ListExcessiveDeviceRegistrationApplicationsRequest& request) const; ListPolicesForPrivateAccessApplicationOutcome listPolicesForPrivateAccessApplication(const Model::ListPolicesForPrivateAccessApplicationRequest &request)const; void listPolicesForPrivateAccessApplicationAsync(const Model::ListPolicesForPrivateAccessApplicationRequest& request, const ListPolicesForPrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPolicesForPrivateAccessApplicationOutcomeCallable listPolicesForPrivateAccessApplicationCallable(const Model::ListPolicesForPrivateAccessApplicationRequest& request) const; @@ -308,27 +393,54 @@ namespace AlibabaCloud ListPrivateAccessTagsForDynamicRouteOutcome listPrivateAccessTagsForDynamicRoute(const Model::ListPrivateAccessTagsForDynamicRouteRequest &request)const; void listPrivateAccessTagsForDynamicRouteAsync(const Model::ListPrivateAccessTagsForDynamicRouteRequest& request, const ListPrivateAccessTagsForDynamicRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPrivateAccessTagsForDynamicRouteOutcomeCallable listPrivateAccessTagsForDynamicRouteCallable(const Model::ListPrivateAccessTagsForDynamicRouteRequest& request) const; + ListRegistrationPoliciesOutcome listRegistrationPolicies(const Model::ListRegistrationPoliciesRequest &request)const; + void listRegistrationPoliciesAsync(const Model::ListRegistrationPoliciesRequest& request, const ListRegistrationPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegistrationPoliciesOutcomeCallable listRegistrationPoliciesCallable(const Model::ListRegistrationPoliciesRequest& request) const; + ListRegistrationPoliciesForUserGroupOutcome listRegistrationPoliciesForUserGroup(const Model::ListRegistrationPoliciesForUserGroupRequest &request)const; + void listRegistrationPoliciesForUserGroupAsync(const Model::ListRegistrationPoliciesForUserGroupRequest& request, const ListRegistrationPoliciesForUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegistrationPoliciesForUserGroupOutcomeCallable listRegistrationPoliciesForUserGroupCallable(const Model::ListRegistrationPoliciesForUserGroupRequest& request) const; + ListSoftwareForUserDeviceOutcome listSoftwareForUserDevice(const Model::ListSoftwareForUserDeviceRequest &request)const; + void listSoftwareForUserDeviceAsync(const Model::ListSoftwareForUserDeviceRequest& request, const ListSoftwareForUserDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSoftwareForUserDeviceOutcomeCallable listSoftwareForUserDeviceCallable(const Model::ListSoftwareForUserDeviceRequest& request) const; ListTagsForPrivateAccessApplicationOutcome listTagsForPrivateAccessApplication(const Model::ListTagsForPrivateAccessApplicationRequest &request)const; void listTagsForPrivateAccessApplicationAsync(const Model::ListTagsForPrivateAccessApplicationRequest& request, const ListTagsForPrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagsForPrivateAccessApplicationOutcomeCallable listTagsForPrivateAccessApplicationCallable(const Model::ListTagsForPrivateAccessApplicationRequest& request) const; ListTagsForPrivateAccessPolicyOutcome listTagsForPrivateAccessPolicy(const Model::ListTagsForPrivateAccessPolicyRequest &request)const; void listTagsForPrivateAccessPolicyAsync(const Model::ListTagsForPrivateAccessPolicyRequest& request, const ListTagsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagsForPrivateAccessPolicyOutcomeCallable listTagsForPrivateAccessPolicyCallable(const Model::ListTagsForPrivateAccessPolicyRequest& request) const; + ListUserDevicesOutcome listUserDevices(const Model::ListUserDevicesRequest &request)const; + void listUserDevicesAsync(const Model::ListUserDevicesRequest& request, const ListUserDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserDevicesOutcomeCallable listUserDevicesCallable(const Model::ListUserDevicesRequest& request) const; ListUserGroupsOutcome listUserGroups(const Model::ListUserGroupsRequest &request)const; void listUserGroupsAsync(const Model::ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUserGroupsOutcomeCallable listUserGroupsCallable(const Model::ListUserGroupsRequest& request) const; ListUserGroupsForPrivateAccessPolicyOutcome listUserGroupsForPrivateAccessPolicy(const Model::ListUserGroupsForPrivateAccessPolicyRequest &request)const; void listUserGroupsForPrivateAccessPolicyAsync(const Model::ListUserGroupsForPrivateAccessPolicyRequest& request, const ListUserGroupsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUserGroupsForPrivateAccessPolicyOutcomeCallable listUserGroupsForPrivateAccessPolicyCallable(const Model::ListUserGroupsForPrivateAccessPolicyRequest& request) const; + ListUserGroupsForRegistrationPolicyOutcome listUserGroupsForRegistrationPolicy(const Model::ListUserGroupsForRegistrationPolicyRequest &request)const; + void listUserGroupsForRegistrationPolicyAsync(const Model::ListUserGroupsForRegistrationPolicyRequest& request, const ListUserGroupsForRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserGroupsForRegistrationPolicyOutcomeCallable listUserGroupsForRegistrationPolicyCallable(const Model::ListUserGroupsForRegistrationPolicyRequest& request) const; UpdateDynamicRouteOutcome updateDynamicRoute(const Model::UpdateDynamicRouteRequest &request)const; void updateDynamicRouteAsync(const Model::UpdateDynamicRouteRequest& request, const UpdateDynamicRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDynamicRouteOutcomeCallable updateDynamicRouteCallable(const Model::UpdateDynamicRouteRequest& request) const; + UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome updateExcessiveDeviceRegistrationApplicationsStatus(const Model::UpdateExcessiveDeviceRegistrationApplicationsStatusRequest &request)const; + void updateExcessiveDeviceRegistrationApplicationsStatusAsync(const Model::UpdateExcessiveDeviceRegistrationApplicationsStatusRequest& request, const UpdateExcessiveDeviceRegistrationApplicationsStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateExcessiveDeviceRegistrationApplicationsStatusOutcomeCallable updateExcessiveDeviceRegistrationApplicationsStatusCallable(const Model::UpdateExcessiveDeviceRegistrationApplicationsStatusRequest& request) const; UpdatePrivateAccessApplicationOutcome updatePrivateAccessApplication(const Model::UpdatePrivateAccessApplicationRequest &request)const; void updatePrivateAccessApplicationAsync(const Model::UpdatePrivateAccessApplicationRequest& request, const UpdatePrivateAccessApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdatePrivateAccessApplicationOutcomeCallable updatePrivateAccessApplicationCallable(const Model::UpdatePrivateAccessApplicationRequest& request) const; UpdatePrivateAccessPolicyOutcome updatePrivateAccessPolicy(const Model::UpdatePrivateAccessPolicyRequest &request)const; void updatePrivateAccessPolicyAsync(const Model::UpdatePrivateAccessPolicyRequest& request, const UpdatePrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdatePrivateAccessPolicyOutcomeCallable updatePrivateAccessPolicyCallable(const Model::UpdatePrivateAccessPolicyRequest& request) const; + UpdateRegistrationPolicyOutcome updateRegistrationPolicy(const Model::UpdateRegistrationPolicyRequest &request)const; + void updateRegistrationPolicyAsync(const Model::UpdateRegistrationPolicyRequest& request, const UpdateRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRegistrationPolicyOutcomeCallable updateRegistrationPolicyCallable(const Model::UpdateRegistrationPolicyRequest& request) const; + UpdateUserDevicesSharingStatusOutcome updateUserDevicesSharingStatus(const Model::UpdateUserDevicesSharingStatusRequest &request)const; + void updateUserDevicesSharingStatusAsync(const Model::UpdateUserDevicesSharingStatusRequest& request, const UpdateUserDevicesSharingStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserDevicesSharingStatusOutcomeCallable updateUserDevicesSharingStatusCallable(const Model::UpdateUserDevicesSharingStatusRequest& request) const; + UpdateUserDevicesStatusOutcome updateUserDevicesStatus(const Model::UpdateUserDevicesStatusRequest &request)const; + void updateUserDevicesStatusAsync(const Model::UpdateUserDevicesStatusRequest& request, const UpdateUserDevicesStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserDevicesStatusOutcomeCallable updateUserDevicesStatusCallable(const Model::UpdateUserDevicesStatusRequest& request) const; UpdateUserGroupOutcome updateUserGroup(const Model::UpdateUserGroupRequest &request)const; void updateUserGroupAsync(const Model::UpdateUserGroupRequest& request, const UpdateUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateUserGroupOutcomeCallable updateUserGroupCallable(const Model::UpdateUserGroupRequest& request) const; diff --git a/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyRequest.h b/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyRequest.h new file mode 100644 index 000000000..5c3f5e6e8 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyRequest.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_CSAS_MODEL_CREATEREGISTRATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_CREATEREGISTRATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT CreateRegistrationPolicyRequest : public RpcServiceRequest { +public: + struct CompanyLimitCount { + int all; + int pC; + int mobile; + }; + struct PersonalLimitCount { + int all; + int pC; + int mobile; + }; + CreateRegistrationPolicyRequest(); + ~CreateRegistrationPolicyRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getMatchMode() const; + void setMatchMode(const std::string &matchMode); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + CompanyLimitCount getCompanyLimitCount() const; + void setCompanyLimitCount(const CompanyLimitCount &companyLimitCount); + PersonalLimitCount getPersonalLimitCount() const; + void setPersonalLimitCount(const PersonalLimitCount &personalLimitCount); + std::vector getUserGroupIds() const; + void setUserGroupIds(const std::vector &userGroupIds); + std::vector getWhitelist() const; + void setWhitelist(const std::vector &whitelist); + long getPriority() const; + void setPriority(long priority); + std::string getPersonalLimitType() const; + void setPersonalLimitType(const std::string &personalLimitType); + std::string getName() const; + void setName(const std::string &name); + std::string getCompanyLimitType() const; + void setCompanyLimitType(const std::string &companyLimitType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string description_; + std::string matchMode_; + std::string sourceIp_; + CompanyLimitCount companyLimitCount_; + PersonalLimitCount personalLimitCount_; + std::vector userGroupIds_; + std::vector whitelist_; + long priority_; + std::string personalLimitType_; + std::string name_; + std::string companyLimitType_; + std::string status_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEREGISTRATIONPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h b/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h new file mode 100644 index 000000000..4deed4a93 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEREGISTRATIONPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_CREATEREGISTRATIONPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT CreateRegistrationPolicyResult : public ServiceResult + { + public: + struct Policy + { + struct LimitDetailItem + { + struct LimitCount + { + int all; + int pC; + int mobile; + }; + LimitCount limitCount; + std::string deviceBelong; + std::string limitType; + }; + std::string status; + std::string matchMode; + std::string description; + std::string priority; + std::string createTime; + std::vector userGroupIds; + std::vector limitDetail; + std::vector whitelist; + std::string policyId; + std::string name; + }; + + + CreateRegistrationPolicyResult(); + explicit CreateRegistrationPolicyResult(const std::string &payload); + ~CreateRegistrationPolicyResult(); + Policy getPolicy()const; + + protected: + void parse(const std::string &payload); + private: + Policy policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEREGISTRATIONPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesRequest.h b/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesRequest.h new file mode 100644 index 000000000..cc32d4702 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_DELETEREGISTRATIONPOLICIESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_DELETEREGISTRATIONPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT DeleteRegistrationPoliciesRequest : public RpcServiceRequest { +public: + DeleteRegistrationPoliciesRequest(); + ~DeleteRegistrationPoliciesRequest(); + std::vector getPolicyIds() const; + void setPolicyIds(const std::vector &policyIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector policyIds_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEREGISTRATIONPOLICIESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesResult.h b/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesResult.h new file mode 100644 index 000000000..56720f973 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DeleteRegistrationPoliciesResult.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_CSAS_MODEL_DELETEREGISTRATIONPOLICIESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_DELETEREGISTRATIONPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT DeleteRegistrationPoliciesResult : public ServiceResult + { + public: + + + DeleteRegistrationPoliciesResult(); + explicit DeleteRegistrationPoliciesResult(const std::string &payload); + ~DeleteRegistrationPoliciesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEREGISTRATIONPOLICIESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetRegistrationPolicyRequest.h b/csas/include/alibabacloud/csas/model/GetRegistrationPolicyRequest.h new file mode 100644 index 000000000..9eb34b68d --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetRegistrationPolicyRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetRegistrationPolicyRequest : public RpcServiceRequest { +public: + GetRegistrationPolicyRequest(); + ~GetRegistrationPolicyRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + +private: + std::string sourceIp_; + std::string policyId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetRegistrationPolicyResult.h b/csas/include/alibabacloud/csas/model/GetRegistrationPolicyResult.h new file mode 100644 index 000000000..0ef33b1f4 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetRegistrationPolicyResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetRegistrationPolicyResult : public ServiceResult + { + public: + struct LimitDetailItem + { + struct LimitCount + { + int all; + int pC; + int mobile; + }; + LimitCount limitCount; + std::string deviceBelong; + std::string limitType; + }; + + + GetRegistrationPolicyResult(); + explicit GetRegistrationPolicyResult(const std::string &payload); + ~GetRegistrationPolicyResult(); + std::string getStatus()const; + std::string getMatchMode()const; + std::string getDescription()const; + long getPriority()const; + std::vector getUserGroupIds()const; + std::string getCreateTime()const; + std::vector getLimitDetail()const; + std::vector getWhitelist()const; + std::string getPolicyId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string matchMode_; + std::string description_; + long priority_; + std::vector userGroupIds_; + std::string createTime_; + std::vector limitDetail_; + std::vector whitelist_; + std::string policyId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETREGISTRATIONPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetUserDeviceRequest.h b/csas/include/alibabacloud/csas/model/GetUserDeviceRequest.h new file mode 100644 index 000000000..af02f2636 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetUserDeviceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETUSERDEVICEREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETUSERDEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetUserDeviceRequest : public RpcServiceRequest { +public: + GetUserDeviceRequest(); + ~GetUserDeviceRequest(); + std::string getDeviceTag() const; + void setDeviceTag(const std::string &deviceTag); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string deviceTag_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETUSERDEVICEREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h b/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h new file mode 100644 index 000000000..83bb66178 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetUserDeviceResult.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_CSAS_MODEL_GETUSERDEVICERESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETUSERDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetUserDeviceResult : public ServiceResult + { + public: + struct Device + { + struct HistoryUsersItem + { + std::string username; + std::string saseUserId; + }; + std::string appStatus; + std::string dlpStatus; + std::string innerIP; + std::string memory; + std::string cPU; + std::string appVersion; + std::string department; + std::string disk; + std::string deviceModel; + std::string nacStatus; + bool sharingStatus; + std::string createTime; + std::string hostname; + std::string deviceVersion; + std::string saseUserId; + std::string srcIP; + std::string mac; + std::string paStatus; + std::string iaStatus; + std::string deviceType; + std::string deviceBelong; + std::string username; + std::string deviceTag; + std::string updateTime; + std::string deviceStatus; + std::vector historyUsers; + }; + + + GetUserDeviceResult(); + explicit GetUserDeviceResult(const std::string &payload); + ~GetUserDeviceResult(); + Device getDevice()const; + + protected: + void parse(const std::string &payload); + private: + Device device_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETUSERDEVICERESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsRequest.h b/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsRequest.h new file mode 100644 index 000000000..d0444e202 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsRequest.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_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListExcessiveDeviceRegistrationApplicationsRequest : public RpcServiceRequest { +public: + ListExcessiveDeviceRegistrationApplicationsRequest(); + ~ListExcessiveDeviceRegistrationApplicationsRequest(); + std::string getDeviceTag() const; + void setDeviceTag(const std::string &deviceTag); + std::string getMac() const; + void setMac(const std::string &mac); + std::string getHostname() const; + void setHostname(const std::string &hostname); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getSaseUserId() const; + void setSaseUserId(const std::string &saseUserId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getDepartment() const; + void setDepartment(const std::string &department); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::vector getApplicationIds() const; + void setApplicationIds(const std::vector &applicationIds); + std::vector getStatuses() const; + void setStatuses(const std::vector &statuses); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + std::string deviceTag_; + std::string mac_; + std::string hostname_; + std::string sourceIp_; + std::string saseUserId_; + long pageSize_; + std::string department_; + long currentPage_; + std::vector applicationIds_; + std::vector statuses_; + std::string username_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsResult.h b/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsResult.h new file mode 100644 index 000000000..0ff1e5453 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListExcessiveDeviceRegistrationApplicationsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListExcessiveDeviceRegistrationApplicationsResult : public ServiceResult + { + public: + struct DataList + { + std::string status; + std::string deviceType; + std::string department; + std::string description; + std::string username; + std::string deviceTag; + std::string createTime; + std::string hostname; + bool isUsed; + std::string saseUserId; + std::string applicationId; + std::string mac; + }; + + + ListExcessiveDeviceRegistrationApplicationsResult(); + explicit ListExcessiveDeviceRegistrationApplicationsResult(const std::string &payload); + ~ListExcessiveDeviceRegistrationApplicationsResult(); + long getTotalNum()const; + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListPrivateAccessTagsRequest.h b/csas/include/alibabacloud/csas/model/ListPrivateAccessTagsRequest.h index cd1ea0c26..27a5c36c0 100644 --- a/csas/include/alibabacloud/csas/model/ListPrivateAccessTagsRequest.h +++ b/csas/include/alibabacloud/csas/model/ListPrivateAccessTagsRequest.h @@ -38,6 +38,8 @@ public: void setPageSize(int pageSize); std::string getApplicationId() const; void setApplicationId(const std::string &applicationId); + bool getSimpleMode() const; + void setSimpleMode(bool simpleMode); std::vector getTagIds() const; void setTagIds(const std::vector &tagIds); int getCurrentPage() const; @@ -50,6 +52,7 @@ private: std::string policyId_; int pageSize_; std::string applicationId_; + bool simpleMode_; std::vector tagIds_; int currentPage_; std::string name_; diff --git a/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupRequest.h b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupRequest.h new file mode 100644 index 000000000..81dc4a530 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListRegistrationPoliciesForUserGroupRequest : public RpcServiceRequest { +public: + ListRegistrationPoliciesForUserGroupRequest(); + ~ListRegistrationPoliciesForUserGroupRequest(); + std::vector getUserGroupIds() const; + void setUserGroupIds(const std::vector &userGroupIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector userGroupIds_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupResult.h b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupResult.h new file mode 100644 index 000000000..5c00bd3ae --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesForUserGroupResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListRegistrationPoliciesForUserGroupResult : public ServiceResult + { + public: + struct Data + { + struct PoliciesItem + { + struct LimitDetailItem + { + struct LimitCount + { + std::string all; + std::string pC; + std::string mobile; + }; + LimitCount limitCount; + std::string deviceBelong; + std::string limitType; + }; + std::string status; + std::string matchMode; + std::string description; + long priority; + std::string createTime; + std::vector limitDetail; + std::vector whitelist; + std::string policyId; + std::string name; + }; + std::vector policies; + std::string userGroupId; + }; + + + ListRegistrationPoliciesForUserGroupResult(); + explicit ListRegistrationPoliciesForUserGroupResult(const std::string &payload); + ~ListRegistrationPoliciesForUserGroupResult(); + std::vector getUserGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::vector userGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESFORUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesRequest.h b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesRequest.h new file mode 100644 index 000000000..8e3ec9185 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesRequest.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_CSAS_MODEL_LISTREGISTRATIONPOLICIESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListRegistrationPoliciesRequest : public RpcServiceRequest { +public: + ListRegistrationPoliciesRequest(); + ~ListRegistrationPoliciesRequest(); + std::vector getPolicyIds() const; + void setPolicyIds(const std::vector &policyIds); + std::string getMatchMode() const; + void setMatchMode(const std::string &matchMode); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getUserGroupId() const; + void setUserGroupId(const std::string &userGroupId); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getPersonalLimitType() const; + void setPersonalLimitType(const std::string &personalLimitType); + std::string getName() const; + void setName(const std::string &name); + std::string getCompanyLimitType() const; + void setCompanyLimitType(const std::string &companyLimitType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::vector policyIds_; + std::string matchMode_; + std::string sourceIp_; + long pageSize_; + std::string userGroupId_; + long currentPage_; + std::string personalLimitType_; + std::string name_; + std::string companyLimitType_; + std::string status_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesResult.h b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesResult.h new file mode 100644 index 000000000..2652d4872 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListRegistrationPoliciesResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListRegistrationPoliciesResult : public ServiceResult + { + public: + struct DataList + { + struct LimitDetailItem + { + struct LimitCount + { + int all; + int pC; + int mobile; + }; + LimitCount limitCount; + std::string deviceBelong; + std::string limitType; + }; + std::string status; + std::string matchMode; + std::string description; + long priority; + std::string createTime; + std::vector userGroupIds; + std::vector limitDetail; + std::vector whitelist; + std::string policyId; + std::string name; + }; + + + ListRegistrationPoliciesResult(); + explicit ListRegistrationPoliciesResult(const std::string &payload); + ~ListRegistrationPoliciesResult(); + std::vector getPolicies()const; + std::string getTotalNum()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + std::string totalNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceRequest.h b/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceRequest.h new file mode 100644 index 000000000..30a42c3f3 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceRequest.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_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICEREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListSoftwareForUserDeviceRequest : public RpcServiceRequest { +public: + ListSoftwareForUserDeviceRequest(); + ~ListSoftwareForUserDeviceRequest(); + std::string getDeviceTag() const; + void setDeviceTag(const std::string &deviceTag); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string deviceTag_; + long currentPage_; + std::string sourceIp_; + long pageSize_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICEREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceResult.h b/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceResult.h new file mode 100644 index 000000000..8b488d6ae --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListSoftwareForUserDeviceResult.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_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICERESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListSoftwareForUserDeviceResult : public ServiceResult + { + public: + struct DataList + { + std::vector versions; + std::string installTime; + std::string name; + std::string inc; + }; + + + ListSoftwareForUserDeviceResult(); + explicit ListSoftwareForUserDeviceResult(const std::string &payload); + ~ListSoftwareForUserDeviceResult(); + long getTotalNum()const; + std::vector getSoftware()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + std::vector software_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTSOFTWAREFORUSERDEVICERESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListUserDevicesRequest.h b/csas/include/alibabacloud/csas/model/ListUserDevicesRequest.h new file mode 100644 index 000000000..14b3fcbd6 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserDevicesRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListUserDevicesRequest : public RpcServiceRequest { +public: + ListUserDevicesRequest(); + ~ListUserDevicesRequest(); + std::string getMac() const; + void setMac(const std::string &mac); + std::vector getDeviceTypes() const; + void setDeviceTypes(const std::vector &deviceTypes); + std::string getHostname() const; + void setHostname(const std::string &hostname); + std::vector getAppStatuses() const; + void setAppStatuses(const std::vector &appStatuses); + std::vector getDlpStatuses() const; + void setDlpStatuses(const std::vector &dlpStatuses); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getSaseUserId() const; + void setSaseUserId(const std::string &saseUserId); + long getPageSize() const; + void setPageSize(long pageSize); + std::vector getNacStatuses() const; + void setNacStatuses(const std::vector &nacStatuses); + std::string getDepartment() const; + void setDepartment(const std::string &department); + std::vector getIaStatuses() const; + void setIaStatuses(const std::vector &iaStatuses); + std::string getDeviceBelong() const; + void setDeviceBelong(const std::string &deviceBelong); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + bool getSharingStatus() const; + void setSharingStatus(bool sharingStatus); + std::vector getDeviceTags() const; + void setDeviceTags(const std::vector &deviceTags); + std::vector getDeviceStatuses() const; + void setDeviceStatuses(const std::vector &deviceStatuses); + std::vector getPaStatuses() const; + void setPaStatuses(const std::vector &paStatuses); + std::string getSortBy() const; + void setSortBy(const std::string &sortBy); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + std::string mac_; + std::vector deviceTypes_; + std::string hostname_; + std::vector appStatuses_; + std::vector dlpStatuses_; + std::string sourceIp_; + std::string saseUserId_; + long pageSize_; + std::vector nacStatuses_; + std::string department_; + std::vector iaStatuses_; + std::string deviceBelong_; + long currentPage_; + bool sharingStatus_; + std::vector deviceTags_; + std::vector deviceStatuses_; + std::vector paStatuses_; + std::string sortBy_; + std::string username_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h b/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h new file mode 100644 index 000000000..9df65770a --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListUserDevicesResult : public ServiceResult + { + public: + struct DataList + { + std::string appStatus; + std::string dlpStatus; + std::string innerIP; + std::string memory; + std::string cPU; + std::string appVersion; + std::string department; + std::string disk; + std::string deviceModel; + std::string nacStatus; + bool sharingStatus; + std::string createTime; + std::string hostname; + std::string deviceVersion; + std::string saseUserId; + std::string srcIP; + std::string mac; + std::string paStatus; + std::string iaStatus; + std::string deviceType; + std::string deviceBelong; + std::string username; + std::string deviceTag; + std::string updateTime; + std::string deviceStatus; + }; + + + ListUserDevicesResult(); + explicit ListUserDevicesResult(const std::string &payload); + ~ListUserDevicesResult(); + long getTotalNum()const; + std::vector getDevices()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + std::vector devices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERDEVICESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h b/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h new file mode 100644 index 000000000..c42b73e92 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListUserGroupsForRegistrationPolicyRequest : public RpcServiceRequest { +public: + ListUserGroupsForRegistrationPolicyRequest(); + ~ListUserGroupsForRegistrationPolicyRequest(); + std::vector getPolicyIds() const; + void setPolicyIds(const std::vector &policyIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector policyIds_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h b/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h new file mode 100644 index 000000000..b7e868e3a --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListUserGroupsForRegistrationPolicyResult : public ServiceResult + { + public: + struct Data + { + struct UserGroupsItem + { + struct AttributesItem + { + std::string relation; + int idpId; + std::string userGroupType; + std::string value; + }; + std::string description; + std::string userGroupId; + std::string createTime; + std::vector attributes; + std::string name; + }; + std::string policyId; + std::vector userGroups; + }; + + + ListUserGroupsForRegistrationPolicyResult(); + explicit ListUserGroupsForRegistrationPolicyResult(const std::string &payload); + ~ListUserGroupsForRegistrationPolicyResult(); + std::vector getPolicies()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERGROUPSFORREGISTRATIONPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h b/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h new file mode 100644 index 000000000..66ca0d260 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateExcessiveDeviceRegistrationApplicationsStatusRequest : public RpcServiceRequest { +public: + UpdateExcessiveDeviceRegistrationApplicationsStatusRequest(); + ~UpdateExcessiveDeviceRegistrationApplicationsStatusRequest(); + std::vector getApplicationIds() const; + void setApplicationIds(const std::vector &applicationIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::vector applicationIds_; + std::string sourceIp_; + std::string status_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.h new file mode 100644 index 000000000..40bcbfc2b --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.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_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateExcessiveDeviceRegistrationApplicationsStatusResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string deviceType; + std::string department; + std::string description; + std::string username; + std::string deviceTag; + std::string createTime; + std::string hostname; + bool isUsed; + std::string saseUserId; + std::string applicationId; + std::string mac; + }; + + + UpdateExcessiveDeviceRegistrationApplicationsStatusResult(); + explicit UpdateExcessiveDeviceRegistrationApplicationsStatusResult(const std::string &payload); + ~UpdateExcessiveDeviceRegistrationApplicationsStatusResult(); + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEEXCESSIVEDEVICEREGISTRATIONAPPLICATIONSSTATUSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h b/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h new file mode 100644 index 000000000..e6fac8641 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateRegistrationPolicyRequest : public RpcServiceRequest { +public: + struct CompanyLimitCount { + int all; + int pC; + int mobile; + }; + struct PersonalLimitCount { + int all; + int pC; + int mobile; + }; + UpdateRegistrationPolicyRequest(); + ~UpdateRegistrationPolicyRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getMatchMode() const; + void setMatchMode(const std::string &matchMode); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + CompanyLimitCount getCompanyLimitCount() const; + void setCompanyLimitCount(const CompanyLimitCount &companyLimitCount); + PersonalLimitCount getPersonalLimitCount() const; + void setPersonalLimitCount(const PersonalLimitCount &personalLimitCount); + std::vector getUserGroupIds() const; + void setUserGroupIds(const std::vector &userGroupIds); + std::vector getWhitelist() const; + void setWhitelist(const std::vector &whitelist); + long getPriority() const; + void setPriority(long priority); + std::string getPersonalLimitType() const; + void setPersonalLimitType(const std::string &personalLimitType); + std::string getName() const; + void setName(const std::string &name); + std::string getCompanyLimitType() const; + void setCompanyLimitType(const std::string &companyLimitType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string description_; + std::string matchMode_; + std::string sourceIp_; + std::string policyId_; + CompanyLimitCount companyLimitCount_; + PersonalLimitCount personalLimitCount_; + std::vector userGroupIds_; + std::vector whitelist_; + long priority_; + std::string personalLimitType_; + std::string name_; + std::string companyLimitType_; + std::string status_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h b/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h new file mode 100644 index 000000000..b29475c14 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateRegistrationPolicyResult : public ServiceResult + { + public: + struct Policy + { + struct LimitDetailItem + { + struct LimitCount + { + int all; + int pC; + int mobile; + }; + LimitCount limitCount; + std::string deviceBelong; + std::string limitType; + }; + std::string status; + std::string matchMode; + std::string description; + std::string priority; + std::string createTime; + std::vector userGroupIds; + std::vector limitDetail; + std::vector whitelist; + std::string policyId; + std::string name; + }; + + + UpdateRegistrationPolicyResult(); + explicit UpdateRegistrationPolicyResult(const std::string &payload); + ~UpdateRegistrationPolicyResult(); + Policy getPolicy()const; + + protected: + void parse(const std::string &payload); + private: + Policy policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEREGISTRATIONPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h new file mode 100644 index 000000000..a4e4f7e0f --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateUserDevicesSharingStatusRequest : public RpcServiceRequest { +public: + UpdateUserDevicesSharingStatusRequest(); + ~UpdateUserDevicesSharingStatusRequest(); + bool getSharingStatus() const; + void setSharingStatus(bool sharingStatus); + std::vector getDeviceTags() const; + void setDeviceTags(const std::vector &deviceTags); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + bool sharingStatus_; + std::vector deviceTags_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h new file mode 100644 index 000000000..3efdfa2b4 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateUserDevicesSharingStatusResult : public ServiceResult + { + public: + struct Data + { + std::string appStatus; + std::string dlpStatus; + std::string innerIP; + std::string memory; + std::string cPU; + std::string appVersion; + std::string department; + std::string disk; + std::string deviceModel; + std::string nacStatus; + bool sharingStatus; + std::string createTime; + std::string hostname; + std::string deviceVersion; + std::string saseUserId; + std::string srcIP; + std::string mac; + std::string paStatus; + std::string iaStatus; + std::string deviceType; + std::string deviceBelong; + std::string username; + std::string deviceTag; + std::string updateTime; + std::string deviceStatus; + }; + + + UpdateUserDevicesSharingStatusResult(); + explicit UpdateUserDevicesSharingStatusResult(const std::string &payload); + ~UpdateUserDevicesSharingStatusResult(); + std::vector getDevices()const; + + protected: + void parse(const std::string &payload); + private: + std::vector devices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSHARINGSTATUSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h new file mode 100644 index 000000000..e35461a36 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateUserDevicesStatusRequest : public RpcServiceRequest { +public: + UpdateUserDevicesStatusRequest(); + ~UpdateUserDevicesStatusRequest(); + std::string getDeviceAction() const; + void setDeviceAction(const std::string &deviceAction); + std::vector getDeviceTags() const; + void setDeviceTags(const std::vector &deviceTags); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string deviceAction_; + std::vector deviceTags_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h new file mode 100644 index 000000000..841c0e5cc --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateUserDevicesStatusResult : public ServiceResult + { + public: + struct Data + { + std::string appStatus; + std::string dlpStatus; + std::string innerIP; + std::string memory; + std::string cPU; + std::string appVersion; + std::string department; + std::string disk; + std::string deviceModel; + std::string nacStatus; + bool sharingStatus; + std::string createTime; + std::string hostname; + std::string deviceVersion; + std::string saseUserId; + std::string srcIP; + std::string mac; + std::string paStatus; + std::string iaStatus; + std::string deviceType; + std::string deviceBelong; + std::string username; + std::string deviceTag; + std::string updateTime; + std::string deviceStatus; + }; + + + UpdateUserDevicesStatusResult(); + explicit UpdateUserDevicesStatusResult(const std::string &payload); + ~UpdateUserDevicesStatusResult(); + std::vector getDevices()const; + + protected: + void parse(const std::string &payload); + private: + std::vector devices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEUSERDEVICESSTATUSRESULT_H_ \ No newline at end of file diff --git a/csas/src/CsasClient.cc b/csas/src/CsasClient.cc index e67264919..2af4fa012 100644 --- a/csas/src/CsasClient.cc +++ b/csas/src/CsasClient.cc @@ -231,6 +231,42 @@ CsasClient::CreatePrivateAccessTagOutcomeCallable CsasClient::createPrivateAcces return task->get_future(); } +CsasClient::CreateRegistrationPolicyOutcome CsasClient::createRegistrationPolicy(const CreateRegistrationPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRegistrationPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRegistrationPolicyOutcome(CreateRegistrationPolicyResult(outcome.result())); + else + return CreateRegistrationPolicyOutcome(outcome.error()); +} + +void CsasClient::createRegistrationPolicyAsync(const CreateRegistrationPolicyRequest& request, const CreateRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRegistrationPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::CreateRegistrationPolicyOutcomeCallable CsasClient::createRegistrationPolicyCallable(const CreateRegistrationPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRegistrationPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::CreateUserGroupOutcome CsasClient::createUserGroup(const CreateUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +447,42 @@ CsasClient::DeletePrivateAccessTagOutcomeCallable CsasClient::deletePrivateAcces return task->get_future(); } +CsasClient::DeleteRegistrationPoliciesOutcome CsasClient::deleteRegistrationPolicies(const DeleteRegistrationPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRegistrationPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRegistrationPoliciesOutcome(DeleteRegistrationPoliciesResult(outcome.result())); + else + return DeleteRegistrationPoliciesOutcome(outcome.error()); +} + +void CsasClient::deleteRegistrationPoliciesAsync(const DeleteRegistrationPoliciesRequest& request, const DeleteRegistrationPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRegistrationPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::DeleteRegistrationPoliciesOutcomeCallable CsasClient::deleteRegistrationPoliciesCallable(const DeleteRegistrationPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRegistrationPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::DeleteUserGroupOutcome CsasClient::deleteUserGroup(const DeleteUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +663,78 @@ CsasClient::GetPrivateAccessPolicyOutcomeCallable CsasClient::getPrivateAccessPo return task->get_future(); } +CsasClient::GetRegistrationPolicyOutcome CsasClient::getRegistrationPolicy(const GetRegistrationPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRegistrationPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRegistrationPolicyOutcome(GetRegistrationPolicyResult(outcome.result())); + else + return GetRegistrationPolicyOutcome(outcome.error()); +} + +void CsasClient::getRegistrationPolicyAsync(const GetRegistrationPolicyRequest& request, const GetRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRegistrationPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetRegistrationPolicyOutcomeCallable CsasClient::getRegistrationPolicyCallable(const GetRegistrationPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRegistrationPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::GetUserDeviceOutcome CsasClient::getUserDevice(const GetUserDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserDeviceOutcome(GetUserDeviceResult(outcome.result())); + else + return GetUserDeviceOutcome(outcome.error()); +} + +void CsasClient::getUserDeviceAsync(const GetUserDeviceRequest& request, const GetUserDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetUserDeviceOutcomeCallable CsasClient::getUserDeviceCallable(const GetUserDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::GetUserGroupOutcome CsasClient::getUserGroup(const GetUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +951,42 @@ CsasClient::ListDynamicRoutesOutcomeCallable CsasClient::listDynamicRoutesCallab return task->get_future(); } +CsasClient::ListExcessiveDeviceRegistrationApplicationsOutcome CsasClient::listExcessiveDeviceRegistrationApplications(const ListExcessiveDeviceRegistrationApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExcessiveDeviceRegistrationApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExcessiveDeviceRegistrationApplicationsOutcome(ListExcessiveDeviceRegistrationApplicationsResult(outcome.result())); + else + return ListExcessiveDeviceRegistrationApplicationsOutcome(outcome.error()); +} + +void CsasClient::listExcessiveDeviceRegistrationApplicationsAsync(const ListExcessiveDeviceRegistrationApplicationsRequest& request, const ListExcessiveDeviceRegistrationApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExcessiveDeviceRegistrationApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListExcessiveDeviceRegistrationApplicationsOutcomeCallable CsasClient::listExcessiveDeviceRegistrationApplicationsCallable(const ListExcessiveDeviceRegistrationApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExcessiveDeviceRegistrationApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListPolicesForPrivateAccessApplicationOutcome CsasClient::listPolicesForPrivateAccessApplication(const ListPolicesForPrivateAccessApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1275,114 @@ CsasClient::ListPrivateAccessTagsForDynamicRouteOutcomeCallable CsasClient::list return task->get_future(); } +CsasClient::ListRegistrationPoliciesOutcome CsasClient::listRegistrationPolicies(const ListRegistrationPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegistrationPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegistrationPoliciesOutcome(ListRegistrationPoliciesResult(outcome.result())); + else + return ListRegistrationPoliciesOutcome(outcome.error()); +} + +void CsasClient::listRegistrationPoliciesAsync(const ListRegistrationPoliciesRequest& request, const ListRegistrationPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegistrationPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListRegistrationPoliciesOutcomeCallable CsasClient::listRegistrationPoliciesCallable(const ListRegistrationPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegistrationPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListRegistrationPoliciesForUserGroupOutcome CsasClient::listRegistrationPoliciesForUserGroup(const ListRegistrationPoliciesForUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegistrationPoliciesForUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegistrationPoliciesForUserGroupOutcome(ListRegistrationPoliciesForUserGroupResult(outcome.result())); + else + return ListRegistrationPoliciesForUserGroupOutcome(outcome.error()); +} + +void CsasClient::listRegistrationPoliciesForUserGroupAsync(const ListRegistrationPoliciesForUserGroupRequest& request, const ListRegistrationPoliciesForUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegistrationPoliciesForUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListRegistrationPoliciesForUserGroupOutcomeCallable CsasClient::listRegistrationPoliciesForUserGroupCallable(const ListRegistrationPoliciesForUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegistrationPoliciesForUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListSoftwareForUserDeviceOutcome CsasClient::listSoftwareForUserDevice(const ListSoftwareForUserDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSoftwareForUserDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSoftwareForUserDeviceOutcome(ListSoftwareForUserDeviceResult(outcome.result())); + else + return ListSoftwareForUserDeviceOutcome(outcome.error()); +} + +void CsasClient::listSoftwareForUserDeviceAsync(const ListSoftwareForUserDeviceRequest& request, const ListSoftwareForUserDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSoftwareForUserDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListSoftwareForUserDeviceOutcomeCallable CsasClient::listSoftwareForUserDeviceCallable(const ListSoftwareForUserDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSoftwareForUserDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListTagsForPrivateAccessApplicationOutcome CsasClient::listTagsForPrivateAccessApplication(const ListTagsForPrivateAccessApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1455,42 @@ CsasClient::ListTagsForPrivateAccessPolicyOutcomeCallable CsasClient::listTagsFo return task->get_future(); } +CsasClient::ListUserDevicesOutcome CsasClient::listUserDevices(const ListUserDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserDevicesOutcome(ListUserDevicesResult(outcome.result())); + else + return ListUserDevicesOutcome(outcome.error()); +} + +void CsasClient::listUserDevicesAsync(const ListUserDevicesRequest& request, const ListUserDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListUserDevicesOutcomeCallable CsasClient::listUserDevicesCallable(const ListUserDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListUserGroupsOutcome CsasClient::listUserGroups(const ListUserGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1563,42 @@ CsasClient::ListUserGroupsForPrivateAccessPolicyOutcomeCallable CsasClient::list return task->get_future(); } +CsasClient::ListUserGroupsForRegistrationPolicyOutcome CsasClient::listUserGroupsForRegistrationPolicy(const ListUserGroupsForRegistrationPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserGroupsForRegistrationPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserGroupsForRegistrationPolicyOutcome(ListUserGroupsForRegistrationPolicyResult(outcome.result())); + else + return ListUserGroupsForRegistrationPolicyOutcome(outcome.error()); +} + +void CsasClient::listUserGroupsForRegistrationPolicyAsync(const ListUserGroupsForRegistrationPolicyRequest& request, const ListUserGroupsForRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserGroupsForRegistrationPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListUserGroupsForRegistrationPolicyOutcomeCallable CsasClient::listUserGroupsForRegistrationPolicyCallable(const ListUserGroupsForRegistrationPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserGroupsForRegistrationPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::UpdateDynamicRouteOutcome CsasClient::updateDynamicRoute(const UpdateDynamicRouteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1635,42 @@ CsasClient::UpdateDynamicRouteOutcomeCallable CsasClient::updateDynamicRouteCall return task->get_future(); } +CsasClient::UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome CsasClient::updateExcessiveDeviceRegistrationApplicationsStatus(const UpdateExcessiveDeviceRegistrationApplicationsStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome(UpdateExcessiveDeviceRegistrationApplicationsStatusResult(outcome.result())); + else + return UpdateExcessiveDeviceRegistrationApplicationsStatusOutcome(outcome.error()); +} + +void CsasClient::updateExcessiveDeviceRegistrationApplicationsStatusAsync(const UpdateExcessiveDeviceRegistrationApplicationsStatusRequest& request, const UpdateExcessiveDeviceRegistrationApplicationsStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateExcessiveDeviceRegistrationApplicationsStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateExcessiveDeviceRegistrationApplicationsStatusOutcomeCallable CsasClient::updateExcessiveDeviceRegistrationApplicationsStatusCallable(const UpdateExcessiveDeviceRegistrationApplicationsStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateExcessiveDeviceRegistrationApplicationsStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::UpdatePrivateAccessApplicationOutcome CsasClient::updatePrivateAccessApplication(const UpdatePrivateAccessApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1743,114 @@ CsasClient::UpdatePrivateAccessPolicyOutcomeCallable CsasClient::updatePrivateAc return task->get_future(); } +CsasClient::UpdateRegistrationPolicyOutcome CsasClient::updateRegistrationPolicy(const UpdateRegistrationPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRegistrationPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRegistrationPolicyOutcome(UpdateRegistrationPolicyResult(outcome.result())); + else + return UpdateRegistrationPolicyOutcome(outcome.error()); +} + +void CsasClient::updateRegistrationPolicyAsync(const UpdateRegistrationPolicyRequest& request, const UpdateRegistrationPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRegistrationPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateRegistrationPolicyOutcomeCallable CsasClient::updateRegistrationPolicyCallable(const UpdateRegistrationPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRegistrationPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::UpdateUserDevicesSharingStatusOutcome CsasClient::updateUserDevicesSharingStatus(const UpdateUserDevicesSharingStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserDevicesSharingStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserDevicesSharingStatusOutcome(UpdateUserDevicesSharingStatusResult(outcome.result())); + else + return UpdateUserDevicesSharingStatusOutcome(outcome.error()); +} + +void CsasClient::updateUserDevicesSharingStatusAsync(const UpdateUserDevicesSharingStatusRequest& request, const UpdateUserDevicesSharingStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUserDevicesSharingStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateUserDevicesSharingStatusOutcomeCallable CsasClient::updateUserDevicesSharingStatusCallable(const UpdateUserDevicesSharingStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUserDevicesSharingStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::UpdateUserDevicesStatusOutcome CsasClient::updateUserDevicesStatus(const UpdateUserDevicesStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserDevicesStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserDevicesStatusOutcome(UpdateUserDevicesStatusResult(outcome.result())); + else + return UpdateUserDevicesStatusOutcome(outcome.error()); +} + +void CsasClient::updateUserDevicesStatusAsync(const UpdateUserDevicesStatusRequest& request, const UpdateUserDevicesStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUserDevicesStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateUserDevicesStatusOutcomeCallable CsasClient::updateUserDevicesStatusCallable(const UpdateUserDevicesStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUserDevicesStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::UpdateUserGroupOutcome CsasClient::updateUserGroup(const UpdateUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/csas/src/model/CreateRegistrationPolicyRequest.cc b/csas/src/model/CreateRegistrationPolicyRequest.cc new file mode 100644 index 000000000..f7b7e41c3 --- /dev/null +++ b/csas/src/model/CreateRegistrationPolicyRequest.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::Csas::Model::CreateRegistrationPolicyRequest; + +CreateRegistrationPolicyRequest::CreateRegistrationPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "CreateRegistrationPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateRegistrationPolicyRequest::~CreateRegistrationPolicyRequest() {} + +std::string CreateRegistrationPolicyRequest::getDescription() const { + return description_; +} + +void CreateRegistrationPolicyRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateRegistrationPolicyRequest::getMatchMode() const { + return matchMode_; +} + +void CreateRegistrationPolicyRequest::setMatchMode(const std::string &matchMode) { + matchMode_ = matchMode; + setBodyParameter(std::string("MatchMode"), matchMode); +} + +std::string CreateRegistrationPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateRegistrationPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +CreateRegistrationPolicyRequest::CompanyLimitCount CreateRegistrationPolicyRequest::getCompanyLimitCount() const { + return companyLimitCount_; +} + +void CreateRegistrationPolicyRequest::setCompanyLimitCount(const CreateRegistrationPolicyRequest::CompanyLimitCount &companyLimitCount) { + companyLimitCount_ = companyLimitCount; + setBodyParameter(std::string("CompanyLimitCount") + ".All", std::to_string(companyLimitCount.all)); + setBodyParameter(std::string("CompanyLimitCount") + ".PC", std::to_string(companyLimitCount.pC)); + setBodyParameter(std::string("CompanyLimitCount") + ".Mobile", std::to_string(companyLimitCount.mobile)); +} + +CreateRegistrationPolicyRequest::PersonalLimitCount CreateRegistrationPolicyRequest::getPersonalLimitCount() const { + return personalLimitCount_; +} + +void CreateRegistrationPolicyRequest::setPersonalLimitCount(const CreateRegistrationPolicyRequest::PersonalLimitCount &personalLimitCount) { + personalLimitCount_ = personalLimitCount; + setBodyParameter(std::string("PersonalLimitCount") + ".All", std::to_string(personalLimitCount.all)); + setBodyParameter(std::string("PersonalLimitCount") + ".PC", std::to_string(personalLimitCount.pC)); + setBodyParameter(std::string("PersonalLimitCount") + ".Mobile", std::to_string(personalLimitCount.mobile)); +} + +std::vector CreateRegistrationPolicyRequest::getUserGroupIds() const { + return userGroupIds_; +} + +void CreateRegistrationPolicyRequest::setUserGroupIds(const std::vector &userGroupIds) { + userGroupIds_ = userGroupIds; + for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) { + setBodyParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]); + } +} + +std::vector CreateRegistrationPolicyRequest::getWhitelist() const { + return whitelist_; +} + +void CreateRegistrationPolicyRequest::setWhitelist(const std::vector &whitelist) { + whitelist_ = whitelist; + for(int dep1 = 0; dep1 != whitelist.size(); dep1++) { + setBodyParameter(std::string("Whitelist") + "." + std::to_string(dep1 + 1), whitelist[dep1]); + } +} + +long CreateRegistrationPolicyRequest::getPriority() const { + return priority_; +} + +void CreateRegistrationPolicyRequest::setPriority(long priority) { + priority_ = priority; + setBodyParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string CreateRegistrationPolicyRequest::getPersonalLimitType() const { + return personalLimitType_; +} + +void CreateRegistrationPolicyRequest::setPersonalLimitType(const std::string &personalLimitType) { + personalLimitType_ = personalLimitType; + setBodyParameter(std::string("PersonalLimitType"), personalLimitType); +} + +std::string CreateRegistrationPolicyRequest::getName() const { + return name_; +} + +void CreateRegistrationPolicyRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string CreateRegistrationPolicyRequest::getCompanyLimitType() const { + return companyLimitType_; +} + +void CreateRegistrationPolicyRequest::setCompanyLimitType(const std::string &companyLimitType) { + companyLimitType_ = companyLimitType; + setBodyParameter(std::string("CompanyLimitType"), companyLimitType); +} + +std::string CreateRegistrationPolicyRequest::getStatus() const { + return status_; +} + +void CreateRegistrationPolicyRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/CreateRegistrationPolicyResult.cc b/csas/src/model/CreateRegistrationPolicyResult.cc new file mode 100644 index 000000000..4a5d84aed --- /dev/null +++ b/csas/src/model/CreateRegistrationPolicyResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +CreateRegistrationPolicyResult::CreateRegistrationPolicyResult() : + ServiceResult() +{} + +CreateRegistrationPolicyResult::CreateRegistrationPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRegistrationPolicyResult::~CreateRegistrationPolicyResult() +{} + +void CreateRegistrationPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto policyNode = value["Policy"]; + if(!policyNode["Name"].isNull()) + policy_.name = policyNode["Name"].asString(); + if(!policyNode["PolicyId"].isNull()) + policy_.policyId = policyNode["PolicyId"].asString(); + if(!policyNode["Priority"].isNull()) + policy_.priority = policyNode["Priority"].asString(); + if(!policyNode["Description"].isNull()) + policy_.description = policyNode["Description"].asString(); + if(!policyNode["Status"].isNull()) + policy_.status = policyNode["Status"].asString(); + if(!policyNode["MatchMode"].isNull()) + policy_.matchMode = policyNode["MatchMode"].asString(); + if(!policyNode["CreateTime"].isNull()) + policy_.createTime = policyNode["CreateTime"].asString(); + auto allLimitDetailNode = policyNode["LimitDetail"]["limitDetailItem"]; + for (auto policyNodeLimitDetaillimitDetailItem : allLimitDetailNode) + { + Policy::LimitDetailItem limitDetailItemObject; + if(!policyNodeLimitDetaillimitDetailItem["DeviceBelong"].isNull()) + limitDetailItemObject.deviceBelong = policyNodeLimitDetaillimitDetailItem["DeviceBelong"].asString(); + if(!policyNodeLimitDetaillimitDetailItem["LimitType"].isNull()) + limitDetailItemObject.limitType = policyNodeLimitDetaillimitDetailItem["LimitType"].asString(); + auto limitCountNode = value["LimitCount"]; + if(!limitCountNode["All"].isNull()) + limitDetailItemObject.limitCount.all = std::stoi(limitCountNode["All"].asString()); + if(!limitCountNode["PC"].isNull()) + limitDetailItemObject.limitCount.pC = std::stoi(limitCountNode["PC"].asString()); + if(!limitCountNode["Mobile"].isNull()) + limitDetailItemObject.limitCount.mobile = std::stoi(limitCountNode["Mobile"].asString()); + policy_.limitDetail.push_back(limitDetailItemObject); + } + auto allWhitelist = policyNode["Whitelist"]["whitelist"]; + for (auto value : allWhitelist) + policy_.whitelist.push_back(value.asString()); + auto allUserGroupIds = policyNode["UserGroupIds"]["userGroupIds"]; + for (auto value : allUserGroupIds) + policy_.userGroupIds.push_back(value.asString()); + +} + +CreateRegistrationPolicyResult::Policy CreateRegistrationPolicyResult::getPolicy()const +{ + return policy_; +} + diff --git a/csas/src/model/DeleteRegistrationPoliciesRequest.cc b/csas/src/model/DeleteRegistrationPoliciesRequest.cc new file mode 100644 index 000000000..63a67a913 --- /dev/null +++ b/csas/src/model/DeleteRegistrationPoliciesRequest.cc @@ -0,0 +1,47 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::DeleteRegistrationPoliciesRequest; + +DeleteRegistrationPoliciesRequest::DeleteRegistrationPoliciesRequest() + : RpcServiceRequest("csas", "2023-01-20", "DeleteRegistrationPolicies") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRegistrationPoliciesRequest::~DeleteRegistrationPoliciesRequest() {} + +std::vector DeleteRegistrationPoliciesRequest::getPolicyIds() const { + return policyIds_; +} + +void DeleteRegistrationPoliciesRequest::setPolicyIds(const std::vector &policyIds) { + policyIds_ = policyIds; + for(int dep1 = 0; dep1 != policyIds.size(); dep1++) { + setBodyParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]); + } +} + +std::string DeleteRegistrationPoliciesRequest::getSourceIp() const { + return sourceIp_; +} + +void DeleteRegistrationPoliciesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/DeleteRegistrationPoliciesResult.cc b/csas/src/model/DeleteRegistrationPoliciesResult.cc new file mode 100644 index 000000000..652e8de65 --- /dev/null +++ b/csas/src/model/DeleteRegistrationPoliciesResult.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::Csas; +using namespace AlibabaCloud::Csas::Model; + +DeleteRegistrationPoliciesResult::DeleteRegistrationPoliciesResult() : + ServiceResult() +{} + +DeleteRegistrationPoliciesResult::DeleteRegistrationPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRegistrationPoliciesResult::~DeleteRegistrationPoliciesResult() +{} + +void DeleteRegistrationPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/csas/src/model/GetRegistrationPolicyRequest.cc b/csas/src/model/GetRegistrationPolicyRequest.cc new file mode 100644 index 000000000..16748ce04 --- /dev/null +++ b/csas/src/model/GetRegistrationPolicyRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::GetRegistrationPolicyRequest; + +GetRegistrationPolicyRequest::GetRegistrationPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetRegistrationPolicy") { + setMethod(HttpRequest::Method::Get); +} + +GetRegistrationPolicyRequest::~GetRegistrationPolicyRequest() {} + +std::string GetRegistrationPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void GetRegistrationPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetRegistrationPolicyRequest::getPolicyId() const { + return policyId_; +} + +void GetRegistrationPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + diff --git a/csas/src/model/GetRegistrationPolicyResult.cc b/csas/src/model/GetRegistrationPolicyResult.cc new file mode 100644 index 000000000..0b90bdb1f --- /dev/null +++ b/csas/src/model/GetRegistrationPolicyResult.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +GetRegistrationPolicyResult::GetRegistrationPolicyResult() : + ServiceResult() +{} + +GetRegistrationPolicyResult::GetRegistrationPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRegistrationPolicyResult::~GetRegistrationPolicyResult() +{} + +void GetRegistrationPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLimitDetailNode = value["LimitDetail"]["limitDetailItem"]; + for (auto valueLimitDetaillimitDetailItem : allLimitDetailNode) + { + LimitDetailItem limitDetailObject; + if(!valueLimitDetaillimitDetailItem["DeviceBelong"].isNull()) + limitDetailObject.deviceBelong = valueLimitDetaillimitDetailItem["DeviceBelong"].asString(); + if(!valueLimitDetaillimitDetailItem["LimitType"].isNull()) + limitDetailObject.limitType = valueLimitDetaillimitDetailItem["LimitType"].asString(); + auto limitCountNode = value["LimitCount"]; + if(!limitCountNode["All"].isNull()) + limitDetailObject.limitCount.all = std::stoi(limitCountNode["All"].asString()); + if(!limitCountNode["PC"].isNull()) + limitDetailObject.limitCount.pC = std::stoi(limitCountNode["PC"].asString()); + if(!limitCountNode["Mobile"].isNull()) + limitDetailObject.limitCount.mobile = std::stoi(limitCountNode["Mobile"].asString()); + limitDetail_.push_back(limitDetailObject); + } + auto allWhitelist = value["Whitelist"]["whitelist"]; + for (const auto &item : allWhitelist) + whitelist_.push_back(item.asString()); + auto allUserGroupIds = value["UserGroupIds"]["userGroupIds"]; + for (const auto &item : allUserGroupIds) + userGroupIds_.push_back(item.asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["PolicyId"].isNull()) + policyId_ = value["PolicyId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stol(value["Priority"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["MatchMode"].isNull()) + matchMode_ = value["MatchMode"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + +} + +std::string GetRegistrationPolicyResult::getStatus()const +{ + return status_; +} + +std::string GetRegistrationPolicyResult::getMatchMode()const +{ + return matchMode_; +} + +std::string GetRegistrationPolicyResult::getDescription()const +{ + return description_; +} + +long GetRegistrationPolicyResult::getPriority()const +{ + return priority_; +} + +std::vector GetRegistrationPolicyResult::getUserGroupIds()const +{ + return userGroupIds_; +} + +std::string GetRegistrationPolicyResult::getCreateTime()const +{ + return createTime_; +} + +std::vector GetRegistrationPolicyResult::getLimitDetail()const +{ + return limitDetail_; +} + +std::vector GetRegistrationPolicyResult::getWhitelist()const +{ + return whitelist_; +} + +std::string GetRegistrationPolicyResult::getPolicyId()const +{ + return policyId_; +} + +std::string GetRegistrationPolicyResult::getName()const +{ + return name_; +} + diff --git a/csas/src/model/GetUserDeviceRequest.cc b/csas/src/model/GetUserDeviceRequest.cc new file mode 100644 index 000000000..d2917db71 --- /dev/null +++ b/csas/src/model/GetUserDeviceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::GetUserDeviceRequest; + +GetUserDeviceRequest::GetUserDeviceRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetUserDevice") { + setMethod(HttpRequest::Method::Get); +} + +GetUserDeviceRequest::~GetUserDeviceRequest() {} + +std::string GetUserDeviceRequest::getDeviceTag() const { + return deviceTag_; +} + +void GetUserDeviceRequest::setDeviceTag(const std::string &deviceTag) { + deviceTag_ = deviceTag; + setParameter(std::string("DeviceTag"), deviceTag); +} + +std::string GetUserDeviceRequest::getSourceIp() const { + return sourceIp_; +} + +void GetUserDeviceRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/GetUserDeviceResult.cc b/csas/src/model/GetUserDeviceResult.cc new file mode 100644 index 000000000..cd841f604 --- /dev/null +++ b/csas/src/model/GetUserDeviceResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +GetUserDeviceResult::GetUserDeviceResult() : + ServiceResult() +{} + +GetUserDeviceResult::GetUserDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserDeviceResult::~GetUserDeviceResult() +{} + +void GetUserDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto deviceNode = value["Device"]; + if(!deviceNode["DeviceTag"].isNull()) + device_.deviceTag = deviceNode["DeviceTag"].asString(); + if(!deviceNode["DeviceType"].isNull()) + device_.deviceType = deviceNode["DeviceType"].asString(); + if(!deviceNode["DeviceModel"].isNull()) + device_.deviceModel = deviceNode["DeviceModel"].asString(); + if(!deviceNode["DeviceVersion"].isNull()) + device_.deviceVersion = deviceNode["DeviceVersion"].asString(); + if(!deviceNode["Hostname"].isNull()) + device_.hostname = deviceNode["Hostname"].asString(); + if(!deviceNode["Username"].isNull()) + device_.username = deviceNode["Username"].asString(); + if(!deviceNode["SaseUserId"].isNull()) + device_.saseUserId = deviceNode["SaseUserId"].asString(); + if(!deviceNode["Department"].isNull()) + device_.department = deviceNode["Department"].asString(); + if(!deviceNode["InnerIP"].isNull()) + device_.innerIP = deviceNode["InnerIP"].asString(); + if(!deviceNode["SrcIP"].isNull()) + device_.srcIP = deviceNode["SrcIP"].asString(); + if(!deviceNode["Memory"].isNull()) + device_.memory = deviceNode["Memory"].asString(); + if(!deviceNode["CPU"].isNull()) + device_.cPU = deviceNode["CPU"].asString(); + if(!deviceNode["Disk"].isNull()) + device_.disk = deviceNode["Disk"].asString(); + if(!deviceNode["Mac"].isNull()) + device_.mac = deviceNode["Mac"].asString(); + if(!deviceNode["AppVersion"].isNull()) + device_.appVersion = deviceNode["AppVersion"].asString(); + if(!deviceNode["DeviceBelong"].isNull()) + device_.deviceBelong = deviceNode["DeviceBelong"].asString(); + if(!deviceNode["SharingStatus"].isNull()) + device_.sharingStatus = deviceNode["SharingStatus"].asString() == "true"; + if(!deviceNode["DeviceStatus"].isNull()) + device_.deviceStatus = deviceNode["DeviceStatus"].asString(); + if(!deviceNode["AppStatus"].isNull()) + device_.appStatus = deviceNode["AppStatus"].asString(); + if(!deviceNode["PaStatus"].isNull()) + device_.paStatus = deviceNode["PaStatus"].asString(); + if(!deviceNode["IaStatus"].isNull()) + device_.iaStatus = deviceNode["IaStatus"].asString(); + if(!deviceNode["DlpStatus"].isNull()) + device_.dlpStatus = deviceNode["DlpStatus"].asString(); + if(!deviceNode["NacStatus"].isNull()) + device_.nacStatus = deviceNode["NacStatus"].asString(); + if(!deviceNode["CreateTime"].isNull()) + device_.createTime = deviceNode["CreateTime"].asString(); + if(!deviceNode["UpdateTime"].isNull()) + device_.updateTime = deviceNode["UpdateTime"].asString(); + auto allHistoryUsersNode = deviceNode["HistoryUsers"]["historyUsersItem"]; + for (auto deviceNodeHistoryUsershistoryUsersItem : allHistoryUsersNode) + { + Device::HistoryUsersItem historyUsersItemObject; + if(!deviceNodeHistoryUsershistoryUsersItem["Username"].isNull()) + historyUsersItemObject.username = deviceNodeHistoryUsershistoryUsersItem["Username"].asString(); + if(!deviceNodeHistoryUsershistoryUsersItem["SaseUserId"].isNull()) + historyUsersItemObject.saseUserId = deviceNodeHistoryUsershistoryUsersItem["SaseUserId"].asString(); + device_.historyUsers.push_back(historyUsersItemObject); + } + +} + +GetUserDeviceResult::Device GetUserDeviceResult::getDevice()const +{ + return device_; +} + diff --git a/csas/src/model/ListExcessiveDeviceRegistrationApplicationsRequest.cc b/csas/src/model/ListExcessiveDeviceRegistrationApplicationsRequest.cc new file mode 100644 index 000000000..d4e441f38 --- /dev/null +++ b/csas/src/model/ListExcessiveDeviceRegistrationApplicationsRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListExcessiveDeviceRegistrationApplicationsRequest; + +ListExcessiveDeviceRegistrationApplicationsRequest::ListExcessiveDeviceRegistrationApplicationsRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListExcessiveDeviceRegistrationApplications") { + setMethod(HttpRequest::Method::Get); +} + +ListExcessiveDeviceRegistrationApplicationsRequest::~ListExcessiveDeviceRegistrationApplicationsRequest() {} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getDeviceTag() const { + return deviceTag_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setDeviceTag(const std::string &deviceTag) { + deviceTag_ = deviceTag; + setParameter(std::string("DeviceTag"), deviceTag); +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getMac() const { + return mac_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setMac(const std::string &mac) { + mac_ = mac; + setParameter(std::string("Mac"), mac); +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getHostname() const { + return hostname_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setHostname(const std::string &hostname) { + hostname_ = hostname; + setParameter(std::string("Hostname"), hostname); +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getSourceIp() const { + return sourceIp_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getSaseUserId() const { + return saseUserId_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setSaseUserId(const std::string &saseUserId) { + saseUserId_ = saseUserId; + setParameter(std::string("SaseUserId"), saseUserId); +} + +long ListExcessiveDeviceRegistrationApplicationsRequest::getPageSize() const { + return pageSize_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getDepartment() const { + return department_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setDepartment(const std::string &department) { + department_ = department; + setParameter(std::string("Department"), department); +} + +long ListExcessiveDeviceRegistrationApplicationsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::vector ListExcessiveDeviceRegistrationApplicationsRequest::getApplicationIds() const { + return applicationIds_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setApplicationIds(const std::vector &applicationIds) { + applicationIds_ = applicationIds; + for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) { + setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]); + } +} + +std::vector ListExcessiveDeviceRegistrationApplicationsRequest::getStatuses() const { + return statuses_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setStatuses(const std::vector &statuses) { + statuses_ = statuses; + for(int dep1 = 0; dep1 != statuses.size(); dep1++) { + setParameter(std::string("Statuses") + "." + std::to_string(dep1 + 1), statuses[dep1]); + } +} + +std::string ListExcessiveDeviceRegistrationApplicationsRequest::getUsername() const { + return username_; +} + +void ListExcessiveDeviceRegistrationApplicationsRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/csas/src/model/ListExcessiveDeviceRegistrationApplicationsResult.cc b/csas/src/model/ListExcessiveDeviceRegistrationApplicationsResult.cc new file mode 100644 index 000000000..a1aa3171e --- /dev/null +++ b/csas/src/model/ListExcessiveDeviceRegistrationApplicationsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListExcessiveDeviceRegistrationApplicationsResult::ListExcessiveDeviceRegistrationApplicationsResult() : + ServiceResult() +{} + +ListExcessiveDeviceRegistrationApplicationsResult::ListExcessiveDeviceRegistrationApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListExcessiveDeviceRegistrationApplicationsResult::~ListExcessiveDeviceRegistrationApplicationsResult() +{} + +void ListExcessiveDeviceRegistrationApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationsNode = value["Applications"]["dataList"]; + for (auto valueApplicationsdataList : allApplicationsNode) + { + DataList applicationsObject; + if(!valueApplicationsdataList["DeviceTag"].isNull()) + applicationsObject.deviceTag = valueApplicationsdataList["DeviceTag"].asString(); + if(!valueApplicationsdataList["DeviceType"].isNull()) + applicationsObject.deviceType = valueApplicationsdataList["DeviceType"].asString(); + if(!valueApplicationsdataList["Hostname"].isNull()) + applicationsObject.hostname = valueApplicationsdataList["Hostname"].asString(); + if(!valueApplicationsdataList["Username"].isNull()) + applicationsObject.username = valueApplicationsdataList["Username"].asString(); + if(!valueApplicationsdataList["SaseUserId"].isNull()) + applicationsObject.saseUserId = valueApplicationsdataList["SaseUserId"].asString(); + if(!valueApplicationsdataList["Department"].isNull()) + applicationsObject.department = valueApplicationsdataList["Department"].asString(); + if(!valueApplicationsdataList["Mac"].isNull()) + applicationsObject.mac = valueApplicationsdataList["Mac"].asString(); + if(!valueApplicationsdataList["IsUsed"].isNull()) + applicationsObject.isUsed = valueApplicationsdataList["IsUsed"].asString() == "true"; + if(!valueApplicationsdataList["Status"].isNull()) + applicationsObject.status = valueApplicationsdataList["Status"].asString(); + if(!valueApplicationsdataList["CreateTime"].isNull()) + applicationsObject.createTime = valueApplicationsdataList["CreateTime"].asString(); + if(!valueApplicationsdataList["Description"].isNull()) + applicationsObject.description = valueApplicationsdataList["Description"].asString(); + if(!valueApplicationsdataList["ApplicationId"].isNull()) + applicationsObject.applicationId = valueApplicationsdataList["ApplicationId"].asString(); + applications_.push_back(applicationsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + +} + +long ListExcessiveDeviceRegistrationApplicationsResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListExcessiveDeviceRegistrationApplicationsResult::getApplications()const +{ + return applications_; +} + diff --git a/csas/src/model/ListPrivateAccessTagsRequest.cc b/csas/src/model/ListPrivateAccessTagsRequest.cc index f47f31888..436701111 100644 --- a/csas/src/model/ListPrivateAccessTagsRequest.cc +++ b/csas/src/model/ListPrivateAccessTagsRequest.cc @@ -61,6 +61,15 @@ void ListPrivateAccessTagsRequest::setApplicationId(const std::string &applicati setParameter(std::string("ApplicationId"), applicationId); } +bool ListPrivateAccessTagsRequest::getSimpleMode() const { + return simpleMode_; +} + +void ListPrivateAccessTagsRequest::setSimpleMode(bool simpleMode) { + simpleMode_ = simpleMode; + setParameter(std::string("SimpleMode"), simpleMode ? "true" : "false"); +} + std::vector ListPrivateAccessTagsRequest::getTagIds() const { return tagIds_; } diff --git a/csas/src/model/ListRegistrationPoliciesForUserGroupRequest.cc b/csas/src/model/ListRegistrationPoliciesForUserGroupRequest.cc new file mode 100644 index 000000000..b7f1bb674 --- /dev/null +++ b/csas/src/model/ListRegistrationPoliciesForUserGroupRequest.cc @@ -0,0 +1,47 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListRegistrationPoliciesForUserGroupRequest; + +ListRegistrationPoliciesForUserGroupRequest::ListRegistrationPoliciesForUserGroupRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListRegistrationPoliciesForUserGroup") { + setMethod(HttpRequest::Method::Get); +} + +ListRegistrationPoliciesForUserGroupRequest::~ListRegistrationPoliciesForUserGroupRequest() {} + +std::vector ListRegistrationPoliciesForUserGroupRequest::getUserGroupIds() const { + return userGroupIds_; +} + +void ListRegistrationPoliciesForUserGroupRequest::setUserGroupIds(const std::vector &userGroupIds) { + userGroupIds_ = userGroupIds; + for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) { + setParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]); + } +} + +std::string ListRegistrationPoliciesForUserGroupRequest::getSourceIp() const { + return sourceIp_; +} + +void ListRegistrationPoliciesForUserGroupRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/ListRegistrationPoliciesForUserGroupResult.cc b/csas/src/model/ListRegistrationPoliciesForUserGroupResult.cc new file mode 100644 index 000000000..6b3c1d2eb --- /dev/null +++ b/csas/src/model/ListRegistrationPoliciesForUserGroupResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListRegistrationPoliciesForUserGroupResult::ListRegistrationPoliciesForUserGroupResult() : + ServiceResult() +{} + +ListRegistrationPoliciesForUserGroupResult::ListRegistrationPoliciesForUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegistrationPoliciesForUserGroupResult::~ListRegistrationPoliciesForUserGroupResult() +{} + +void ListRegistrationPoliciesForUserGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserGroupsNode = value["UserGroups"]["data"]; + for (auto valueUserGroupsdata : allUserGroupsNode) + { + Data userGroupsObject; + if(!valueUserGroupsdata["UserGroupId"].isNull()) + userGroupsObject.userGroupId = valueUserGroupsdata["UserGroupId"].asString(); + auto allPoliciesNode = valueUserGroupsdata["Policies"]["policiesItem"]; + for (auto valueUserGroupsdataPoliciespoliciesItem : allPoliciesNode) + { + Data::PoliciesItem policiesObject; + if(!valueUserGroupsdataPoliciespoliciesItem["Name"].isNull()) + policiesObject.name = valueUserGroupsdataPoliciespoliciesItem["Name"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItem["PolicyId"].isNull()) + policiesObject.policyId = valueUserGroupsdataPoliciespoliciesItem["PolicyId"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItem["Description"].isNull()) + policiesObject.description = valueUserGroupsdataPoliciespoliciesItem["Description"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItem["Priority"].isNull()) + policiesObject.priority = std::stol(valueUserGroupsdataPoliciespoliciesItem["Priority"].asString()); + if(!valueUserGroupsdataPoliciespoliciesItem["Status"].isNull()) + policiesObject.status = valueUserGroupsdataPoliciespoliciesItem["Status"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItem["MatchMode"].isNull()) + policiesObject.matchMode = valueUserGroupsdataPoliciespoliciesItem["MatchMode"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItem["CreateTime"].isNull()) + policiesObject.createTime = valueUserGroupsdataPoliciespoliciesItem["CreateTime"].asString(); + auto allLimitDetailNode = valueUserGroupsdataPoliciespoliciesItem["LimitDetail"]["limitDetailItem"]; + for (auto valueUserGroupsdataPoliciespoliciesItemLimitDetaillimitDetailItem : allLimitDetailNode) + { + Data::PoliciesItem::LimitDetailItem limitDetailObject; + if(!valueUserGroupsdataPoliciespoliciesItemLimitDetaillimitDetailItem["DeviceBelong"].isNull()) + limitDetailObject.deviceBelong = valueUserGroupsdataPoliciespoliciesItemLimitDetaillimitDetailItem["DeviceBelong"].asString(); + if(!valueUserGroupsdataPoliciespoliciesItemLimitDetaillimitDetailItem["LimitType"].isNull()) + limitDetailObject.limitType = valueUserGroupsdataPoliciespoliciesItemLimitDetaillimitDetailItem["LimitType"].asString(); + auto limitCountNode = value["LimitCount"]; + if(!limitCountNode["All"].isNull()) + limitDetailObject.limitCount.all = limitCountNode["All"].asString(); + if(!limitCountNode["PC"].isNull()) + limitDetailObject.limitCount.pC = limitCountNode["PC"].asString(); + if(!limitCountNode["Mobile"].isNull()) + limitDetailObject.limitCount.mobile = limitCountNode["Mobile"].asString(); + policiesObject.limitDetail.push_back(limitDetailObject); + } + auto allWhitelist = value["Whitelist"]["whitelist"]; + for (auto value : allWhitelist) + policiesObject.whitelist.push_back(value.asString()); + userGroupsObject.policies.push_back(policiesObject); + } + userGroups_.push_back(userGroupsObject); + } + +} + +std::vector ListRegistrationPoliciesForUserGroupResult::getUserGroups()const +{ + return userGroups_; +} + diff --git a/csas/src/model/ListRegistrationPoliciesRequest.cc b/csas/src/model/ListRegistrationPoliciesRequest.cc new file mode 100644 index 000000000..4bbbf59bb --- /dev/null +++ b/csas/src/model/ListRegistrationPoliciesRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListRegistrationPoliciesRequest; + +ListRegistrationPoliciesRequest::ListRegistrationPoliciesRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListRegistrationPolicies") { + setMethod(HttpRequest::Method::Get); +} + +ListRegistrationPoliciesRequest::~ListRegistrationPoliciesRequest() {} + +std::vector ListRegistrationPoliciesRequest::getPolicyIds() const { + return policyIds_; +} + +void ListRegistrationPoliciesRequest::setPolicyIds(const std::vector &policyIds) { + policyIds_ = policyIds; + for(int dep1 = 0; dep1 != policyIds.size(); dep1++) { + setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]); + } +} + +std::string ListRegistrationPoliciesRequest::getMatchMode() const { + return matchMode_; +} + +void ListRegistrationPoliciesRequest::setMatchMode(const std::string &matchMode) { + matchMode_ = matchMode; + setParameter(std::string("MatchMode"), matchMode); +} + +std::string ListRegistrationPoliciesRequest::getSourceIp() const { + return sourceIp_; +} + +void ListRegistrationPoliciesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +long ListRegistrationPoliciesRequest::getPageSize() const { + return pageSize_; +} + +void ListRegistrationPoliciesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListRegistrationPoliciesRequest::getUserGroupId() const { + return userGroupId_; +} + +void ListRegistrationPoliciesRequest::setUserGroupId(const std::string &userGroupId) { + userGroupId_ = userGroupId; + setParameter(std::string("UserGroupId"), userGroupId); +} + +long ListRegistrationPoliciesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListRegistrationPoliciesRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListRegistrationPoliciesRequest::getPersonalLimitType() const { + return personalLimitType_; +} + +void ListRegistrationPoliciesRequest::setPersonalLimitType(const std::string &personalLimitType) { + personalLimitType_ = personalLimitType; + setParameter(std::string("PersonalLimitType"), personalLimitType); +} + +std::string ListRegistrationPoliciesRequest::getName() const { + return name_; +} + +void ListRegistrationPoliciesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ListRegistrationPoliciesRequest::getCompanyLimitType() const { + return companyLimitType_; +} + +void ListRegistrationPoliciesRequest::setCompanyLimitType(const std::string &companyLimitType) { + companyLimitType_ = companyLimitType; + setParameter(std::string("CompanyLimitType"), companyLimitType); +} + +std::string ListRegistrationPoliciesRequest::getStatus() const { + return status_; +} + +void ListRegistrationPoliciesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/ListRegistrationPoliciesResult.cc b/csas/src/model/ListRegistrationPoliciesResult.cc new file mode 100644 index 000000000..c94c5d4ca --- /dev/null +++ b/csas/src/model/ListRegistrationPoliciesResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListRegistrationPoliciesResult::ListRegistrationPoliciesResult() : + ServiceResult() +{} + +ListRegistrationPoliciesResult::ListRegistrationPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegistrationPoliciesResult::~ListRegistrationPoliciesResult() +{} + +void ListRegistrationPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPoliciesNode = value["Policies"]["dataList"]; + for (auto valuePoliciesdataList : allPoliciesNode) + { + DataList policiesObject; + if(!valuePoliciesdataList["Name"].isNull()) + policiesObject.name = valuePoliciesdataList["Name"].asString(); + if(!valuePoliciesdataList["PolicyId"].isNull()) + policiesObject.policyId = valuePoliciesdataList["PolicyId"].asString(); + if(!valuePoliciesdataList["Description"].isNull()) + policiesObject.description = valuePoliciesdataList["Description"].asString(); + if(!valuePoliciesdataList["Priority"].isNull()) + policiesObject.priority = std::stol(valuePoliciesdataList["Priority"].asString()); + if(!valuePoliciesdataList["Status"].isNull()) + policiesObject.status = valuePoliciesdataList["Status"].asString(); + if(!valuePoliciesdataList["MatchMode"].isNull()) + policiesObject.matchMode = valuePoliciesdataList["MatchMode"].asString(); + if(!valuePoliciesdataList["CreateTime"].isNull()) + policiesObject.createTime = valuePoliciesdataList["CreateTime"].asString(); + auto allLimitDetailNode = valuePoliciesdataList["LimitDetail"]["limitDetailItem"]; + for (auto valuePoliciesdataListLimitDetaillimitDetailItem : allLimitDetailNode) + { + DataList::LimitDetailItem limitDetailObject; + if(!valuePoliciesdataListLimitDetaillimitDetailItem["DeviceBelong"].isNull()) + limitDetailObject.deviceBelong = valuePoliciesdataListLimitDetaillimitDetailItem["DeviceBelong"].asString(); + if(!valuePoliciesdataListLimitDetaillimitDetailItem["LimitType"].isNull()) + limitDetailObject.limitType = valuePoliciesdataListLimitDetaillimitDetailItem["LimitType"].asString(); + auto limitCountNode = value["LimitCount"]; + if(!limitCountNode["All"].isNull()) + limitDetailObject.limitCount.all = std::stoi(limitCountNode["All"].asString()); + if(!limitCountNode["PC"].isNull()) + limitDetailObject.limitCount.pC = std::stoi(limitCountNode["PC"].asString()); + if(!limitCountNode["Mobile"].isNull()) + limitDetailObject.limitCount.mobile = std::stoi(limitCountNode["Mobile"].asString()); + policiesObject.limitDetail.push_back(limitDetailObject); + } + auto allWhitelist = value["Whitelist"]["whitelist"]; + for (auto value : allWhitelist) + policiesObject.whitelist.push_back(value.asString()); + auto allUserGroupIds = value["UserGroupIds"]["userGroupIds"]; + for (auto value : allUserGroupIds) + policiesObject.userGroupIds.push_back(value.asString()); + policies_.push_back(policiesObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = value["TotalNum"].asString(); + +} + +std::vector ListRegistrationPoliciesResult::getPolicies()const +{ + return policies_; +} + +std::string ListRegistrationPoliciesResult::getTotalNum()const +{ + return totalNum_; +} + diff --git a/csas/src/model/ListSoftwareForUserDeviceRequest.cc b/csas/src/model/ListSoftwareForUserDeviceRequest.cc new file mode 100644 index 000000000..c8331eb4b --- /dev/null +++ b/csas/src/model/ListSoftwareForUserDeviceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListSoftwareForUserDeviceRequest; + +ListSoftwareForUserDeviceRequest::ListSoftwareForUserDeviceRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListSoftwareForUserDevice") { + setMethod(HttpRequest::Method::Get); +} + +ListSoftwareForUserDeviceRequest::~ListSoftwareForUserDeviceRequest() {} + +std::string ListSoftwareForUserDeviceRequest::getDeviceTag() const { + return deviceTag_; +} + +void ListSoftwareForUserDeviceRequest::setDeviceTag(const std::string &deviceTag) { + deviceTag_ = deviceTag; + setParameter(std::string("DeviceTag"), deviceTag); +} + +long ListSoftwareForUserDeviceRequest::getCurrentPage() const { + return currentPage_; +} + +void ListSoftwareForUserDeviceRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListSoftwareForUserDeviceRequest::getSourceIp() const { + return sourceIp_; +} + +void ListSoftwareForUserDeviceRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +long ListSoftwareForUserDeviceRequest::getPageSize() const { + return pageSize_; +} + +void ListSoftwareForUserDeviceRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/csas/src/model/ListSoftwareForUserDeviceResult.cc b/csas/src/model/ListSoftwareForUserDeviceResult.cc new file mode 100644 index 000000000..fcd16a29f --- /dev/null +++ b/csas/src/model/ListSoftwareForUserDeviceResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListSoftwareForUserDeviceResult::ListSoftwareForUserDeviceResult() : + ServiceResult() +{} + +ListSoftwareForUserDeviceResult::ListSoftwareForUserDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSoftwareForUserDeviceResult::~ListSoftwareForUserDeviceResult() +{} + +void ListSoftwareForUserDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSoftwareNode = value["Software"]["dataList"]; + for (auto valueSoftwaredataList : allSoftwareNode) + { + DataList softwareObject; + if(!valueSoftwaredataList["Name"].isNull()) + softwareObject.name = valueSoftwaredataList["Name"].asString(); + if(!valueSoftwaredataList["Inc"].isNull()) + softwareObject.inc = valueSoftwaredataList["Inc"].asString(); + if(!valueSoftwaredataList["InstallTime"].isNull()) + softwareObject.installTime = valueSoftwaredataList["InstallTime"].asString(); + auto allVersions = value["Versions"]["versions"]; + for (auto value : allVersions) + softwareObject.versions.push_back(value.asString()); + software_.push_back(softwareObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + +} + +long ListSoftwareForUserDeviceResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListSoftwareForUserDeviceResult::getSoftware()const +{ + return software_; +} + diff --git a/csas/src/model/ListUserDevicesRequest.cc b/csas/src/model/ListUserDevicesRequest.cc new file mode 100644 index 000000000..63a4e1e74 --- /dev/null +++ b/csas/src/model/ListUserDevicesRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListUserDevicesRequest; + +ListUserDevicesRequest::ListUserDevicesRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListUserDevices") { + setMethod(HttpRequest::Method::Get); +} + +ListUserDevicesRequest::~ListUserDevicesRequest() {} + +std::string ListUserDevicesRequest::getMac() const { + return mac_; +} + +void ListUserDevicesRequest::setMac(const std::string &mac) { + mac_ = mac; + setParameter(std::string("Mac"), mac); +} + +std::vector ListUserDevicesRequest::getDeviceTypes() const { + return deviceTypes_; +} + +void ListUserDevicesRequest::setDeviceTypes(const std::vector &deviceTypes) { + deviceTypes_ = deviceTypes; + for(int dep1 = 0; dep1 != deviceTypes.size(); dep1++) { + setParameter(std::string("DeviceTypes") + "." + std::to_string(dep1 + 1), deviceTypes[dep1]); + } +} + +std::string ListUserDevicesRequest::getHostname() const { + return hostname_; +} + +void ListUserDevicesRequest::setHostname(const std::string &hostname) { + hostname_ = hostname; + setParameter(std::string("Hostname"), hostname); +} + +std::vector ListUserDevicesRequest::getAppStatuses() const { + return appStatuses_; +} + +void ListUserDevicesRequest::setAppStatuses(const std::vector &appStatuses) { + appStatuses_ = appStatuses; + for(int dep1 = 0; dep1 != appStatuses.size(); dep1++) { + setParameter(std::string("AppStatuses") + "." + std::to_string(dep1 + 1), appStatuses[dep1]); + } +} + +std::vector ListUserDevicesRequest::getDlpStatuses() const { + return dlpStatuses_; +} + +void ListUserDevicesRequest::setDlpStatuses(const std::vector &dlpStatuses) { + dlpStatuses_ = dlpStatuses; + for(int dep1 = 0; dep1 != dlpStatuses.size(); dep1++) { + setParameter(std::string("DlpStatuses") + "." + std::to_string(dep1 + 1), dlpStatuses[dep1]); + } +} + +std::string ListUserDevicesRequest::getSourceIp() const { + return sourceIp_; +} + +void ListUserDevicesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListUserDevicesRequest::getSaseUserId() const { + return saseUserId_; +} + +void ListUserDevicesRequest::setSaseUserId(const std::string &saseUserId) { + saseUserId_ = saseUserId; + setParameter(std::string("SaseUserId"), saseUserId); +} + +long ListUserDevicesRequest::getPageSize() const { + return pageSize_; +} + +void ListUserDevicesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector ListUserDevicesRequest::getNacStatuses() const { + return nacStatuses_; +} + +void ListUserDevicesRequest::setNacStatuses(const std::vector &nacStatuses) { + nacStatuses_ = nacStatuses; + for(int dep1 = 0; dep1 != nacStatuses.size(); dep1++) { + setParameter(std::string("NacStatuses") + "." + std::to_string(dep1 + 1), nacStatuses[dep1]); + } +} + +std::string ListUserDevicesRequest::getDepartment() const { + return department_; +} + +void ListUserDevicesRequest::setDepartment(const std::string &department) { + department_ = department; + setParameter(std::string("Department"), department); +} + +std::vector ListUserDevicesRequest::getIaStatuses() const { + return iaStatuses_; +} + +void ListUserDevicesRequest::setIaStatuses(const std::vector &iaStatuses) { + iaStatuses_ = iaStatuses; + for(int dep1 = 0; dep1 != iaStatuses.size(); dep1++) { + setParameter(std::string("IaStatuses") + "." + std::to_string(dep1 + 1), iaStatuses[dep1]); + } +} + +std::string ListUserDevicesRequest::getDeviceBelong() const { + return deviceBelong_; +} + +void ListUserDevicesRequest::setDeviceBelong(const std::string &deviceBelong) { + deviceBelong_ = deviceBelong; + setParameter(std::string("DeviceBelong"), deviceBelong); +} + +long ListUserDevicesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListUserDevicesRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +bool ListUserDevicesRequest::getSharingStatus() const { + return sharingStatus_; +} + +void ListUserDevicesRequest::setSharingStatus(bool sharingStatus) { + sharingStatus_ = sharingStatus; + setParameter(std::string("SharingStatus"), sharingStatus ? "true" : "false"); +} + +std::vector ListUserDevicesRequest::getDeviceTags() const { + return deviceTags_; +} + +void ListUserDevicesRequest::setDeviceTags(const std::vector &deviceTags) { + deviceTags_ = deviceTags; + for(int dep1 = 0; dep1 != deviceTags.size(); dep1++) { + setParameter(std::string("DeviceTags") + "." + std::to_string(dep1 + 1), deviceTags[dep1]); + } +} + +std::vector ListUserDevicesRequest::getDeviceStatuses() const { + return deviceStatuses_; +} + +void ListUserDevicesRequest::setDeviceStatuses(const std::vector &deviceStatuses) { + deviceStatuses_ = deviceStatuses; + for(int dep1 = 0; dep1 != deviceStatuses.size(); dep1++) { + setParameter(std::string("DeviceStatuses") + "." + std::to_string(dep1 + 1), deviceStatuses[dep1]); + } +} + +std::vector ListUserDevicesRequest::getPaStatuses() const { + return paStatuses_; +} + +void ListUserDevicesRequest::setPaStatuses(const std::vector &paStatuses) { + paStatuses_ = paStatuses; + for(int dep1 = 0; dep1 != paStatuses.size(); dep1++) { + setParameter(std::string("PaStatuses") + "." + std::to_string(dep1 + 1), paStatuses[dep1]); + } +} + +std::string ListUserDevicesRequest::getSortBy() const { + return sortBy_; +} + +void ListUserDevicesRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("SortBy"), sortBy); +} + +std::string ListUserDevicesRequest::getUsername() const { + return username_; +} + +void ListUserDevicesRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/csas/src/model/ListUserDevicesResult.cc b/csas/src/model/ListUserDevicesResult.cc new file mode 100644 index 000000000..2f2eb6325 --- /dev/null +++ b/csas/src/model/ListUserDevicesResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListUserDevicesResult::ListUserDevicesResult() : + ServiceResult() +{} + +ListUserDevicesResult::ListUserDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserDevicesResult::~ListUserDevicesResult() +{} + +void ListUserDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDevicesNode = value["Devices"]["dataList"]; + for (auto valueDevicesdataList : allDevicesNode) + { + DataList devicesObject; + if(!valueDevicesdataList["DeviceTag"].isNull()) + devicesObject.deviceTag = valueDevicesdataList["DeviceTag"].asString(); + if(!valueDevicesdataList["DeviceType"].isNull()) + devicesObject.deviceType = valueDevicesdataList["DeviceType"].asString(); + if(!valueDevicesdataList["DeviceModel"].isNull()) + devicesObject.deviceModel = valueDevicesdataList["DeviceModel"].asString(); + if(!valueDevicesdataList["DeviceVersion"].isNull()) + devicesObject.deviceVersion = valueDevicesdataList["DeviceVersion"].asString(); + if(!valueDevicesdataList["Hostname"].isNull()) + devicesObject.hostname = valueDevicesdataList["Hostname"].asString(); + if(!valueDevicesdataList["Username"].isNull()) + devicesObject.username = valueDevicesdataList["Username"].asString(); + if(!valueDevicesdataList["SaseUserId"].isNull()) + devicesObject.saseUserId = valueDevicesdataList["SaseUserId"].asString(); + if(!valueDevicesdataList["Department"].isNull()) + devicesObject.department = valueDevicesdataList["Department"].asString(); + if(!valueDevicesdataList["InnerIP"].isNull()) + devicesObject.innerIP = valueDevicesdataList["InnerIP"].asString(); + if(!valueDevicesdataList["SrcIP"].isNull()) + devicesObject.srcIP = valueDevicesdataList["SrcIP"].asString(); + if(!valueDevicesdataList["Memory"].isNull()) + devicesObject.memory = valueDevicesdataList["Memory"].asString(); + if(!valueDevicesdataList["CPU"].isNull()) + devicesObject.cPU = valueDevicesdataList["CPU"].asString(); + if(!valueDevicesdataList["Disk"].isNull()) + devicesObject.disk = valueDevicesdataList["Disk"].asString(); + if(!valueDevicesdataList["Mac"].isNull()) + devicesObject.mac = valueDevicesdataList["Mac"].asString(); + if(!valueDevicesdataList["AppVersion"].isNull()) + devicesObject.appVersion = valueDevicesdataList["AppVersion"].asString(); + if(!valueDevicesdataList["DeviceBelong"].isNull()) + devicesObject.deviceBelong = valueDevicesdataList["DeviceBelong"].asString(); + if(!valueDevicesdataList["SharingStatus"].isNull()) + devicesObject.sharingStatus = valueDevicesdataList["SharingStatus"].asString() == "true"; + if(!valueDevicesdataList["DeviceStatus"].isNull()) + devicesObject.deviceStatus = valueDevicesdataList["DeviceStatus"].asString(); + if(!valueDevicesdataList["AppStatus"].isNull()) + devicesObject.appStatus = valueDevicesdataList["AppStatus"].asString(); + if(!valueDevicesdataList["PaStatus"].isNull()) + devicesObject.paStatus = valueDevicesdataList["PaStatus"].asString(); + if(!valueDevicesdataList["IaStatus"].isNull()) + devicesObject.iaStatus = valueDevicesdataList["IaStatus"].asString(); + if(!valueDevicesdataList["DlpStatus"].isNull()) + devicesObject.dlpStatus = valueDevicesdataList["DlpStatus"].asString(); + if(!valueDevicesdataList["NacStatus"].isNull()) + devicesObject.nacStatus = valueDevicesdataList["NacStatus"].asString(); + if(!valueDevicesdataList["CreateTime"].isNull()) + devicesObject.createTime = valueDevicesdataList["CreateTime"].asString(); + if(!valueDevicesdataList["UpdateTime"].isNull()) + devicesObject.updateTime = valueDevicesdataList["UpdateTime"].asString(); + devices_.push_back(devicesObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + +} + +long ListUserDevicesResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListUserDevicesResult::getDevices()const +{ + return devices_; +} + diff --git a/csas/src/model/ListUserGroupsForRegistrationPolicyRequest.cc b/csas/src/model/ListUserGroupsForRegistrationPolicyRequest.cc new file mode 100644 index 000000000..844d94f37 --- /dev/null +++ b/csas/src/model/ListUserGroupsForRegistrationPolicyRequest.cc @@ -0,0 +1,47 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListUserGroupsForRegistrationPolicyRequest; + +ListUserGroupsForRegistrationPolicyRequest::ListUserGroupsForRegistrationPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListUserGroupsForRegistrationPolicy") { + setMethod(HttpRequest::Method::Get); +} + +ListUserGroupsForRegistrationPolicyRequest::~ListUserGroupsForRegistrationPolicyRequest() {} + +std::vector ListUserGroupsForRegistrationPolicyRequest::getPolicyIds() const { + return policyIds_; +} + +void ListUserGroupsForRegistrationPolicyRequest::setPolicyIds(const std::vector &policyIds) { + policyIds_ = policyIds; + for(int dep1 = 0; dep1 != policyIds.size(); dep1++) { + setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]); + } +} + +std::string ListUserGroupsForRegistrationPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void ListUserGroupsForRegistrationPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/ListUserGroupsForRegistrationPolicyResult.cc b/csas/src/model/ListUserGroupsForRegistrationPolicyResult.cc new file mode 100644 index 000000000..c4f3aa586 --- /dev/null +++ b/csas/src/model/ListUserGroupsForRegistrationPolicyResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListUserGroupsForRegistrationPolicyResult::ListUserGroupsForRegistrationPolicyResult() : + ServiceResult() +{} + +ListUserGroupsForRegistrationPolicyResult::ListUserGroupsForRegistrationPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserGroupsForRegistrationPolicyResult::~ListUserGroupsForRegistrationPolicyResult() +{} + +void ListUserGroupsForRegistrationPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPoliciesNode = value["Policies"]["data"]; + for (auto valuePoliciesdata : allPoliciesNode) + { + Data policiesObject; + if(!valuePoliciesdata["PolicyId"].isNull()) + policiesObject.policyId = valuePoliciesdata["PolicyId"].asString(); + auto allUserGroupsNode = valuePoliciesdata["UserGroups"]["userGroupsItem"]; + for (auto valuePoliciesdataUserGroupsuserGroupsItem : allUserGroupsNode) + { + Data::UserGroupsItem userGroupsObject; + if(!valuePoliciesdataUserGroupsuserGroupsItem["UserGroupId"].isNull()) + userGroupsObject.userGroupId = valuePoliciesdataUserGroupsuserGroupsItem["UserGroupId"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItem["Name"].isNull()) + userGroupsObject.name = valuePoliciesdataUserGroupsuserGroupsItem["Name"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItem["Description"].isNull()) + userGroupsObject.description = valuePoliciesdataUserGroupsuserGroupsItem["Description"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItem["CreateTime"].isNull()) + userGroupsObject.createTime = valuePoliciesdataUserGroupsuserGroupsItem["CreateTime"].asString(); + auto allAttributesNode = valuePoliciesdataUserGroupsuserGroupsItem["Attributes"]["attributesItem"]; + for (auto valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem : allAttributesNode) + { + Data::UserGroupsItem::AttributesItem attributesObject; + if(!valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["UserGroupType"].isNull()) + attributesObject.userGroupType = valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["UserGroupType"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["Relation"].isNull()) + attributesObject.relation = valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["Relation"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["Value"].isNull()) + attributesObject.value = valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["Value"].asString(); + if(!valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["IdpId"].isNull()) + attributesObject.idpId = std::stoi(valuePoliciesdataUserGroupsuserGroupsItemAttributesattributesItem["IdpId"].asString()); + userGroupsObject.attributes.push_back(attributesObject); + } + policiesObject.userGroups.push_back(userGroupsObject); + } + policies_.push_back(policiesObject); + } + +} + +std::vector ListUserGroupsForRegistrationPolicyResult::getPolicies()const +{ + return policies_; +} + diff --git a/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.cc b/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.cc new file mode 100644 index 000000000..01119c460 --- /dev/null +++ b/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateExcessiveDeviceRegistrationApplicationsStatusRequest; + +UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::UpdateExcessiveDeviceRegistrationApplicationsStatusRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateExcessiveDeviceRegistrationApplicationsStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::~UpdateExcessiveDeviceRegistrationApplicationsStatusRequest() {} + +std::vector UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::getApplicationIds() const { + return applicationIds_; +} + +void UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::setApplicationIds(const std::vector &applicationIds) { + applicationIds_ = applicationIds; + for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) { + setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]); + } +} + +std::string UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::getStatus() const { + return status_; +} + +void UpdateExcessiveDeviceRegistrationApplicationsStatusRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.cc b/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.cc new file mode 100644 index 000000000..25ebfae1b --- /dev/null +++ b/csas/src/model/UpdateExcessiveDeviceRegistrationApplicationsStatusResult.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::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateExcessiveDeviceRegistrationApplicationsStatusResult::UpdateExcessiveDeviceRegistrationApplicationsStatusResult() : + ServiceResult() +{} + +UpdateExcessiveDeviceRegistrationApplicationsStatusResult::UpdateExcessiveDeviceRegistrationApplicationsStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateExcessiveDeviceRegistrationApplicationsStatusResult::~UpdateExcessiveDeviceRegistrationApplicationsStatusResult() +{} + +void UpdateExcessiveDeviceRegistrationApplicationsStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationsNode = value["Applications"]["data"]; + for (auto valueApplicationsdata : allApplicationsNode) + { + Data applicationsObject; + if(!valueApplicationsdata["DeviceTag"].isNull()) + applicationsObject.deviceTag = valueApplicationsdata["DeviceTag"].asString(); + if(!valueApplicationsdata["DeviceType"].isNull()) + applicationsObject.deviceType = valueApplicationsdata["DeviceType"].asString(); + if(!valueApplicationsdata["Hostname"].isNull()) + applicationsObject.hostname = valueApplicationsdata["Hostname"].asString(); + if(!valueApplicationsdata["Username"].isNull()) + applicationsObject.username = valueApplicationsdata["Username"].asString(); + if(!valueApplicationsdata["SaseUserId"].isNull()) + applicationsObject.saseUserId = valueApplicationsdata["SaseUserId"].asString(); + if(!valueApplicationsdata["Department"].isNull()) + applicationsObject.department = valueApplicationsdata["Department"].asString(); + if(!valueApplicationsdata["Mac"].isNull()) + applicationsObject.mac = valueApplicationsdata["Mac"].asString(); + if(!valueApplicationsdata["IsUsed"].isNull()) + applicationsObject.isUsed = valueApplicationsdata["IsUsed"].asString() == "true"; + if(!valueApplicationsdata["Status"].isNull()) + applicationsObject.status = valueApplicationsdata["Status"].asString(); + if(!valueApplicationsdata["CreateTime"].isNull()) + applicationsObject.createTime = valueApplicationsdata["CreateTime"].asString(); + if(!valueApplicationsdata["Description"].isNull()) + applicationsObject.description = valueApplicationsdata["Description"].asString(); + if(!valueApplicationsdata["ApplicationId"].isNull()) + applicationsObject.applicationId = valueApplicationsdata["ApplicationId"].asString(); + applications_.push_back(applicationsObject); + } + +} + +std::vector UpdateExcessiveDeviceRegistrationApplicationsStatusResult::getApplications()const +{ + return applications_; +} + diff --git a/csas/src/model/UpdateRegistrationPolicyRequest.cc b/csas/src/model/UpdateRegistrationPolicyRequest.cc new file mode 100644 index 000000000..b3b105acf --- /dev/null +++ b/csas/src/model/UpdateRegistrationPolicyRequest.cc @@ -0,0 +1,152 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateRegistrationPolicyRequest; + +UpdateRegistrationPolicyRequest::UpdateRegistrationPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateRegistrationPolicy") { + setMethod(HttpRequest::Method::Post); +} + +UpdateRegistrationPolicyRequest::~UpdateRegistrationPolicyRequest() {} + +std::string UpdateRegistrationPolicyRequest::getDescription() const { + return description_; +} + +void UpdateRegistrationPolicyRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateRegistrationPolicyRequest::getMatchMode() const { + return matchMode_; +} + +void UpdateRegistrationPolicyRequest::setMatchMode(const std::string &matchMode) { + matchMode_ = matchMode; + setBodyParameter(std::string("MatchMode"), matchMode); +} + +std::string UpdateRegistrationPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateRegistrationPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string UpdateRegistrationPolicyRequest::getPolicyId() const { + return policyId_; +} + +void UpdateRegistrationPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setBodyParameter(std::string("PolicyId"), policyId); +} + +UpdateRegistrationPolicyRequest::CompanyLimitCount UpdateRegistrationPolicyRequest::getCompanyLimitCount() const { + return companyLimitCount_; +} + +void UpdateRegistrationPolicyRequest::setCompanyLimitCount(const UpdateRegistrationPolicyRequest::CompanyLimitCount &companyLimitCount) { + companyLimitCount_ = companyLimitCount; + setBodyParameter(std::string("CompanyLimitCount") + ".All", std::to_string(companyLimitCount.all)); + setBodyParameter(std::string("CompanyLimitCount") + ".PC", std::to_string(companyLimitCount.pC)); + setBodyParameter(std::string("CompanyLimitCount") + ".Mobile", std::to_string(companyLimitCount.mobile)); +} + +UpdateRegistrationPolicyRequest::PersonalLimitCount UpdateRegistrationPolicyRequest::getPersonalLimitCount() const { + return personalLimitCount_; +} + +void UpdateRegistrationPolicyRequest::setPersonalLimitCount(const UpdateRegistrationPolicyRequest::PersonalLimitCount &personalLimitCount) { + personalLimitCount_ = personalLimitCount; + setBodyParameter(std::string("PersonalLimitCount") + ".All", std::to_string(personalLimitCount.all)); + setBodyParameter(std::string("PersonalLimitCount") + ".PC", std::to_string(personalLimitCount.pC)); + setBodyParameter(std::string("PersonalLimitCount") + ".Mobile", std::to_string(personalLimitCount.mobile)); +} + +std::vector UpdateRegistrationPolicyRequest::getUserGroupIds() const { + return userGroupIds_; +} + +void UpdateRegistrationPolicyRequest::setUserGroupIds(const std::vector &userGroupIds) { + userGroupIds_ = userGroupIds; + for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) { + setBodyParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]); + } +} + +std::vector UpdateRegistrationPolicyRequest::getWhitelist() const { + return whitelist_; +} + +void UpdateRegistrationPolicyRequest::setWhitelist(const std::vector &whitelist) { + whitelist_ = whitelist; + for(int dep1 = 0; dep1 != whitelist.size(); dep1++) { + setBodyParameter(std::string("Whitelist") + "." + std::to_string(dep1 + 1), whitelist[dep1]); + } +} + +long UpdateRegistrationPolicyRequest::getPriority() const { + return priority_; +} + +void UpdateRegistrationPolicyRequest::setPriority(long priority) { + priority_ = priority; + setBodyParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string UpdateRegistrationPolicyRequest::getPersonalLimitType() const { + return personalLimitType_; +} + +void UpdateRegistrationPolicyRequest::setPersonalLimitType(const std::string &personalLimitType) { + personalLimitType_ = personalLimitType; + setBodyParameter(std::string("PersonalLimitType"), personalLimitType); +} + +std::string UpdateRegistrationPolicyRequest::getName() const { + return name_; +} + +void UpdateRegistrationPolicyRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string UpdateRegistrationPolicyRequest::getCompanyLimitType() const { + return companyLimitType_; +} + +void UpdateRegistrationPolicyRequest::setCompanyLimitType(const std::string &companyLimitType) { + companyLimitType_ = companyLimitType; + setBodyParameter(std::string("CompanyLimitType"), companyLimitType); +} + +std::string UpdateRegistrationPolicyRequest::getStatus() const { + return status_; +} + +void UpdateRegistrationPolicyRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/UpdateRegistrationPolicyResult.cc b/csas/src/model/UpdateRegistrationPolicyResult.cc new file mode 100644 index 000000000..8b027b67f --- /dev/null +++ b/csas/src/model/UpdateRegistrationPolicyResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateRegistrationPolicyResult::UpdateRegistrationPolicyResult() : + ServiceResult() +{} + +UpdateRegistrationPolicyResult::UpdateRegistrationPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRegistrationPolicyResult::~UpdateRegistrationPolicyResult() +{} + +void UpdateRegistrationPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto policyNode = value["Policy"]; + if(!policyNode["Name"].isNull()) + policy_.name = policyNode["Name"].asString(); + if(!policyNode["PolicyId"].isNull()) + policy_.policyId = policyNode["PolicyId"].asString(); + if(!policyNode["Priority"].isNull()) + policy_.priority = policyNode["Priority"].asString(); + if(!policyNode["Description"].isNull()) + policy_.description = policyNode["Description"].asString(); + if(!policyNode["Status"].isNull()) + policy_.status = policyNode["Status"].asString(); + if(!policyNode["MatchMode"].isNull()) + policy_.matchMode = policyNode["MatchMode"].asString(); + if(!policyNode["CreateTime"].isNull()) + policy_.createTime = policyNode["CreateTime"].asString(); + auto allLimitDetailNode = policyNode["LimitDetail"]["limitDetailItem"]; + for (auto policyNodeLimitDetaillimitDetailItem : allLimitDetailNode) + { + Policy::LimitDetailItem limitDetailItemObject; + if(!policyNodeLimitDetaillimitDetailItem["DeviceBelong"].isNull()) + limitDetailItemObject.deviceBelong = policyNodeLimitDetaillimitDetailItem["DeviceBelong"].asString(); + if(!policyNodeLimitDetaillimitDetailItem["LimitType"].isNull()) + limitDetailItemObject.limitType = policyNodeLimitDetaillimitDetailItem["LimitType"].asString(); + auto limitCountNode = value["LimitCount"]; + if(!limitCountNode["All"].isNull()) + limitDetailItemObject.limitCount.all = std::stoi(limitCountNode["All"].asString()); + if(!limitCountNode["PC"].isNull()) + limitDetailItemObject.limitCount.pC = std::stoi(limitCountNode["PC"].asString()); + if(!limitCountNode["Mobile"].isNull()) + limitDetailItemObject.limitCount.mobile = std::stoi(limitCountNode["Mobile"].asString()); + policy_.limitDetail.push_back(limitDetailItemObject); + } + auto allWhitelist = policyNode["Whitelist"]["whitelist"]; + for (auto value : allWhitelist) + policy_.whitelist.push_back(value.asString()); + auto allUserGroupIds = policyNode["UserGroupIds"]["userGroupIds"]; + for (auto value : allUserGroupIds) + policy_.userGroupIds.push_back(value.asString()); + +} + +UpdateRegistrationPolicyResult::Policy UpdateRegistrationPolicyResult::getPolicy()const +{ + return policy_; +} + diff --git a/csas/src/model/UpdateUserDevicesSharingStatusRequest.cc b/csas/src/model/UpdateUserDevicesSharingStatusRequest.cc new file mode 100644 index 000000000..b7528779d --- /dev/null +++ b/csas/src/model/UpdateUserDevicesSharingStatusRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateUserDevicesSharingStatusRequest; + +UpdateUserDevicesSharingStatusRequest::UpdateUserDevicesSharingStatusRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateUserDevicesSharingStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateUserDevicesSharingStatusRequest::~UpdateUserDevicesSharingStatusRequest() {} + +bool UpdateUserDevicesSharingStatusRequest::getSharingStatus() const { + return sharingStatus_; +} + +void UpdateUserDevicesSharingStatusRequest::setSharingStatus(bool sharingStatus) { + sharingStatus_ = sharingStatus; + setBodyParameter(std::string("SharingStatus"), sharingStatus ? "true" : "false"); +} + +std::vector UpdateUserDevicesSharingStatusRequest::getDeviceTags() const { + return deviceTags_; +} + +void UpdateUserDevicesSharingStatusRequest::setDeviceTags(const std::vector &deviceTags) { + deviceTags_ = deviceTags; + for(int dep1 = 0; dep1 != deviceTags.size(); dep1++) { + setBodyParameter(std::string("DeviceTags") + "." + std::to_string(dep1 + 1), deviceTags[dep1]); + } +} + +std::string UpdateUserDevicesSharingStatusRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateUserDevicesSharingStatusRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/UpdateUserDevicesSharingStatusResult.cc b/csas/src/model/UpdateUserDevicesSharingStatusResult.cc new file mode 100644 index 000000000..fd8a35d41 --- /dev/null +++ b/csas/src/model/UpdateUserDevicesSharingStatusResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateUserDevicesSharingStatusResult::UpdateUserDevicesSharingStatusResult() : + ServiceResult() +{} + +UpdateUserDevicesSharingStatusResult::UpdateUserDevicesSharingStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserDevicesSharingStatusResult::~UpdateUserDevicesSharingStatusResult() +{} + +void UpdateUserDevicesSharingStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDevicesNode = value["Devices"]["data"]; + for (auto valueDevicesdata : allDevicesNode) + { + Data devicesObject; + if(!valueDevicesdata["DeviceTag"].isNull()) + devicesObject.deviceTag = valueDevicesdata["DeviceTag"].asString(); + if(!valueDevicesdata["DeviceType"].isNull()) + devicesObject.deviceType = valueDevicesdata["DeviceType"].asString(); + if(!valueDevicesdata["DeviceModel"].isNull()) + devicesObject.deviceModel = valueDevicesdata["DeviceModel"].asString(); + if(!valueDevicesdata["DeviceVersion"].isNull()) + devicesObject.deviceVersion = valueDevicesdata["DeviceVersion"].asString(); + if(!valueDevicesdata["Hostname"].isNull()) + devicesObject.hostname = valueDevicesdata["Hostname"].asString(); + if(!valueDevicesdata["Username"].isNull()) + devicesObject.username = valueDevicesdata["Username"].asString(); + if(!valueDevicesdata["SaseUserId"].isNull()) + devicesObject.saseUserId = valueDevicesdata["SaseUserId"].asString(); + if(!valueDevicesdata["Department"].isNull()) + devicesObject.department = valueDevicesdata["Department"].asString(); + if(!valueDevicesdata["InnerIP"].isNull()) + devicesObject.innerIP = valueDevicesdata["InnerIP"].asString(); + if(!valueDevicesdata["SrcIP"].isNull()) + devicesObject.srcIP = valueDevicesdata["SrcIP"].asString(); + if(!valueDevicesdata["Memory"].isNull()) + devicesObject.memory = valueDevicesdata["Memory"].asString(); + if(!valueDevicesdata["CPU"].isNull()) + devicesObject.cPU = valueDevicesdata["CPU"].asString(); + if(!valueDevicesdata["Disk"].isNull()) + devicesObject.disk = valueDevicesdata["Disk"].asString(); + if(!valueDevicesdata["Mac"].isNull()) + devicesObject.mac = valueDevicesdata["Mac"].asString(); + if(!valueDevicesdata["AppVersion"].isNull()) + devicesObject.appVersion = valueDevicesdata["AppVersion"].asString(); + if(!valueDevicesdata["DeviceBelong"].isNull()) + devicesObject.deviceBelong = valueDevicesdata["DeviceBelong"].asString(); + if(!valueDevicesdata["SharingStatus"].isNull()) + devicesObject.sharingStatus = valueDevicesdata["SharingStatus"].asString() == "true"; + if(!valueDevicesdata["DeviceStatus"].isNull()) + devicesObject.deviceStatus = valueDevicesdata["DeviceStatus"].asString(); + if(!valueDevicesdata["AppStatus"].isNull()) + devicesObject.appStatus = valueDevicesdata["AppStatus"].asString(); + if(!valueDevicesdata["PaStatus"].isNull()) + devicesObject.paStatus = valueDevicesdata["PaStatus"].asString(); + if(!valueDevicesdata["IaStatus"].isNull()) + devicesObject.iaStatus = valueDevicesdata["IaStatus"].asString(); + if(!valueDevicesdata["DlpStatus"].isNull()) + devicesObject.dlpStatus = valueDevicesdata["DlpStatus"].asString(); + if(!valueDevicesdata["NacStatus"].isNull()) + devicesObject.nacStatus = valueDevicesdata["NacStatus"].asString(); + if(!valueDevicesdata["CreateTime"].isNull()) + devicesObject.createTime = valueDevicesdata["CreateTime"].asString(); + if(!valueDevicesdata["UpdateTime"].isNull()) + devicesObject.updateTime = valueDevicesdata["UpdateTime"].asString(); + devices_.push_back(devicesObject); + } + +} + +std::vector UpdateUserDevicesSharingStatusResult::getDevices()const +{ + return devices_; +} + diff --git a/csas/src/model/UpdateUserDevicesStatusRequest.cc b/csas/src/model/UpdateUserDevicesStatusRequest.cc new file mode 100644 index 000000000..bc3b8f1e8 --- /dev/null +++ b/csas/src/model/UpdateUserDevicesStatusRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateUserDevicesStatusRequest; + +UpdateUserDevicesStatusRequest::UpdateUserDevicesStatusRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateUserDevicesStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateUserDevicesStatusRequest::~UpdateUserDevicesStatusRequest() {} + +std::string UpdateUserDevicesStatusRequest::getDeviceAction() const { + return deviceAction_; +} + +void UpdateUserDevicesStatusRequest::setDeviceAction(const std::string &deviceAction) { + deviceAction_ = deviceAction; + setBodyParameter(std::string("DeviceAction"), deviceAction); +} + +std::vector UpdateUserDevicesStatusRequest::getDeviceTags() const { + return deviceTags_; +} + +void UpdateUserDevicesStatusRequest::setDeviceTags(const std::vector &deviceTags) { + deviceTags_ = deviceTags; + for(int dep1 = 0; dep1 != deviceTags.size(); dep1++) { + setBodyParameter(std::string("DeviceTags") + "." + std::to_string(dep1 + 1), deviceTags[dep1]); + } +} + +std::string UpdateUserDevicesStatusRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateUserDevicesStatusRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/UpdateUserDevicesStatusResult.cc b/csas/src/model/UpdateUserDevicesStatusResult.cc new file mode 100644 index 000000000..5f372b228 --- /dev/null +++ b/csas/src/model/UpdateUserDevicesStatusResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateUserDevicesStatusResult::UpdateUserDevicesStatusResult() : + ServiceResult() +{} + +UpdateUserDevicesStatusResult::UpdateUserDevicesStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserDevicesStatusResult::~UpdateUserDevicesStatusResult() +{} + +void UpdateUserDevicesStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDevicesNode = value["Devices"]["data"]; + for (auto valueDevicesdata : allDevicesNode) + { + Data devicesObject; + if(!valueDevicesdata["DeviceTag"].isNull()) + devicesObject.deviceTag = valueDevicesdata["DeviceTag"].asString(); + if(!valueDevicesdata["DeviceType"].isNull()) + devicesObject.deviceType = valueDevicesdata["DeviceType"].asString(); + if(!valueDevicesdata["DeviceModel"].isNull()) + devicesObject.deviceModel = valueDevicesdata["DeviceModel"].asString(); + if(!valueDevicesdata["DeviceVersion"].isNull()) + devicesObject.deviceVersion = valueDevicesdata["DeviceVersion"].asString(); + if(!valueDevicesdata["Hostname"].isNull()) + devicesObject.hostname = valueDevicesdata["Hostname"].asString(); + if(!valueDevicesdata["Username"].isNull()) + devicesObject.username = valueDevicesdata["Username"].asString(); + if(!valueDevicesdata["SaseUserId"].isNull()) + devicesObject.saseUserId = valueDevicesdata["SaseUserId"].asString(); + if(!valueDevicesdata["Department"].isNull()) + devicesObject.department = valueDevicesdata["Department"].asString(); + if(!valueDevicesdata["InnerIP"].isNull()) + devicesObject.innerIP = valueDevicesdata["InnerIP"].asString(); + if(!valueDevicesdata["SrcIP"].isNull()) + devicesObject.srcIP = valueDevicesdata["SrcIP"].asString(); + if(!valueDevicesdata["Memory"].isNull()) + devicesObject.memory = valueDevicesdata["Memory"].asString(); + if(!valueDevicesdata["CPU"].isNull()) + devicesObject.cPU = valueDevicesdata["CPU"].asString(); + if(!valueDevicesdata["Disk"].isNull()) + devicesObject.disk = valueDevicesdata["Disk"].asString(); + if(!valueDevicesdata["Mac"].isNull()) + devicesObject.mac = valueDevicesdata["Mac"].asString(); + if(!valueDevicesdata["AppVersion"].isNull()) + devicesObject.appVersion = valueDevicesdata["AppVersion"].asString(); + if(!valueDevicesdata["DeviceBelong"].isNull()) + devicesObject.deviceBelong = valueDevicesdata["DeviceBelong"].asString(); + if(!valueDevicesdata["SharingStatus"].isNull()) + devicesObject.sharingStatus = valueDevicesdata["SharingStatus"].asString() == "true"; + if(!valueDevicesdata["DeviceStatus"].isNull()) + devicesObject.deviceStatus = valueDevicesdata["DeviceStatus"].asString(); + if(!valueDevicesdata["AppStatus"].isNull()) + devicesObject.appStatus = valueDevicesdata["AppStatus"].asString(); + if(!valueDevicesdata["PaStatus"].isNull()) + devicesObject.paStatus = valueDevicesdata["PaStatus"].asString(); + if(!valueDevicesdata["IaStatus"].isNull()) + devicesObject.iaStatus = valueDevicesdata["IaStatus"].asString(); + if(!valueDevicesdata["DlpStatus"].isNull()) + devicesObject.dlpStatus = valueDevicesdata["DlpStatus"].asString(); + if(!valueDevicesdata["NacStatus"].isNull()) + devicesObject.nacStatus = valueDevicesdata["NacStatus"].asString(); + if(!valueDevicesdata["CreateTime"].isNull()) + devicesObject.createTime = valueDevicesdata["CreateTime"].asString(); + if(!valueDevicesdata["UpdateTime"].isNull()) + devicesObject.updateTime = valueDevicesdata["UpdateTime"].asString(); + devices_.push_back(devicesObject); + } + +} + +std::vector UpdateUserDevicesStatusResult::getDevices()const +{ + return devices_; +} +