diff --git a/VERSION b/VERSION index 7e7611955..91e5d31cd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2037 \ No newline at end of file +1.36.2038 \ No newline at end of file diff --git a/csas/CMakeLists.txt b/csas/CMakeLists.txt index 167ff98b0..91172ffbc 100644 --- a/csas/CMakeLists.txt +++ b/csas/CMakeLists.txt @@ -23,6 +23,10 @@ set(csas_public_header set(csas_public_header_model include/alibabacloud/csas/model/AttachApplication2ConnectorRequest.h include/alibabacloud/csas/model/AttachApplication2ConnectorResult.h + include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessRequest.h + include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessResult.h + include/alibabacloud/csas/model/CreateApprovalProcessRequest.h + include/alibabacloud/csas/model/CreateApprovalProcessResult.h include/alibabacloud/csas/model/CreateClientUserRequest.h include/alibabacloud/csas/model/CreateClientUserResult.h include/alibabacloud/csas/model/CreateDynamicRouteRequest.h @@ -47,6 +51,8 @@ set(csas_public_header_model include/alibabacloud/csas/model/CreateWmExtractTaskResult.h include/alibabacloud/csas/model/CreateWmInfoMappingRequest.h include/alibabacloud/csas/model/CreateWmInfoMappingResult.h + include/alibabacloud/csas/model/DeleteApprovalProcessesRequest.h + include/alibabacloud/csas/model/DeleteApprovalProcessesResult.h include/alibabacloud/csas/model/DeleteClientUserRequest.h include/alibabacloud/csas/model/DeleteClientUserResult.h include/alibabacloud/csas/model/DeleteDynamicRouteRequest.h @@ -67,10 +73,20 @@ set(csas_public_header_model include/alibabacloud/csas/model/DeleteUserGroupResult.h include/alibabacloud/csas/model/DetachApplication2ConnectorRequest.h include/alibabacloud/csas/model/DetachApplication2ConnectorResult.h + include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessRequest.h + include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessResult.h include/alibabacloud/csas/model/ExportUserDevicesRequest.h include/alibabacloud/csas/model/ExportUserDevicesResult.h include/alibabacloud/csas/model/GetActiveIdpConfigRequest.h include/alibabacloud/csas/model/GetActiveIdpConfigResult.h + include/alibabacloud/csas/model/GetApprovalRequest.h + include/alibabacloud/csas/model/GetApprovalResult.h + include/alibabacloud/csas/model/GetApprovalProcessRequest.h + include/alibabacloud/csas/model/GetApprovalProcessResult.h + include/alibabacloud/csas/model/GetApprovalSchemaRequest.h + include/alibabacloud/csas/model/GetApprovalSchemaResult.h + include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyRequest.h + include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyResult.h include/alibabacloud/csas/model/GetClientUserRequest.h include/alibabacloud/csas/model/GetClientUserResult.h include/alibabacloud/csas/model/GetDynamicRouteRequest.h @@ -95,6 +111,16 @@ set(csas_public_header_model include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyResult.h include/alibabacloud/csas/model/ListApplicationsForPrivateAccessTagRequest.h include/alibabacloud/csas/model/ListApplicationsForPrivateAccessTagResult.h + include/alibabacloud/csas/model/ListApprovalProcessesRequest.h + include/alibabacloud/csas/model/ListApprovalProcessesResult.h + include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasRequest.h + include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasResult.h + include/alibabacloud/csas/model/ListApprovalSchemasRequest.h + include/alibabacloud/csas/model/ListApprovalSchemasResult.h + include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesRequest.h + include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesResult.h + include/alibabacloud/csas/model/ListApprovalsRequest.h + include/alibabacloud/csas/model/ListApprovalsResult.h include/alibabacloud/csas/model/ListClientUsersRequest.h include/alibabacloud/csas/model/ListClientUsersResult.h include/alibabacloud/csas/model/ListConnectorsRequest.h @@ -139,6 +165,10 @@ set(csas_public_header_model include/alibabacloud/csas/model/ListTagsForPrivateAccessApplicationResult.h include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyRequest.h include/alibabacloud/csas/model/ListTagsForPrivateAccessPolicyResult.h + include/alibabacloud/csas/model/ListUninstallApplicationsRequest.h + include/alibabacloud/csas/model/ListUninstallApplicationsResult.h + include/alibabacloud/csas/model/ListUserApplicationsRequest.h + include/alibabacloud/csas/model/ListUserApplicationsResult.h include/alibabacloud/csas/model/ListUserDevicesRequest.h include/alibabacloud/csas/model/ListUserDevicesResult.h include/alibabacloud/csas/model/ListUserGroupsRequest.h @@ -147,12 +177,20 @@ set(csas_public_header_model include/alibabacloud/csas/model/ListUserGroupsForPrivateAccessPolicyResult.h include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyRequest.h include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h + include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesRequest.h + include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesResult.h include/alibabacloud/csas/model/ListUsersRequest.h include/alibabacloud/csas/model/ListUsersResult.h include/alibabacloud/csas/model/LookupWmInfoMappingRequest.h include/alibabacloud/csas/model/LookupWmInfoMappingResult.h include/alibabacloud/csas/model/RevokeUserSessionRequest.h include/alibabacloud/csas/model/RevokeUserSessionResult.h + include/alibabacloud/csas/model/UpdateApprovalProcessRequest.h + include/alibabacloud/csas/model/UpdateApprovalProcessResult.h + include/alibabacloud/csas/model/UpdateApprovalStatusRequest.h + include/alibabacloud/csas/model/UpdateApprovalStatusResult.h + include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyRequest.h + include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyResult.h include/alibabacloud/csas/model/UpdateClientUserRequest.h include/alibabacloud/csas/model/UpdateClientUserResult.h include/alibabacloud/csas/model/UpdateClientUserPasswordRequest.h @@ -173,6 +211,8 @@ set(csas_public_header_model include/alibabacloud/csas/model/UpdatePrivateAccessPolicyResult.h include/alibabacloud/csas/model/UpdateRegistrationPolicyRequest.h include/alibabacloud/csas/model/UpdateRegistrationPolicyResult.h + include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusRequest.h + include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusResult.h include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusRequest.h include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h include/alibabacloud/csas/model/UpdateUserDevicesStatusRequest.h @@ -186,6 +226,10 @@ set(csas_src src/CsasClient.cc src/model/AttachApplication2ConnectorRequest.cc src/model/AttachApplication2ConnectorResult.cc + src/model/AttachPolicy2ApprovalProcessRequest.cc + src/model/AttachPolicy2ApprovalProcessResult.cc + src/model/CreateApprovalProcessRequest.cc + src/model/CreateApprovalProcessResult.cc src/model/CreateClientUserRequest.cc src/model/CreateClientUserResult.cc src/model/CreateDynamicRouteRequest.cc @@ -210,6 +254,8 @@ set(csas_src src/model/CreateWmExtractTaskResult.cc src/model/CreateWmInfoMappingRequest.cc src/model/CreateWmInfoMappingResult.cc + src/model/DeleteApprovalProcessesRequest.cc + src/model/DeleteApprovalProcessesResult.cc src/model/DeleteClientUserRequest.cc src/model/DeleteClientUserResult.cc src/model/DeleteDynamicRouteRequest.cc @@ -230,10 +276,20 @@ set(csas_src src/model/DeleteUserGroupResult.cc src/model/DetachApplication2ConnectorRequest.cc src/model/DetachApplication2ConnectorResult.cc + src/model/DetachPolicy2ApprovalProcessRequest.cc + src/model/DetachPolicy2ApprovalProcessResult.cc src/model/ExportUserDevicesRequest.cc src/model/ExportUserDevicesResult.cc src/model/GetActiveIdpConfigRequest.cc src/model/GetActiveIdpConfigResult.cc + src/model/GetApprovalRequest.cc + src/model/GetApprovalResult.cc + src/model/GetApprovalProcessRequest.cc + src/model/GetApprovalProcessResult.cc + src/model/GetApprovalSchemaRequest.cc + src/model/GetApprovalSchemaResult.cc + src/model/GetBootAndAntiUninstallPolicyRequest.cc + src/model/GetBootAndAntiUninstallPolicyResult.cc src/model/GetClientUserRequest.cc src/model/GetClientUserResult.cc src/model/GetDynamicRouteRequest.cc @@ -258,6 +314,16 @@ set(csas_src src/model/ListApplicationsForPrivateAccessPolicyResult.cc src/model/ListApplicationsForPrivateAccessTagRequest.cc src/model/ListApplicationsForPrivateAccessTagResult.cc + src/model/ListApprovalProcessesRequest.cc + src/model/ListApprovalProcessesResult.cc + src/model/ListApprovalProcessesForApprovalSchemasRequest.cc + src/model/ListApprovalProcessesForApprovalSchemasResult.cc + src/model/ListApprovalSchemasRequest.cc + src/model/ListApprovalSchemasResult.cc + src/model/ListApprovalSchemasForApprovalProcessesRequest.cc + src/model/ListApprovalSchemasForApprovalProcessesResult.cc + src/model/ListApprovalsRequest.cc + src/model/ListApprovalsResult.cc src/model/ListClientUsersRequest.cc src/model/ListClientUsersResult.cc src/model/ListConnectorsRequest.cc @@ -302,6 +368,10 @@ set(csas_src src/model/ListTagsForPrivateAccessApplicationResult.cc src/model/ListTagsForPrivateAccessPolicyRequest.cc src/model/ListTagsForPrivateAccessPolicyResult.cc + src/model/ListUninstallApplicationsRequest.cc + src/model/ListUninstallApplicationsResult.cc + src/model/ListUserApplicationsRequest.cc + src/model/ListUserApplicationsResult.cc src/model/ListUserDevicesRequest.cc src/model/ListUserDevicesResult.cc src/model/ListUserGroupsRequest.cc @@ -310,12 +380,20 @@ set(csas_src src/model/ListUserGroupsForPrivateAccessPolicyResult.cc src/model/ListUserGroupsForRegistrationPolicyRequest.cc src/model/ListUserGroupsForRegistrationPolicyResult.cc + src/model/ListUserPrivateAccessPoliciesRequest.cc + src/model/ListUserPrivateAccessPoliciesResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc src/model/LookupWmInfoMappingRequest.cc src/model/LookupWmInfoMappingResult.cc src/model/RevokeUserSessionRequest.cc src/model/RevokeUserSessionResult.cc + src/model/UpdateApprovalProcessRequest.cc + src/model/UpdateApprovalProcessResult.cc + src/model/UpdateApprovalStatusRequest.cc + src/model/UpdateApprovalStatusResult.cc + src/model/UpdateBootAndAntiUninstallPolicyRequest.cc + src/model/UpdateBootAndAntiUninstallPolicyResult.cc src/model/UpdateClientUserRequest.cc src/model/UpdateClientUserResult.cc src/model/UpdateClientUserPasswordRequest.cc @@ -336,6 +414,8 @@ set(csas_src src/model/UpdatePrivateAccessPolicyResult.cc src/model/UpdateRegistrationPolicyRequest.cc src/model/UpdateRegistrationPolicyResult.cc + src/model/UpdateUninstallApplicationsStatusRequest.cc + src/model/UpdateUninstallApplicationsStatusResult.cc src/model/UpdateUserDevicesSharingStatusRequest.cc src/model/UpdateUserDevicesSharingStatusResult.cc src/model/UpdateUserDevicesStatusRequest.cc diff --git a/csas/include/alibabacloud/csas/CsasClient.h b/csas/include/alibabacloud/csas/CsasClient.h index 63d6860f1..ac1505b4d 100644 --- a/csas/include/alibabacloud/csas/CsasClient.h +++ b/csas/include/alibabacloud/csas/CsasClient.h @@ -24,6 +24,10 @@ #include "CsasExport.h" #include "model/AttachApplication2ConnectorRequest.h" #include "model/AttachApplication2ConnectorResult.h" +#include "model/AttachPolicy2ApprovalProcessRequest.h" +#include "model/AttachPolicy2ApprovalProcessResult.h" +#include "model/CreateApprovalProcessRequest.h" +#include "model/CreateApprovalProcessResult.h" #include "model/CreateClientUserRequest.h" #include "model/CreateClientUserResult.h" #include "model/CreateDynamicRouteRequest.h" @@ -48,6 +52,8 @@ #include "model/CreateWmExtractTaskResult.h" #include "model/CreateWmInfoMappingRequest.h" #include "model/CreateWmInfoMappingResult.h" +#include "model/DeleteApprovalProcessesRequest.h" +#include "model/DeleteApprovalProcessesResult.h" #include "model/DeleteClientUserRequest.h" #include "model/DeleteClientUserResult.h" #include "model/DeleteDynamicRouteRequest.h" @@ -68,10 +74,20 @@ #include "model/DeleteUserGroupResult.h" #include "model/DetachApplication2ConnectorRequest.h" #include "model/DetachApplication2ConnectorResult.h" +#include "model/DetachPolicy2ApprovalProcessRequest.h" +#include "model/DetachPolicy2ApprovalProcessResult.h" #include "model/ExportUserDevicesRequest.h" #include "model/ExportUserDevicesResult.h" #include "model/GetActiveIdpConfigRequest.h" #include "model/GetActiveIdpConfigResult.h" +#include "model/GetApprovalRequest.h" +#include "model/GetApprovalResult.h" +#include "model/GetApprovalProcessRequest.h" +#include "model/GetApprovalProcessResult.h" +#include "model/GetApprovalSchemaRequest.h" +#include "model/GetApprovalSchemaResult.h" +#include "model/GetBootAndAntiUninstallPolicyRequest.h" +#include "model/GetBootAndAntiUninstallPolicyResult.h" #include "model/GetClientUserRequest.h" #include "model/GetClientUserResult.h" #include "model/GetDynamicRouteRequest.h" @@ -96,6 +112,16 @@ #include "model/ListApplicationsForPrivateAccessPolicyResult.h" #include "model/ListApplicationsForPrivateAccessTagRequest.h" #include "model/ListApplicationsForPrivateAccessTagResult.h" +#include "model/ListApprovalProcessesRequest.h" +#include "model/ListApprovalProcessesResult.h" +#include "model/ListApprovalProcessesForApprovalSchemasRequest.h" +#include "model/ListApprovalProcessesForApprovalSchemasResult.h" +#include "model/ListApprovalSchemasRequest.h" +#include "model/ListApprovalSchemasResult.h" +#include "model/ListApprovalSchemasForApprovalProcessesRequest.h" +#include "model/ListApprovalSchemasForApprovalProcessesResult.h" +#include "model/ListApprovalsRequest.h" +#include "model/ListApprovalsResult.h" #include "model/ListClientUsersRequest.h" #include "model/ListClientUsersResult.h" #include "model/ListConnectorsRequest.h" @@ -140,6 +166,10 @@ #include "model/ListTagsForPrivateAccessApplicationResult.h" #include "model/ListTagsForPrivateAccessPolicyRequest.h" #include "model/ListTagsForPrivateAccessPolicyResult.h" +#include "model/ListUninstallApplicationsRequest.h" +#include "model/ListUninstallApplicationsResult.h" +#include "model/ListUserApplicationsRequest.h" +#include "model/ListUserApplicationsResult.h" #include "model/ListUserDevicesRequest.h" #include "model/ListUserDevicesResult.h" #include "model/ListUserGroupsRequest.h" @@ -148,12 +178,20 @@ #include "model/ListUserGroupsForPrivateAccessPolicyResult.h" #include "model/ListUserGroupsForRegistrationPolicyRequest.h" #include "model/ListUserGroupsForRegistrationPolicyResult.h" +#include "model/ListUserPrivateAccessPoliciesRequest.h" +#include "model/ListUserPrivateAccessPoliciesResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" #include "model/LookupWmInfoMappingRequest.h" #include "model/LookupWmInfoMappingResult.h" #include "model/RevokeUserSessionRequest.h" #include "model/RevokeUserSessionResult.h" +#include "model/UpdateApprovalProcessRequest.h" +#include "model/UpdateApprovalProcessResult.h" +#include "model/UpdateApprovalStatusRequest.h" +#include "model/UpdateApprovalStatusResult.h" +#include "model/UpdateBootAndAntiUninstallPolicyRequest.h" +#include "model/UpdateBootAndAntiUninstallPolicyResult.h" #include "model/UpdateClientUserRequest.h" #include "model/UpdateClientUserResult.h" #include "model/UpdateClientUserPasswordRequest.h" @@ -174,6 +212,8 @@ #include "model/UpdatePrivateAccessPolicyResult.h" #include "model/UpdateRegistrationPolicyRequest.h" #include "model/UpdateRegistrationPolicyResult.h" +#include "model/UpdateUninstallApplicationsStatusRequest.h" +#include "model/UpdateUninstallApplicationsStatusResult.h" #include "model/UpdateUserDevicesSharingStatusRequest.h" #include "model/UpdateUserDevicesSharingStatusResult.h" #include "model/UpdateUserDevicesStatusRequest.h" @@ -194,6 +234,12 @@ namespace AlibabaCloud typedef Outcome AttachApplication2ConnectorOutcome; typedef std::future AttachApplication2ConnectorOutcomeCallable; typedef std::function&)> AttachApplication2ConnectorAsyncHandler; + typedef Outcome AttachPolicy2ApprovalProcessOutcome; + typedef std::future AttachPolicy2ApprovalProcessOutcomeCallable; + typedef std::function&)> AttachPolicy2ApprovalProcessAsyncHandler; + typedef Outcome CreateApprovalProcessOutcome; + typedef std::future CreateApprovalProcessOutcomeCallable; + typedef std::function&)> CreateApprovalProcessAsyncHandler; typedef Outcome CreateClientUserOutcome; typedef std::future CreateClientUserOutcomeCallable; typedef std::function&)> CreateClientUserAsyncHandler; @@ -230,6 +276,9 @@ namespace AlibabaCloud typedef Outcome CreateWmInfoMappingOutcome; typedef std::future CreateWmInfoMappingOutcomeCallable; typedef std::function&)> CreateWmInfoMappingAsyncHandler; + typedef Outcome DeleteApprovalProcessesOutcome; + typedef std::future DeleteApprovalProcessesOutcomeCallable; + typedef std::function&)> DeleteApprovalProcessesAsyncHandler; typedef Outcome DeleteClientUserOutcome; typedef std::future DeleteClientUserOutcomeCallable; typedef std::function&)> DeleteClientUserAsyncHandler; @@ -260,12 +309,27 @@ namespace AlibabaCloud typedef Outcome DetachApplication2ConnectorOutcome; typedef std::future DetachApplication2ConnectorOutcomeCallable; typedef std::function&)> DetachApplication2ConnectorAsyncHandler; + typedef Outcome DetachPolicy2ApprovalProcessOutcome; + typedef std::future DetachPolicy2ApprovalProcessOutcomeCallable; + typedef std::function&)> DetachPolicy2ApprovalProcessAsyncHandler; typedef Outcome ExportUserDevicesOutcome; typedef std::future ExportUserDevicesOutcomeCallable; typedef std::function&)> ExportUserDevicesAsyncHandler; typedef Outcome GetActiveIdpConfigOutcome; typedef std::future GetActiveIdpConfigOutcomeCallable; typedef std::function&)> GetActiveIdpConfigAsyncHandler; + typedef Outcome GetApprovalOutcome; + typedef std::future GetApprovalOutcomeCallable; + typedef std::function&)> GetApprovalAsyncHandler; + typedef Outcome GetApprovalProcessOutcome; + typedef std::future GetApprovalProcessOutcomeCallable; + typedef std::function&)> GetApprovalProcessAsyncHandler; + typedef Outcome GetApprovalSchemaOutcome; + typedef std::future GetApprovalSchemaOutcomeCallable; + typedef std::function&)> GetApprovalSchemaAsyncHandler; + typedef Outcome GetBootAndAntiUninstallPolicyOutcome; + typedef std::future GetBootAndAntiUninstallPolicyOutcomeCallable; + typedef std::function&)> GetBootAndAntiUninstallPolicyAsyncHandler; typedef Outcome GetClientUserOutcome; typedef std::future GetClientUserOutcomeCallable; typedef std::function&)> GetClientUserAsyncHandler; @@ -302,6 +366,21 @@ namespace AlibabaCloud typedef Outcome ListApplicationsForPrivateAccessTagOutcome; typedef std::future ListApplicationsForPrivateAccessTagOutcomeCallable; typedef std::function&)> ListApplicationsForPrivateAccessTagAsyncHandler; + typedef Outcome ListApprovalProcessesOutcome; + typedef std::future ListApprovalProcessesOutcomeCallable; + typedef std::function&)> ListApprovalProcessesAsyncHandler; + typedef Outcome ListApprovalProcessesForApprovalSchemasOutcome; + typedef std::future ListApprovalProcessesForApprovalSchemasOutcomeCallable; + typedef std::function&)> ListApprovalProcessesForApprovalSchemasAsyncHandler; + typedef Outcome ListApprovalSchemasOutcome; + typedef std::future ListApprovalSchemasOutcomeCallable; + typedef std::function&)> ListApprovalSchemasAsyncHandler; + typedef Outcome ListApprovalSchemasForApprovalProcessesOutcome; + typedef std::future ListApprovalSchemasForApprovalProcessesOutcomeCallable; + typedef std::function&)> ListApprovalSchemasForApprovalProcessesAsyncHandler; + typedef Outcome ListApprovalsOutcome; + typedef std::future ListApprovalsOutcomeCallable; + typedef std::function&)> ListApprovalsAsyncHandler; typedef Outcome ListClientUsersOutcome; typedef std::future ListClientUsersOutcomeCallable; typedef std::function&)> ListClientUsersAsyncHandler; @@ -368,6 +447,12 @@ namespace AlibabaCloud typedef Outcome ListTagsForPrivateAccessPolicyOutcome; typedef std::future ListTagsForPrivateAccessPolicyOutcomeCallable; typedef std::function&)> ListTagsForPrivateAccessPolicyAsyncHandler; + typedef Outcome ListUninstallApplicationsOutcome; + typedef std::future ListUninstallApplicationsOutcomeCallable; + typedef std::function&)> ListUninstallApplicationsAsyncHandler; + typedef Outcome ListUserApplicationsOutcome; + typedef std::future ListUserApplicationsOutcomeCallable; + typedef std::function&)> ListUserApplicationsAsyncHandler; typedef Outcome ListUserDevicesOutcome; typedef std::future ListUserDevicesOutcomeCallable; typedef std::function&)> ListUserDevicesAsyncHandler; @@ -380,6 +465,9 @@ namespace AlibabaCloud typedef Outcome ListUserGroupsForRegistrationPolicyOutcome; typedef std::future ListUserGroupsForRegistrationPolicyOutcomeCallable; typedef std::function&)> ListUserGroupsForRegistrationPolicyAsyncHandler; + typedef Outcome ListUserPrivateAccessPoliciesOutcome; + typedef std::future ListUserPrivateAccessPoliciesOutcomeCallable; + typedef std::function&)> ListUserPrivateAccessPoliciesAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; @@ -389,6 +477,15 @@ namespace AlibabaCloud typedef Outcome RevokeUserSessionOutcome; typedef std::future RevokeUserSessionOutcomeCallable; typedef std::function&)> RevokeUserSessionAsyncHandler; + typedef Outcome UpdateApprovalProcessOutcome; + typedef std::future UpdateApprovalProcessOutcomeCallable; + typedef std::function&)> UpdateApprovalProcessAsyncHandler; + typedef Outcome UpdateApprovalStatusOutcome; + typedef std::future UpdateApprovalStatusOutcomeCallable; + typedef std::function&)> UpdateApprovalStatusAsyncHandler; + typedef Outcome UpdateBootAndAntiUninstallPolicyOutcome; + typedef std::future UpdateBootAndAntiUninstallPolicyOutcomeCallable; + typedef std::function&)> UpdateBootAndAntiUninstallPolicyAsyncHandler; typedef Outcome UpdateClientUserOutcome; typedef std::future UpdateClientUserOutcomeCallable; typedef std::function&)> UpdateClientUserAsyncHandler; @@ -419,6 +516,9 @@ namespace AlibabaCloud typedef Outcome UpdateRegistrationPolicyOutcome; typedef std::future UpdateRegistrationPolicyOutcomeCallable; typedef std::function&)> UpdateRegistrationPolicyAsyncHandler; + typedef Outcome UpdateUninstallApplicationsStatusOutcome; + typedef std::future UpdateUninstallApplicationsStatusOutcomeCallable; + typedef std::function&)> UpdateUninstallApplicationsStatusAsyncHandler; typedef Outcome UpdateUserDevicesSharingStatusOutcome; typedef std::future UpdateUserDevicesSharingStatusOutcomeCallable; typedef std::function&)> UpdateUserDevicesSharingStatusAsyncHandler; @@ -439,6 +539,12 @@ namespace AlibabaCloud AttachApplication2ConnectorOutcome attachApplication2Connector(const Model::AttachApplication2ConnectorRequest &request)const; void attachApplication2ConnectorAsync(const Model::AttachApplication2ConnectorRequest& request, const AttachApplication2ConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachApplication2ConnectorOutcomeCallable attachApplication2ConnectorCallable(const Model::AttachApplication2ConnectorRequest& request) const; + AttachPolicy2ApprovalProcessOutcome attachPolicy2ApprovalProcess(const Model::AttachPolicy2ApprovalProcessRequest &request)const; + void attachPolicy2ApprovalProcessAsync(const Model::AttachPolicy2ApprovalProcessRequest& request, const AttachPolicy2ApprovalProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicy2ApprovalProcessOutcomeCallable attachPolicy2ApprovalProcessCallable(const Model::AttachPolicy2ApprovalProcessRequest& request) const; + CreateApprovalProcessOutcome createApprovalProcess(const Model::CreateApprovalProcessRequest &request)const; + void createApprovalProcessAsync(const Model::CreateApprovalProcessRequest& request, const CreateApprovalProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApprovalProcessOutcomeCallable createApprovalProcessCallable(const Model::CreateApprovalProcessRequest& request) const; CreateClientUserOutcome createClientUser(const Model::CreateClientUserRequest &request)const; void createClientUserAsync(const Model::CreateClientUserRequest& request, const CreateClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateClientUserOutcomeCallable createClientUserCallable(const Model::CreateClientUserRequest& request) const; @@ -475,6 +581,9 @@ namespace AlibabaCloud CreateWmInfoMappingOutcome createWmInfoMapping(const Model::CreateWmInfoMappingRequest &request)const; void createWmInfoMappingAsync(const Model::CreateWmInfoMappingRequest& request, const CreateWmInfoMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateWmInfoMappingOutcomeCallable createWmInfoMappingCallable(const Model::CreateWmInfoMappingRequest& request) const; + DeleteApprovalProcessesOutcome deleteApprovalProcesses(const Model::DeleteApprovalProcessesRequest &request)const; + void deleteApprovalProcessesAsync(const Model::DeleteApprovalProcessesRequest& request, const DeleteApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApprovalProcessesOutcomeCallable deleteApprovalProcessesCallable(const Model::DeleteApprovalProcessesRequest& request) const; DeleteClientUserOutcome deleteClientUser(const Model::DeleteClientUserRequest &request)const; void deleteClientUserAsync(const Model::DeleteClientUserRequest& request, const DeleteClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClientUserOutcomeCallable deleteClientUserCallable(const Model::DeleteClientUserRequest& request) const; @@ -505,12 +614,27 @@ namespace AlibabaCloud DetachApplication2ConnectorOutcome detachApplication2Connector(const Model::DetachApplication2ConnectorRequest &request)const; void detachApplication2ConnectorAsync(const Model::DetachApplication2ConnectorRequest& request, const DetachApplication2ConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachApplication2ConnectorOutcomeCallable detachApplication2ConnectorCallable(const Model::DetachApplication2ConnectorRequest& request) const; + DetachPolicy2ApprovalProcessOutcome detachPolicy2ApprovalProcess(const Model::DetachPolicy2ApprovalProcessRequest &request)const; + void detachPolicy2ApprovalProcessAsync(const Model::DetachPolicy2ApprovalProcessRequest& request, const DetachPolicy2ApprovalProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachPolicy2ApprovalProcessOutcomeCallable detachPolicy2ApprovalProcessCallable(const Model::DetachPolicy2ApprovalProcessRequest& request) const; ExportUserDevicesOutcome exportUserDevices(const Model::ExportUserDevicesRequest &request)const; void exportUserDevicesAsync(const Model::ExportUserDevicesRequest& request, const ExportUserDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportUserDevicesOutcomeCallable exportUserDevicesCallable(const Model::ExportUserDevicesRequest& request) const; GetActiveIdpConfigOutcome getActiveIdpConfig(const Model::GetActiveIdpConfigRequest &request)const; void getActiveIdpConfigAsync(const Model::GetActiveIdpConfigRequest& request, const GetActiveIdpConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetActiveIdpConfigOutcomeCallable getActiveIdpConfigCallable(const Model::GetActiveIdpConfigRequest& request) const; + GetApprovalOutcome getApproval(const Model::GetApprovalRequest &request)const; + void getApprovalAsync(const Model::GetApprovalRequest& request, const GetApprovalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApprovalOutcomeCallable getApprovalCallable(const Model::GetApprovalRequest& request) const; + GetApprovalProcessOutcome getApprovalProcess(const Model::GetApprovalProcessRequest &request)const; + void getApprovalProcessAsync(const Model::GetApprovalProcessRequest& request, const GetApprovalProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApprovalProcessOutcomeCallable getApprovalProcessCallable(const Model::GetApprovalProcessRequest& request) const; + GetApprovalSchemaOutcome getApprovalSchema(const Model::GetApprovalSchemaRequest &request)const; + void getApprovalSchemaAsync(const Model::GetApprovalSchemaRequest& request, const GetApprovalSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApprovalSchemaOutcomeCallable getApprovalSchemaCallable(const Model::GetApprovalSchemaRequest& request) const; + GetBootAndAntiUninstallPolicyOutcome getBootAndAntiUninstallPolicy(const Model::GetBootAndAntiUninstallPolicyRequest &request)const; + void getBootAndAntiUninstallPolicyAsync(const Model::GetBootAndAntiUninstallPolicyRequest& request, const GetBootAndAntiUninstallPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBootAndAntiUninstallPolicyOutcomeCallable getBootAndAntiUninstallPolicyCallable(const Model::GetBootAndAntiUninstallPolicyRequest& request) const; GetClientUserOutcome getClientUser(const Model::GetClientUserRequest &request)const; void getClientUserAsync(const Model::GetClientUserRequest& request, const GetClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetClientUserOutcomeCallable getClientUserCallable(const Model::GetClientUserRequest& request) const; @@ -547,6 +671,21 @@ namespace AlibabaCloud ListApplicationsForPrivateAccessTagOutcome listApplicationsForPrivateAccessTag(const Model::ListApplicationsForPrivateAccessTagRequest &request)const; void listApplicationsForPrivateAccessTagAsync(const Model::ListApplicationsForPrivateAccessTagRequest& request, const ListApplicationsForPrivateAccessTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListApplicationsForPrivateAccessTagOutcomeCallable listApplicationsForPrivateAccessTagCallable(const Model::ListApplicationsForPrivateAccessTagRequest& request) const; + ListApprovalProcessesOutcome listApprovalProcesses(const Model::ListApprovalProcessesRequest &request)const; + void listApprovalProcessesAsync(const Model::ListApprovalProcessesRequest& request, const ListApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApprovalProcessesOutcomeCallable listApprovalProcessesCallable(const Model::ListApprovalProcessesRequest& request) const; + ListApprovalProcessesForApprovalSchemasOutcome listApprovalProcessesForApprovalSchemas(const Model::ListApprovalProcessesForApprovalSchemasRequest &request)const; + void listApprovalProcessesForApprovalSchemasAsync(const Model::ListApprovalProcessesForApprovalSchemasRequest& request, const ListApprovalProcessesForApprovalSchemasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApprovalProcessesForApprovalSchemasOutcomeCallable listApprovalProcessesForApprovalSchemasCallable(const Model::ListApprovalProcessesForApprovalSchemasRequest& request) const; + ListApprovalSchemasOutcome listApprovalSchemas(const Model::ListApprovalSchemasRequest &request)const; + void listApprovalSchemasAsync(const Model::ListApprovalSchemasRequest& request, const ListApprovalSchemasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApprovalSchemasOutcomeCallable listApprovalSchemasCallable(const Model::ListApprovalSchemasRequest& request) const; + ListApprovalSchemasForApprovalProcessesOutcome listApprovalSchemasForApprovalProcesses(const Model::ListApprovalSchemasForApprovalProcessesRequest &request)const; + void listApprovalSchemasForApprovalProcessesAsync(const Model::ListApprovalSchemasForApprovalProcessesRequest& request, const ListApprovalSchemasForApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApprovalSchemasForApprovalProcessesOutcomeCallable listApprovalSchemasForApprovalProcessesCallable(const Model::ListApprovalSchemasForApprovalProcessesRequest& request) const; + ListApprovalsOutcome listApprovals(const Model::ListApprovalsRequest &request)const; + void listApprovalsAsync(const Model::ListApprovalsRequest& request, const ListApprovalsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApprovalsOutcomeCallable listApprovalsCallable(const Model::ListApprovalsRequest& request) const; ListClientUsersOutcome listClientUsers(const Model::ListClientUsersRequest &request)const; void listClientUsersAsync(const Model::ListClientUsersRequest& request, const ListClientUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClientUsersOutcomeCallable listClientUsersCallable(const Model::ListClientUsersRequest& request) const; @@ -613,6 +752,12 @@ namespace AlibabaCloud 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; + ListUninstallApplicationsOutcome listUninstallApplications(const Model::ListUninstallApplicationsRequest &request)const; + void listUninstallApplicationsAsync(const Model::ListUninstallApplicationsRequest& request, const ListUninstallApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUninstallApplicationsOutcomeCallable listUninstallApplicationsCallable(const Model::ListUninstallApplicationsRequest& request) const; + ListUserApplicationsOutcome listUserApplications(const Model::ListUserApplicationsRequest &request)const; + void listUserApplicationsAsync(const Model::ListUserApplicationsRequest& request, const ListUserApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserApplicationsOutcomeCallable listUserApplicationsCallable(const Model::ListUserApplicationsRequest& 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; @@ -625,6 +770,9 @@ namespace AlibabaCloud 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; + ListUserPrivateAccessPoliciesOutcome listUserPrivateAccessPolicies(const Model::ListUserPrivateAccessPoliciesRequest &request)const; + void listUserPrivateAccessPoliciesAsync(const Model::ListUserPrivateAccessPoliciesRequest& request, const ListUserPrivateAccessPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserPrivateAccessPoliciesOutcomeCallable listUserPrivateAccessPoliciesCallable(const Model::ListUserPrivateAccessPoliciesRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; @@ -634,6 +782,15 @@ namespace AlibabaCloud RevokeUserSessionOutcome revokeUserSession(const Model::RevokeUserSessionRequest &request)const; void revokeUserSessionAsync(const Model::RevokeUserSessionRequest& request, const RevokeUserSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeUserSessionOutcomeCallable revokeUserSessionCallable(const Model::RevokeUserSessionRequest& request) const; + UpdateApprovalProcessOutcome updateApprovalProcess(const Model::UpdateApprovalProcessRequest &request)const; + void updateApprovalProcessAsync(const Model::UpdateApprovalProcessRequest& request, const UpdateApprovalProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApprovalProcessOutcomeCallable updateApprovalProcessCallable(const Model::UpdateApprovalProcessRequest& request) const; + UpdateApprovalStatusOutcome updateApprovalStatus(const Model::UpdateApprovalStatusRequest &request)const; + void updateApprovalStatusAsync(const Model::UpdateApprovalStatusRequest& request, const UpdateApprovalStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApprovalStatusOutcomeCallable updateApprovalStatusCallable(const Model::UpdateApprovalStatusRequest& request) const; + UpdateBootAndAntiUninstallPolicyOutcome updateBootAndAntiUninstallPolicy(const Model::UpdateBootAndAntiUninstallPolicyRequest &request)const; + void updateBootAndAntiUninstallPolicyAsync(const Model::UpdateBootAndAntiUninstallPolicyRequest& request, const UpdateBootAndAntiUninstallPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBootAndAntiUninstallPolicyOutcomeCallable updateBootAndAntiUninstallPolicyCallable(const Model::UpdateBootAndAntiUninstallPolicyRequest& request) const; UpdateClientUserOutcome updateClientUser(const Model::UpdateClientUserRequest &request)const; void updateClientUserAsync(const Model::UpdateClientUserRequest& request, const UpdateClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateClientUserOutcomeCallable updateClientUserCallable(const Model::UpdateClientUserRequest& request) const; @@ -664,6 +821,9 @@ namespace AlibabaCloud 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; + UpdateUninstallApplicationsStatusOutcome updateUninstallApplicationsStatus(const Model::UpdateUninstallApplicationsStatusRequest &request)const; + void updateUninstallApplicationsStatusAsync(const Model::UpdateUninstallApplicationsStatusRequest& request, const UpdateUninstallApplicationsStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUninstallApplicationsStatusOutcomeCallable updateUninstallApplicationsStatusCallable(const Model::UpdateUninstallApplicationsStatusRequest& 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; diff --git a/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessRequest.h b/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessRequest.h new file mode 100644 index 000000000..cd29dc5eb --- /dev/null +++ b/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessRequest.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_ATTACHPOLICY2APPROVALPROCESSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_ATTACHPOLICY2APPROVALPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT AttachPolicy2ApprovalProcessRequest : public RpcServiceRequest { +public: + AttachPolicy2ApprovalProcessRequest(); + ~AttachPolicy2ApprovalProcessRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + +private: + std::string policyType_; + std::string sourceIp_; + std::string policyId_; + std::string processId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_ATTACHPOLICY2APPROVALPROCESSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessResult.h b/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessResult.h new file mode 100644 index 000000000..12d097957 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/AttachPolicy2ApprovalProcessResult.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_ATTACHPOLICY2APPROVALPROCESSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_ATTACHPOLICY2APPROVALPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT AttachPolicy2ApprovalProcessResult : public ServiceResult + { + public: + + + AttachPolicy2ApprovalProcessResult(); + explicit AttachPolicy2ApprovalProcessResult(const std::string &payload); + ~AttachPolicy2ApprovalProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_ATTACHPOLICY2APPROVALPROCESSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/CreateApprovalProcessRequest.h b/csas/include/alibabacloud/csas/model/CreateApprovalProcessRequest.h new file mode 100644 index 000000000..7abaf8e8a --- /dev/null +++ b/csas/include/alibabacloud/csas/model/CreateApprovalProcessRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_CREATEAPPROVALPROCESSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_CREATEAPPROVALPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT CreateApprovalProcessRequest : public RpcServiceRequest { +public: + struct MatchSchemas { + std::string domainBlacklistSchemaId; + std::string softwareBlockSchemaId; + std::string peripheralBlockSchemaId; + std::string deviceRegistrationSchemaId; + std::string dlpSendSchemaId; + std::string domainWhitelistSchemaId; + std::string appUninstallSchemaId; + }; + CreateApprovalProcessRequest(); + ~CreateApprovalProcessRequest(); + std::vector> getProcessNodes() const; + void setProcessNodes(const std::vector> &processNodes); + MatchSchemas getMatchSchemas() const; + void setMatchSchemas(const MatchSchemas &matchSchemas); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector> processNodes_; + MatchSchemas matchSchemas_; + std::string processName_; + std::string description_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEAPPROVALPROCESSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/CreateApprovalProcessResult.h b/csas/include/alibabacloud/csas/model/CreateApprovalProcessResult.h new file mode 100644 index 000000000..6beafa6d4 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/CreateApprovalProcessResult.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_CREATEAPPROVALPROCESSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_CREATEAPPROVALPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT CreateApprovalProcessResult : public ServiceResult + { + public: + + + CreateApprovalProcessResult(); + explicit CreateApprovalProcessResult(const std::string &payload); + ~CreateApprovalProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEAPPROVALPROCESSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesRequest.h b/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesRequest.h new file mode 100644 index 000000000..afe978edc --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesRequest.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_DELETEAPPROVALPROCESSESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_DELETEAPPROVALPROCESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT DeleteApprovalProcessesRequest : public RpcServiceRequest { +public: + DeleteApprovalProcessesRequest(); + ~DeleteApprovalProcessesRequest(); + std::vector getProcessIds() const; + void setProcessIds(const std::vector &processIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector processIds_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEAPPROVALPROCESSESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesResult.h b/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesResult.h new file mode 100644 index 000000000..a9d9b89e6 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DeleteApprovalProcessesResult.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_DELETEAPPROVALPROCESSESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_DELETEAPPROVALPROCESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT DeleteApprovalProcessesResult : public ServiceResult + { + public: + + + DeleteApprovalProcessesResult(); + explicit DeleteApprovalProcessesResult(const std::string &payload); + ~DeleteApprovalProcessesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_DELETEAPPROVALPROCESSESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessRequest.h b/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessRequest.h new file mode 100644 index 000000000..74433438a --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessRequest.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_DETACHPOLICY2APPROVALPROCESSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_DETACHPOLICY2APPROVALPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT DetachPolicy2ApprovalProcessRequest : public RpcServiceRequest { +public: + DetachPolicy2ApprovalProcessRequest(); + ~DetachPolicy2ApprovalProcessRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + +private: + std::string policyType_; + std::string sourceIp_; + std::string policyId_; + std::string processId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_DETACHPOLICY2APPROVALPROCESSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessResult.h b/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessResult.h new file mode 100644 index 000000000..932820b1d --- /dev/null +++ b/csas/include/alibabacloud/csas/model/DetachPolicy2ApprovalProcessResult.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_DETACHPOLICY2APPROVALPROCESSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_DETACHPOLICY2APPROVALPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT DetachPolicy2ApprovalProcessResult : public ServiceResult + { + public: + + + DetachPolicy2ApprovalProcessResult(); + explicit DetachPolicy2ApprovalProcessResult(const std::string &payload); + ~DetachPolicy2ApprovalProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_DETACHPOLICY2APPROVALPROCESSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetApprovalProcessRequest.h b/csas/include/alibabacloud/csas/model/GetApprovalProcessRequest.h new file mode 100644 index 000000000..46f940fcb --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalProcessRequest.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_GETAPPROVALPROCESSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetApprovalProcessRequest : public RpcServiceRequest { +public: + GetApprovalProcessRequest(); + ~GetApprovalProcessRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + +private: + std::string sourceIp_; + std::string processId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALPROCESSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetApprovalProcessResult.h b/csas/include/alibabacloud/csas/model/GetApprovalProcessResult.h new file mode 100644 index 000000000..8e836f016 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalProcessResult.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_GETAPPROVALPROCESSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetApprovalProcessResult : public ServiceResult + { + public: + + + GetApprovalProcessResult(); + explicit GetApprovalProcessResult(const std::string &payload); + ~GetApprovalProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALPROCESSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetApprovalRequest.h b/csas/include/alibabacloud/csas/model/GetApprovalRequest.h new file mode 100644 index 000000000..1a24191b5 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalRequest.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_GETAPPROVALREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetApprovalRequest : public RpcServiceRequest { +public: + GetApprovalRequest(); + ~GetApprovalRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getApprovalId() const; + void setApprovalId(const std::string &approvalId); + +private: + std::string sourceIp_; + std::string approvalId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetApprovalResult.h b/csas/include/alibabacloud/csas/model/GetApprovalResult.h new file mode 100644 index 000000000..fb5c77bca --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalResult.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_GETAPPROVALRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetApprovalResult : public ServiceResult + { + public: + struct Data + { + struct ApprovalProgressesItem + { + struct OperatorsItem + { + std::string username; + std::string saseUserId; + }; + std::string status; + std::string comment; + std::vector operators; + std::string action; + std::string executor; + long timestamp; + }; + std::string status; + std::string policyType; + std::string processName; + std::vector approvalProgresses; + std::string createTime; + std::string approvalId; + long endTimestamp; + std::string creatorUsername; + std::string approvalDetail; + std::string schemaContent; + std::string reason; + std::string schemaId; + std::string processId; + std::string creatorUserId; + std::string schemaName; + std::string creatorDevTag; + std::string creatorDepartment; + }; + + + GetApprovalResult(); + explicit GetApprovalResult(const std::string &payload); + ~GetApprovalResult(); + std::vector getApproval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector approval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetApprovalSchemaRequest.h b/csas/include/alibabacloud/csas/model/GetApprovalSchemaRequest.h new file mode 100644 index 000000000..c661da259 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalSchemaRequest.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_GETAPPROVALSCHEMAREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALSCHEMAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetApprovalSchemaRequest : public RpcServiceRequest { +public: + GetApprovalSchemaRequest(); + ~GetApprovalSchemaRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getSchemaId() const; + void setSchemaId(const std::string &schemaId); + +private: + std::string sourceIp_; + std::string schemaId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALSCHEMAREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetApprovalSchemaResult.h b/csas/include/alibabacloud/csas/model/GetApprovalSchemaResult.h new file mode 100644 index 000000000..f7b53c5a4 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetApprovalSchemaResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETAPPROVALSCHEMARESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETAPPROVALSCHEMARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetApprovalSchemaResult : public ServiceResult + { + public: + struct Schema + { + bool isDefault; + std::string policyType; + std::string description; + long schemaVersion; + std::string createTime; + std::string schemaId; + std::string schemaContent; + std::string schemaName; + }; + + + GetApprovalSchemaResult(); + explicit GetApprovalSchemaResult(const std::string &payload); + ~GetApprovalSchemaResult(); + Schema getSchema()const; + + protected: + void parse(const std::string &payload); + private: + Schema schema_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETAPPROVALSCHEMARESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyRequest.h b/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyRequest.h new file mode 100644 index 000000000..4c3817607 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT GetBootAndAntiUninstallPolicyRequest : public RpcServiceRequest { +public: + GetBootAndAntiUninstallPolicyRequest(); + ~GetBootAndAntiUninstallPolicyRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyResult.h b/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyResult.h new file mode 100644 index 000000000..d31466089 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/GetBootAndAntiUninstallPolicyResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT GetBootAndAntiUninstallPolicyResult : public ServiceResult + { + public: + struct Strategy + { + struct BlockContent + { + struct BlockTextZh + { + std::string mainButtonText; + std::string content; + std::string minorButtonText; + std::string title; + }; + struct BlockTextEn + { + std::string mainButtonText; + std::string content; + std::string minorButtonText; + std::string title; + }; + BlockTextZh blockTextZh; + BlockTextEn blockTextEn; + }; + bool isAntiUninstall; + std::string reportProcessId; + std::string createTime; + std::vector userGroupIds; + BlockContent blockContent; + std::string updateTime; + bool allowReport; + bool isBoot; + std::string policyId; + std::vector whitelistUsers; + }; + + + GetBootAndAntiUninstallPolicyResult(); + explicit GetBootAndAntiUninstallPolicyResult(const std::string &payload); + ~GetBootAndAntiUninstallPolicyResult(); + Strategy getStrategy()const; + + protected: + void parse(const std::string &payload); + private: + Strategy strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_GETBOOTANDANTIUNINSTALLPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h b/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h index 83bb66178..4b5c61de5 100644 --- a/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h +++ b/csas/include/alibabacloud/csas/model/GetUserDeviceResult.h @@ -39,6 +39,11 @@ namespace AlibabaCloud std::string username; std::string saseUserId; }; + struct NetInterfaceInfoItem + { + std::string mac; + std::string name; + }; std::string appStatus; std::string dlpStatus; std::string innerIP; @@ -46,6 +51,7 @@ namespace AlibabaCloud std::string cPU; std::string appVersion; std::string department; + std::vector netInterfaceInfo; std::string disk; std::string deviceModel; std::string nacStatus; diff --git a/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasRequest.h b/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasRequest.h new file mode 100644 index 000000000..89fc9d857 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasRequest.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_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListApprovalProcessesForApprovalSchemasRequest : public RpcServiceRequest { +public: + ListApprovalProcessesForApprovalSchemasRequest(); + ~ListApprovalProcessesForApprovalSchemasRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::vector getSchemaIds() const; + void setSchemaIds(const std::vector &schemaIds); + +private: + std::string sourceIp_; + std::vector schemaIds_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasResult.h b/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasResult.h new file mode 100644 index 000000000..856ad9701 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalProcessesForApprovalSchemasResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListApprovalProcessesForApprovalSchemasResult : public ServiceResult + { + public: + struct Data + { + struct ProcessesItem + { + std::string processName; + std::string description; + std::string createTime; + std::string processId; + }; + std::string schemaId; + std::vector processes; + }; + + + ListApprovalProcessesForApprovalSchemasResult(); + explicit ListApprovalProcessesForApprovalSchemasResult(const std::string &payload); + ~ListApprovalProcessesForApprovalSchemasResult(); + std::vector getSchemas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector schemas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESFORAPPROVALSCHEMASRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListApprovalProcessesRequest.h b/csas/include/alibabacloud/csas/model/ListApprovalProcessesRequest.h new file mode 100644 index 000000000..c9deb1937 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalProcessesRequest.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_LISTAPPROVALPROCESSESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListApprovalProcessesRequest : public RpcServiceRequest { +public: + ListApprovalProcessesRequest(); + ~ListApprovalProcessesRequest(); + std::vector getProcessIds() const; + void setProcessIds(const std::vector &processIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getSaseUserId() const; + void setSaseUserId(const std::string &saseUserId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + std::vector processIds_; + std::string sourceIp_; + std::string policyId_; + std::string saseUserId_; + long pageSize_; + std::string policyType_; + std::string processName_; + long currentPage_; + std::string username_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListApprovalProcessesResult.h b/csas/include/alibabacloud/csas/model/ListApprovalProcessesResult.h new file mode 100644 index 000000000..3a7c527d4 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalProcessesResult.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_LISTAPPROVALPROCESSESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListApprovalProcessesResult : public ServiceResult + { + public: + + + ListApprovalProcessesResult(); + explicit ListApprovalProcessesResult(const std::string &payload); + ~ListApprovalProcessesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALPROCESSESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesRequest.h b/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesRequest.h new file mode 100644 index 000000000..933ec384b --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesRequest.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_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListApprovalSchemasForApprovalProcessesRequest : public RpcServiceRequest { +public: + ListApprovalSchemasForApprovalProcessesRequest(); + ~ListApprovalSchemasForApprovalProcessesRequest(); + std::vector getProcessIds() const; + void setProcessIds(const std::vector &processIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::vector processIds_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesResult.h b/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesResult.h new file mode 100644 index 000000000..83441cd29 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalSchemasForApprovalProcessesResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListApprovalSchemasForApprovalProcessesResult : public ServiceResult + { + public: + struct Data + { + struct SchemasItem + { + bool isDefault; + std::string policyType; + std::string description; + long schemaVersion; + std::string createTime; + std::string schemaId; + std::string schemaContent; + std::string schemaName; + }; + std::string processId; + std::vector schemas; + }; + + + ListApprovalSchemasForApprovalProcessesResult(); + explicit ListApprovalSchemasForApprovalProcessesResult(const std::string &payload); + ~ListApprovalSchemasForApprovalProcessesResult(); + std::vector getProcesses()const; + + protected: + void parse(const std::string &payload); + private: + std::vector processes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASFORAPPROVALPROCESSESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListApprovalSchemasRequest.h b/csas/include/alibabacloud/csas/model/ListApprovalSchemasRequest.h new file mode 100644 index 000000000..a17655615 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalSchemasRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListApprovalSchemasRequest : public RpcServiceRequest { +public: + ListApprovalSchemasRequest(); + ~ListApprovalSchemasRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::vector getSchemaIds() const; + void setSchemaIds(const std::vector &schemaIds); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + +private: + std::string sourceIp_; + std::vector schemaIds_; + long pageSize_; + std::string schemaName_; + std::string policyType_; + long currentPage_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListApprovalSchemasResult.h b/csas/include/alibabacloud/csas/model/ListApprovalSchemasResult.h new file mode 100644 index 000000000..5c8fd5c08 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalSchemasResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListApprovalSchemasResult : public ServiceResult + { + public: + struct DataList + { + bool isDefault; + std::string policyType; + std::string description; + long schemaVersion; + std::string createTime; + std::string schemaId; + std::string schemaContent; + std::string schemaName; + }; + + + ListApprovalSchemasResult(); + explicit ListApprovalSchemasResult(const std::string &payload); + ~ListApprovalSchemasResult(); + std::string getTotalNum()const; + std::vector getSchemas()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalNum_; + std::vector schemas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSCHEMASRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListApprovalsRequest.h b/csas/include/alibabacloud/csas/model/ListApprovalsRequest.h new file mode 100644 index 000000000..ee15fce33 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalsRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListApprovalsRequest : public RpcServiceRequest { +public: + ListApprovalsRequest(); + ~ListApprovalsRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getSchemaId() const; + void setSchemaId(const std::string &schemaId); + long getPageSize() const; + void setPageSize(long pageSize); + long getCreateEndTime() const; + void setCreateEndTime(long createEndTime); + std::string getOperatorUserId() const; + void setOperatorUserId(const std::string &operatorUserId); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::vector getApprovalIds() const; + void setApprovalIds(const std::vector &approvalIds); + long getCreateStartTime() const; + void setCreateStartTime(long createStartTime); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + std::string getCreatorDepartment() const; + void setCreatorDepartment(const std::string &creatorDepartment); + std::string getOperatorUsername() const; + void setOperatorUsername(const std::string &operatorUsername); + std::string getCreatorUserId() const; + void setCreatorUserId(const std::string &creatorUserId); + std::string getCreatorUsername() const; + void setCreatorUsername(const std::string &creatorUsername); + std::vector getStatuses() const; + void setStatuses(const std::vector &statuses); + std::string getCreatorDevTag() const; + void setCreatorDevTag(const std::string &creatorDevTag); + +private: + std::string sourceIp_; + std::string schemaId_; + long pageSize_; + long createEndTime_; + std::string operatorUserId_; + std::string schemaName_; + std::string policyType_; + std::string processName_; + long currentPage_; + std::vector approvalIds_; + long createStartTime_; + std::string processId_; + std::string creatorDepartment_; + std::string operatorUsername_; + std::string creatorUserId_; + std::string creatorUsername_; + std::vector statuses_; + std::string creatorDevTag_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListApprovalsResult.h b/csas/include/alibabacloud/csas/model/ListApprovalsResult.h new file mode 100644 index 000000000..e51220975 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListApprovalsResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListApprovalsResult : public ServiceResult + { + public: + struct DataList + { + struct ApprovalProgressesItem + { + struct OperatorsItem + { + std::string username; + std::string saseUserId; + }; + std::string status; + std::string comment; + std::vector operators; + std::string action; + std::string executor; + long timestamp; + }; + std::string status; + std::string policyType; + std::string processName; + std::vector approvalProgresses; + std::string createTime; + std::string approvalId; + long endTimestamp; + std::string creatorUsername; + std::string approvalDetail; + std::string schemaContent; + std::string reason; + std::string schemaId; + std::string processId; + std::string creatorUserId; + std::string schemaName; + std::string creatorDevTag; + std::string creatorDepartment; + }; + + + ListApprovalsResult(); + explicit ListApprovalsResult(const std::string &payload); + ~ListApprovalsResult(); + std::string getTotalNum()const; + std::vector getApprovals()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalNum_; + std::vector approvals_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTAPPROVALSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListUninstallApplicationsRequest.h b/csas/include/alibabacloud/csas/model/ListUninstallApplicationsRequest.h new file mode 100644 index 000000000..6dc890f71 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUninstallApplicationsRequest.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_LISTUNINSTALLAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUNINSTALLAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListUninstallApplicationsRequest : public RpcServiceRequest { +public: + ListUninstallApplicationsRequest(); + ~ListUninstallApplicationsRequest(); + 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); + 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 mac_; + std::string hostname_; + std::string sourceIp_; + 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_LISTUNINSTALLAPPLICATIONSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListUninstallApplicationsResult.h b/csas/include/alibabacloud/csas/model/ListUninstallApplicationsResult.h new file mode 100644 index 000000000..38f26e7f0 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUninstallApplicationsResult.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_LISTUNINSTALLAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUNINSTALLAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListUninstallApplicationsResult : public ServiceResult + { + public: + struct DataList + { + std::string status; + bool isUninstall; + std::string devType; + std::string createTime; + std::string hostname; + std::string devTag; + std::string saseUserId; + std::string mac; + std::string reason; + std::string department; + std::string username; + std::string idpName; + std::string applicationId; + }; + + + ListUninstallApplicationsResult(); + explicit ListUninstallApplicationsResult(const std::string &payload); + ~ListUninstallApplicationsResult(); + long getTotalNum()const; + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUNINSTALLAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListUserApplicationsRequest.h b/csas/include/alibabacloud/csas/model/ListUserApplicationsRequest.h new file mode 100644 index 000000000..85f88e2ab --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserApplicationsRequest.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_LISTUSERAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListUserApplicationsRequest : public RpcServiceRequest { +public: + ListUserApplicationsRequest(); + ~ListUserApplicationsRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getSaseUserId() const; + void setSaseUserId(const std::string &saseUserId); + std::string getName() const; + void setName(const std::string &name); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int currentPage_; + std::string saseUserId_; + std::string name_; + int pageSize_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERAPPLICATIONSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListUserApplicationsResult.h b/csas/include/alibabacloud/csas/model/ListUserApplicationsResult.h new file mode 100644 index 000000000..f1f5235c9 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserApplicationsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_LISTUSERAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListUserApplicationsResult : public ServiceResult + { + public: + struct ApplicationsItem + { + struct PortRangesItem + { + std::string begin; + std::string end; + }; + std::vector addresses; + std::string action; + std::vector portRanges; + std::string applicationId; + std::string protocol; + std::string name; + }; + + + ListUserApplicationsResult(); + explicit ListUserApplicationsResult(const std::string &payload); + ~ListUserApplicationsResult(); + int getTotalNum()const; + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + int totalNum_; + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h b/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h index 9df65770a..1057977aa 100644 --- a/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h +++ b/csas/include/alibabacloud/csas/model/ListUserDevicesResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct DataList { + struct NetInterfaceInfoItem + { + std::string mac; + std::string name; + }; std::string appStatus; std::string dlpStatus; std::string innerIP; @@ -41,6 +46,7 @@ namespace AlibabaCloud std::string cPU; std::string appVersion; std::string department; + std::vector netInterfaceInfo; std::string disk; std::string deviceModel; std::string nacStatus; diff --git a/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesRequest.h b/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesRequest.h new file mode 100644 index 000000000..574de4ade --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesRequest.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_LISTUSERPRIVATEACCESSPOLICIESREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERPRIVATEACCESSPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT ListUserPrivateAccessPoliciesRequest : public RpcServiceRequest { +public: + ListUserPrivateAccessPoliciesRequest(); + ~ListUserPrivateAccessPoliciesRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getSaseUserId() const; + void setSaseUserId(const std::string &saseUserId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getName() const; + void setName(const std::string &name); + +private: + int currentPage_; + std::string saseUserId_; + int pageSize_; + std::string name_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERPRIVATEACCESSPOLICIESREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesResult.h b/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesResult.h new file mode 100644 index 000000000..df2fe8d02 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/ListUserPrivateAccessPoliciesResult.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_LISTUSERPRIVATEACCESSPOLICIESRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_LISTUSERPRIVATEACCESSPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT ListUserPrivateAccessPoliciesResult : public ServiceResult + { + public: + struct Policies + { + struct CustomUserAttributesItem + { + std::string relation; + int idpId; + std::string userGroupType; + std::string value; + }; + std::vector customUserAttributes; + std::string userGroupMode; + long priority; + std::string deviceAttributeName; + std::string policyAction; + std::string policyId; + std::string name; + std::string matchedUserGroup; + }; + + + ListUserPrivateAccessPoliciesResult(); + explicit ListUserPrivateAccessPoliciesResult(const std::string &payload); + ~ListUserPrivateAccessPoliciesResult(); + int getTotalNum()const; + std::vector getPolices()const; + + protected: + void parse(const std::string &payload); + private: + int totalNum_; + std::vector polices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_LISTUSERPRIVATEACCESSPOLICIESRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateApprovalProcessRequest.h b/csas/include/alibabacloud/csas/model/UpdateApprovalProcessRequest.h new file mode 100644 index 000000000..6853cb70d --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateApprovalProcessRequest.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_UPDATEAPPROVALPROCESSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateApprovalProcessRequest : public RpcServiceRequest { +public: + struct MatchSchemas { + std::string domainBlacklistSchemaId; + std::string softwareBlockSchemaId; + std::string peripheralBlockSchemaId; + std::string deviceRegistrationSchemaId; + std::string dlpSendSchemaId; + std::string domainWhitelistSchemaId; + std::string appUninstallSchemaId; + }; + UpdateApprovalProcessRequest(); + ~UpdateApprovalProcessRequest(); + std::vector> getProcessNodes() const; + void setProcessNodes(const std::vector> &processNodes); + MatchSchemas getMatchSchemas() const; + void setMatchSchemas(const MatchSchemas &matchSchemas); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + +private: + std::vector> processNodes_; + MatchSchemas matchSchemas_; + std::string description_; + std::string sourceIp_; + std::string processName_; + std::string processId_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALPROCESSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateApprovalProcessResult.h b/csas/include/alibabacloud/csas/model/UpdateApprovalProcessResult.h new file mode 100644 index 000000000..23f14cdbf --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateApprovalProcessResult.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_UPDATEAPPROVALPROCESSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateApprovalProcessResult : public ServiceResult + { + public: + + + UpdateApprovalProcessResult(); + explicit UpdateApprovalProcessResult(const std::string &payload); + ~UpdateApprovalProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALPROCESSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateApprovalStatusRequest.h b/csas/include/alibabacloud/csas/model/UpdateApprovalStatusRequest.h new file mode 100644 index 000000000..b995d8b54 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateApprovalStatusRequest.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_UPDATEAPPROVALSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateApprovalStatusRequest : public RpcServiceRequest { +public: + UpdateApprovalStatusRequest(); + ~UpdateApprovalStatusRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getApprovalId() const; + void setApprovalId(const std::string &approvalId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string sourceIp_; + std::string approvalId_; + std::string status_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALSTATUSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateApprovalStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateApprovalStatusResult.h new file mode 100644 index 000000000..b29fab640 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateApprovalStatusResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALSTATUSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateApprovalStatusResult : public ServiceResult + { + public: + struct Data + { + struct ApprovalProgressesItem + { + struct OperatorsItem + { + std::string username; + std::string saseUserId; + }; + std::string status; + std::string comment; + std::vector operators; + std::string action; + std::string executor; + long timestamp; + }; + std::string status; + std::string policyType; + std::string processName; + std::vector approvalProgresses; + std::string createTime; + std::string approvalId; + long endTimestamp; + std::string approvalDetail; + std::string schemaContent; + std::string reason; + std::string schemaId; + std::string processId; + std::string creatorUserId; + std::string schemaName; + std::string creatorDevTag; + }; + + + UpdateApprovalStatusResult(); + explicit UpdateApprovalStatusResult(const std::string &payload); + ~UpdateApprovalStatusResult(); + std::vector getApproval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector approval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEAPPROVALSTATUSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyRequest.h b/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyRequest.h new file mode 100644 index 000000000..6c43278df --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyRequest.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_UPDATEBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateBootAndAntiUninstallPolicyRequest : public RpcServiceRequest { +public: + struct BlockContent { + struct BlockTextZh { + std::string minorButtonText; + std::string mainButtonText; + std::string title; + std::string content; + }; + BlockTextZh blockTextZh; + struct BlockTextEn { + std::string minorButtonText; + std::string mainButtonText; + std::string title; + std::string content; + }; + BlockTextEn blockTextEn; + }; + UpdateBootAndAntiUninstallPolicyRequest(); + ~UpdateBootAndAntiUninstallPolicyRequest(); + bool getIsAntiUninstall() const; + void setIsAntiUninstall(bool isAntiUninstall); + bool getAllowReport() const; + void setAllowReport(bool allowReport); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::vector getUserGroupIds() const; + void setUserGroupIds(const std::vector &userGroupIds); + std::vector getWhitelistUsers() const; + void setWhitelistUsers(const std::vector &whitelistUsers); + BlockContent getBlockContent() const; + void setBlockContent(const BlockContent &blockContent); + bool getIsBoot() const; + void setIsBoot(bool isBoot); + +private: + bool isAntiUninstall_; + bool allowReport_; + std::string sourceIp_; + std::vector userGroupIds_; + std::vector whitelistUsers_; + BlockContent blockContent_; + bool isBoot_; +}; +} // namespace Model +} // namespace Csas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEBOOTANDANTIUNINSTALLPOLICYREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyResult.h b/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyResult.h new file mode 100644 index 000000000..e7f6df626 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateBootAndAntiUninstallPolicyResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEBOOTANDANTIUNINSTALLPOLICYRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEBOOTANDANTIUNINSTALLPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateBootAndAntiUninstallPolicyResult : public ServiceResult + { + public: + struct Strategy + { + struct BlockContent + { + struct BlockTextZh + { + std::string mainButtonText; + std::string content; + std::string minorButtonText; + std::string title; + }; + struct BlockTextEn + { + std::string mainButtonText; + std::string content; + std::string minorButtonText; + std::string title; + }; + BlockTextZh blockTextZh; + BlockTextEn blockTextEn; + }; + bool isAntiUninstall; + std::string reportProcessId; + std::string createTime; + std::vector userGroupIds; + BlockContent blockContent; + std::string updateTime; + bool allowReport; + bool isBoot; + std::string policyId; + std::vector whitelistUsers; + }; + + + UpdateBootAndAntiUninstallPolicyResult(); + explicit UpdateBootAndAntiUninstallPolicyResult(const std::string &payload); + ~UpdateBootAndAntiUninstallPolicyResult(); + Strategy getStrategy()const; + + protected: + void parse(const std::string &payload); + private: + Strategy strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEBOOTANDANTIUNINSTALLPOLICYRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusRequest.h b/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusRequest.h new file mode 100644 index 000000000..fd8e23888 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusRequest.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_UPDATEUNINSTALLAPPLICATIONSSTATUSREQUEST_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUNINSTALLAPPLICATIONSSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Csas { +namespace Model { +class ALIBABACLOUD_CSAS_EXPORT UpdateUninstallApplicationsStatusRequest : public RpcServiceRequest { +public: + UpdateUninstallApplicationsStatusRequest(); + ~UpdateUninstallApplicationsStatusRequest(); + 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_UPDATEUNINSTALLAPPLICATIONSSTATUSREQUEST_H_ diff --git a/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusResult.h new file mode 100644 index 000000000..83538eb39 --- /dev/null +++ b/csas/include/alibabacloud/csas/model/UpdateUninstallApplicationsStatusResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CSAS_MODEL_UPDATEUNINSTALLAPPLICATIONSSTATUSRESULT_H_ +#define ALIBABACLOUD_CSAS_MODEL_UPDATEUNINSTALLAPPLICATIONSSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Csas + { + namespace Model + { + class ALIBABACLOUD_CSAS_EXPORT UpdateUninstallApplicationsStatusResult : public ServiceResult + { + public: + struct Data + { + std::string status; + bool isUninstall; + std::string devType; + std::string createTime; + std::string hostname; + std::string devTag; + std::string saseUserId; + std::string mac; + std::string reason; + std::string department; + std::string username; + std::string idpName; + std::string applicationId; + }; + + + UpdateUninstallApplicationsStatusResult(); + explicit UpdateUninstallApplicationsStatusResult(const std::string &payload); + ~UpdateUninstallApplicationsStatusResult(); + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSAS_MODEL_UPDATEUNINSTALLAPPLICATIONSSTATUSRESULT_H_ \ No newline at end of file diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h index 3efdfa2b4..c68e8eab8 100644 --- a/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesSharingStatusResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct Data { + struct NetInterfaceInfoItem + { + std::string mac; + std::string name; + }; std::string appStatus; std::string dlpStatus; std::string innerIP; @@ -41,6 +46,7 @@ namespace AlibabaCloud std::string cPU; std::string appVersion; std::string department; + std::vector netInterfaceInfo; std::string disk; std::string deviceModel; std::string nacStatus; diff --git a/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h index 841c0e5cc..74b055717 100644 --- a/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h +++ b/csas/include/alibabacloud/csas/model/UpdateUserDevicesStatusResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct Data { + struct NetInterfaceInfoItem + { + std::string mac; + std::string name; + }; std::string appStatus; std::string dlpStatus; std::string innerIP; @@ -41,6 +46,7 @@ namespace AlibabaCloud std::string cPU; std::string appVersion; std::string department; + std::vector netInterfaceInfo; std::string disk; std::string deviceModel; std::string nacStatus; diff --git a/csas/src/CsasClient.cc b/csas/src/CsasClient.cc index 60cfa441c..126fafaf9 100644 --- a/csas/src/CsasClient.cc +++ b/csas/src/CsasClient.cc @@ -87,6 +87,78 @@ CsasClient::AttachApplication2ConnectorOutcomeCallable CsasClient::attachApplica return task->get_future(); } +CsasClient::AttachPolicy2ApprovalProcessOutcome CsasClient::attachPolicy2ApprovalProcess(const AttachPolicy2ApprovalProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicy2ApprovalProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicy2ApprovalProcessOutcome(AttachPolicy2ApprovalProcessResult(outcome.result())); + else + return AttachPolicy2ApprovalProcessOutcome(outcome.error()); +} + +void CsasClient::attachPolicy2ApprovalProcessAsync(const AttachPolicy2ApprovalProcessRequest& request, const AttachPolicy2ApprovalProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicy2ApprovalProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::AttachPolicy2ApprovalProcessOutcomeCallable CsasClient::attachPolicy2ApprovalProcessCallable(const AttachPolicy2ApprovalProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicy2ApprovalProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::CreateApprovalProcessOutcome CsasClient::createApprovalProcess(const CreateApprovalProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApprovalProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApprovalProcessOutcome(CreateApprovalProcessResult(outcome.result())); + else + return CreateApprovalProcessOutcome(outcome.error()); +} + +void CsasClient::createApprovalProcessAsync(const CreateApprovalProcessRequest& request, const CreateApprovalProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApprovalProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::CreateApprovalProcessOutcomeCallable CsasClient::createApprovalProcessCallable(const CreateApprovalProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApprovalProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::CreateClientUserOutcome CsasClient::createClientUser(const CreateClientUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +591,42 @@ CsasClient::CreateWmInfoMappingOutcomeCallable CsasClient::createWmInfoMappingCa return task->get_future(); } +CsasClient::DeleteApprovalProcessesOutcome CsasClient::deleteApprovalProcesses(const DeleteApprovalProcessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApprovalProcessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApprovalProcessesOutcome(DeleteApprovalProcessesResult(outcome.result())); + else + return DeleteApprovalProcessesOutcome(outcome.error()); +} + +void CsasClient::deleteApprovalProcessesAsync(const DeleteApprovalProcessesRequest& request, const DeleteApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApprovalProcesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::DeleteApprovalProcessesOutcomeCallable CsasClient::deleteApprovalProcessesCallable(const DeleteApprovalProcessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApprovalProcesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::DeleteClientUserOutcome CsasClient::deleteClientUser(const DeleteClientUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +987,42 @@ CsasClient::DetachApplication2ConnectorOutcomeCallable CsasClient::detachApplica return task->get_future(); } +CsasClient::DetachPolicy2ApprovalProcessOutcome CsasClient::detachPolicy2ApprovalProcess(const DetachPolicy2ApprovalProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachPolicy2ApprovalProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachPolicy2ApprovalProcessOutcome(DetachPolicy2ApprovalProcessResult(outcome.result())); + else + return DetachPolicy2ApprovalProcessOutcome(outcome.error()); +} + +void CsasClient::detachPolicy2ApprovalProcessAsync(const DetachPolicy2ApprovalProcessRequest& request, const DetachPolicy2ApprovalProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachPolicy2ApprovalProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::DetachPolicy2ApprovalProcessOutcomeCallable CsasClient::detachPolicy2ApprovalProcessCallable(const DetachPolicy2ApprovalProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachPolicy2ApprovalProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ExportUserDevicesOutcome CsasClient::exportUserDevices(const ExportUserDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1095,150 @@ CsasClient::GetActiveIdpConfigOutcomeCallable CsasClient::getActiveIdpConfigCall return task->get_future(); } +CsasClient::GetApprovalOutcome CsasClient::getApproval(const GetApprovalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApprovalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApprovalOutcome(GetApprovalResult(outcome.result())); + else + return GetApprovalOutcome(outcome.error()); +} + +void CsasClient::getApprovalAsync(const GetApprovalRequest& request, const GetApprovalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApproval(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetApprovalOutcomeCallable CsasClient::getApprovalCallable(const GetApprovalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApproval(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::GetApprovalProcessOutcome CsasClient::getApprovalProcess(const GetApprovalProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApprovalProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApprovalProcessOutcome(GetApprovalProcessResult(outcome.result())); + else + return GetApprovalProcessOutcome(outcome.error()); +} + +void CsasClient::getApprovalProcessAsync(const GetApprovalProcessRequest& request, const GetApprovalProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApprovalProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetApprovalProcessOutcomeCallable CsasClient::getApprovalProcessCallable(const GetApprovalProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApprovalProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::GetApprovalSchemaOutcome CsasClient::getApprovalSchema(const GetApprovalSchemaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApprovalSchemaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApprovalSchemaOutcome(GetApprovalSchemaResult(outcome.result())); + else + return GetApprovalSchemaOutcome(outcome.error()); +} + +void CsasClient::getApprovalSchemaAsync(const GetApprovalSchemaRequest& request, const GetApprovalSchemaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApprovalSchema(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetApprovalSchemaOutcomeCallable CsasClient::getApprovalSchemaCallable(const GetApprovalSchemaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApprovalSchema(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::GetBootAndAntiUninstallPolicyOutcome CsasClient::getBootAndAntiUninstallPolicy(const GetBootAndAntiUninstallPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBootAndAntiUninstallPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBootAndAntiUninstallPolicyOutcome(GetBootAndAntiUninstallPolicyResult(outcome.result())); + else + return GetBootAndAntiUninstallPolicyOutcome(outcome.error()); +} + +void CsasClient::getBootAndAntiUninstallPolicyAsync(const GetBootAndAntiUninstallPolicyRequest& request, const GetBootAndAntiUninstallPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBootAndAntiUninstallPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::GetBootAndAntiUninstallPolicyOutcomeCallable CsasClient::getBootAndAntiUninstallPolicyCallable(const GetBootAndAntiUninstallPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBootAndAntiUninstallPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::GetClientUserOutcome CsasClient::getClientUser(const GetClientUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1671,186 @@ CsasClient::ListApplicationsForPrivateAccessTagOutcomeCallable CsasClient::listA return task->get_future(); } +CsasClient::ListApprovalProcessesOutcome CsasClient::listApprovalProcesses(const ListApprovalProcessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApprovalProcessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApprovalProcessesOutcome(ListApprovalProcessesResult(outcome.result())); + else + return ListApprovalProcessesOutcome(outcome.error()); +} + +void CsasClient::listApprovalProcessesAsync(const ListApprovalProcessesRequest& request, const ListApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApprovalProcesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListApprovalProcessesOutcomeCallable CsasClient::listApprovalProcessesCallable(const ListApprovalProcessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApprovalProcesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListApprovalProcessesForApprovalSchemasOutcome CsasClient::listApprovalProcessesForApprovalSchemas(const ListApprovalProcessesForApprovalSchemasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApprovalProcessesForApprovalSchemasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApprovalProcessesForApprovalSchemasOutcome(ListApprovalProcessesForApprovalSchemasResult(outcome.result())); + else + return ListApprovalProcessesForApprovalSchemasOutcome(outcome.error()); +} + +void CsasClient::listApprovalProcessesForApprovalSchemasAsync(const ListApprovalProcessesForApprovalSchemasRequest& request, const ListApprovalProcessesForApprovalSchemasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApprovalProcessesForApprovalSchemas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListApprovalProcessesForApprovalSchemasOutcomeCallable CsasClient::listApprovalProcessesForApprovalSchemasCallable(const ListApprovalProcessesForApprovalSchemasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApprovalProcessesForApprovalSchemas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListApprovalSchemasOutcome CsasClient::listApprovalSchemas(const ListApprovalSchemasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApprovalSchemasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApprovalSchemasOutcome(ListApprovalSchemasResult(outcome.result())); + else + return ListApprovalSchemasOutcome(outcome.error()); +} + +void CsasClient::listApprovalSchemasAsync(const ListApprovalSchemasRequest& request, const ListApprovalSchemasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApprovalSchemas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListApprovalSchemasOutcomeCallable CsasClient::listApprovalSchemasCallable(const ListApprovalSchemasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApprovalSchemas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListApprovalSchemasForApprovalProcessesOutcome CsasClient::listApprovalSchemasForApprovalProcesses(const ListApprovalSchemasForApprovalProcessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApprovalSchemasForApprovalProcessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApprovalSchemasForApprovalProcessesOutcome(ListApprovalSchemasForApprovalProcessesResult(outcome.result())); + else + return ListApprovalSchemasForApprovalProcessesOutcome(outcome.error()); +} + +void CsasClient::listApprovalSchemasForApprovalProcessesAsync(const ListApprovalSchemasForApprovalProcessesRequest& request, const ListApprovalSchemasForApprovalProcessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApprovalSchemasForApprovalProcesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListApprovalSchemasForApprovalProcessesOutcomeCallable CsasClient::listApprovalSchemasForApprovalProcessesCallable(const ListApprovalSchemasForApprovalProcessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApprovalSchemasForApprovalProcesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListApprovalsOutcome CsasClient::listApprovals(const ListApprovalsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApprovalsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApprovalsOutcome(ListApprovalsResult(outcome.result())); + else + return ListApprovalsOutcome(outcome.error()); +} + +void CsasClient::listApprovalsAsync(const ListApprovalsRequest& request, const ListApprovalsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApprovals(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListApprovalsOutcomeCallable CsasClient::listApprovalsCallable(const ListApprovalsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApprovals(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListClientUsersOutcome CsasClient::listClientUsers(const ListClientUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2643,78 @@ CsasClient::ListTagsForPrivateAccessPolicyOutcomeCallable CsasClient::listTagsFo return task->get_future(); } +CsasClient::ListUninstallApplicationsOutcome CsasClient::listUninstallApplications(const ListUninstallApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUninstallApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUninstallApplicationsOutcome(ListUninstallApplicationsResult(outcome.result())); + else + return ListUninstallApplicationsOutcome(outcome.error()); +} + +void CsasClient::listUninstallApplicationsAsync(const ListUninstallApplicationsRequest& request, const ListUninstallApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUninstallApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListUninstallApplicationsOutcomeCallable CsasClient::listUninstallApplicationsCallable(const ListUninstallApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUninstallApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::ListUserApplicationsOutcome CsasClient::listUserApplications(const ListUserApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserApplicationsOutcome(ListUserApplicationsResult(outcome.result())); + else + return ListUserApplicationsOutcome(outcome.error()); +} + +void CsasClient::listUserApplicationsAsync(const ListUserApplicationsRequest& request, const ListUserApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListUserApplicationsOutcomeCallable CsasClient::listUserApplicationsCallable(const ListUserApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListUserDevicesOutcome CsasClient::listUserDevices(const ListUserDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,6 +2859,42 @@ CsasClient::ListUserGroupsForRegistrationPolicyOutcomeCallable CsasClient::listU return task->get_future(); } +CsasClient::ListUserPrivateAccessPoliciesOutcome CsasClient::listUserPrivateAccessPolicies(const ListUserPrivateAccessPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserPrivateAccessPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserPrivateAccessPoliciesOutcome(ListUserPrivateAccessPoliciesResult(outcome.result())); + else + return ListUserPrivateAccessPoliciesOutcome(outcome.error()); +} + +void CsasClient::listUserPrivateAccessPoliciesAsync(const ListUserPrivateAccessPoliciesRequest& request, const ListUserPrivateAccessPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserPrivateAccessPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::ListUserPrivateAccessPoliciesOutcomeCallable CsasClient::listUserPrivateAccessPoliciesCallable(const ListUserPrivateAccessPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserPrivateAccessPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::ListUsersOutcome CsasClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +3003,114 @@ CsasClient::RevokeUserSessionOutcomeCallable CsasClient::revokeUserSessionCallab return task->get_future(); } +CsasClient::UpdateApprovalProcessOutcome CsasClient::updateApprovalProcess(const UpdateApprovalProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApprovalProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApprovalProcessOutcome(UpdateApprovalProcessResult(outcome.result())); + else + return UpdateApprovalProcessOutcome(outcome.error()); +} + +void CsasClient::updateApprovalProcessAsync(const UpdateApprovalProcessRequest& request, const UpdateApprovalProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApprovalProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateApprovalProcessOutcomeCallable CsasClient::updateApprovalProcessCallable(const UpdateApprovalProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApprovalProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::UpdateApprovalStatusOutcome CsasClient::updateApprovalStatus(const UpdateApprovalStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApprovalStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApprovalStatusOutcome(UpdateApprovalStatusResult(outcome.result())); + else + return UpdateApprovalStatusOutcome(outcome.error()); +} + +void CsasClient::updateApprovalStatusAsync(const UpdateApprovalStatusRequest& request, const UpdateApprovalStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApprovalStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateApprovalStatusOutcomeCallable CsasClient::updateApprovalStatusCallable(const UpdateApprovalStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApprovalStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CsasClient::UpdateBootAndAntiUninstallPolicyOutcome CsasClient::updateBootAndAntiUninstallPolicy(const UpdateBootAndAntiUninstallPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBootAndAntiUninstallPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBootAndAntiUninstallPolicyOutcome(UpdateBootAndAntiUninstallPolicyResult(outcome.result())); + else + return UpdateBootAndAntiUninstallPolicyOutcome(outcome.error()); +} + +void CsasClient::updateBootAndAntiUninstallPolicyAsync(const UpdateBootAndAntiUninstallPolicyRequest& request, const UpdateBootAndAntiUninstallPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBootAndAntiUninstallPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateBootAndAntiUninstallPolicyOutcomeCallable CsasClient::updateBootAndAntiUninstallPolicyCallable(const UpdateBootAndAntiUninstallPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBootAndAntiUninstallPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::UpdateClientUserOutcome CsasClient::updateClientUser(const UpdateClientUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +3471,42 @@ CsasClient::UpdateRegistrationPolicyOutcomeCallable CsasClient::updateRegistrati return task->get_future(); } +CsasClient::UpdateUninstallApplicationsStatusOutcome CsasClient::updateUninstallApplicationsStatus(const UpdateUninstallApplicationsStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUninstallApplicationsStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUninstallApplicationsStatusOutcome(UpdateUninstallApplicationsStatusResult(outcome.result())); + else + return UpdateUninstallApplicationsStatusOutcome(outcome.error()); +} + +void CsasClient::updateUninstallApplicationsStatusAsync(const UpdateUninstallApplicationsStatusRequest& request, const UpdateUninstallApplicationsStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUninstallApplicationsStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CsasClient::UpdateUninstallApplicationsStatusOutcomeCallable CsasClient::updateUninstallApplicationsStatusCallable(const UpdateUninstallApplicationsStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUninstallApplicationsStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CsasClient::UpdateUserDevicesSharingStatusOutcome CsasClient::updateUserDevicesSharingStatus(const UpdateUserDevicesSharingStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/csas/src/model/AttachPolicy2ApprovalProcessRequest.cc b/csas/src/model/AttachPolicy2ApprovalProcessRequest.cc new file mode 100644 index 000000000..0c3d56f22 --- /dev/null +++ b/csas/src/model/AttachPolicy2ApprovalProcessRequest.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::AttachPolicy2ApprovalProcessRequest; + +AttachPolicy2ApprovalProcessRequest::AttachPolicy2ApprovalProcessRequest() + : RpcServiceRequest("csas", "2023-01-20", "AttachPolicy2ApprovalProcess") { + setMethod(HttpRequest::Method::Post); +} + +AttachPolicy2ApprovalProcessRequest::~AttachPolicy2ApprovalProcessRequest() {} + +std::string AttachPolicy2ApprovalProcessRequest::getPolicyType() const { + return policyType_; +} + +void AttachPolicy2ApprovalProcessRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setBodyParameter(std::string("PolicyType"), policyType); +} + +std::string AttachPolicy2ApprovalProcessRequest::getSourceIp() const { + return sourceIp_; +} + +void AttachPolicy2ApprovalProcessRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string AttachPolicy2ApprovalProcessRequest::getPolicyId() const { + return policyId_; +} + +void AttachPolicy2ApprovalProcessRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setBodyParameter(std::string("PolicyId"), policyId); +} + +std::string AttachPolicy2ApprovalProcessRequest::getProcessId() const { + return processId_; +} + +void AttachPolicy2ApprovalProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setBodyParameter(std::string("ProcessId"), processId); +} + diff --git a/csas/src/model/AttachPolicy2ApprovalProcessResult.cc b/csas/src/model/AttachPolicy2ApprovalProcessResult.cc new file mode 100644 index 000000000..38bad5794 --- /dev/null +++ b/csas/src/model/AttachPolicy2ApprovalProcessResult.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; + +AttachPolicy2ApprovalProcessResult::AttachPolicy2ApprovalProcessResult() : + ServiceResult() +{} + +AttachPolicy2ApprovalProcessResult::AttachPolicy2ApprovalProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachPolicy2ApprovalProcessResult::~AttachPolicy2ApprovalProcessResult() +{} + +void AttachPolicy2ApprovalProcessResult::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/CreateApprovalProcessRequest.cc b/csas/src/model/CreateApprovalProcessRequest.cc new file mode 100644 index 000000000..6c99b0d0c --- /dev/null +++ b/csas/src/model/CreateApprovalProcessRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::CreateApprovalProcessRequest; + +CreateApprovalProcessRequest::CreateApprovalProcessRequest() + : RpcServiceRequest("csas", "2023-01-20", "CreateApprovalProcess") { + setMethod(HttpRequest::Method::Post); +} + +CreateApprovalProcessRequest::~CreateApprovalProcessRequest() {} + +std::vector> CreateApprovalProcessRequest::getProcessNodes() const { + return processNodes_; +} + +void CreateApprovalProcessRequest::setProcessNodes(const std::vector> &processNodes) { + processNodes_ = processNodes; + for(int dep1 = 0; dep1 != processNodes.size(); dep1++) { + for(int dep2 = 0; dep2 != processNodes[dep1].size(); dep2++) { + setBodyParameter(std::string("ProcessNodes") + "." + std::to_string(dep1 + 1) + "." + std::to_string(dep2 + 1), processNodes[dep1][dep2]); + } + } +} + +CreateApprovalProcessRequest::MatchSchemas CreateApprovalProcessRequest::getMatchSchemas() const { + return matchSchemas_; +} + +void CreateApprovalProcessRequest::setMatchSchemas(const CreateApprovalProcessRequest::MatchSchemas &matchSchemas) { + matchSchemas_ = matchSchemas; + setBodyParameter(std::string("MatchSchemas") + ".DomainBlacklistSchemaId", matchSchemas.domainBlacklistSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".SoftwareBlockSchemaId", matchSchemas.softwareBlockSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".PeripheralBlockSchemaId", matchSchemas.peripheralBlockSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DeviceRegistrationSchemaId", matchSchemas.deviceRegistrationSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DlpSendSchemaId", matchSchemas.dlpSendSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DomainWhitelistSchemaId", matchSchemas.domainWhitelistSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".AppUninstallSchemaId", matchSchemas.appUninstallSchemaId); +} + +std::string CreateApprovalProcessRequest::getProcessName() const { + return processName_; +} + +void CreateApprovalProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setBodyParameter(std::string("ProcessName"), processName); +} + +std::string CreateApprovalProcessRequest::getDescription() const { + return description_; +} + +void CreateApprovalProcessRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateApprovalProcessRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateApprovalProcessRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/CreateApprovalProcessResult.cc b/csas/src/model/CreateApprovalProcessResult.cc new file mode 100644 index 000000000..48ce06f26 --- /dev/null +++ b/csas/src/model/CreateApprovalProcessResult.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; + +CreateApprovalProcessResult::CreateApprovalProcessResult() : + ServiceResult() +{} + +CreateApprovalProcessResult::CreateApprovalProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApprovalProcessResult::~CreateApprovalProcessResult() +{} + +void CreateApprovalProcessResult::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/DeleteApprovalProcessesRequest.cc b/csas/src/model/DeleteApprovalProcessesRequest.cc new file mode 100644 index 000000000..c6d2a97cf --- /dev/null +++ b/csas/src/model/DeleteApprovalProcessesRequest.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::DeleteApprovalProcessesRequest; + +DeleteApprovalProcessesRequest::DeleteApprovalProcessesRequest() + : RpcServiceRequest("csas", "2023-01-20", "DeleteApprovalProcesses") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApprovalProcessesRequest::~DeleteApprovalProcessesRequest() {} + +std::vector DeleteApprovalProcessesRequest::getProcessIds() const { + return processIds_; +} + +void DeleteApprovalProcessesRequest::setProcessIds(const std::vector &processIds) { + processIds_ = processIds; + for(int dep1 = 0; dep1 != processIds.size(); dep1++) { + setBodyParameter(std::string("ProcessIds") + "." + std::to_string(dep1 + 1), processIds[dep1]); + } +} + +std::string DeleteApprovalProcessesRequest::getSourceIp() const { + return sourceIp_; +} + +void DeleteApprovalProcessesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/DeleteApprovalProcessesResult.cc b/csas/src/model/DeleteApprovalProcessesResult.cc new file mode 100644 index 000000000..bcdc1a427 --- /dev/null +++ b/csas/src/model/DeleteApprovalProcessesResult.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; + +DeleteApprovalProcessesResult::DeleteApprovalProcessesResult() : + ServiceResult() +{} + +DeleteApprovalProcessesResult::DeleteApprovalProcessesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApprovalProcessesResult::~DeleteApprovalProcessesResult() +{} + +void DeleteApprovalProcessesResult::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/DetachPolicy2ApprovalProcessRequest.cc b/csas/src/model/DetachPolicy2ApprovalProcessRequest.cc new file mode 100644 index 000000000..70b304617 --- /dev/null +++ b/csas/src/model/DetachPolicy2ApprovalProcessRequest.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::DetachPolicy2ApprovalProcessRequest; + +DetachPolicy2ApprovalProcessRequest::DetachPolicy2ApprovalProcessRequest() + : RpcServiceRequest("csas", "2023-01-20", "DetachPolicy2ApprovalProcess") { + setMethod(HttpRequest::Method::Post); +} + +DetachPolicy2ApprovalProcessRequest::~DetachPolicy2ApprovalProcessRequest() {} + +std::string DetachPolicy2ApprovalProcessRequest::getPolicyType() const { + return policyType_; +} + +void DetachPolicy2ApprovalProcessRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setBodyParameter(std::string("PolicyType"), policyType); +} + +std::string DetachPolicy2ApprovalProcessRequest::getSourceIp() const { + return sourceIp_; +} + +void DetachPolicy2ApprovalProcessRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DetachPolicy2ApprovalProcessRequest::getPolicyId() const { + return policyId_; +} + +void DetachPolicy2ApprovalProcessRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setBodyParameter(std::string("PolicyId"), policyId); +} + +std::string DetachPolicy2ApprovalProcessRequest::getProcessId() const { + return processId_; +} + +void DetachPolicy2ApprovalProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setBodyParameter(std::string("ProcessId"), processId); +} + diff --git a/csas/src/model/DetachPolicy2ApprovalProcessResult.cc b/csas/src/model/DetachPolicy2ApprovalProcessResult.cc new file mode 100644 index 000000000..aac41ed06 --- /dev/null +++ b/csas/src/model/DetachPolicy2ApprovalProcessResult.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; + +DetachPolicy2ApprovalProcessResult::DetachPolicy2ApprovalProcessResult() : + ServiceResult() +{} + +DetachPolicy2ApprovalProcessResult::DetachPolicy2ApprovalProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachPolicy2ApprovalProcessResult::~DetachPolicy2ApprovalProcessResult() +{} + +void DetachPolicy2ApprovalProcessResult::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/GetApprovalProcessRequest.cc b/csas/src/model/GetApprovalProcessRequest.cc new file mode 100644 index 000000000..931837497 --- /dev/null +++ b/csas/src/model/GetApprovalProcessRequest.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::GetApprovalProcessRequest; + +GetApprovalProcessRequest::GetApprovalProcessRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetApprovalProcess") { + setMethod(HttpRequest::Method::Get); +} + +GetApprovalProcessRequest::~GetApprovalProcessRequest() {} + +std::string GetApprovalProcessRequest::getSourceIp() const { + return sourceIp_; +} + +void GetApprovalProcessRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetApprovalProcessRequest::getProcessId() const { + return processId_; +} + +void GetApprovalProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); +} + diff --git a/csas/src/model/GetApprovalProcessResult.cc b/csas/src/model/GetApprovalProcessResult.cc new file mode 100644 index 000000000..01f4c93a2 --- /dev/null +++ b/csas/src/model/GetApprovalProcessResult.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; + +GetApprovalProcessResult::GetApprovalProcessResult() : + ServiceResult() +{} + +GetApprovalProcessResult::GetApprovalProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApprovalProcessResult::~GetApprovalProcessResult() +{} + +void GetApprovalProcessResult::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/GetApprovalRequest.cc b/csas/src/model/GetApprovalRequest.cc new file mode 100644 index 000000000..21f18913e --- /dev/null +++ b/csas/src/model/GetApprovalRequest.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::GetApprovalRequest; + +GetApprovalRequest::GetApprovalRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetApproval") { + setMethod(HttpRequest::Method::Get); +} + +GetApprovalRequest::~GetApprovalRequest() {} + +std::string GetApprovalRequest::getSourceIp() const { + return sourceIp_; +} + +void GetApprovalRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetApprovalRequest::getApprovalId() const { + return approvalId_; +} + +void GetApprovalRequest::setApprovalId(const std::string &approvalId) { + approvalId_ = approvalId; + setParameter(std::string("ApprovalId"), approvalId); +} + diff --git a/csas/src/model/GetApprovalResult.cc b/csas/src/model/GetApprovalResult.cc new file mode 100644 index 000000000..fbfe4e532 --- /dev/null +++ b/csas/src/model/GetApprovalResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +GetApprovalResult::GetApprovalResult() : + ServiceResult() +{} + +GetApprovalResult::GetApprovalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApprovalResult::~GetApprovalResult() +{} + +void GetApprovalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApprovalNode = value["Approval"]["data"]; + for (auto valueApprovaldata : allApprovalNode) + { + Data approvalObject; + if(!valueApprovaldata["ApprovalId"].isNull()) + approvalObject.approvalId = valueApprovaldata["ApprovalId"].asString(); + if(!valueApprovaldata["EndTimestamp"].isNull()) + approvalObject.endTimestamp = std::stol(valueApprovaldata["EndTimestamp"].asString()); + if(!valueApprovaldata["ApprovalDetail"].isNull()) + approvalObject.approvalDetail = valueApprovaldata["ApprovalDetail"].asString(); + if(!valueApprovaldata["Status"].isNull()) + approvalObject.status = valueApprovaldata["Status"].asString(); + if(!valueApprovaldata["ProcessId"].isNull()) + approvalObject.processId = valueApprovaldata["ProcessId"].asString(); + if(!valueApprovaldata["ProcessName"].isNull()) + approvalObject.processName = valueApprovaldata["ProcessName"].asString(); + if(!valueApprovaldata["PolicyType"].isNull()) + approvalObject.policyType = valueApprovaldata["PolicyType"].asString(); + if(!valueApprovaldata["SchemaId"].isNull()) + approvalObject.schemaId = valueApprovaldata["SchemaId"].asString(); + if(!valueApprovaldata["SchemaName"].isNull()) + approvalObject.schemaName = valueApprovaldata["SchemaName"].asString(); + if(!valueApprovaldata["SchemaContent"].isNull()) + approvalObject.schemaContent = valueApprovaldata["SchemaContent"].asString(); + if(!valueApprovaldata["CreatorUserId"].isNull()) + approvalObject.creatorUserId = valueApprovaldata["CreatorUserId"].asString(); + if(!valueApprovaldata["CreatorDevTag"].isNull()) + approvalObject.creatorDevTag = valueApprovaldata["CreatorDevTag"].asString(); + if(!valueApprovaldata["CreateTime"].isNull()) + approvalObject.createTime = valueApprovaldata["CreateTime"].asString(); + if(!valueApprovaldata["Reason"].isNull()) + approvalObject.reason = valueApprovaldata["Reason"].asString(); + if(!valueApprovaldata["CreatorUsername"].isNull()) + approvalObject.creatorUsername = valueApprovaldata["CreatorUsername"].asString(); + if(!valueApprovaldata["CreatorDepartment"].isNull()) + approvalObject.creatorDepartment = valueApprovaldata["CreatorDepartment"].asString(); + auto allApprovalProgressesNode = valueApprovaldata["ApprovalProgresses"]["approvalProgressesItem"]; + for (auto valueApprovaldataApprovalProgressesapprovalProgressesItem : allApprovalProgressesNode) + { + Data::ApprovalProgressesItem approvalProgressesObject; + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Status"].isNull()) + approvalProgressesObject.status = valueApprovaldataApprovalProgressesapprovalProgressesItem["Status"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Executor"].isNull()) + approvalProgressesObject.executor = valueApprovaldataApprovalProgressesapprovalProgressesItem["Executor"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Action"].isNull()) + approvalProgressesObject.action = valueApprovaldataApprovalProgressesapprovalProgressesItem["Action"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Comment"].isNull()) + approvalProgressesObject.comment = valueApprovaldataApprovalProgressesapprovalProgressesItem["Comment"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Timestamp"].isNull()) + approvalProgressesObject.timestamp = std::stol(valueApprovaldataApprovalProgressesapprovalProgressesItem["Timestamp"].asString()); + auto allOperatorsNode = valueApprovaldataApprovalProgressesapprovalProgressesItem["Operators"]["operatorsItem"]; + for (auto valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem : allOperatorsNode) + { + Data::ApprovalProgressesItem::OperatorsItem operatorsObject; + if(!valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].isNull()) + operatorsObject.saseUserId = valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].isNull()) + operatorsObject.username = valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].asString(); + approvalProgressesObject.operators.push_back(operatorsObject); + } + approvalObject.approvalProgresses.push_back(approvalProgressesObject); + } + approval_.push_back(approvalObject); + } + +} + +std::vector GetApprovalResult::getApproval()const +{ + return approval_; +} + diff --git a/csas/src/model/GetApprovalSchemaRequest.cc b/csas/src/model/GetApprovalSchemaRequest.cc new file mode 100644 index 000000000..6601af848 --- /dev/null +++ b/csas/src/model/GetApprovalSchemaRequest.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::GetApprovalSchemaRequest; + +GetApprovalSchemaRequest::GetApprovalSchemaRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetApprovalSchema") { + setMethod(HttpRequest::Method::Get); +} + +GetApprovalSchemaRequest::~GetApprovalSchemaRequest() {} + +std::string GetApprovalSchemaRequest::getSourceIp() const { + return sourceIp_; +} + +void GetApprovalSchemaRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetApprovalSchemaRequest::getSchemaId() const { + return schemaId_; +} + +void GetApprovalSchemaRequest::setSchemaId(const std::string &schemaId) { + schemaId_ = schemaId; + setParameter(std::string("SchemaId"), schemaId); +} + diff --git a/csas/src/model/GetApprovalSchemaResult.cc b/csas/src/model/GetApprovalSchemaResult.cc new file mode 100644 index 000000000..a07ccd0e9 --- /dev/null +++ b/csas/src/model/GetApprovalSchemaResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +GetApprovalSchemaResult::GetApprovalSchemaResult() : + ServiceResult() +{} + +GetApprovalSchemaResult::GetApprovalSchemaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApprovalSchemaResult::~GetApprovalSchemaResult() +{} + +void GetApprovalSchemaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto schemaNode = value["Schema"]; + if(!schemaNode["CreateTime"].isNull()) + schema_.createTime = schemaNode["CreateTime"].asString(); + if(!schemaNode["SchemaId"].isNull()) + schema_.schemaId = schemaNode["SchemaId"].asString(); + if(!schemaNode["SchemaName"].isNull()) + schema_.schemaName = schemaNode["SchemaName"].asString(); + if(!schemaNode["Description"].isNull()) + schema_.description = schemaNode["Description"].asString(); + if(!schemaNode["SchemaContent"].isNull()) + schema_.schemaContent = schemaNode["SchemaContent"].asString(); + if(!schemaNode["SchemaVersion"].isNull()) + schema_.schemaVersion = std::stol(schemaNode["SchemaVersion"].asString()); + if(!schemaNode["PolicyType"].isNull()) + schema_.policyType = schemaNode["PolicyType"].asString(); + if(!schemaNode["IsDefault"].isNull()) + schema_.isDefault = schemaNode["IsDefault"].asString() == "true"; + +} + +GetApprovalSchemaResult::Schema GetApprovalSchemaResult::getSchema()const +{ + return schema_; +} + diff --git a/csas/src/model/GetBootAndAntiUninstallPolicyRequest.cc b/csas/src/model/GetBootAndAntiUninstallPolicyRequest.cc new file mode 100644 index 000000000..f4f6a069a --- /dev/null +++ b/csas/src/model/GetBootAndAntiUninstallPolicyRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::GetBootAndAntiUninstallPolicyRequest; + +GetBootAndAntiUninstallPolicyRequest::GetBootAndAntiUninstallPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "GetBootAndAntiUninstallPolicy") { + setMethod(HttpRequest::Method::Get); +} + +GetBootAndAntiUninstallPolicyRequest::~GetBootAndAntiUninstallPolicyRequest() {} + +std::string GetBootAndAntiUninstallPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void GetBootAndAntiUninstallPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/GetBootAndAntiUninstallPolicyResult.cc b/csas/src/model/GetBootAndAntiUninstallPolicyResult.cc new file mode 100644 index 000000000..dbae59073 --- /dev/null +++ b/csas/src/model/GetBootAndAntiUninstallPolicyResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +GetBootAndAntiUninstallPolicyResult::GetBootAndAntiUninstallPolicyResult() : + ServiceResult() +{} + +GetBootAndAntiUninstallPolicyResult::GetBootAndAntiUninstallPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBootAndAntiUninstallPolicyResult::~GetBootAndAntiUninstallPolicyResult() +{} + +void GetBootAndAntiUninstallPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto strategyNode = value["Strategy"]; + if(!strategyNode["CreateTime"].isNull()) + strategy_.createTime = strategyNode["CreateTime"].asString(); + if(!strategyNode["UpdateTime"].isNull()) + strategy_.updateTime = strategyNode["UpdateTime"].asString(); + if(!strategyNode["IsBoot"].isNull()) + strategy_.isBoot = strategyNode["IsBoot"].asString() == "true"; + if(!strategyNode["IsAntiUninstall"].isNull()) + strategy_.isAntiUninstall = strategyNode["IsAntiUninstall"].asString() == "true"; + if(!strategyNode["AllowReport"].isNull()) + strategy_.allowReport = strategyNode["AllowReport"].asString() == "true"; + if(!strategyNode["PolicyId"].isNull()) + strategy_.policyId = strategyNode["PolicyId"].asString(); + if(!strategyNode["ReportProcessId"].isNull()) + strategy_.reportProcessId = strategyNode["ReportProcessId"].asString(); + auto blockContentNode = strategyNode["BlockContent"]; + auto blockTextZhNode = blockContentNode["BlockTextZh"]; + if(!blockTextZhNode["Title"].isNull()) + strategy_.blockContent.blockTextZh.title = blockTextZhNode["Title"].asString(); + if(!blockTextZhNode["Content"].isNull()) + strategy_.blockContent.blockTextZh.content = blockTextZhNode["Content"].asString(); + if(!blockTextZhNode["MainButtonText"].isNull()) + strategy_.blockContent.blockTextZh.mainButtonText = blockTextZhNode["MainButtonText"].asString(); + if(!blockTextZhNode["MinorButtonText"].isNull()) + strategy_.blockContent.blockTextZh.minorButtonText = blockTextZhNode["MinorButtonText"].asString(); + auto blockTextEnNode = blockContentNode["BlockTextEn"]; + if(!blockTextEnNode["Title"].isNull()) + strategy_.blockContent.blockTextEn.title = blockTextEnNode["Title"].asString(); + if(!blockTextEnNode["Content"].isNull()) + strategy_.blockContent.blockTextEn.content = blockTextEnNode["Content"].asString(); + if(!blockTextEnNode["MainButtonText"].isNull()) + strategy_.blockContent.blockTextEn.mainButtonText = blockTextEnNode["MainButtonText"].asString(); + if(!blockTextEnNode["MinorButtonText"].isNull()) + strategy_.blockContent.blockTextEn.minorButtonText = blockTextEnNode["MinorButtonText"].asString(); + auto allWhitelistUsers = strategyNode["WhitelistUsers"]["whitelistUsers"]; + for (auto value : allWhitelistUsers) + strategy_.whitelistUsers.push_back(value.asString()); + auto allUserGroupIds = strategyNode["UserGroupIds"]["userGroupIds"]; + for (auto value : allUserGroupIds) + strategy_.userGroupIds.push_back(value.asString()); + +} + +GetBootAndAntiUninstallPolicyResult::Strategy GetBootAndAntiUninstallPolicyResult::getStrategy()const +{ + return strategy_; +} + diff --git a/csas/src/model/GetUserDeviceResult.cc b/csas/src/model/GetUserDeviceResult.cc index cd841f604..c4f1a210f 100644 --- a/csas/src/model/GetUserDeviceResult.cc +++ b/csas/src/model/GetUserDeviceResult.cc @@ -100,6 +100,16 @@ void GetUserDeviceResult::parse(const std::string &payload) historyUsersItemObject.saseUserId = deviceNodeHistoryUsershistoryUsersItem["SaseUserId"].asString(); device_.historyUsers.push_back(historyUsersItemObject); } + auto allNetInterfaceInfoNode = deviceNode["NetInterfaceInfo"]["netInterfaceInfoItem"]; + for (auto deviceNodeNetInterfaceInfonetInterfaceInfoItem : allNetInterfaceInfoNode) + { + Device::NetInterfaceInfoItem netInterfaceInfoItemObject; + if(!deviceNodeNetInterfaceInfonetInterfaceInfoItem["Name"].isNull()) + netInterfaceInfoItemObject.name = deviceNodeNetInterfaceInfonetInterfaceInfoItem["Name"].asString(); + if(!deviceNodeNetInterfaceInfonetInterfaceInfoItem["Mac"].isNull()) + netInterfaceInfoItemObject.mac = deviceNodeNetInterfaceInfonetInterfaceInfoItem["Mac"].asString(); + device_.netInterfaceInfo.push_back(netInterfaceInfoItemObject); + } } diff --git a/csas/src/model/ListApprovalProcessesForApprovalSchemasRequest.cc b/csas/src/model/ListApprovalProcessesForApprovalSchemasRequest.cc new file mode 100644 index 000000000..18e2fdccb --- /dev/null +++ b/csas/src/model/ListApprovalProcessesForApprovalSchemasRequest.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::ListApprovalProcessesForApprovalSchemasRequest; + +ListApprovalProcessesForApprovalSchemasRequest::ListApprovalProcessesForApprovalSchemasRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListApprovalProcessesForApprovalSchemas") { + setMethod(HttpRequest::Method::Get); +} + +ListApprovalProcessesForApprovalSchemasRequest::~ListApprovalProcessesForApprovalSchemasRequest() {} + +std::string ListApprovalProcessesForApprovalSchemasRequest::getSourceIp() const { + return sourceIp_; +} + +void ListApprovalProcessesForApprovalSchemasRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::vector ListApprovalProcessesForApprovalSchemasRequest::getSchemaIds() const { + return schemaIds_; +} + +void ListApprovalProcessesForApprovalSchemasRequest::setSchemaIds(const std::vector &schemaIds) { + schemaIds_ = schemaIds; + for(int dep1 = 0; dep1 != schemaIds.size(); dep1++) { + setParameter(std::string("SchemaIds") + "." + std::to_string(dep1 + 1), schemaIds[dep1]); + } +} + diff --git a/csas/src/model/ListApprovalProcessesForApprovalSchemasResult.cc b/csas/src/model/ListApprovalProcessesForApprovalSchemasResult.cc new file mode 100644 index 000000000..096c68329 --- /dev/null +++ b/csas/src/model/ListApprovalProcessesForApprovalSchemasResult.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; + +ListApprovalProcessesForApprovalSchemasResult::ListApprovalProcessesForApprovalSchemasResult() : + ServiceResult() +{} + +ListApprovalProcessesForApprovalSchemasResult::ListApprovalProcessesForApprovalSchemasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApprovalProcessesForApprovalSchemasResult::~ListApprovalProcessesForApprovalSchemasResult() +{} + +void ListApprovalProcessesForApprovalSchemasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSchemasNode = value["Schemas"]["data"]; + for (auto valueSchemasdata : allSchemasNode) + { + Data schemasObject; + if(!valueSchemasdata["SchemaId"].isNull()) + schemasObject.schemaId = valueSchemasdata["SchemaId"].asString(); + auto allProcessesNode = valueSchemasdata["Processes"]["processesItem"]; + for (auto valueSchemasdataProcessesprocessesItem : allProcessesNode) + { + Data::ProcessesItem processesObject; + if(!valueSchemasdataProcessesprocessesItem["CreateTime"].isNull()) + processesObject.createTime = valueSchemasdataProcessesprocessesItem["CreateTime"].asString(); + if(!valueSchemasdataProcessesprocessesItem["ProcessId"].isNull()) + processesObject.processId = valueSchemasdataProcessesprocessesItem["ProcessId"].asString(); + if(!valueSchemasdataProcessesprocessesItem["ProcessName"].isNull()) + processesObject.processName = valueSchemasdataProcessesprocessesItem["ProcessName"].asString(); + if(!valueSchemasdataProcessesprocessesItem["Description"].isNull()) + processesObject.description = valueSchemasdataProcessesprocessesItem["Description"].asString(); + schemasObject.processes.push_back(processesObject); + } + schemas_.push_back(schemasObject); + } + +} + +std::vector ListApprovalProcessesForApprovalSchemasResult::getSchemas()const +{ + return schemas_; +} + diff --git a/csas/src/model/ListApprovalProcessesRequest.cc b/csas/src/model/ListApprovalProcessesRequest.cc new file mode 100644 index 000000000..1219b79d1 --- /dev/null +++ b/csas/src/model/ListApprovalProcessesRequest.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 + +using AlibabaCloud::Csas::Model::ListApprovalProcessesRequest; + +ListApprovalProcessesRequest::ListApprovalProcessesRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListApprovalProcesses") { + setMethod(HttpRequest::Method::Get); +} + +ListApprovalProcessesRequest::~ListApprovalProcessesRequest() {} + +std::vector ListApprovalProcessesRequest::getProcessIds() const { + return processIds_; +} + +void ListApprovalProcessesRequest::setProcessIds(const std::vector &processIds) { + processIds_ = processIds; + for(int dep1 = 0; dep1 != processIds.size(); dep1++) { + setParameter(std::string("ProcessIds") + "." + std::to_string(dep1 + 1), processIds[dep1]); + } +} + +std::string ListApprovalProcessesRequest::getSourceIp() const { + return sourceIp_; +} + +void ListApprovalProcessesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListApprovalProcessesRequest::getPolicyId() const { + return policyId_; +} + +void ListApprovalProcessesRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string ListApprovalProcessesRequest::getSaseUserId() const { + return saseUserId_; +} + +void ListApprovalProcessesRequest::setSaseUserId(const std::string &saseUserId) { + saseUserId_ = saseUserId; + setParameter(std::string("SaseUserId"), saseUserId); +} + +long ListApprovalProcessesRequest::getPageSize() const { + return pageSize_; +} + +void ListApprovalProcessesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListApprovalProcessesRequest::getPolicyType() const { + return policyType_; +} + +void ListApprovalProcessesRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); +} + +std::string ListApprovalProcessesRequest::getProcessName() const { + return processName_; +} + +void ListApprovalProcessesRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); +} + +long ListApprovalProcessesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListApprovalProcessesRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListApprovalProcessesRequest::getUsername() const { + return username_; +} + +void ListApprovalProcessesRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/csas/src/model/ListApprovalProcessesResult.cc b/csas/src/model/ListApprovalProcessesResult.cc new file mode 100644 index 000000000..20d8aafa9 --- /dev/null +++ b/csas/src/model/ListApprovalProcessesResult.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; + +ListApprovalProcessesResult::ListApprovalProcessesResult() : + ServiceResult() +{} + +ListApprovalProcessesResult::ListApprovalProcessesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApprovalProcessesResult::~ListApprovalProcessesResult() +{} + +void ListApprovalProcessesResult::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/ListApprovalSchemasForApprovalProcessesRequest.cc b/csas/src/model/ListApprovalSchemasForApprovalProcessesRequest.cc new file mode 100644 index 000000000..873597c06 --- /dev/null +++ b/csas/src/model/ListApprovalSchemasForApprovalProcessesRequest.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::ListApprovalSchemasForApprovalProcessesRequest; + +ListApprovalSchemasForApprovalProcessesRequest::ListApprovalSchemasForApprovalProcessesRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListApprovalSchemasForApprovalProcesses") { + setMethod(HttpRequest::Method::Get); +} + +ListApprovalSchemasForApprovalProcessesRequest::~ListApprovalSchemasForApprovalProcessesRequest() {} + +std::vector ListApprovalSchemasForApprovalProcessesRequest::getProcessIds() const { + return processIds_; +} + +void ListApprovalSchemasForApprovalProcessesRequest::setProcessIds(const std::vector &processIds) { + processIds_ = processIds; + for(int dep1 = 0; dep1 != processIds.size(); dep1++) { + setParameter(std::string("ProcessIds") + "." + std::to_string(dep1 + 1), processIds[dep1]); + } +} + +std::string ListApprovalSchemasForApprovalProcessesRequest::getSourceIp() const { + return sourceIp_; +} + +void ListApprovalSchemasForApprovalProcessesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/csas/src/model/ListApprovalSchemasForApprovalProcessesResult.cc b/csas/src/model/ListApprovalSchemasForApprovalProcessesResult.cc new file mode 100644 index 000000000..a068f4f2e --- /dev/null +++ b/csas/src/model/ListApprovalSchemasForApprovalProcessesResult.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; + +ListApprovalSchemasForApprovalProcessesResult::ListApprovalSchemasForApprovalProcessesResult() : + ServiceResult() +{} + +ListApprovalSchemasForApprovalProcessesResult::ListApprovalSchemasForApprovalProcessesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApprovalSchemasForApprovalProcessesResult::~ListApprovalSchemasForApprovalProcessesResult() +{} + +void ListApprovalSchemasForApprovalProcessesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProcessesNode = value["Processes"]["data"]; + for (auto valueProcessesdata : allProcessesNode) + { + Data processesObject; + if(!valueProcessesdata["ProcessId"].isNull()) + processesObject.processId = valueProcessesdata["ProcessId"].asString(); + auto allSchemasNode = valueProcessesdata["Schemas"]["schemasItem"]; + for (auto valueProcessesdataSchemasschemasItem : allSchemasNode) + { + Data::SchemasItem schemasObject; + if(!valueProcessesdataSchemasschemasItem["CreateTime"].isNull()) + schemasObject.createTime = valueProcessesdataSchemasschemasItem["CreateTime"].asString(); + if(!valueProcessesdataSchemasschemasItem["SchemaId"].isNull()) + schemasObject.schemaId = valueProcessesdataSchemasschemasItem["SchemaId"].asString(); + if(!valueProcessesdataSchemasschemasItem["SchemaName"].isNull()) + schemasObject.schemaName = valueProcessesdataSchemasschemasItem["SchemaName"].asString(); + if(!valueProcessesdataSchemasschemasItem["Description"].isNull()) + schemasObject.description = valueProcessesdataSchemasschemasItem["Description"].asString(); + if(!valueProcessesdataSchemasschemasItem["SchemaContent"].isNull()) + schemasObject.schemaContent = valueProcessesdataSchemasschemasItem["SchemaContent"].asString(); + if(!valueProcessesdataSchemasschemasItem["SchemaVersion"].isNull()) + schemasObject.schemaVersion = std::stol(valueProcessesdataSchemasschemasItem["SchemaVersion"].asString()); + if(!valueProcessesdataSchemasschemasItem["PolicyType"].isNull()) + schemasObject.policyType = valueProcessesdataSchemasschemasItem["PolicyType"].asString(); + if(!valueProcessesdataSchemasschemasItem["IsDefault"].isNull()) + schemasObject.isDefault = valueProcessesdataSchemasschemasItem["IsDefault"].asString() == "true"; + processesObject.schemas.push_back(schemasObject); + } + processes_.push_back(processesObject); + } + +} + +std::vector ListApprovalSchemasForApprovalProcessesResult::getProcesses()const +{ + return processes_; +} + diff --git a/csas/src/model/ListApprovalSchemasRequest.cc b/csas/src/model/ListApprovalSchemasRequest.cc new file mode 100644 index 000000000..b3486b957 --- /dev/null +++ b/csas/src/model/ListApprovalSchemasRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListApprovalSchemasRequest; + +ListApprovalSchemasRequest::ListApprovalSchemasRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListApprovalSchemas") { + setMethod(HttpRequest::Method::Get); +} + +ListApprovalSchemasRequest::~ListApprovalSchemasRequest() {} + +std::string ListApprovalSchemasRequest::getSourceIp() const { + return sourceIp_; +} + +void ListApprovalSchemasRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::vector ListApprovalSchemasRequest::getSchemaIds() const { + return schemaIds_; +} + +void ListApprovalSchemasRequest::setSchemaIds(const std::vector &schemaIds) { + schemaIds_ = schemaIds; + for(int dep1 = 0; dep1 != schemaIds.size(); dep1++) { + setParameter(std::string("SchemaIds") + "." + std::to_string(dep1 + 1), schemaIds[dep1]); + } +} + +long ListApprovalSchemasRequest::getPageSize() const { + return pageSize_; +} + +void ListApprovalSchemasRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListApprovalSchemasRequest::getSchemaName() const { + return schemaName_; +} + +void ListApprovalSchemasRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string ListApprovalSchemasRequest::getPolicyType() const { + return policyType_; +} + +void ListApprovalSchemasRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); +} + +long ListApprovalSchemasRequest::getCurrentPage() const { + return currentPage_; +} + +void ListApprovalSchemasRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + diff --git a/csas/src/model/ListApprovalSchemasResult.cc b/csas/src/model/ListApprovalSchemasResult.cc new file mode 100644 index 000000000..e4e965517 --- /dev/null +++ b/csas/src/model/ListApprovalSchemasResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListApprovalSchemasResult::ListApprovalSchemasResult() : + ServiceResult() +{} + +ListApprovalSchemasResult::ListApprovalSchemasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApprovalSchemasResult::~ListApprovalSchemasResult() +{} + +void ListApprovalSchemasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSchemasNode = value["Schemas"]["dataList"]; + for (auto valueSchemasdataList : allSchemasNode) + { + DataList schemasObject; + if(!valueSchemasdataList["CreateTime"].isNull()) + schemasObject.createTime = valueSchemasdataList["CreateTime"].asString(); + if(!valueSchemasdataList["SchemaId"].isNull()) + schemasObject.schemaId = valueSchemasdataList["SchemaId"].asString(); + if(!valueSchemasdataList["SchemaName"].isNull()) + schemasObject.schemaName = valueSchemasdataList["SchemaName"].asString(); + if(!valueSchemasdataList["Description"].isNull()) + schemasObject.description = valueSchemasdataList["Description"].asString(); + if(!valueSchemasdataList["SchemaContent"].isNull()) + schemasObject.schemaContent = valueSchemasdataList["SchemaContent"].asString(); + if(!valueSchemasdataList["SchemaVersion"].isNull()) + schemasObject.schemaVersion = std::stol(valueSchemasdataList["SchemaVersion"].asString()); + if(!valueSchemasdataList["PolicyType"].isNull()) + schemasObject.policyType = valueSchemasdataList["PolicyType"].asString(); + if(!valueSchemasdataList["IsDefault"].isNull()) + schemasObject.isDefault = valueSchemasdataList["IsDefault"].asString() == "true"; + schemas_.push_back(schemasObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = value["TotalNum"].asString(); + +} + +std::string ListApprovalSchemasResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListApprovalSchemasResult::getSchemas()const +{ + return schemas_; +} + diff --git a/csas/src/model/ListApprovalsRequest.cc b/csas/src/model/ListApprovalsRequest.cc new file mode 100644 index 000000000..31dcd7393 --- /dev/null +++ b/csas/src/model/ListApprovalsRequest.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListApprovalsRequest; + +ListApprovalsRequest::ListApprovalsRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListApprovals") { + setMethod(HttpRequest::Method::Get); +} + +ListApprovalsRequest::~ListApprovalsRequest() {} + +std::string ListApprovalsRequest::getSourceIp() const { + return sourceIp_; +} + +void ListApprovalsRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListApprovalsRequest::getSchemaId() const { + return schemaId_; +} + +void ListApprovalsRequest::setSchemaId(const std::string &schemaId) { + schemaId_ = schemaId; + setParameter(std::string("SchemaId"), schemaId); +} + +long ListApprovalsRequest::getPageSize() const { + return pageSize_; +} + +void ListApprovalsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListApprovalsRequest::getCreateEndTime() const { + return createEndTime_; +} + +void ListApprovalsRequest::setCreateEndTime(long createEndTime) { + createEndTime_ = createEndTime; + setParameter(std::string("CreateEndTime"), std::to_string(createEndTime)); +} + +std::string ListApprovalsRequest::getOperatorUserId() const { + return operatorUserId_; +} + +void ListApprovalsRequest::setOperatorUserId(const std::string &operatorUserId) { + operatorUserId_ = operatorUserId; + setParameter(std::string("OperatorUserId"), operatorUserId); +} + +std::string ListApprovalsRequest::getSchemaName() const { + return schemaName_; +} + +void ListApprovalsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string ListApprovalsRequest::getPolicyType() const { + return policyType_; +} + +void ListApprovalsRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); +} + +std::string ListApprovalsRequest::getProcessName() const { + return processName_; +} + +void ListApprovalsRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); +} + +long ListApprovalsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListApprovalsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::vector ListApprovalsRequest::getApprovalIds() const { + return approvalIds_; +} + +void ListApprovalsRequest::setApprovalIds(const std::vector &approvalIds) { + approvalIds_ = approvalIds; + for(int dep1 = 0; dep1 != approvalIds.size(); dep1++) { + setParameter(std::string("ApprovalIds") + "." + std::to_string(dep1 + 1), approvalIds[dep1]); + } +} + +long ListApprovalsRequest::getCreateStartTime() const { + return createStartTime_; +} + +void ListApprovalsRequest::setCreateStartTime(long createStartTime) { + createStartTime_ = createStartTime; + setParameter(std::string("CreateStartTime"), std::to_string(createStartTime)); +} + +std::string ListApprovalsRequest::getProcessId() const { + return processId_; +} + +void ListApprovalsRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); +} + +std::string ListApprovalsRequest::getCreatorDepartment() const { + return creatorDepartment_; +} + +void ListApprovalsRequest::setCreatorDepartment(const std::string &creatorDepartment) { + creatorDepartment_ = creatorDepartment; + setParameter(std::string("CreatorDepartment"), creatorDepartment); +} + +std::string ListApprovalsRequest::getOperatorUsername() const { + return operatorUsername_; +} + +void ListApprovalsRequest::setOperatorUsername(const std::string &operatorUsername) { + operatorUsername_ = operatorUsername; + setParameter(std::string("OperatorUsername"), operatorUsername); +} + +std::string ListApprovalsRequest::getCreatorUserId() const { + return creatorUserId_; +} + +void ListApprovalsRequest::setCreatorUserId(const std::string &creatorUserId) { + creatorUserId_ = creatorUserId; + setParameter(std::string("CreatorUserId"), creatorUserId); +} + +std::string ListApprovalsRequest::getCreatorUsername() const { + return creatorUsername_; +} + +void ListApprovalsRequest::setCreatorUsername(const std::string &creatorUsername) { + creatorUsername_ = creatorUsername; + setParameter(std::string("CreatorUsername"), creatorUsername); +} + +std::vector ListApprovalsRequest::getStatuses() const { + return statuses_; +} + +void ListApprovalsRequest::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 ListApprovalsRequest::getCreatorDevTag() const { + return creatorDevTag_; +} + +void ListApprovalsRequest::setCreatorDevTag(const std::string &creatorDevTag) { + creatorDevTag_ = creatorDevTag; + setParameter(std::string("CreatorDevTag"), creatorDevTag); +} + diff --git a/csas/src/model/ListApprovalsResult.cc b/csas/src/model/ListApprovalsResult.cc new file mode 100644 index 000000000..0d7063262 --- /dev/null +++ b/csas/src/model/ListApprovalsResult.cc @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListApprovalsResult::ListApprovalsResult() : + ServiceResult() +{} + +ListApprovalsResult::ListApprovalsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApprovalsResult::~ListApprovalsResult() +{} + +void ListApprovalsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApprovalsNode = value["Approvals"]["dataList"]; + for (auto valueApprovalsdataList : allApprovalsNode) + { + DataList approvalsObject; + if(!valueApprovalsdataList["ApprovalId"].isNull()) + approvalsObject.approvalId = valueApprovalsdataList["ApprovalId"].asString(); + if(!valueApprovalsdataList["EndTimestamp"].isNull()) + approvalsObject.endTimestamp = std::stol(valueApprovalsdataList["EndTimestamp"].asString()); + if(!valueApprovalsdataList["ApprovalDetail"].isNull()) + approvalsObject.approvalDetail = valueApprovalsdataList["ApprovalDetail"].asString(); + if(!valueApprovalsdataList["Status"].isNull()) + approvalsObject.status = valueApprovalsdataList["Status"].asString(); + if(!valueApprovalsdataList["ProcessId"].isNull()) + approvalsObject.processId = valueApprovalsdataList["ProcessId"].asString(); + if(!valueApprovalsdataList["ProcessName"].isNull()) + approvalsObject.processName = valueApprovalsdataList["ProcessName"].asString(); + if(!valueApprovalsdataList["PolicyType"].isNull()) + approvalsObject.policyType = valueApprovalsdataList["PolicyType"].asString(); + if(!valueApprovalsdataList["SchemaId"].isNull()) + approvalsObject.schemaId = valueApprovalsdataList["SchemaId"].asString(); + if(!valueApprovalsdataList["SchemaName"].isNull()) + approvalsObject.schemaName = valueApprovalsdataList["SchemaName"].asString(); + if(!valueApprovalsdataList["SchemaContent"].isNull()) + approvalsObject.schemaContent = valueApprovalsdataList["SchemaContent"].asString(); + if(!valueApprovalsdataList["CreatorUserId"].isNull()) + approvalsObject.creatorUserId = valueApprovalsdataList["CreatorUserId"].asString(); + if(!valueApprovalsdataList["CreatorDevTag"].isNull()) + approvalsObject.creatorDevTag = valueApprovalsdataList["CreatorDevTag"].asString(); + if(!valueApprovalsdataList["CreateTime"].isNull()) + approvalsObject.createTime = valueApprovalsdataList["CreateTime"].asString(); + if(!valueApprovalsdataList["Reason"].isNull()) + approvalsObject.reason = valueApprovalsdataList["Reason"].asString(); + if(!valueApprovalsdataList["CreatorUsername"].isNull()) + approvalsObject.creatorUsername = valueApprovalsdataList["CreatorUsername"].asString(); + if(!valueApprovalsdataList["CreatorDepartment"].isNull()) + approvalsObject.creatorDepartment = valueApprovalsdataList["CreatorDepartment"].asString(); + auto allApprovalProgressesNode = valueApprovalsdataList["ApprovalProgresses"]["approvalProgressesItem"]; + for (auto valueApprovalsdataListApprovalProgressesapprovalProgressesItem : allApprovalProgressesNode) + { + DataList::ApprovalProgressesItem approvalProgressesObject; + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Status"].isNull()) + approvalProgressesObject.status = valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Status"].asString(); + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Executor"].isNull()) + approvalProgressesObject.executor = valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Executor"].asString(); + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Action"].isNull()) + approvalProgressesObject.action = valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Action"].asString(); + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Comment"].isNull()) + approvalProgressesObject.comment = valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Comment"].asString(); + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Timestamp"].isNull()) + approvalProgressesObject.timestamp = std::stol(valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Timestamp"].asString()); + auto allOperatorsNode = valueApprovalsdataListApprovalProgressesapprovalProgressesItem["Operators"]["operatorsItem"]; + for (auto valueApprovalsdataListApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem : allOperatorsNode) + { + DataList::ApprovalProgressesItem::OperatorsItem operatorsObject; + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].isNull()) + operatorsObject.saseUserId = valueApprovalsdataListApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].asString(); + if(!valueApprovalsdataListApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].isNull()) + operatorsObject.username = valueApprovalsdataListApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].asString(); + approvalProgressesObject.operators.push_back(operatorsObject); + } + approvalsObject.approvalProgresses.push_back(approvalProgressesObject); + } + approvals_.push_back(approvalsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = value["TotalNum"].asString(); + +} + +std::string ListApprovalsResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListApprovalsResult::getApprovals()const +{ + return approvals_; +} + diff --git a/csas/src/model/ListUninstallApplicationsRequest.cc b/csas/src/model/ListUninstallApplicationsRequest.cc new file mode 100644 index 000000000..e4d156eab --- /dev/null +++ b/csas/src/model/ListUninstallApplicationsRequest.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::ListUninstallApplicationsRequest; + +ListUninstallApplicationsRequest::ListUninstallApplicationsRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListUninstallApplications") { + setMethod(HttpRequest::Method::Get); +} + +ListUninstallApplicationsRequest::~ListUninstallApplicationsRequest() {} + +std::string ListUninstallApplicationsRequest::getMac() const { + return mac_; +} + +void ListUninstallApplicationsRequest::setMac(const std::string &mac) { + mac_ = mac; + setParameter(std::string("Mac"), mac); +} + +std::string ListUninstallApplicationsRequest::getHostname() const { + return hostname_; +} + +void ListUninstallApplicationsRequest::setHostname(const std::string &hostname) { + hostname_ = hostname; + setParameter(std::string("Hostname"), hostname); +} + +std::string ListUninstallApplicationsRequest::getSourceIp() const { + return sourceIp_; +} + +void ListUninstallApplicationsRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +long ListUninstallApplicationsRequest::getPageSize() const { + return pageSize_; +} + +void ListUninstallApplicationsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListUninstallApplicationsRequest::getDepartment() const { + return department_; +} + +void ListUninstallApplicationsRequest::setDepartment(const std::string &department) { + department_ = department; + setParameter(std::string("Department"), department); +} + +long ListUninstallApplicationsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListUninstallApplicationsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::vector ListUninstallApplicationsRequest::getApplicationIds() const { + return applicationIds_; +} + +void ListUninstallApplicationsRequest::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 ListUninstallApplicationsRequest::getStatuses() const { + return statuses_; +} + +void ListUninstallApplicationsRequest::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 ListUninstallApplicationsRequest::getUsername() const { + return username_; +} + +void ListUninstallApplicationsRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/csas/src/model/ListUninstallApplicationsResult.cc b/csas/src/model/ListUninstallApplicationsResult.cc new file mode 100644 index 000000000..efe280072 --- /dev/null +++ b/csas/src/model/ListUninstallApplicationsResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListUninstallApplicationsResult::ListUninstallApplicationsResult() : + ServiceResult() +{} + +ListUninstallApplicationsResult::ListUninstallApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUninstallApplicationsResult::~ListUninstallApplicationsResult() +{} + +void ListUninstallApplicationsResult::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["DevTag"].isNull()) + applicationsObject.devTag = valueApplicationsdataList["DevTag"].asString(); + if(!valueApplicationsdataList["DevType"].isNull()) + applicationsObject.devType = valueApplicationsdataList["DevType"].asString(); + if(!valueApplicationsdataList["Mac"].isNull()) + applicationsObject.mac = valueApplicationsdataList["Mac"].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["Reason"].isNull()) + applicationsObject.reason = valueApplicationsdataList["Reason"].asString(); + if(!valueApplicationsdataList["Status"].isNull()) + applicationsObject.status = valueApplicationsdataList["Status"].asString(); + if(!valueApplicationsdataList["ApplicationId"].isNull()) + applicationsObject.applicationId = valueApplicationsdataList["ApplicationId"].asString(); + if(!valueApplicationsdataList["IsUninstall"].isNull()) + applicationsObject.isUninstall = valueApplicationsdataList["IsUninstall"].asString() == "true"; + if(!valueApplicationsdataList["CreateTime"].isNull()) + applicationsObject.createTime = valueApplicationsdataList["CreateTime"].asString(); + if(!valueApplicationsdataList["IdpName"].isNull()) + applicationsObject.idpName = valueApplicationsdataList["IdpName"].asString(); + applications_.push_back(applicationsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + +} + +long ListUninstallApplicationsResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListUninstallApplicationsResult::getApplications()const +{ + return applications_; +} + diff --git a/csas/src/model/ListUserApplicationsRequest.cc b/csas/src/model/ListUserApplicationsRequest.cc new file mode 100644 index 000000000..2cad88eea --- /dev/null +++ b/csas/src/model/ListUserApplicationsRequest.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::ListUserApplicationsRequest; + +ListUserApplicationsRequest::ListUserApplicationsRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListUserApplications") { + setMethod(HttpRequest::Method::Get); +} + +ListUserApplicationsRequest::~ListUserApplicationsRequest() {} + +int ListUserApplicationsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListUserApplicationsRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListUserApplicationsRequest::getSaseUserId() const { + return saseUserId_; +} + +void ListUserApplicationsRequest::setSaseUserId(const std::string &saseUserId) { + saseUserId_ = saseUserId; + setParameter(std::string("SaseUserId"), saseUserId); +} + +std::string ListUserApplicationsRequest::getName() const { + return name_; +} + +void ListUserApplicationsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListUserApplicationsRequest::getPageSize() const { + return pageSize_; +} + +void ListUserApplicationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/csas/src/model/ListUserApplicationsResult.cc b/csas/src/model/ListUserApplicationsResult.cc new file mode 100644 index 000000000..de199ee24 --- /dev/null +++ b/csas/src/model/ListUserApplicationsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListUserApplicationsResult::ListUserApplicationsResult() : + ServiceResult() +{} + +ListUserApplicationsResult::ListUserApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserApplicationsResult::~ListUserApplicationsResult() +{} + +void ListUserApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationsNode = value["Applications"]["applicationsItem"]; + for (auto valueApplicationsapplicationsItem : allApplicationsNode) + { + ApplicationsItem applicationsObject; + if(!valueApplicationsapplicationsItem["Name"].isNull()) + applicationsObject.name = valueApplicationsapplicationsItem["Name"].asString(); + if(!valueApplicationsapplicationsItem["ApplicationId"].isNull()) + applicationsObject.applicationId = valueApplicationsapplicationsItem["ApplicationId"].asString(); + if(!valueApplicationsapplicationsItem["Protocol"].isNull()) + applicationsObject.protocol = valueApplicationsapplicationsItem["Protocol"].asString(); + if(!valueApplicationsapplicationsItem["Action"].isNull()) + applicationsObject.action = valueApplicationsapplicationsItem["Action"].asString(); + auto allPortRangesNode = valueApplicationsapplicationsItem["PortRanges"]["portRangesItem"]; + for (auto valueApplicationsapplicationsItemPortRangesportRangesItem : allPortRangesNode) + { + ApplicationsItem::PortRangesItem portRangesObject; + if(!valueApplicationsapplicationsItemPortRangesportRangesItem["Begin"].isNull()) + portRangesObject.begin = valueApplicationsapplicationsItemPortRangesportRangesItem["Begin"].asString(); + if(!valueApplicationsapplicationsItemPortRangesportRangesItem["End"].isNull()) + portRangesObject.end = valueApplicationsapplicationsItemPortRangesportRangesItem["End"].asString(); + applicationsObject.portRanges.push_back(portRangesObject); + } + auto allAddresses = value["Addresses"]["addresses"]; + for (auto value : allAddresses) + applicationsObject.addresses.push_back(value.asString()); + applications_.push_back(applicationsObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stoi(value["TotalNum"].asString()); + +} + +int ListUserApplicationsResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListUserApplicationsResult::getApplications()const +{ + return applications_; +} + diff --git a/csas/src/model/ListUserDevicesResult.cc b/csas/src/model/ListUserDevicesResult.cc index 2f2eb6325..7480e7cac 100644 --- a/csas/src/model/ListUserDevicesResult.cc +++ b/csas/src/model/ListUserDevicesResult.cc @@ -93,6 +93,16 @@ void ListUserDevicesResult::parse(const std::string &payload) devicesObject.createTime = valueDevicesdataList["CreateTime"].asString(); if(!valueDevicesdataList["UpdateTime"].isNull()) devicesObject.updateTime = valueDevicesdataList["UpdateTime"].asString(); + auto allNetInterfaceInfoNode = valueDevicesdataList["NetInterfaceInfo"]["netInterfaceInfoItem"]; + for (auto valueDevicesdataListNetInterfaceInfonetInterfaceInfoItem : allNetInterfaceInfoNode) + { + DataList::NetInterfaceInfoItem netInterfaceInfoObject; + if(!valueDevicesdataListNetInterfaceInfonetInterfaceInfoItem["Name"].isNull()) + netInterfaceInfoObject.name = valueDevicesdataListNetInterfaceInfonetInterfaceInfoItem["Name"].asString(); + if(!valueDevicesdataListNetInterfaceInfonetInterfaceInfoItem["Mac"].isNull()) + netInterfaceInfoObject.mac = valueDevicesdataListNetInterfaceInfonetInterfaceInfoItem["Mac"].asString(); + devicesObject.netInterfaceInfo.push_back(netInterfaceInfoObject); + } devices_.push_back(devicesObject); } if(!value["TotalNum"].isNull()) diff --git a/csas/src/model/ListUserPrivateAccessPoliciesRequest.cc b/csas/src/model/ListUserPrivateAccessPoliciesRequest.cc new file mode 100644 index 000000000..1f51300eb --- /dev/null +++ b/csas/src/model/ListUserPrivateAccessPoliciesRequest.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::ListUserPrivateAccessPoliciesRequest; + +ListUserPrivateAccessPoliciesRequest::ListUserPrivateAccessPoliciesRequest() + : RpcServiceRequest("csas", "2023-01-20", "ListUserPrivateAccessPolicies") { + setMethod(HttpRequest::Method::Get); +} + +ListUserPrivateAccessPoliciesRequest::~ListUserPrivateAccessPoliciesRequest() {} + +int ListUserPrivateAccessPoliciesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListUserPrivateAccessPoliciesRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListUserPrivateAccessPoliciesRequest::getSaseUserId() const { + return saseUserId_; +} + +void ListUserPrivateAccessPoliciesRequest::setSaseUserId(const std::string &saseUserId) { + saseUserId_ = saseUserId; + setParameter(std::string("SaseUserId"), saseUserId); +} + +int ListUserPrivateAccessPoliciesRequest::getPageSize() const { + return pageSize_; +} + +void ListUserPrivateAccessPoliciesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListUserPrivateAccessPoliciesRequest::getName() const { + return name_; +} + +void ListUserPrivateAccessPoliciesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/csas/src/model/ListUserPrivateAccessPoliciesResult.cc b/csas/src/model/ListUserPrivateAccessPoliciesResult.cc new file mode 100644 index 000000000..dff5bcb2b --- /dev/null +++ b/csas/src/model/ListUserPrivateAccessPoliciesResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +ListUserPrivateAccessPoliciesResult::ListUserPrivateAccessPoliciesResult() : + ServiceResult() +{} + +ListUserPrivateAccessPoliciesResult::ListUserPrivateAccessPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserPrivateAccessPoliciesResult::~ListUserPrivateAccessPoliciesResult() +{} + +void ListUserPrivateAccessPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPolicesNode = value["Polices"]["policies"]; + for (auto valuePolicespolicies : allPolicesNode) + { + Policies policesObject; + if(!valuePolicespolicies["PolicyId"].isNull()) + policesObject.policyId = valuePolicespolicies["PolicyId"].asString(); + if(!valuePolicespolicies["Name"].isNull()) + policesObject.name = valuePolicespolicies["Name"].asString(); + if(!valuePolicespolicies["Priority"].isNull()) + policesObject.priority = std::stol(valuePolicespolicies["Priority"].asString()); + if(!valuePolicespolicies["PolicyAction"].isNull()) + policesObject.policyAction = valuePolicespolicies["PolicyAction"].asString(); + if(!valuePolicespolicies["UserGroupMode"].isNull()) + policesObject.userGroupMode = valuePolicespolicies["UserGroupMode"].asString(); + if(!valuePolicespolicies["MatchedUserGroup"].isNull()) + policesObject.matchedUserGroup = valuePolicespolicies["MatchedUserGroup"].asString(); + if(!valuePolicespolicies["DeviceAttributeName"].isNull()) + policesObject.deviceAttributeName = valuePolicespolicies["DeviceAttributeName"].asString(); + auto allCustomUserAttributesNode = valuePolicespolicies["CustomUserAttributes"]["customUserAttributesItem"]; + for (auto valuePolicespoliciesCustomUserAttributescustomUserAttributesItem : allCustomUserAttributesNode) + { + Policies::CustomUserAttributesItem customUserAttributesObject; + if(!valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["UserGroupType"].isNull()) + customUserAttributesObject.userGroupType = valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["UserGroupType"].asString(); + if(!valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["Relation"].isNull()) + customUserAttributesObject.relation = valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["Relation"].asString(); + if(!valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["Value"].isNull()) + customUserAttributesObject.value = valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["Value"].asString(); + if(!valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["IdpId"].isNull()) + customUserAttributesObject.idpId = std::stoi(valuePolicespoliciesCustomUserAttributescustomUserAttributesItem["IdpId"].asString()); + policesObject.customUserAttributes.push_back(customUserAttributesObject); + } + polices_.push_back(policesObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stoi(value["TotalNum"].asString()); + +} + +int ListUserPrivateAccessPoliciesResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListUserPrivateAccessPoliciesResult::getPolices()const +{ + return polices_; +} + diff --git a/csas/src/model/UpdateApprovalProcessRequest.cc b/csas/src/model/UpdateApprovalProcessRequest.cc new file mode 100644 index 000000000..17b56c0f4 --- /dev/null +++ b/csas/src/model/UpdateApprovalProcessRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateApprovalProcessRequest; + +UpdateApprovalProcessRequest::UpdateApprovalProcessRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateApprovalProcess") { + setMethod(HttpRequest::Method::Post); +} + +UpdateApprovalProcessRequest::~UpdateApprovalProcessRequest() {} + +std::vector> UpdateApprovalProcessRequest::getProcessNodes() const { + return processNodes_; +} + +void UpdateApprovalProcessRequest::setProcessNodes(const std::vector> &processNodes) { + processNodes_ = processNodes; + for(int dep1 = 0; dep1 != processNodes.size(); dep1++) { + for(int dep2 = 0; dep2 != processNodes[dep1].size(); dep2++) { + setBodyParameter(std::string("ProcessNodes") + "." + std::to_string(dep1 + 1) + "." + std::to_string(dep2 + 1), processNodes[dep1][dep2]); + } + } +} + +UpdateApprovalProcessRequest::MatchSchemas UpdateApprovalProcessRequest::getMatchSchemas() const { + return matchSchemas_; +} + +void UpdateApprovalProcessRequest::setMatchSchemas(const UpdateApprovalProcessRequest::MatchSchemas &matchSchemas) { + matchSchemas_ = matchSchemas; + setBodyParameter(std::string("MatchSchemas") + ".DomainBlacklistSchemaId", matchSchemas.domainBlacklistSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".SoftwareBlockSchemaId", matchSchemas.softwareBlockSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".PeripheralBlockSchemaId", matchSchemas.peripheralBlockSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DeviceRegistrationSchemaId", matchSchemas.deviceRegistrationSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DlpSendSchemaId", matchSchemas.dlpSendSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".DomainWhitelistSchemaId", matchSchemas.domainWhitelistSchemaId); + setBodyParameter(std::string("MatchSchemas") + ".AppUninstallSchemaId", matchSchemas.appUninstallSchemaId); +} + +std::string UpdateApprovalProcessRequest::getDescription() const { + return description_; +} + +void UpdateApprovalProcessRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateApprovalProcessRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateApprovalProcessRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string UpdateApprovalProcessRequest::getProcessName() const { + return processName_; +} + +void UpdateApprovalProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setBodyParameter(std::string("ProcessName"), processName); +} + +std::string UpdateApprovalProcessRequest::getProcessId() const { + return processId_; +} + +void UpdateApprovalProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setBodyParameter(std::string("ProcessId"), processId); +} + diff --git a/csas/src/model/UpdateApprovalProcessResult.cc b/csas/src/model/UpdateApprovalProcessResult.cc new file mode 100644 index 000000000..7149b2173 --- /dev/null +++ b/csas/src/model/UpdateApprovalProcessResult.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; + +UpdateApprovalProcessResult::UpdateApprovalProcessResult() : + ServiceResult() +{} + +UpdateApprovalProcessResult::UpdateApprovalProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApprovalProcessResult::~UpdateApprovalProcessResult() +{} + +void UpdateApprovalProcessResult::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/UpdateApprovalStatusRequest.cc b/csas/src/model/UpdateApprovalStatusRequest.cc new file mode 100644 index 000000000..096c4d871 --- /dev/null +++ b/csas/src/model/UpdateApprovalStatusRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateApprovalStatusRequest; + +UpdateApprovalStatusRequest::UpdateApprovalStatusRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateApprovalStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateApprovalStatusRequest::~UpdateApprovalStatusRequest() {} + +std::string UpdateApprovalStatusRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateApprovalStatusRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string UpdateApprovalStatusRequest::getApprovalId() const { + return approvalId_; +} + +void UpdateApprovalStatusRequest::setApprovalId(const std::string &approvalId) { + approvalId_ = approvalId; + setParameter(std::string("ApprovalId"), approvalId); +} + +std::string UpdateApprovalStatusRequest::getStatus() const { + return status_; +} + +void UpdateApprovalStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/UpdateApprovalStatusResult.cc b/csas/src/model/UpdateApprovalStatusResult.cc new file mode 100644 index 000000000..b8e03685d --- /dev/null +++ b/csas/src/model/UpdateApprovalStatusResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateApprovalStatusResult::UpdateApprovalStatusResult() : + ServiceResult() +{} + +UpdateApprovalStatusResult::UpdateApprovalStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApprovalStatusResult::~UpdateApprovalStatusResult() +{} + +void UpdateApprovalStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApprovalNode = value["Approval"]["data"]; + for (auto valueApprovaldata : allApprovalNode) + { + Data approvalObject; + if(!valueApprovaldata["ApprovalId"].isNull()) + approvalObject.approvalId = valueApprovaldata["ApprovalId"].asString(); + if(!valueApprovaldata["EndTimestamp"].isNull()) + approvalObject.endTimestamp = std::stol(valueApprovaldata["EndTimestamp"].asString()); + if(!valueApprovaldata["ApprovalDetail"].isNull()) + approvalObject.approvalDetail = valueApprovaldata["ApprovalDetail"].asString(); + if(!valueApprovaldata["Status"].isNull()) + approvalObject.status = valueApprovaldata["Status"].asString(); + if(!valueApprovaldata["ProcessId"].isNull()) + approvalObject.processId = valueApprovaldata["ProcessId"].asString(); + if(!valueApprovaldata["ProcessName"].isNull()) + approvalObject.processName = valueApprovaldata["ProcessName"].asString(); + if(!valueApprovaldata["PolicyType"].isNull()) + approvalObject.policyType = valueApprovaldata["PolicyType"].asString(); + if(!valueApprovaldata["SchemaId"].isNull()) + approvalObject.schemaId = valueApprovaldata["SchemaId"].asString(); + if(!valueApprovaldata["SchemaName"].isNull()) + approvalObject.schemaName = valueApprovaldata["SchemaName"].asString(); + if(!valueApprovaldata["SchemaContent"].isNull()) + approvalObject.schemaContent = valueApprovaldata["SchemaContent"].asString(); + if(!valueApprovaldata["CreatorUserId"].isNull()) + approvalObject.creatorUserId = valueApprovaldata["CreatorUserId"].asString(); + if(!valueApprovaldata["CreatorDevTag"].isNull()) + approvalObject.creatorDevTag = valueApprovaldata["CreatorDevTag"].asString(); + if(!valueApprovaldata["CreateTime"].isNull()) + approvalObject.createTime = valueApprovaldata["CreateTime"].asString(); + if(!valueApprovaldata["Reason"].isNull()) + approvalObject.reason = valueApprovaldata["Reason"].asString(); + auto allApprovalProgressesNode = valueApprovaldata["ApprovalProgresses"]["approvalProgressesItem"]; + for (auto valueApprovaldataApprovalProgressesapprovalProgressesItem : allApprovalProgressesNode) + { + Data::ApprovalProgressesItem approvalProgressesObject; + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Status"].isNull()) + approvalProgressesObject.status = valueApprovaldataApprovalProgressesapprovalProgressesItem["Status"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Executor"].isNull()) + approvalProgressesObject.executor = valueApprovaldataApprovalProgressesapprovalProgressesItem["Executor"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Action"].isNull()) + approvalProgressesObject.action = valueApprovaldataApprovalProgressesapprovalProgressesItem["Action"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Comment"].isNull()) + approvalProgressesObject.comment = valueApprovaldataApprovalProgressesapprovalProgressesItem["Comment"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItem["Timestamp"].isNull()) + approvalProgressesObject.timestamp = std::stol(valueApprovaldataApprovalProgressesapprovalProgressesItem["Timestamp"].asString()); + auto allOperatorsNode = valueApprovaldataApprovalProgressesapprovalProgressesItem["Operators"]["operatorsItem"]; + for (auto valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem : allOperatorsNode) + { + Data::ApprovalProgressesItem::OperatorsItem operatorsObject; + if(!valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].isNull()) + operatorsObject.saseUserId = valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["SaseUserId"].asString(); + if(!valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].isNull()) + operatorsObject.username = valueApprovaldataApprovalProgressesapprovalProgressesItemOperatorsoperatorsItem["Username"].asString(); + approvalProgressesObject.operators.push_back(operatorsObject); + } + approvalObject.approvalProgresses.push_back(approvalProgressesObject); + } + approval_.push_back(approvalObject); + } + +} + +std::vector UpdateApprovalStatusResult::getApproval()const +{ + return approval_; +} + diff --git a/csas/src/model/UpdateBootAndAntiUninstallPolicyRequest.cc b/csas/src/model/UpdateBootAndAntiUninstallPolicyRequest.cc new file mode 100644 index 000000000..a090378bf --- /dev/null +++ b/csas/src/model/UpdateBootAndAntiUninstallPolicyRequest.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Csas::Model::UpdateBootAndAntiUninstallPolicyRequest; + +UpdateBootAndAntiUninstallPolicyRequest::UpdateBootAndAntiUninstallPolicyRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateBootAndAntiUninstallPolicy") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBootAndAntiUninstallPolicyRequest::~UpdateBootAndAntiUninstallPolicyRequest() {} + +bool UpdateBootAndAntiUninstallPolicyRequest::getIsAntiUninstall() const { + return isAntiUninstall_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setIsAntiUninstall(bool isAntiUninstall) { + isAntiUninstall_ = isAntiUninstall; + setBodyParameter(std::string("IsAntiUninstall"), isAntiUninstall ? "true" : "false"); +} + +bool UpdateBootAndAntiUninstallPolicyRequest::getAllowReport() const { + return allowReport_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setAllowReport(bool allowReport) { + allowReport_ = allowReport; + setBodyParameter(std::string("AllowReport"), allowReport ? "true" : "false"); +} + +std::string UpdateBootAndAntiUninstallPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::vector UpdateBootAndAntiUninstallPolicyRequest::getUserGroupIds() const { + return userGroupIds_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::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 UpdateBootAndAntiUninstallPolicyRequest::getWhitelistUsers() const { + return whitelistUsers_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setWhitelistUsers(const std::vector &whitelistUsers) { + whitelistUsers_ = whitelistUsers; + for(int dep1 = 0; dep1 != whitelistUsers.size(); dep1++) { + setBodyParameter(std::string("WhitelistUsers") + "." + std::to_string(dep1 + 1), whitelistUsers[dep1]); + } +} + +UpdateBootAndAntiUninstallPolicyRequest::BlockContent UpdateBootAndAntiUninstallPolicyRequest::getBlockContent() const { + return blockContent_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setBlockContent(const UpdateBootAndAntiUninstallPolicyRequest::BlockContent &blockContent) { + blockContent_ = blockContent; + setBodyParameter(std::string("BlockContent") + ".BlockTextZh.MinorButtonText", blockContent.blockTextZh.minorButtonText); + setBodyParameter(std::string("BlockContent") + ".BlockTextZh.MainButtonText", blockContent.blockTextZh.mainButtonText); + setBodyParameter(std::string("BlockContent") + ".BlockTextZh.Title", blockContent.blockTextZh.title); + setBodyParameter(std::string("BlockContent") + ".BlockTextZh.Content", blockContent.blockTextZh.content); + setBodyParameter(std::string("BlockContent") + ".BlockTextEn.MinorButtonText", blockContent.blockTextEn.minorButtonText); + setBodyParameter(std::string("BlockContent") + ".BlockTextEn.MainButtonText", blockContent.blockTextEn.mainButtonText); + setBodyParameter(std::string("BlockContent") + ".BlockTextEn.Title", blockContent.blockTextEn.title); + setBodyParameter(std::string("BlockContent") + ".BlockTextEn.Content", blockContent.blockTextEn.content); +} + +bool UpdateBootAndAntiUninstallPolicyRequest::getIsBoot() const { + return isBoot_; +} + +void UpdateBootAndAntiUninstallPolicyRequest::setIsBoot(bool isBoot) { + isBoot_ = isBoot; + setBodyParameter(std::string("IsBoot"), isBoot ? "true" : "false"); +} + diff --git a/csas/src/model/UpdateBootAndAntiUninstallPolicyResult.cc b/csas/src/model/UpdateBootAndAntiUninstallPolicyResult.cc new file mode 100644 index 000000000..d19074ea1 --- /dev/null +++ b/csas/src/model/UpdateBootAndAntiUninstallPolicyResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateBootAndAntiUninstallPolicyResult::UpdateBootAndAntiUninstallPolicyResult() : + ServiceResult() +{} + +UpdateBootAndAntiUninstallPolicyResult::UpdateBootAndAntiUninstallPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBootAndAntiUninstallPolicyResult::~UpdateBootAndAntiUninstallPolicyResult() +{} + +void UpdateBootAndAntiUninstallPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto strategyNode = value["Strategy"]; + if(!strategyNode["CreateTime"].isNull()) + strategy_.createTime = strategyNode["CreateTime"].asString(); + if(!strategyNode["UpdateTime"].isNull()) + strategy_.updateTime = strategyNode["UpdateTime"].asString(); + if(!strategyNode["IsBoot"].isNull()) + strategy_.isBoot = strategyNode["IsBoot"].asString() == "true"; + if(!strategyNode["IsAntiUninstall"].isNull()) + strategy_.isAntiUninstall = strategyNode["IsAntiUninstall"].asString() == "true"; + if(!strategyNode["AllowReport"].isNull()) + strategy_.allowReport = strategyNode["AllowReport"].asString() == "true"; + if(!strategyNode["PolicyId"].isNull()) + strategy_.policyId = strategyNode["PolicyId"].asString(); + if(!strategyNode["ReportProcessId"].isNull()) + strategy_.reportProcessId = strategyNode["ReportProcessId"].asString(); + auto blockContentNode = strategyNode["BlockContent"]; + auto blockTextZhNode = blockContentNode["BlockTextZh"]; + if(!blockTextZhNode["Title"].isNull()) + strategy_.blockContent.blockTextZh.title = blockTextZhNode["Title"].asString(); + if(!blockTextZhNode["Content"].isNull()) + strategy_.blockContent.blockTextZh.content = blockTextZhNode["Content"].asString(); + if(!blockTextZhNode["MainButtonText"].isNull()) + strategy_.blockContent.blockTextZh.mainButtonText = blockTextZhNode["MainButtonText"].asString(); + if(!blockTextZhNode["MinorButtonText"].isNull()) + strategy_.blockContent.blockTextZh.minorButtonText = blockTextZhNode["MinorButtonText"].asString(); + auto blockTextEnNode = blockContentNode["BlockTextEn"]; + if(!blockTextEnNode["Title"].isNull()) + strategy_.blockContent.blockTextEn.title = blockTextEnNode["Title"].asString(); + if(!blockTextEnNode["Content"].isNull()) + strategy_.blockContent.blockTextEn.content = blockTextEnNode["Content"].asString(); + if(!blockTextEnNode["MainButtonText"].isNull()) + strategy_.blockContent.blockTextEn.mainButtonText = blockTextEnNode["MainButtonText"].asString(); + if(!blockTextEnNode["MinorButtonText"].isNull()) + strategy_.blockContent.blockTextEn.minorButtonText = blockTextEnNode["MinorButtonText"].asString(); + auto allWhitelistUsers = strategyNode["WhitelistUsers"]["whitelistUsers"]; + for (auto value : allWhitelistUsers) + strategy_.whitelistUsers.push_back(value.asString()); + auto allUserGroupIds = strategyNode["UserGroupIds"]["userGroupIds"]; + for (auto value : allUserGroupIds) + strategy_.userGroupIds.push_back(value.asString()); + +} + +UpdateBootAndAntiUninstallPolicyResult::Strategy UpdateBootAndAntiUninstallPolicyResult::getStrategy()const +{ + return strategy_; +} + diff --git a/csas/src/model/UpdateUninstallApplicationsStatusRequest.cc b/csas/src/model/UpdateUninstallApplicationsStatusRequest.cc new file mode 100644 index 000000000..33a6607ef --- /dev/null +++ b/csas/src/model/UpdateUninstallApplicationsStatusRequest.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::UpdateUninstallApplicationsStatusRequest; + +UpdateUninstallApplicationsStatusRequest::UpdateUninstallApplicationsStatusRequest() + : RpcServiceRequest("csas", "2023-01-20", "UpdateUninstallApplicationsStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateUninstallApplicationsStatusRequest::~UpdateUninstallApplicationsStatusRequest() {} + +std::vector UpdateUninstallApplicationsStatusRequest::getApplicationIds() const { + return applicationIds_; +} + +void UpdateUninstallApplicationsStatusRequest::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 UpdateUninstallApplicationsStatusRequest::getSourceIp() const { + return sourceIp_; +} + +void UpdateUninstallApplicationsStatusRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string UpdateUninstallApplicationsStatusRequest::getStatus() const { + return status_; +} + +void UpdateUninstallApplicationsStatusRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/csas/src/model/UpdateUninstallApplicationsStatusResult.cc b/csas/src/model/UpdateUninstallApplicationsStatusResult.cc new file mode 100644 index 000000000..e3c73a1b6 --- /dev/null +++ b/csas/src/model/UpdateUninstallApplicationsStatusResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Csas; +using namespace AlibabaCloud::Csas::Model; + +UpdateUninstallApplicationsStatusResult::UpdateUninstallApplicationsStatusResult() : + ServiceResult() +{} + +UpdateUninstallApplicationsStatusResult::UpdateUninstallApplicationsStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUninstallApplicationsStatusResult::~UpdateUninstallApplicationsStatusResult() +{} + +void UpdateUninstallApplicationsStatusResult::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["DevTag"].isNull()) + applicationsObject.devTag = valueApplicationsdata["DevTag"].asString(); + if(!valueApplicationsdata["DevType"].isNull()) + applicationsObject.devType = valueApplicationsdata["DevType"].asString(); + if(!valueApplicationsdata["Mac"].isNull()) + applicationsObject.mac = valueApplicationsdata["Mac"].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["Reason"].isNull()) + applicationsObject.reason = valueApplicationsdata["Reason"].asString(); + if(!valueApplicationsdata["Status"].isNull()) + applicationsObject.status = valueApplicationsdata["Status"].asString(); + if(!valueApplicationsdata["ApplicationId"].isNull()) + applicationsObject.applicationId = valueApplicationsdata["ApplicationId"].asString(); + if(!valueApplicationsdata["IsUninstall"].isNull()) + applicationsObject.isUninstall = valueApplicationsdata["IsUninstall"].asString() == "true"; + if(!valueApplicationsdata["IdpName"].isNull()) + applicationsObject.idpName = valueApplicationsdata["IdpName"].asString(); + if(!valueApplicationsdata["CreateTime"].isNull()) + applicationsObject.createTime = valueApplicationsdata["CreateTime"].asString(); + applications_.push_back(applicationsObject); + } + +} + +std::vector UpdateUninstallApplicationsStatusResult::getApplications()const +{ + return applications_; +} + diff --git a/csas/src/model/UpdateUserDevicesSharingStatusResult.cc b/csas/src/model/UpdateUserDevicesSharingStatusResult.cc index fd8a35d41..5573bdbec 100644 --- a/csas/src/model/UpdateUserDevicesSharingStatusResult.cc +++ b/csas/src/model/UpdateUserDevicesSharingStatusResult.cc @@ -93,6 +93,16 @@ void UpdateUserDevicesSharingStatusResult::parse(const std::string &payload) devicesObject.createTime = valueDevicesdata["CreateTime"].asString(); if(!valueDevicesdata["UpdateTime"].isNull()) devicesObject.updateTime = valueDevicesdata["UpdateTime"].asString(); + auto allNetInterfaceInfoNode = valueDevicesdata["NetInterfaceInfo"]["netInterfaceInfoItem"]; + for (auto valueDevicesdataNetInterfaceInfonetInterfaceInfoItem : allNetInterfaceInfoNode) + { + Data::NetInterfaceInfoItem netInterfaceInfoObject; + if(!valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Name"].isNull()) + netInterfaceInfoObject.name = valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Name"].asString(); + if(!valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Mac"].isNull()) + netInterfaceInfoObject.mac = valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Mac"].asString(); + devicesObject.netInterfaceInfo.push_back(netInterfaceInfoObject); + } devices_.push_back(devicesObject); } diff --git a/csas/src/model/UpdateUserDevicesStatusResult.cc b/csas/src/model/UpdateUserDevicesStatusResult.cc index 5f372b228..f5b43a703 100644 --- a/csas/src/model/UpdateUserDevicesStatusResult.cc +++ b/csas/src/model/UpdateUserDevicesStatusResult.cc @@ -93,6 +93,16 @@ void UpdateUserDevicesStatusResult::parse(const std::string &payload) devicesObject.createTime = valueDevicesdata["CreateTime"].asString(); if(!valueDevicesdata["UpdateTime"].isNull()) devicesObject.updateTime = valueDevicesdata["UpdateTime"].asString(); + auto allNetInterfaceInfoNode = valueDevicesdata["NetInterfaceInfo"]["netInterfaceInfoItem"]; + for (auto valueDevicesdataNetInterfaceInfonetInterfaceInfoItem : allNetInterfaceInfoNode) + { + Data::NetInterfaceInfoItem netInterfaceInfoObject; + if(!valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Name"].isNull()) + netInterfaceInfoObject.name = valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Name"].asString(); + if(!valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Mac"].isNull()) + netInterfaceInfoObject.mac = valueDevicesdataNetInterfaceInfonetInterfaceInfoItem["Mac"].asString(); + devicesObject.netInterfaceInfo.push_back(netInterfaceInfoObject); + } devices_.push_back(devicesObject); }