From b52edc6252e825b686c4096567083ed0021eb65d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 30 Oct 2025 02:30:26 +0000 Subject: [PATCH] Supported Custom Privacy Policy. --- VERSION | 2 +- eiam/CMakeLists.txt | 40 ++ eiam/include/alibabacloud/eiam/EiamClient.h | 80 ++++ .../AddCustomPrivacyPoliciesToBrandRequest.h | 48 +++ .../AddCustomPrivacyPoliciesToBrandResult.h | 49 +++ .../model/CreateCustomPrivacyPolicyRequest.h | 70 ++++ .../model/CreateCustomPrivacyPolicyResult.h | 51 +++ .../model/DeleteCustomPrivacyPolicyRequest.h | 45 +++ .../model/DeleteCustomPrivacyPolicyResult.h | 49 +++ .../model/DisableCustomPrivacyPolicyRequest.h | 45 +++ .../model/DisableCustomPrivacyPolicyResult.h | 49 +++ .../model/EnableCustomPrivacyPolicyRequest.h | 45 +++ .../model/EnableCustomPrivacyPolicyResult.h | 49 +++ .../model/GetCustomPrivacyPolicyRequest.h | 45 +++ .../eiam/model/GetCustomPrivacyPolicyResult.h | 72 ++++ ...ListCustomPrivacyPoliciesForBrandRequest.h | 54 +++ .../ListCustomPrivacyPoliciesForBrandResult.h | 63 +++ .../model/ListCustomPrivacyPoliciesRequest.h | 54 +++ .../model/ListCustomPrivacyPoliciesResult.h | 68 ++++ ...oveCustomPrivacyPoliciesFromBrandRequest.h | 48 +++ ...moveCustomPrivacyPoliciesFromBrandResult.h | 49 +++ .../model/UpdateCustomPrivacyPolicyRequest.h | 67 ++++ .../model/UpdateCustomPrivacyPolicyResult.h | 49 +++ eiam/src/EiamClient.cc | 360 ++++++++++++++++++ .../AddCustomPrivacyPoliciesToBrandRequest.cc | 56 +++ .../AddCustomPrivacyPoliciesToBrandResult.cc | 44 +++ .../model/CreateCustomPrivacyPolicyRequest.cc | 97 +++++ .../model/CreateCustomPrivacyPolicyResult.cc | 51 +++ .../model/DeleteCustomPrivacyPolicyRequest.cc | 45 +++ .../model/DeleteCustomPrivacyPolicyResult.cc | 44 +++ .../DisableCustomPrivacyPolicyRequest.cc | 45 +++ .../model/DisableCustomPrivacyPolicyResult.cc | 44 +++ .../model/EnableCustomPrivacyPolicyRequest.cc | 45 +++ .../model/EnableCustomPrivacyPolicyResult.cc | 44 +++ .../model/GetCustomPrivacyPolicyRequest.cc | 45 +++ .../src/model/GetCustomPrivacyPolicyResult.cc | 82 ++++ ...istCustomPrivacyPoliciesForBrandRequest.cc | 72 ++++ ...ListCustomPrivacyPoliciesForBrandResult.cc | 85 +++++ .../model/ListCustomPrivacyPoliciesRequest.cc | 72 ++++ .../model/ListCustomPrivacyPoliciesResult.cc | 95 +++++ ...veCustomPrivacyPoliciesFromBrandRequest.cc | 56 +++ ...oveCustomPrivacyPoliciesFromBrandResult.cc | 44 +++ .../model/UpdateCustomPrivacyPolicyRequest.cc | 88 +++++ .../model/UpdateCustomPrivacyPolicyResult.cc | 44 +++ 44 files changed, 2748 insertions(+), 1 deletion(-) create mode 100644 eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.h create mode 100644 eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.cc create mode 100644 eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.cc create mode 100644 eiam/src/model/CreateCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/CreateCustomPrivacyPolicyResult.cc create mode 100644 eiam/src/model/DeleteCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/DeleteCustomPrivacyPolicyResult.cc create mode 100644 eiam/src/model/DisableCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/DisableCustomPrivacyPolicyResult.cc create mode 100644 eiam/src/model/EnableCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/EnableCustomPrivacyPolicyResult.cc create mode 100644 eiam/src/model/GetCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/GetCustomPrivacyPolicyResult.cc create mode 100644 eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc create mode 100644 eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc create mode 100644 eiam/src/model/ListCustomPrivacyPoliciesRequest.cc create mode 100644 eiam/src/model/ListCustomPrivacyPoliciesResult.cc create mode 100644 eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandRequest.cc create mode 100644 eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc create mode 100644 eiam/src/model/UpdateCustomPrivacyPolicyRequest.cc create mode 100644 eiam/src/model/UpdateCustomPrivacyPolicyResult.cc diff --git a/VERSION b/VERSION index 446a93e6a..9e827922a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2113 \ No newline at end of file +1.36.2114 \ No newline at end of file diff --git a/eiam/CMakeLists.txt b/eiam/CMakeLists.txt index c18676f66..31c6d19a1 100644 --- a/eiam/CMakeLists.txt +++ b/eiam/CMakeLists.txt @@ -23,6 +23,8 @@ set(eiam_public_header set(eiam_public_header_model include/alibabacloud/eiam/model/AddApplicationAccountToUserRequest.h include/alibabacloud/eiam/model/AddApplicationAccountToUserResult.h + include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.h + include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.h include/alibabacloud/eiam/model/AddUserToOrganizationalUnitsRequest.h include/alibabacloud/eiam/model/AddUserToOrganizationalUnitsResult.h include/alibabacloud/eiam/model/AddUsersToGroupRequest.h @@ -45,6 +47,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/CreateBrandResult.h include/alibabacloud/eiam/model/CreateConditionalAccessPolicyRequest.h include/alibabacloud/eiam/model/CreateConditionalAccessPolicyResult.h + include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/CreateDomainRequest.h include/alibabacloud/eiam/model/CreateDomainResult.h include/alibabacloud/eiam/model/CreateDomainProxyTokenRequest.h @@ -77,6 +81,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/DeleteBrandResult.h include/alibabacloud/eiam/model/DeleteConditionalAccessPolicyRequest.h include/alibabacloud/eiam/model/DeleteConditionalAccessPolicyResult.h + include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/DeleteDomainRequest.h include/alibabacloud/eiam/model/DeleteDomainResult.h include/alibabacloud/eiam/model/DeleteDomainProxyTokenRequest.h @@ -117,6 +123,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/DisableBrandResult.h include/alibabacloud/eiam/model/DisableConditionalAccessPolicyRequest.h include/alibabacloud/eiam/model/DisableConditionalAccessPolicyResult.h + include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/DisableDomainProxyTokenRequest.h include/alibabacloud/eiam/model/DisableDomainProxyTokenResult.h include/alibabacloud/eiam/model/DisableFederatedCredentialProviderRequest.h @@ -147,6 +155,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/EnableBrandResult.h include/alibabacloud/eiam/model/EnableConditionalAccessPolicyRequest.h include/alibabacloud/eiam/model/EnableConditionalAccessPolicyResult.h + include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/EnableDomainProxyTokenRequest.h include/alibabacloud/eiam/model/EnableDomainProxyTokenResult.h include/alibabacloud/eiam/model/EnableFederatedCredentialProviderRequest.h @@ -177,6 +187,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/GetBrandResult.h include/alibabacloud/eiam/model/GetConditionalAccessPolicyRequest.h include/alibabacloud/eiam/model/GetConditionalAccessPolicyResult.h + include/alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/GetDomainRequest.h include/alibabacloud/eiam/model/GetDomainResult.h include/alibabacloud/eiam/model/GetDomainDnsChallengeRequest.h @@ -253,6 +265,10 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/ListConditionalAccessPoliciesForNetworkZoneResult.h include/alibabacloud/eiam/model/ListConditionalAccessPoliciesForUserRequest.h include/alibabacloud/eiam/model/ListConditionalAccessPoliciesForUserResult.h + include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h + include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h + include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h + include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.h include/alibabacloud/eiam/model/ListDomainProxyTokensRequest.h include/alibabacloud/eiam/model/ListDomainProxyTokensResult.h include/alibabacloud/eiam/model/ListDomainsRequest.h @@ -309,6 +325,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/ObtainDomainProxyTokenResult.h include/alibabacloud/eiam/model/RemoveApplicationAccountFromUserRequest.h include/alibabacloud/eiam/model/RemoveApplicationAccountFromUserResult.h + include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.h + include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.h include/alibabacloud/eiam/model/RemoveUserFromOrganizationalUnitsRequest.h include/alibabacloud/eiam/model/RemoveUserFromOrganizationalUnitsResult.h include/alibabacloud/eiam/model/RemoveUsersFromGroupRequest.h @@ -369,6 +387,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/UpdateConditionalAccessPolicyResult.h include/alibabacloud/eiam/model/UpdateConditionalAccessPolicyDescriptionRequest.h include/alibabacloud/eiam/model/UpdateConditionalAccessPolicyDescriptionResult.h + include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.h + include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.h include/alibabacloud/eiam/model/UpdateDomainBrandRequest.h include/alibabacloud/eiam/model/UpdateDomainBrandResult.h include/alibabacloud/eiam/model/UpdateDomainIcpNumberRequest.h @@ -408,6 +428,8 @@ set(eiam_src src/EiamClient.cc src/model/AddApplicationAccountToUserRequest.cc src/model/AddApplicationAccountToUserResult.cc + src/model/AddCustomPrivacyPoliciesToBrandRequest.cc + src/model/AddCustomPrivacyPoliciesToBrandResult.cc src/model/AddUserToOrganizationalUnitsRequest.cc src/model/AddUserToOrganizationalUnitsResult.cc src/model/AddUsersToGroupRequest.cc @@ -430,6 +452,8 @@ set(eiam_src src/model/CreateBrandResult.cc src/model/CreateConditionalAccessPolicyRequest.cc src/model/CreateConditionalAccessPolicyResult.cc + src/model/CreateCustomPrivacyPolicyRequest.cc + src/model/CreateCustomPrivacyPolicyResult.cc src/model/CreateDomainRequest.cc src/model/CreateDomainResult.cc src/model/CreateDomainProxyTokenRequest.cc @@ -462,6 +486,8 @@ set(eiam_src src/model/DeleteBrandResult.cc src/model/DeleteConditionalAccessPolicyRequest.cc src/model/DeleteConditionalAccessPolicyResult.cc + src/model/DeleteCustomPrivacyPolicyRequest.cc + src/model/DeleteCustomPrivacyPolicyResult.cc src/model/DeleteDomainRequest.cc src/model/DeleteDomainResult.cc src/model/DeleteDomainProxyTokenRequest.cc @@ -502,6 +528,8 @@ set(eiam_src src/model/DisableBrandResult.cc src/model/DisableConditionalAccessPolicyRequest.cc src/model/DisableConditionalAccessPolicyResult.cc + src/model/DisableCustomPrivacyPolicyRequest.cc + src/model/DisableCustomPrivacyPolicyResult.cc src/model/DisableDomainProxyTokenRequest.cc src/model/DisableDomainProxyTokenResult.cc src/model/DisableFederatedCredentialProviderRequest.cc @@ -532,6 +560,8 @@ set(eiam_src src/model/EnableBrandResult.cc src/model/EnableConditionalAccessPolicyRequest.cc src/model/EnableConditionalAccessPolicyResult.cc + src/model/EnableCustomPrivacyPolicyRequest.cc + src/model/EnableCustomPrivacyPolicyResult.cc src/model/EnableDomainProxyTokenRequest.cc src/model/EnableDomainProxyTokenResult.cc src/model/EnableFederatedCredentialProviderRequest.cc @@ -562,6 +592,8 @@ set(eiam_src src/model/GetBrandResult.cc src/model/GetConditionalAccessPolicyRequest.cc src/model/GetConditionalAccessPolicyResult.cc + src/model/GetCustomPrivacyPolicyRequest.cc + src/model/GetCustomPrivacyPolicyResult.cc src/model/GetDomainRequest.cc src/model/GetDomainResult.cc src/model/GetDomainDnsChallengeRequest.cc @@ -638,6 +670,10 @@ set(eiam_src src/model/ListConditionalAccessPoliciesForNetworkZoneResult.cc src/model/ListConditionalAccessPoliciesForUserRequest.cc src/model/ListConditionalAccessPoliciesForUserResult.cc + src/model/ListCustomPrivacyPoliciesRequest.cc + src/model/ListCustomPrivacyPoliciesResult.cc + src/model/ListCustomPrivacyPoliciesForBrandRequest.cc + src/model/ListCustomPrivacyPoliciesForBrandResult.cc src/model/ListDomainProxyTokensRequest.cc src/model/ListDomainProxyTokensResult.cc src/model/ListDomainsRequest.cc @@ -694,6 +730,8 @@ set(eiam_src src/model/ObtainDomainProxyTokenResult.cc src/model/RemoveApplicationAccountFromUserRequest.cc src/model/RemoveApplicationAccountFromUserResult.cc + src/model/RemoveCustomPrivacyPoliciesFromBrandRequest.cc + src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc src/model/RemoveUserFromOrganizationalUnitsRequest.cc src/model/RemoveUserFromOrganizationalUnitsResult.cc src/model/RemoveUsersFromGroupRequest.cc @@ -754,6 +792,8 @@ set(eiam_src src/model/UpdateConditionalAccessPolicyResult.cc src/model/UpdateConditionalAccessPolicyDescriptionRequest.cc src/model/UpdateConditionalAccessPolicyDescriptionResult.cc + src/model/UpdateCustomPrivacyPolicyRequest.cc + src/model/UpdateCustomPrivacyPolicyResult.cc src/model/UpdateDomainBrandRequest.cc src/model/UpdateDomainBrandResult.cc src/model/UpdateDomainIcpNumberRequest.cc diff --git a/eiam/include/alibabacloud/eiam/EiamClient.h b/eiam/include/alibabacloud/eiam/EiamClient.h index 201ff8074..dec787ba6 100644 --- a/eiam/include/alibabacloud/eiam/EiamClient.h +++ b/eiam/include/alibabacloud/eiam/EiamClient.h @@ -24,6 +24,8 @@ #include "EiamExport.h" #include "model/AddApplicationAccountToUserRequest.h" #include "model/AddApplicationAccountToUserResult.h" +#include "model/AddCustomPrivacyPoliciesToBrandRequest.h" +#include "model/AddCustomPrivacyPoliciesToBrandResult.h" #include "model/AddUserToOrganizationalUnitsRequest.h" #include "model/AddUserToOrganizationalUnitsResult.h" #include "model/AddUsersToGroupRequest.h" @@ -46,6 +48,8 @@ #include "model/CreateBrandResult.h" #include "model/CreateConditionalAccessPolicyRequest.h" #include "model/CreateConditionalAccessPolicyResult.h" +#include "model/CreateCustomPrivacyPolicyRequest.h" +#include "model/CreateCustomPrivacyPolicyResult.h" #include "model/CreateDomainRequest.h" #include "model/CreateDomainResult.h" #include "model/CreateDomainProxyTokenRequest.h" @@ -78,6 +82,8 @@ #include "model/DeleteBrandResult.h" #include "model/DeleteConditionalAccessPolicyRequest.h" #include "model/DeleteConditionalAccessPolicyResult.h" +#include "model/DeleteCustomPrivacyPolicyRequest.h" +#include "model/DeleteCustomPrivacyPolicyResult.h" #include "model/DeleteDomainRequest.h" #include "model/DeleteDomainResult.h" #include "model/DeleteDomainProxyTokenRequest.h" @@ -118,6 +124,8 @@ #include "model/DisableBrandResult.h" #include "model/DisableConditionalAccessPolicyRequest.h" #include "model/DisableConditionalAccessPolicyResult.h" +#include "model/DisableCustomPrivacyPolicyRequest.h" +#include "model/DisableCustomPrivacyPolicyResult.h" #include "model/DisableDomainProxyTokenRequest.h" #include "model/DisableDomainProxyTokenResult.h" #include "model/DisableFederatedCredentialProviderRequest.h" @@ -148,6 +156,8 @@ #include "model/EnableBrandResult.h" #include "model/EnableConditionalAccessPolicyRequest.h" #include "model/EnableConditionalAccessPolicyResult.h" +#include "model/EnableCustomPrivacyPolicyRequest.h" +#include "model/EnableCustomPrivacyPolicyResult.h" #include "model/EnableDomainProxyTokenRequest.h" #include "model/EnableDomainProxyTokenResult.h" #include "model/EnableFederatedCredentialProviderRequest.h" @@ -178,6 +188,8 @@ #include "model/GetBrandResult.h" #include "model/GetConditionalAccessPolicyRequest.h" #include "model/GetConditionalAccessPolicyResult.h" +#include "model/GetCustomPrivacyPolicyRequest.h" +#include "model/GetCustomPrivacyPolicyResult.h" #include "model/GetDomainRequest.h" #include "model/GetDomainResult.h" #include "model/GetDomainDnsChallengeRequest.h" @@ -254,6 +266,10 @@ #include "model/ListConditionalAccessPoliciesForNetworkZoneResult.h" #include "model/ListConditionalAccessPoliciesForUserRequest.h" #include "model/ListConditionalAccessPoliciesForUserResult.h" +#include "model/ListCustomPrivacyPoliciesRequest.h" +#include "model/ListCustomPrivacyPoliciesResult.h" +#include "model/ListCustomPrivacyPoliciesForBrandRequest.h" +#include "model/ListCustomPrivacyPoliciesForBrandResult.h" #include "model/ListDomainProxyTokensRequest.h" #include "model/ListDomainProxyTokensResult.h" #include "model/ListDomainsRequest.h" @@ -310,6 +326,8 @@ #include "model/ObtainDomainProxyTokenResult.h" #include "model/RemoveApplicationAccountFromUserRequest.h" #include "model/RemoveApplicationAccountFromUserResult.h" +#include "model/RemoveCustomPrivacyPoliciesFromBrandRequest.h" +#include "model/RemoveCustomPrivacyPoliciesFromBrandResult.h" #include "model/RemoveUserFromOrganizationalUnitsRequest.h" #include "model/RemoveUserFromOrganizationalUnitsResult.h" #include "model/RemoveUsersFromGroupRequest.h" @@ -370,6 +388,8 @@ #include "model/UpdateConditionalAccessPolicyResult.h" #include "model/UpdateConditionalAccessPolicyDescriptionRequest.h" #include "model/UpdateConditionalAccessPolicyDescriptionResult.h" +#include "model/UpdateCustomPrivacyPolicyRequest.h" +#include "model/UpdateCustomPrivacyPolicyResult.h" #include "model/UpdateDomainBrandRequest.h" #include "model/UpdateDomainBrandResult.h" #include "model/UpdateDomainIcpNumberRequest.h" @@ -416,6 +436,9 @@ namespace AlibabaCloud typedef Outcome AddApplicationAccountToUserOutcome; typedef std::future AddApplicationAccountToUserOutcomeCallable; typedef std::function&)> AddApplicationAccountToUserAsyncHandler; + typedef Outcome AddCustomPrivacyPoliciesToBrandOutcome; + typedef std::future AddCustomPrivacyPoliciesToBrandOutcomeCallable; + typedef std::function&)> AddCustomPrivacyPoliciesToBrandAsyncHandler; typedef Outcome AddUserToOrganizationalUnitsOutcome; typedef std::future AddUserToOrganizationalUnitsOutcomeCallable; typedef std::function&)> AddUserToOrganizationalUnitsAsyncHandler; @@ -449,6 +472,9 @@ namespace AlibabaCloud typedef Outcome CreateConditionalAccessPolicyOutcome; typedef std::future CreateConditionalAccessPolicyOutcomeCallable; typedef std::function&)> CreateConditionalAccessPolicyAsyncHandler; + typedef Outcome CreateCustomPrivacyPolicyOutcome; + typedef std::future CreateCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> CreateCustomPrivacyPolicyAsyncHandler; typedef Outcome CreateDomainOutcome; typedef std::future CreateDomainOutcomeCallable; typedef std::function&)> CreateDomainAsyncHandler; @@ -497,6 +523,9 @@ namespace AlibabaCloud typedef Outcome DeleteConditionalAccessPolicyOutcome; typedef std::future DeleteConditionalAccessPolicyOutcomeCallable; typedef std::function&)> DeleteConditionalAccessPolicyAsyncHandler; + typedef Outcome DeleteCustomPrivacyPolicyOutcome; + typedef std::future DeleteCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> DeleteCustomPrivacyPolicyAsyncHandler; typedef Outcome DeleteDomainOutcome; typedef std::future DeleteDomainOutcomeCallable; typedef std::function&)> DeleteDomainAsyncHandler; @@ -557,6 +586,9 @@ namespace AlibabaCloud typedef Outcome DisableConditionalAccessPolicyOutcome; typedef std::future DisableConditionalAccessPolicyOutcomeCallable; typedef std::function&)> DisableConditionalAccessPolicyAsyncHandler; + typedef Outcome DisableCustomPrivacyPolicyOutcome; + typedef std::future DisableCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> DisableCustomPrivacyPolicyAsyncHandler; typedef Outcome DisableDomainProxyTokenOutcome; typedef std::future DisableDomainProxyTokenOutcomeCallable; typedef std::function&)> DisableDomainProxyTokenAsyncHandler; @@ -602,6 +634,9 @@ namespace AlibabaCloud typedef Outcome EnableConditionalAccessPolicyOutcome; typedef std::future EnableConditionalAccessPolicyOutcomeCallable; typedef std::function&)> EnableConditionalAccessPolicyAsyncHandler; + typedef Outcome EnableCustomPrivacyPolicyOutcome; + typedef std::future EnableCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> EnableCustomPrivacyPolicyAsyncHandler; typedef Outcome EnableDomainProxyTokenOutcome; typedef std::future EnableDomainProxyTokenOutcomeCallable; typedef std::function&)> EnableDomainProxyTokenAsyncHandler; @@ -647,6 +682,9 @@ namespace AlibabaCloud typedef Outcome GetConditionalAccessPolicyOutcome; typedef std::future GetConditionalAccessPolicyOutcomeCallable; typedef std::function&)> GetConditionalAccessPolicyAsyncHandler; + typedef Outcome GetCustomPrivacyPolicyOutcome; + typedef std::future GetCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> GetCustomPrivacyPolicyAsyncHandler; typedef Outcome GetDomainOutcome; typedef std::future GetDomainOutcomeCallable; typedef std::function&)> GetDomainAsyncHandler; @@ -761,6 +799,12 @@ namespace AlibabaCloud typedef Outcome ListConditionalAccessPoliciesForUserOutcome; typedef std::future ListConditionalAccessPoliciesForUserOutcomeCallable; typedef std::function&)> ListConditionalAccessPoliciesForUserAsyncHandler; + typedef Outcome ListCustomPrivacyPoliciesOutcome; + typedef std::future ListCustomPrivacyPoliciesOutcomeCallable; + typedef std::function&)> ListCustomPrivacyPoliciesAsyncHandler; + typedef Outcome ListCustomPrivacyPoliciesForBrandOutcome; + typedef std::future ListCustomPrivacyPoliciesForBrandOutcomeCallable; + typedef std::function&)> ListCustomPrivacyPoliciesForBrandAsyncHandler; typedef Outcome ListDomainProxyTokensOutcome; typedef std::future ListDomainProxyTokensOutcomeCallable; typedef std::function&)> ListDomainProxyTokensAsyncHandler; @@ -845,6 +889,9 @@ namespace AlibabaCloud typedef Outcome RemoveApplicationAccountFromUserOutcome; typedef std::future RemoveApplicationAccountFromUserOutcomeCallable; typedef std::function&)> RemoveApplicationAccountFromUserAsyncHandler; + typedef Outcome RemoveCustomPrivacyPoliciesFromBrandOutcome; + typedef std::future RemoveCustomPrivacyPoliciesFromBrandOutcomeCallable; + typedef std::function&)> RemoveCustomPrivacyPoliciesFromBrandAsyncHandler; typedef Outcome RemoveUserFromOrganizationalUnitsOutcome; typedef std::future RemoveUserFromOrganizationalUnitsOutcomeCallable; typedef std::function&)> RemoveUserFromOrganizationalUnitsAsyncHandler; @@ -935,6 +982,9 @@ namespace AlibabaCloud typedef Outcome UpdateConditionalAccessPolicyDescriptionOutcome; typedef std::future UpdateConditionalAccessPolicyDescriptionOutcomeCallable; typedef std::function&)> UpdateConditionalAccessPolicyDescriptionAsyncHandler; + typedef Outcome UpdateCustomPrivacyPolicyOutcome; + typedef std::future UpdateCustomPrivacyPolicyOutcomeCallable; + typedef std::function&)> UpdateCustomPrivacyPolicyAsyncHandler; typedef Outcome UpdateDomainBrandOutcome; typedef std::future UpdateDomainBrandOutcomeCallable; typedef std::function&)> UpdateDomainBrandAsyncHandler; @@ -994,6 +1044,9 @@ namespace AlibabaCloud AddApplicationAccountToUserOutcome addApplicationAccountToUser(const Model::AddApplicationAccountToUserRequest &request)const; void addApplicationAccountToUserAsync(const Model::AddApplicationAccountToUserRequest& request, const AddApplicationAccountToUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddApplicationAccountToUserOutcomeCallable addApplicationAccountToUserCallable(const Model::AddApplicationAccountToUserRequest& request) const; + AddCustomPrivacyPoliciesToBrandOutcome addCustomPrivacyPoliciesToBrand(const Model::AddCustomPrivacyPoliciesToBrandRequest &request)const; + void addCustomPrivacyPoliciesToBrandAsync(const Model::AddCustomPrivacyPoliciesToBrandRequest& request, const AddCustomPrivacyPoliciesToBrandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCustomPrivacyPoliciesToBrandOutcomeCallable addCustomPrivacyPoliciesToBrandCallable(const Model::AddCustomPrivacyPoliciesToBrandRequest& request) const; AddUserToOrganizationalUnitsOutcome addUserToOrganizationalUnits(const Model::AddUserToOrganizationalUnitsRequest &request)const; void addUserToOrganizationalUnitsAsync(const Model::AddUserToOrganizationalUnitsRequest& request, const AddUserToOrganizationalUnitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddUserToOrganizationalUnitsOutcomeCallable addUserToOrganizationalUnitsCallable(const Model::AddUserToOrganizationalUnitsRequest& request) const; @@ -1027,6 +1080,9 @@ namespace AlibabaCloud CreateConditionalAccessPolicyOutcome createConditionalAccessPolicy(const Model::CreateConditionalAccessPolicyRequest &request)const; void createConditionalAccessPolicyAsync(const Model::CreateConditionalAccessPolicyRequest& request, const CreateConditionalAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConditionalAccessPolicyOutcomeCallable createConditionalAccessPolicyCallable(const Model::CreateConditionalAccessPolicyRequest& request) const; + CreateCustomPrivacyPolicyOutcome createCustomPrivacyPolicy(const Model::CreateCustomPrivacyPolicyRequest &request)const; + void createCustomPrivacyPolicyAsync(const Model::CreateCustomPrivacyPolicyRequest& request, const CreateCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomPrivacyPolicyOutcomeCallable createCustomPrivacyPolicyCallable(const Model::CreateCustomPrivacyPolicyRequest& request) const; CreateDomainOutcome createDomain(const Model::CreateDomainRequest &request)const; void createDomainAsync(const Model::CreateDomainRequest& request, const CreateDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDomainOutcomeCallable createDomainCallable(const Model::CreateDomainRequest& request) const; @@ -1075,6 +1131,9 @@ namespace AlibabaCloud DeleteConditionalAccessPolicyOutcome deleteConditionalAccessPolicy(const Model::DeleteConditionalAccessPolicyRequest &request)const; void deleteConditionalAccessPolicyAsync(const Model::DeleteConditionalAccessPolicyRequest& request, const DeleteConditionalAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConditionalAccessPolicyOutcomeCallable deleteConditionalAccessPolicyCallable(const Model::DeleteConditionalAccessPolicyRequest& request) const; + DeleteCustomPrivacyPolicyOutcome deleteCustomPrivacyPolicy(const Model::DeleteCustomPrivacyPolicyRequest &request)const; + void deleteCustomPrivacyPolicyAsync(const Model::DeleteCustomPrivacyPolicyRequest& request, const DeleteCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomPrivacyPolicyOutcomeCallable deleteCustomPrivacyPolicyCallable(const Model::DeleteCustomPrivacyPolicyRequest& request) const; DeleteDomainOutcome deleteDomain(const Model::DeleteDomainRequest &request)const; void deleteDomainAsync(const Model::DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDomainOutcomeCallable deleteDomainCallable(const Model::DeleteDomainRequest& request) const; @@ -1135,6 +1194,9 @@ namespace AlibabaCloud DisableConditionalAccessPolicyOutcome disableConditionalAccessPolicy(const Model::DisableConditionalAccessPolicyRequest &request)const; void disableConditionalAccessPolicyAsync(const Model::DisableConditionalAccessPolicyRequest& request, const DisableConditionalAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableConditionalAccessPolicyOutcomeCallable disableConditionalAccessPolicyCallable(const Model::DisableConditionalAccessPolicyRequest& request) const; + DisableCustomPrivacyPolicyOutcome disableCustomPrivacyPolicy(const Model::DisableCustomPrivacyPolicyRequest &request)const; + void disableCustomPrivacyPolicyAsync(const Model::DisableCustomPrivacyPolicyRequest& request, const DisableCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableCustomPrivacyPolicyOutcomeCallable disableCustomPrivacyPolicyCallable(const Model::DisableCustomPrivacyPolicyRequest& request) const; DisableDomainProxyTokenOutcome disableDomainProxyToken(const Model::DisableDomainProxyTokenRequest &request)const; void disableDomainProxyTokenAsync(const Model::DisableDomainProxyTokenRequest& request, const DisableDomainProxyTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableDomainProxyTokenOutcomeCallable disableDomainProxyTokenCallable(const Model::DisableDomainProxyTokenRequest& request) const; @@ -1180,6 +1242,9 @@ namespace AlibabaCloud EnableConditionalAccessPolicyOutcome enableConditionalAccessPolicy(const Model::EnableConditionalAccessPolicyRequest &request)const; void enableConditionalAccessPolicyAsync(const Model::EnableConditionalAccessPolicyRequest& request, const EnableConditionalAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableConditionalAccessPolicyOutcomeCallable enableConditionalAccessPolicyCallable(const Model::EnableConditionalAccessPolicyRequest& request) const; + EnableCustomPrivacyPolicyOutcome enableCustomPrivacyPolicy(const Model::EnableCustomPrivacyPolicyRequest &request)const; + void enableCustomPrivacyPolicyAsync(const Model::EnableCustomPrivacyPolicyRequest& request, const EnableCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableCustomPrivacyPolicyOutcomeCallable enableCustomPrivacyPolicyCallable(const Model::EnableCustomPrivacyPolicyRequest& request) const; EnableDomainProxyTokenOutcome enableDomainProxyToken(const Model::EnableDomainProxyTokenRequest &request)const; void enableDomainProxyTokenAsync(const Model::EnableDomainProxyTokenRequest& request, const EnableDomainProxyTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableDomainProxyTokenOutcomeCallable enableDomainProxyTokenCallable(const Model::EnableDomainProxyTokenRequest& request) const; @@ -1225,6 +1290,9 @@ namespace AlibabaCloud GetConditionalAccessPolicyOutcome getConditionalAccessPolicy(const Model::GetConditionalAccessPolicyRequest &request)const; void getConditionalAccessPolicyAsync(const Model::GetConditionalAccessPolicyRequest& request, const GetConditionalAccessPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetConditionalAccessPolicyOutcomeCallable getConditionalAccessPolicyCallable(const Model::GetConditionalAccessPolicyRequest& request) const; + GetCustomPrivacyPolicyOutcome getCustomPrivacyPolicy(const Model::GetCustomPrivacyPolicyRequest &request)const; + void getCustomPrivacyPolicyAsync(const Model::GetCustomPrivacyPolicyRequest& request, const GetCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCustomPrivacyPolicyOutcomeCallable getCustomPrivacyPolicyCallable(const Model::GetCustomPrivacyPolicyRequest& request) const; GetDomainOutcome getDomain(const Model::GetDomainRequest &request)const; void getDomainAsync(const Model::GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDomainOutcomeCallable getDomainCallable(const Model::GetDomainRequest& request) const; @@ -1339,6 +1407,12 @@ namespace AlibabaCloud ListConditionalAccessPoliciesForUserOutcome listConditionalAccessPoliciesForUser(const Model::ListConditionalAccessPoliciesForUserRequest &request)const; void listConditionalAccessPoliciesForUserAsync(const Model::ListConditionalAccessPoliciesForUserRequest& request, const ListConditionalAccessPoliciesForUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConditionalAccessPoliciesForUserOutcomeCallable listConditionalAccessPoliciesForUserCallable(const Model::ListConditionalAccessPoliciesForUserRequest& request) const; + ListCustomPrivacyPoliciesOutcome listCustomPrivacyPolicies(const Model::ListCustomPrivacyPoliciesRequest &request)const; + void listCustomPrivacyPoliciesAsync(const Model::ListCustomPrivacyPoliciesRequest& request, const ListCustomPrivacyPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomPrivacyPoliciesOutcomeCallable listCustomPrivacyPoliciesCallable(const Model::ListCustomPrivacyPoliciesRequest& request) const; + ListCustomPrivacyPoliciesForBrandOutcome listCustomPrivacyPoliciesForBrand(const Model::ListCustomPrivacyPoliciesForBrandRequest &request)const; + void listCustomPrivacyPoliciesForBrandAsync(const Model::ListCustomPrivacyPoliciesForBrandRequest& request, const ListCustomPrivacyPoliciesForBrandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomPrivacyPoliciesForBrandOutcomeCallable listCustomPrivacyPoliciesForBrandCallable(const Model::ListCustomPrivacyPoliciesForBrandRequest& request) const; ListDomainProxyTokensOutcome listDomainProxyTokens(const Model::ListDomainProxyTokensRequest &request)const; void listDomainProxyTokensAsync(const Model::ListDomainProxyTokensRequest& request, const ListDomainProxyTokensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDomainProxyTokensOutcomeCallable listDomainProxyTokensCallable(const Model::ListDomainProxyTokensRequest& request) const; @@ -1423,6 +1497,9 @@ namespace AlibabaCloud RemoveApplicationAccountFromUserOutcome removeApplicationAccountFromUser(const Model::RemoveApplicationAccountFromUserRequest &request)const; void removeApplicationAccountFromUserAsync(const Model::RemoveApplicationAccountFromUserRequest& request, const RemoveApplicationAccountFromUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveApplicationAccountFromUserOutcomeCallable removeApplicationAccountFromUserCallable(const Model::RemoveApplicationAccountFromUserRequest& request) const; + RemoveCustomPrivacyPoliciesFromBrandOutcome removeCustomPrivacyPoliciesFromBrand(const Model::RemoveCustomPrivacyPoliciesFromBrandRequest &request)const; + void removeCustomPrivacyPoliciesFromBrandAsync(const Model::RemoveCustomPrivacyPoliciesFromBrandRequest& request, const RemoveCustomPrivacyPoliciesFromBrandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveCustomPrivacyPoliciesFromBrandOutcomeCallable removeCustomPrivacyPoliciesFromBrandCallable(const Model::RemoveCustomPrivacyPoliciesFromBrandRequest& request) const; RemoveUserFromOrganizationalUnitsOutcome removeUserFromOrganizationalUnits(const Model::RemoveUserFromOrganizationalUnitsRequest &request)const; void removeUserFromOrganizationalUnitsAsync(const Model::RemoveUserFromOrganizationalUnitsRequest& request, const RemoveUserFromOrganizationalUnitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveUserFromOrganizationalUnitsOutcomeCallable removeUserFromOrganizationalUnitsCallable(const Model::RemoveUserFromOrganizationalUnitsRequest& request) const; @@ -1513,6 +1590,9 @@ namespace AlibabaCloud UpdateConditionalAccessPolicyDescriptionOutcome updateConditionalAccessPolicyDescription(const Model::UpdateConditionalAccessPolicyDescriptionRequest &request)const; void updateConditionalAccessPolicyDescriptionAsync(const Model::UpdateConditionalAccessPolicyDescriptionRequest& request, const UpdateConditionalAccessPolicyDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateConditionalAccessPolicyDescriptionOutcomeCallable updateConditionalAccessPolicyDescriptionCallable(const Model::UpdateConditionalAccessPolicyDescriptionRequest& request) const; + UpdateCustomPrivacyPolicyOutcome updateCustomPrivacyPolicy(const Model::UpdateCustomPrivacyPolicyRequest &request)const; + void updateCustomPrivacyPolicyAsync(const Model::UpdateCustomPrivacyPolicyRequest& request, const UpdateCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomPrivacyPolicyOutcomeCallable updateCustomPrivacyPolicyCallable(const Model::UpdateCustomPrivacyPolicyRequest& request) const; UpdateDomainBrandOutcome updateDomainBrand(const Model::UpdateDomainBrandRequest &request)const; void updateDomainBrandAsync(const Model::UpdateDomainBrandRequest& request, const UpdateDomainBrandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDomainBrandOutcomeCallable updateDomainBrandCallable(const Model::UpdateDomainBrandRequest& request) const; diff --git a/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.h b/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.h new file mode 100644 index 000000000..9635ef265 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.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_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT AddCustomPrivacyPoliciesToBrandRequest : public RpcServiceRequest { +public: + AddCustomPrivacyPoliciesToBrandRequest(); + ~AddCustomPrivacyPoliciesToBrandRequest(); + std::string getBrandId() const; + void setBrandId(const std::string &brandId); + std::vector getCustomPrivacyPolicyIds() const; + void setCustomPrivacyPolicyIds(const std::vector &customPrivacyPolicyIds); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string brandId_; + std::vector customPrivacyPolicyIds_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.h b/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.h new file mode 100644 index 000000000..2488420ce --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.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_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT AddCustomPrivacyPoliciesToBrandResult : public ServiceResult + { + public: + + + AddCustomPrivacyPoliciesToBrandResult(); + explicit AddCustomPrivacyPoliciesToBrandResult(const std::string &payload); + ~AddCustomPrivacyPoliciesToBrandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_ADDCUSTOMPRIVACYPOLICIESTOBRANDRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..041b1e9e9 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT CreateCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + struct CustomPrivacyPolicyContents { + std::string customPrivacyPolicyTip; + std::string languageCode; + struct CustomPrivacyPolicyItemsItem { + std::string customPrivacyPolicyItemUrl; + std::string customPrivacyPolicyItemName; + }; + CustomPrivacyPolicyItemsItem customPrivacyPolicyItemsItem; + std::vector customPrivacyPolicyItems; + }; + CreateCustomPrivacyPolicyRequest(); + ~CreateCustomPrivacyPolicyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDefaultLanguageCode() const; + void setDefaultLanguageCode(const std::string &defaultLanguageCode); + std::string getUserConsentType() const; + void setUserConsentType(const std::string &userConsentType); + std::vector getCustomPrivacyPolicyContents() const; + void setCustomPrivacyPolicyContents(const std::vector &customPrivacyPolicyContents); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCustomPrivacyPolicyName() const; + void setCustomPrivacyPolicyName(const std::string &customPrivacyPolicyName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string clientToken_; + std::string defaultLanguageCode_; + std::string userConsentType_; + std::vector customPrivacyPolicyContents_; + std::string instanceId_; + std::string customPrivacyPolicyName_; + std::string status_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..b38d203d2 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.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_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT CreateCustomPrivacyPolicyResult : public ServiceResult + { + public: + + + CreateCustomPrivacyPolicyResult(); + explicit CreateCustomPrivacyPolicyResult(const std::string &payload); + ~CreateCustomPrivacyPolicyResult(); + std::string getCustomPrivacyPolicyId()const; + + protected: + void parse(const std::string &payload); + private: + std::string customPrivacyPolicyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_CREATECUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..52fccc861 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.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_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT DeleteCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + DeleteCustomPrivacyPolicyRequest(); + ~DeleteCustomPrivacyPolicyRequest(); + std::string getCustomPrivacyPolicyId() const; + void setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string customPrivacyPolicyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..a6d415438 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.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_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT DeleteCustomPrivacyPolicyResult : public ServiceResult + { + public: + + + DeleteCustomPrivacyPolicyResult(); + explicit DeleteCustomPrivacyPolicyResult(const std::string &payload); + ~DeleteCustomPrivacyPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_DELETECUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..5b4d95ec2 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.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_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT DisableCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + DisableCustomPrivacyPolicyRequest(); + ~DisableCustomPrivacyPolicyRequest(); + std::string getCustomPrivacyPolicyId() const; + void setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string customPrivacyPolicyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..836f8cf54 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.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_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT DisableCustomPrivacyPolicyResult : public ServiceResult + { + public: + + + DisableCustomPrivacyPolicyResult(); + explicit DisableCustomPrivacyPolicyResult(const std::string &payload); + ~DisableCustomPrivacyPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_DISABLECUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..2f614bade --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.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_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT EnableCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + EnableCustomPrivacyPolicyRequest(); + ~EnableCustomPrivacyPolicyRequest(); + std::string getCustomPrivacyPolicyId() const; + void setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string customPrivacyPolicyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..ac0e52f6a --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.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_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT EnableCustomPrivacyPolicyResult : public ServiceResult + { + public: + + + EnableCustomPrivacyPolicyResult(); + explicit EnableCustomPrivacyPolicyResult(const std::string &payload); + ~EnableCustomPrivacyPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_ENABLECUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..c2399f635 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.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_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT GetCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + GetCustomPrivacyPolicyRequest(); + ~GetCustomPrivacyPolicyRequest(); + std::string getCustomPrivacyPolicyId() const; + void setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string customPrivacyPolicyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..9d42a95a5 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT GetCustomPrivacyPolicyResult : public ServiceResult + { + public: + struct CustomPrivacyPolicy + { + struct CustomPrivacyPolicyContentsItem + { + struct CustomPrivacyPolicyItemsItem + { + std::string customPrivacyPolicyItemName; + std::string customPrivacyPolicyItemUrl; + }; + std::string languageCode; + std::vector customPrivacyPolicyItems; + std::string customPrivacyPolicyTip; + }; + std::string status; + std::string customPrivacyPolicyId; + std::string customPrivacyPolicyName; + std::string instanceId; + std::string userConsentType; + std::vector customPrivacyPolicyContents; + std::string defaultLanguageCode; + }; + + + GetCustomPrivacyPolicyResult(); + explicit GetCustomPrivacyPolicyResult(const std::string &payload); + ~GetCustomPrivacyPolicyResult(); + CustomPrivacyPolicy getCustomPrivacyPolicy()const; + + protected: + void parse(const std::string &payload); + private: + CustomPrivacyPolicy customPrivacyPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_GETCUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h new file mode 100644 index 000000000..2b1e72cc7 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT ListCustomPrivacyPoliciesForBrandRequest : public RpcServiceRequest { +public: + ListCustomPrivacyPoliciesForBrandRequest(); + ~ListCustomPrivacyPoliciesForBrandRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getBrandId() const; + void setBrandId(const std::string &brandId); + std::string getPreviousToken() const; + void setPreviousToken(const std::string &previousToken); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string nextToken_; + std::string brandId_; + std::string previousToken_; + std::string instanceId_; + long maxResults_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.h b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.h new file mode 100644 index 000000000..d0745c0e1 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.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_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT ListCustomPrivacyPoliciesForBrandResult : public ServiceResult + { + public: + struct BrandCustomPrivacyPolicy + { + std::string customPrivacyPolicyId; + }; + + + ListCustomPrivacyPoliciesForBrandResult(); + explicit ListCustomPrivacyPoliciesForBrandResult(const std::string &payload); + ~ListCustomPrivacyPoliciesForBrandResult(); + long getTotalCount()const; + std::string getPreviousToken()const; + std::vector getBrandCustomPrivacyPolicies()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string previousToken_; + std::vector brandCustomPrivacyPolicies_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESFORBRANDRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h new file mode 100644 index 000000000..14aa42834 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT ListCustomPrivacyPoliciesRequest : public RpcServiceRequest { +public: + ListCustomPrivacyPoliciesRequest(); + ~ListCustomPrivacyPoliciesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getPreviousToken() const; + void setPreviousToken(const std::string &previousToken); + std::string getCustomPrivacyPolicyNameStartsWith() const; + void setCustomPrivacyPolicyNameStartsWith(const std::string &customPrivacyPolicyNameStartsWith); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string nextToken_; + std::string previousToken_; + std::string customPrivacyPolicyNameStartsWith_; + std::string instanceId_; + long maxResults_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h new file mode 100644 index 000000000..436c7bfb6 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT ListCustomPrivacyPoliciesResult : public ServiceResult + { + public: + struct CustomPrivacyPolicy + { + std::string status; + std::string customPrivacyPolicyId; + std::string instanceId; + std::string customPrivacyPolicyName; + std::string userConsentType; + std::string defaultLanguageCode; + }; + + + ListCustomPrivacyPoliciesResult(); + explicit ListCustomPrivacyPoliciesResult(const std::string &payload); + ~ListCustomPrivacyPoliciesResult(); + std::vector getCustomPrivacyPolicies()const; + long getTotalCount()const; + std::string getPreviousToken()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector customPrivacyPolicies_; + long totalCount_; + std::string previousToken_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTCUSTOMPRIVACYPOLICIESRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.h b/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.h new file mode 100644 index 000000000..e03f1c04f --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.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_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT RemoveCustomPrivacyPoliciesFromBrandRequest : public RpcServiceRequest { +public: + RemoveCustomPrivacyPoliciesFromBrandRequest(); + ~RemoveCustomPrivacyPoliciesFromBrandRequest(); + std::string getBrandId() const; + void setBrandId(const std::string &brandId); + std::vector getCustomPrivacyPolicyIds() const; + void setCustomPrivacyPolicyIds(const std::vector &customPrivacyPolicyIds); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string brandId_; + std::vector customPrivacyPolicyIds_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.h b/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.h new file mode 100644 index 000000000..c2376d006 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.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_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT RemoveCustomPrivacyPoliciesFromBrandResult : public ServiceResult + { + public: + + + RemoveCustomPrivacyPoliciesFromBrandResult(); + explicit RemoveCustomPrivacyPoliciesFromBrandResult(const std::string &payload); + ~RemoveCustomPrivacyPoliciesFromBrandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_REMOVECUSTOMPRIVACYPOLICIESFROMBRANDRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.h b/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.h new file mode 100644 index 000000000..35fb58cc0 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.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_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT UpdateCustomPrivacyPolicyRequest : public RpcServiceRequest { +public: + struct CustomPrivacyPolicyContents { + std::string customPrivacyPolicyTip; + std::string languageCode; + struct CustomPrivacyPolicyItemsItem { + std::string customPrivacyPolicyItemUrl; + std::string customPrivacyPolicyItemName; + }; + CustomPrivacyPolicyItemsItem customPrivacyPolicyItemsItem; + std::vector customPrivacyPolicyItems; + }; + UpdateCustomPrivacyPolicyRequest(); + ~UpdateCustomPrivacyPolicyRequest(); + std::string getDefaultLanguageCode() const; + void setDefaultLanguageCode(const std::string &defaultLanguageCode); + std::string getUserConsentType() const; + void setUserConsentType(const std::string &userConsentType); + std::vector getCustomPrivacyPolicyContents() const; + void setCustomPrivacyPolicyContents(const std::vector &customPrivacyPolicyContents); + std::string getCustomPrivacyPolicyId() const; + void setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCustomPrivacyPolicyName() const; + void setCustomPrivacyPolicyName(const std::string &customPrivacyPolicyName); + +private: + std::string defaultLanguageCode_; + std::string userConsentType_; + std::vector customPrivacyPolicyContents_; + std::string customPrivacyPolicyId_; + std::string instanceId_; + std::string customPrivacyPolicyName_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.h b/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.h new file mode 100644 index 000000000..670b170da --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.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_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT UpdateCustomPrivacyPolicyResult : public ServiceResult + { + public: + + + UpdateCustomPrivacyPolicyResult(); + explicit UpdateCustomPrivacyPolicyResult(const std::string &payload); + ~UpdateCustomPrivacyPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_UPDATECUSTOMPRIVACYPOLICYRESULT_H_ \ No newline at end of file diff --git a/eiam/src/EiamClient.cc b/eiam/src/EiamClient.cc index 0f4b31e0e..5aef16e39 100644 --- a/eiam/src/EiamClient.cc +++ b/eiam/src/EiamClient.cc @@ -87,6 +87,42 @@ EiamClient::AddApplicationAccountToUserOutcomeCallable EiamClient::addApplicatio return task->get_future(); } +EiamClient::AddCustomPrivacyPoliciesToBrandOutcome EiamClient::addCustomPrivacyPoliciesToBrand(const AddCustomPrivacyPoliciesToBrandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddCustomPrivacyPoliciesToBrandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCustomPrivacyPoliciesToBrandOutcome(AddCustomPrivacyPoliciesToBrandResult(outcome.result())); + else + return AddCustomPrivacyPoliciesToBrandOutcome(outcome.error()); +} + +void EiamClient::addCustomPrivacyPoliciesToBrandAsync(const AddCustomPrivacyPoliciesToBrandRequest& request, const AddCustomPrivacyPoliciesToBrandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCustomPrivacyPoliciesToBrand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::AddCustomPrivacyPoliciesToBrandOutcomeCallable EiamClient::addCustomPrivacyPoliciesToBrandCallable(const AddCustomPrivacyPoliciesToBrandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCustomPrivacyPoliciesToBrand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::AddUserToOrganizationalUnitsOutcome EiamClient::addUserToOrganizationalUnits(const AddUserToOrganizationalUnitsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +519,42 @@ EiamClient::CreateConditionalAccessPolicyOutcomeCallable EiamClient::createCondi return task->get_future(); } +EiamClient::CreateCustomPrivacyPolicyOutcome EiamClient::createCustomPrivacyPolicy(const CreateCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomPrivacyPolicyOutcome(CreateCustomPrivacyPolicyResult(outcome.result())); + else + return CreateCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::createCustomPrivacyPolicyAsync(const CreateCustomPrivacyPolicyRequest& request, const CreateCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::CreateCustomPrivacyPolicyOutcomeCallable EiamClient::createCustomPrivacyPolicyCallable(const CreateCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::CreateDomainOutcome EiamClient::createDomain(const CreateDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1131,42 @@ EiamClient::DeleteConditionalAccessPolicyOutcomeCallable EiamClient::deleteCondi return task->get_future(); } +EiamClient::DeleteCustomPrivacyPolicyOutcome EiamClient::deleteCustomPrivacyPolicy(const DeleteCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomPrivacyPolicyOutcome(DeleteCustomPrivacyPolicyResult(outcome.result())); + else + return DeleteCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::deleteCustomPrivacyPolicyAsync(const DeleteCustomPrivacyPolicyRequest& request, const DeleteCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::DeleteCustomPrivacyPolicyOutcomeCallable EiamClient::deleteCustomPrivacyPolicyCallable(const DeleteCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::DeleteDomainOutcome EiamClient::deleteDomain(const DeleteDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +1887,42 @@ EiamClient::DisableConditionalAccessPolicyOutcomeCallable EiamClient::disableCon return task->get_future(); } +EiamClient::DisableCustomPrivacyPolicyOutcome EiamClient::disableCustomPrivacyPolicy(const DisableCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableCustomPrivacyPolicyOutcome(DisableCustomPrivacyPolicyResult(outcome.result())); + else + return DisableCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::disableCustomPrivacyPolicyAsync(const DisableCustomPrivacyPolicyRequest& request, const DisableCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::DisableCustomPrivacyPolicyOutcomeCallable EiamClient::disableCustomPrivacyPolicyCallable(const DisableCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::DisableDomainProxyTokenOutcome EiamClient::disableDomainProxyToken(const DisableDomainProxyTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,6 +2463,42 @@ EiamClient::EnableConditionalAccessPolicyOutcomeCallable EiamClient::enableCondi return task->get_future(); } +EiamClient::EnableCustomPrivacyPolicyOutcome EiamClient::enableCustomPrivacyPolicy(const EnableCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableCustomPrivacyPolicyOutcome(EnableCustomPrivacyPolicyResult(outcome.result())); + else + return EnableCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::enableCustomPrivacyPolicyAsync(const EnableCustomPrivacyPolicyRequest& request, const EnableCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::EnableCustomPrivacyPolicyOutcomeCallable EiamClient::enableCustomPrivacyPolicyCallable(const EnableCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::EnableDomainProxyTokenOutcome EiamClient::enableDomainProxyToken(const EnableDomainProxyTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3039,42 @@ EiamClient::GetConditionalAccessPolicyOutcomeCallable EiamClient::getConditional return task->get_future(); } +EiamClient::GetCustomPrivacyPolicyOutcome EiamClient::getCustomPrivacyPolicy(const GetCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCustomPrivacyPolicyOutcome(GetCustomPrivacyPolicyResult(outcome.result())); + else + return GetCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::getCustomPrivacyPolicyAsync(const GetCustomPrivacyPolicyRequest& request, const GetCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::GetCustomPrivacyPolicyOutcomeCallable EiamClient::getCustomPrivacyPolicyCallable(const GetCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::GetDomainOutcome EiamClient::getDomain(const GetDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4227,6 +4443,78 @@ EiamClient::ListConditionalAccessPoliciesForUserOutcomeCallable EiamClient::list return task->get_future(); } +EiamClient::ListCustomPrivacyPoliciesOutcome EiamClient::listCustomPrivacyPolicies(const ListCustomPrivacyPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomPrivacyPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomPrivacyPoliciesOutcome(ListCustomPrivacyPoliciesResult(outcome.result())); + else + return ListCustomPrivacyPoliciesOutcome(outcome.error()); +} + +void EiamClient::listCustomPrivacyPoliciesAsync(const ListCustomPrivacyPoliciesRequest& request, const ListCustomPrivacyPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomPrivacyPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::ListCustomPrivacyPoliciesOutcomeCallable EiamClient::listCustomPrivacyPoliciesCallable(const ListCustomPrivacyPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomPrivacyPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EiamClient::ListCustomPrivacyPoliciesForBrandOutcome EiamClient::listCustomPrivacyPoliciesForBrand(const ListCustomPrivacyPoliciesForBrandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomPrivacyPoliciesForBrandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomPrivacyPoliciesForBrandOutcome(ListCustomPrivacyPoliciesForBrandResult(outcome.result())); + else + return ListCustomPrivacyPoliciesForBrandOutcome(outcome.error()); +} + +void EiamClient::listCustomPrivacyPoliciesForBrandAsync(const ListCustomPrivacyPoliciesForBrandRequest& request, const ListCustomPrivacyPoliciesForBrandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomPrivacyPoliciesForBrand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::ListCustomPrivacyPoliciesForBrandOutcomeCallable EiamClient::listCustomPrivacyPoliciesForBrandCallable(const ListCustomPrivacyPoliciesForBrandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomPrivacyPoliciesForBrand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::ListDomainProxyTokensOutcome EiamClient::listDomainProxyTokens(const ListDomainProxyTokensRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,6 +5523,42 @@ EiamClient::RemoveApplicationAccountFromUserOutcomeCallable EiamClient::removeAp return task->get_future(); } +EiamClient::RemoveCustomPrivacyPoliciesFromBrandOutcome EiamClient::removeCustomPrivacyPoliciesFromBrand(const RemoveCustomPrivacyPoliciesFromBrandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveCustomPrivacyPoliciesFromBrandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveCustomPrivacyPoliciesFromBrandOutcome(RemoveCustomPrivacyPoliciesFromBrandResult(outcome.result())); + else + return RemoveCustomPrivacyPoliciesFromBrandOutcome(outcome.error()); +} + +void EiamClient::removeCustomPrivacyPoliciesFromBrandAsync(const RemoveCustomPrivacyPoliciesFromBrandRequest& request, const RemoveCustomPrivacyPoliciesFromBrandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeCustomPrivacyPoliciesFromBrand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::RemoveCustomPrivacyPoliciesFromBrandOutcomeCallable EiamClient::removeCustomPrivacyPoliciesFromBrandCallable(const RemoveCustomPrivacyPoliciesFromBrandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeCustomPrivacyPoliciesFromBrand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::RemoveUserFromOrganizationalUnitsOutcome EiamClient::removeUserFromOrganizationalUnits(const RemoveUserFromOrganizationalUnitsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6315,6 +6639,42 @@ EiamClient::UpdateConditionalAccessPolicyDescriptionOutcomeCallable EiamClient:: return task->get_future(); } +EiamClient::UpdateCustomPrivacyPolicyOutcome EiamClient::updateCustomPrivacyPolicy(const UpdateCustomPrivacyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomPrivacyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomPrivacyPolicyOutcome(UpdateCustomPrivacyPolicyResult(outcome.result())); + else + return UpdateCustomPrivacyPolicyOutcome(outcome.error()); +} + +void EiamClient::updateCustomPrivacyPolicyAsync(const UpdateCustomPrivacyPolicyRequest& request, const UpdateCustomPrivacyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomPrivacyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::UpdateCustomPrivacyPolicyOutcomeCallable EiamClient::updateCustomPrivacyPolicyCallable(const UpdateCustomPrivacyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomPrivacyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::UpdateDomainBrandOutcome EiamClient::updateDomainBrand(const UpdateDomainBrandRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.cc b/eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.cc new file mode 100644 index 000000000..a5167440a --- /dev/null +++ b/eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.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::Eiam::Model::AddCustomPrivacyPoliciesToBrandRequest; + +AddCustomPrivacyPoliciesToBrandRequest::AddCustomPrivacyPoliciesToBrandRequest() + : RpcServiceRequest("eiam", "2021-12-01", "AddCustomPrivacyPoliciesToBrand") { + setMethod(HttpRequest::Method::Post); +} + +AddCustomPrivacyPoliciesToBrandRequest::~AddCustomPrivacyPoliciesToBrandRequest() {} + +std::string AddCustomPrivacyPoliciesToBrandRequest::getBrandId() const { + return brandId_; +} + +void AddCustomPrivacyPoliciesToBrandRequest::setBrandId(const std::string &brandId) { + brandId_ = brandId; + setParameter(std::string("BrandId"), brandId); +} + +std::vector AddCustomPrivacyPoliciesToBrandRequest::getCustomPrivacyPolicyIds() const { + return customPrivacyPolicyIds_; +} + +void AddCustomPrivacyPoliciesToBrandRequest::setCustomPrivacyPolicyIds(const std::vector &customPrivacyPolicyIds) { + customPrivacyPolicyIds_ = customPrivacyPolicyIds; + for(int dep1 = 0; dep1 != customPrivacyPolicyIds.size(); dep1++) { + setParameter(std::string("CustomPrivacyPolicyIds") + "." + std::to_string(dep1 + 1), customPrivacyPolicyIds[dep1]); + } +} + +std::string AddCustomPrivacyPoliciesToBrandRequest::getInstanceId() const { + return instanceId_; +} + +void AddCustomPrivacyPoliciesToBrandRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.cc b/eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.cc new file mode 100644 index 000000000..18b81dc22 --- /dev/null +++ b/eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +AddCustomPrivacyPoliciesToBrandResult::AddCustomPrivacyPoliciesToBrandResult() : + ServiceResult() +{} + +AddCustomPrivacyPoliciesToBrandResult::AddCustomPrivacyPoliciesToBrandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddCustomPrivacyPoliciesToBrandResult::~AddCustomPrivacyPoliciesToBrandResult() +{} + +void AddCustomPrivacyPoliciesToBrandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/CreateCustomPrivacyPolicyRequest.cc b/eiam/src/model/CreateCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..42d491c55 --- /dev/null +++ b/eiam/src/model/CreateCustomPrivacyPolicyRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eiam::Model::CreateCustomPrivacyPolicyRequest; + +CreateCustomPrivacyPolicyRequest::CreateCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "CreateCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomPrivacyPolicyRequest::~CreateCustomPrivacyPolicyRequest() {} + +std::string CreateCustomPrivacyPolicyRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomPrivacyPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateCustomPrivacyPolicyRequest::getDefaultLanguageCode() const { + return defaultLanguageCode_; +} + +void CreateCustomPrivacyPolicyRequest::setDefaultLanguageCode(const std::string &defaultLanguageCode) { + defaultLanguageCode_ = defaultLanguageCode; + setParameter(std::string("DefaultLanguageCode"), defaultLanguageCode); +} + +std::string CreateCustomPrivacyPolicyRequest::getUserConsentType() const { + return userConsentType_; +} + +void CreateCustomPrivacyPolicyRequest::setUserConsentType(const std::string &userConsentType) { + userConsentType_ = userConsentType; + setParameter(std::string("UserConsentType"), userConsentType); +} + +std::vector CreateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyContents() const { + return customPrivacyPolicyContents_; +} + +void CreateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyContents(const std::vector &customPrivacyPolicyContents) { + customPrivacyPolicyContents_ = customPrivacyPolicyContents; + for(int dep1 = 0; dep1 != customPrivacyPolicyContents.size(); dep1++) { + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyTip", customPrivacyPolicyContents[dep1].customPrivacyPolicyTip); + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".LanguageCode", customPrivacyPolicyContents[dep1].languageCode); + for(int dep2 = 0; dep2 != customPrivacyPolicyContents[dep1].customPrivacyPolicyItems.size(); dep2++) { + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyItems." + std::to_string(dep2 + 1) + ".CustomPrivacyPolicyItemUrl", customPrivacyPolicyContents[dep1].customPrivacyPolicyItems[dep2].customPrivacyPolicyItemUrl); + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyItems." + std::to_string(dep2 + 1) + ".CustomPrivacyPolicyItemName", customPrivacyPolicyContents[dep1].customPrivacyPolicyItems[dep2].customPrivacyPolicyItemName); + } + } +} + +std::string CreateCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void CreateCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyName() const { + return customPrivacyPolicyName_; +} + +void CreateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyName(const std::string &customPrivacyPolicyName) { + customPrivacyPolicyName_ = customPrivacyPolicyName; + setParameter(std::string("CustomPrivacyPolicyName"), customPrivacyPolicyName); +} + +std::string CreateCustomPrivacyPolicyRequest::getStatus() const { + return status_; +} + +void CreateCustomPrivacyPolicyRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/eiam/src/model/CreateCustomPrivacyPolicyResult.cc b/eiam/src/model/CreateCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..d3b7aff26 --- /dev/null +++ b/eiam/src/model/CreateCustomPrivacyPolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +CreateCustomPrivacyPolicyResult::CreateCustomPrivacyPolicyResult() : + ServiceResult() +{} + +CreateCustomPrivacyPolicyResult::CreateCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomPrivacyPolicyResult::~CreateCustomPrivacyPolicyResult() +{} + +void CreateCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CustomPrivacyPolicyId"].isNull()) + customPrivacyPolicyId_ = value["CustomPrivacyPolicyId"].asString(); + +} + +std::string CreateCustomPrivacyPolicyResult::getCustomPrivacyPolicyId()const +{ + return customPrivacyPolicyId_; +} + diff --git a/eiam/src/model/DeleteCustomPrivacyPolicyRequest.cc b/eiam/src/model/DeleteCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..7c8e7b119 --- /dev/null +++ b/eiam/src/model/DeleteCustomPrivacyPolicyRequest.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::Eiam::Model::DeleteCustomPrivacyPolicyRequest; + +DeleteCustomPrivacyPolicyRequest::DeleteCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "DeleteCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomPrivacyPolicyRequest::~DeleteCustomPrivacyPolicyRequest() {} + +std::string DeleteCustomPrivacyPolicyRequest::getCustomPrivacyPolicyId() const { + return customPrivacyPolicyId_; +} + +void DeleteCustomPrivacyPolicyRequest::setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId) { + customPrivacyPolicyId_ = customPrivacyPolicyId; + setParameter(std::string("CustomPrivacyPolicyId"), customPrivacyPolicyId); +} + +std::string DeleteCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/DeleteCustomPrivacyPolicyResult.cc b/eiam/src/model/DeleteCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..5f1e6e861 --- /dev/null +++ b/eiam/src/model/DeleteCustomPrivacyPolicyResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +DeleteCustomPrivacyPolicyResult::DeleteCustomPrivacyPolicyResult() : + ServiceResult() +{} + +DeleteCustomPrivacyPolicyResult::DeleteCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomPrivacyPolicyResult::~DeleteCustomPrivacyPolicyResult() +{} + +void DeleteCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/DisableCustomPrivacyPolicyRequest.cc b/eiam/src/model/DisableCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..a242ebaff --- /dev/null +++ b/eiam/src/model/DisableCustomPrivacyPolicyRequest.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::Eiam::Model::DisableCustomPrivacyPolicyRequest; + +DisableCustomPrivacyPolicyRequest::DisableCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "DisableCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DisableCustomPrivacyPolicyRequest::~DisableCustomPrivacyPolicyRequest() {} + +std::string DisableCustomPrivacyPolicyRequest::getCustomPrivacyPolicyId() const { + return customPrivacyPolicyId_; +} + +void DisableCustomPrivacyPolicyRequest::setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId) { + customPrivacyPolicyId_ = customPrivacyPolicyId; + setParameter(std::string("CustomPrivacyPolicyId"), customPrivacyPolicyId); +} + +std::string DisableCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void DisableCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/DisableCustomPrivacyPolicyResult.cc b/eiam/src/model/DisableCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..80e11cc1c --- /dev/null +++ b/eiam/src/model/DisableCustomPrivacyPolicyResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +DisableCustomPrivacyPolicyResult::DisableCustomPrivacyPolicyResult() : + ServiceResult() +{} + +DisableCustomPrivacyPolicyResult::DisableCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableCustomPrivacyPolicyResult::~DisableCustomPrivacyPolicyResult() +{} + +void DisableCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/EnableCustomPrivacyPolicyRequest.cc b/eiam/src/model/EnableCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..c05c8b799 --- /dev/null +++ b/eiam/src/model/EnableCustomPrivacyPolicyRequest.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::Eiam::Model::EnableCustomPrivacyPolicyRequest; + +EnableCustomPrivacyPolicyRequest::EnableCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "EnableCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +EnableCustomPrivacyPolicyRequest::~EnableCustomPrivacyPolicyRequest() {} + +std::string EnableCustomPrivacyPolicyRequest::getCustomPrivacyPolicyId() const { + return customPrivacyPolicyId_; +} + +void EnableCustomPrivacyPolicyRequest::setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId) { + customPrivacyPolicyId_ = customPrivacyPolicyId; + setParameter(std::string("CustomPrivacyPolicyId"), customPrivacyPolicyId); +} + +std::string EnableCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void EnableCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/EnableCustomPrivacyPolicyResult.cc b/eiam/src/model/EnableCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..45b5e841b --- /dev/null +++ b/eiam/src/model/EnableCustomPrivacyPolicyResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +EnableCustomPrivacyPolicyResult::EnableCustomPrivacyPolicyResult() : + ServiceResult() +{} + +EnableCustomPrivacyPolicyResult::EnableCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableCustomPrivacyPolicyResult::~EnableCustomPrivacyPolicyResult() +{} + +void EnableCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/GetCustomPrivacyPolicyRequest.cc b/eiam/src/model/GetCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..2cce004cf --- /dev/null +++ b/eiam/src/model/GetCustomPrivacyPolicyRequest.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::Eiam::Model::GetCustomPrivacyPolicyRequest; + +GetCustomPrivacyPolicyRequest::GetCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "GetCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetCustomPrivacyPolicyRequest::~GetCustomPrivacyPolicyRequest() {} + +std::string GetCustomPrivacyPolicyRequest::getCustomPrivacyPolicyId() const { + return customPrivacyPolicyId_; +} + +void GetCustomPrivacyPolicyRequest::setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId) { + customPrivacyPolicyId_ = customPrivacyPolicyId; + setParameter(std::string("CustomPrivacyPolicyId"), customPrivacyPolicyId); +} + +std::string GetCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void GetCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/GetCustomPrivacyPolicyResult.cc b/eiam/src/model/GetCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..97df2b926 --- /dev/null +++ b/eiam/src/model/GetCustomPrivacyPolicyResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +GetCustomPrivacyPolicyResult::GetCustomPrivacyPolicyResult() : + ServiceResult() +{} + +GetCustomPrivacyPolicyResult::GetCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomPrivacyPolicyResult::~GetCustomPrivacyPolicyResult() +{} + +void GetCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto customPrivacyPolicyNode = value["CustomPrivacyPolicy"]; + if(!customPrivacyPolicyNode["CustomPrivacyPolicyId"].isNull()) + customPrivacyPolicy_.customPrivacyPolicyId = customPrivacyPolicyNode["CustomPrivacyPolicyId"].asString(); + if(!customPrivacyPolicyNode["CustomPrivacyPolicyName"].isNull()) + customPrivacyPolicy_.customPrivacyPolicyName = customPrivacyPolicyNode["CustomPrivacyPolicyName"].asString(); + if(!customPrivacyPolicyNode["Status"].isNull()) + customPrivacyPolicy_.status = customPrivacyPolicyNode["Status"].asString(); + if(!customPrivacyPolicyNode["DefaultLanguageCode"].isNull()) + customPrivacyPolicy_.defaultLanguageCode = customPrivacyPolicyNode["DefaultLanguageCode"].asString(); + if(!customPrivacyPolicyNode["UserConsentType"].isNull()) + customPrivacyPolicy_.userConsentType = customPrivacyPolicyNode["UserConsentType"].asString(); + if(!customPrivacyPolicyNode["InstanceId"].isNull()) + customPrivacyPolicy_.instanceId = customPrivacyPolicyNode["InstanceId"].asString(); + auto allCustomPrivacyPolicyContentsNode = customPrivacyPolicyNode["CustomPrivacyPolicyContents"]["customPrivacyPolicyContentsItem"]; + for (auto customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem : allCustomPrivacyPolicyContentsNode) + { + CustomPrivacyPolicy::CustomPrivacyPolicyContentsItem customPrivacyPolicyContentsItemObject; + if(!customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem["CustomPrivacyPolicyTip"].isNull()) + customPrivacyPolicyContentsItemObject.customPrivacyPolicyTip = customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem["CustomPrivacyPolicyTip"].asString(); + if(!customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem["LanguageCode"].isNull()) + customPrivacyPolicyContentsItemObject.languageCode = customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem["LanguageCode"].asString(); + auto allCustomPrivacyPolicyItemsNode = customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItem["CustomPrivacyPolicyItems"]["customPrivacyPolicyItemsItem"]; + for (auto customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItemCustomPrivacyPolicyItemscustomPrivacyPolicyItemsItem : allCustomPrivacyPolicyItemsNode) + { + CustomPrivacyPolicy::CustomPrivacyPolicyContentsItem::CustomPrivacyPolicyItemsItem customPrivacyPolicyItemsObject; + if(!customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItemCustomPrivacyPolicyItemscustomPrivacyPolicyItemsItem["CustomPrivacyPolicyItemName"].isNull()) + customPrivacyPolicyItemsObject.customPrivacyPolicyItemName = customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItemCustomPrivacyPolicyItemscustomPrivacyPolicyItemsItem["CustomPrivacyPolicyItemName"].asString(); + if(!customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItemCustomPrivacyPolicyItemscustomPrivacyPolicyItemsItem["CustomPrivacyPolicyItemUrl"].isNull()) + customPrivacyPolicyItemsObject.customPrivacyPolicyItemUrl = customPrivacyPolicyNodeCustomPrivacyPolicyContentscustomPrivacyPolicyContentsItemCustomPrivacyPolicyItemscustomPrivacyPolicyItemsItem["CustomPrivacyPolicyItemUrl"].asString(); + customPrivacyPolicyContentsItemObject.customPrivacyPolicyItems.push_back(customPrivacyPolicyItemsObject); + } + customPrivacyPolicy_.customPrivacyPolicyContents.push_back(customPrivacyPolicyContentsItemObject); + } + +} + +GetCustomPrivacyPolicyResult::CustomPrivacyPolicy GetCustomPrivacyPolicyResult::getCustomPrivacyPolicy()const +{ + return customPrivacyPolicy_; +} + diff --git a/eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc b/eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc new file mode 100644 index 000000000..a9e56ce8f --- /dev/null +++ b/eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eiam::Model::ListCustomPrivacyPoliciesForBrandRequest; + +ListCustomPrivacyPoliciesForBrandRequest::ListCustomPrivacyPoliciesForBrandRequest() + : RpcServiceRequest("eiam", "2021-12-01", "ListCustomPrivacyPoliciesForBrand") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomPrivacyPoliciesForBrandRequest::~ListCustomPrivacyPoliciesForBrandRequest() {} + +std::string ListCustomPrivacyPoliciesForBrandRequest::getNextToken() const { + return nextToken_; +} + +void ListCustomPrivacyPoliciesForBrandRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListCustomPrivacyPoliciesForBrandRequest::getBrandId() const { + return brandId_; +} + +void ListCustomPrivacyPoliciesForBrandRequest::setBrandId(const std::string &brandId) { + brandId_ = brandId; + setParameter(std::string("BrandId"), brandId); +} + +std::string ListCustomPrivacyPoliciesForBrandRequest::getPreviousToken() const { + return previousToken_; +} + +void ListCustomPrivacyPoliciesForBrandRequest::setPreviousToken(const std::string &previousToken) { + previousToken_ = previousToken; + setParameter(std::string("PreviousToken"), previousToken); +} + +std::string ListCustomPrivacyPoliciesForBrandRequest::getInstanceId() const { + return instanceId_; +} + +void ListCustomPrivacyPoliciesForBrandRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +long ListCustomPrivacyPoliciesForBrandRequest::getMaxResults() const { + return maxResults_; +} + +void ListCustomPrivacyPoliciesForBrandRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc b/eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc new file mode 100644 index 000000000..f5e809556 --- /dev/null +++ b/eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +ListCustomPrivacyPoliciesForBrandResult::ListCustomPrivacyPoliciesForBrandResult() : + ServiceResult() +{} + +ListCustomPrivacyPoliciesForBrandResult::ListCustomPrivacyPoliciesForBrandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomPrivacyPoliciesForBrandResult::~ListCustomPrivacyPoliciesForBrandResult() +{} + +void ListCustomPrivacyPoliciesForBrandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBrandCustomPrivacyPoliciesNode = value["BrandCustomPrivacyPolicies"]["BrandCustomPrivacyPolicy"]; + for (auto valueBrandCustomPrivacyPoliciesBrandCustomPrivacyPolicy : allBrandCustomPrivacyPoliciesNode) + { + BrandCustomPrivacyPolicy brandCustomPrivacyPoliciesObject; + if(!valueBrandCustomPrivacyPoliciesBrandCustomPrivacyPolicy["CustomPrivacyPolicyId"].isNull()) + brandCustomPrivacyPoliciesObject.customPrivacyPolicyId = valueBrandCustomPrivacyPoliciesBrandCustomPrivacyPolicy["CustomPrivacyPolicyId"].asString(); + brandCustomPrivacyPolicies_.push_back(brandCustomPrivacyPoliciesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["PreviousToken"].isNull()) + previousToken_ = value["PreviousToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +long ListCustomPrivacyPoliciesForBrandResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListCustomPrivacyPoliciesForBrandResult::getPreviousToken()const +{ + return previousToken_; +} + +std::vector ListCustomPrivacyPoliciesForBrandResult::getBrandCustomPrivacyPolicies()const +{ + return brandCustomPrivacyPolicies_; +} + +std::string ListCustomPrivacyPoliciesForBrandResult::getNextToken()const +{ + return nextToken_; +} + +long ListCustomPrivacyPoliciesForBrandResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/eiam/src/model/ListCustomPrivacyPoliciesRequest.cc b/eiam/src/model/ListCustomPrivacyPoliciesRequest.cc new file mode 100644 index 000000000..96fc30b99 --- /dev/null +++ b/eiam/src/model/ListCustomPrivacyPoliciesRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eiam::Model::ListCustomPrivacyPoliciesRequest; + +ListCustomPrivacyPoliciesRequest::ListCustomPrivacyPoliciesRequest() + : RpcServiceRequest("eiam", "2021-12-01", "ListCustomPrivacyPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomPrivacyPoliciesRequest::~ListCustomPrivacyPoliciesRequest() {} + +std::string ListCustomPrivacyPoliciesRequest::getNextToken() const { + return nextToken_; +} + +void ListCustomPrivacyPoliciesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListCustomPrivacyPoliciesRequest::getPreviousToken() const { + return previousToken_; +} + +void ListCustomPrivacyPoliciesRequest::setPreviousToken(const std::string &previousToken) { + previousToken_ = previousToken; + setParameter(std::string("PreviousToken"), previousToken); +} + +std::string ListCustomPrivacyPoliciesRequest::getCustomPrivacyPolicyNameStartsWith() const { + return customPrivacyPolicyNameStartsWith_; +} + +void ListCustomPrivacyPoliciesRequest::setCustomPrivacyPolicyNameStartsWith(const std::string &customPrivacyPolicyNameStartsWith) { + customPrivacyPolicyNameStartsWith_ = customPrivacyPolicyNameStartsWith; + setParameter(std::string("CustomPrivacyPolicyNameStartsWith"), customPrivacyPolicyNameStartsWith); +} + +std::string ListCustomPrivacyPoliciesRequest::getInstanceId() const { + return instanceId_; +} + +void ListCustomPrivacyPoliciesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +long ListCustomPrivacyPoliciesRequest::getMaxResults() const { + return maxResults_; +} + +void ListCustomPrivacyPoliciesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/eiam/src/model/ListCustomPrivacyPoliciesResult.cc b/eiam/src/model/ListCustomPrivacyPoliciesResult.cc new file mode 100644 index 000000000..58a6b0611 --- /dev/null +++ b/eiam/src/model/ListCustomPrivacyPoliciesResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +ListCustomPrivacyPoliciesResult::ListCustomPrivacyPoliciesResult() : + ServiceResult() +{} + +ListCustomPrivacyPoliciesResult::ListCustomPrivacyPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomPrivacyPoliciesResult::~ListCustomPrivacyPoliciesResult() +{} + +void ListCustomPrivacyPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCustomPrivacyPoliciesNode = value["CustomPrivacyPolicies"]["CustomPrivacyPolicy"]; + for (auto valueCustomPrivacyPoliciesCustomPrivacyPolicy : allCustomPrivacyPoliciesNode) + { + CustomPrivacyPolicy customPrivacyPoliciesObject; + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["InstanceId"].isNull()) + customPrivacyPoliciesObject.instanceId = valueCustomPrivacyPoliciesCustomPrivacyPolicy["InstanceId"].asString(); + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["CustomPrivacyPolicyId"].isNull()) + customPrivacyPoliciesObject.customPrivacyPolicyId = valueCustomPrivacyPoliciesCustomPrivacyPolicy["CustomPrivacyPolicyId"].asString(); + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["CustomPrivacyPolicyName"].isNull()) + customPrivacyPoliciesObject.customPrivacyPolicyName = valueCustomPrivacyPoliciesCustomPrivacyPolicy["CustomPrivacyPolicyName"].asString(); + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["Status"].isNull()) + customPrivacyPoliciesObject.status = valueCustomPrivacyPoliciesCustomPrivacyPolicy["Status"].asString(); + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["UserConsentType"].isNull()) + customPrivacyPoliciesObject.userConsentType = valueCustomPrivacyPoliciesCustomPrivacyPolicy["UserConsentType"].asString(); + if(!valueCustomPrivacyPoliciesCustomPrivacyPolicy["DefaultLanguageCode"].isNull()) + customPrivacyPoliciesObject.defaultLanguageCode = valueCustomPrivacyPoliciesCustomPrivacyPolicy["DefaultLanguageCode"].asString(); + customPrivacyPolicies_.push_back(customPrivacyPoliciesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["PreviousToken"].isNull()) + previousToken_ = value["PreviousToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +std::vector ListCustomPrivacyPoliciesResult::getCustomPrivacyPolicies()const +{ + return customPrivacyPolicies_; +} + +long ListCustomPrivacyPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListCustomPrivacyPoliciesResult::getPreviousToken()const +{ + return previousToken_; +} + +std::string ListCustomPrivacyPoliciesResult::getNextToken()const +{ + return nextToken_; +} + +long ListCustomPrivacyPoliciesResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandRequest.cc b/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandRequest.cc new file mode 100644 index 000000000..10e306f85 --- /dev/null +++ b/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandRequest.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::Eiam::Model::RemoveCustomPrivacyPoliciesFromBrandRequest; + +RemoveCustomPrivacyPoliciesFromBrandRequest::RemoveCustomPrivacyPoliciesFromBrandRequest() + : RpcServiceRequest("eiam", "2021-12-01", "RemoveCustomPrivacyPoliciesFromBrand") { + setMethod(HttpRequest::Method::Post); +} + +RemoveCustomPrivacyPoliciesFromBrandRequest::~RemoveCustomPrivacyPoliciesFromBrandRequest() {} + +std::string RemoveCustomPrivacyPoliciesFromBrandRequest::getBrandId() const { + return brandId_; +} + +void RemoveCustomPrivacyPoliciesFromBrandRequest::setBrandId(const std::string &brandId) { + brandId_ = brandId; + setParameter(std::string("BrandId"), brandId); +} + +std::vector RemoveCustomPrivacyPoliciesFromBrandRequest::getCustomPrivacyPolicyIds() const { + return customPrivacyPolicyIds_; +} + +void RemoveCustomPrivacyPoliciesFromBrandRequest::setCustomPrivacyPolicyIds(const std::vector &customPrivacyPolicyIds) { + customPrivacyPolicyIds_ = customPrivacyPolicyIds; + for(int dep1 = 0; dep1 != customPrivacyPolicyIds.size(); dep1++) { + setParameter(std::string("CustomPrivacyPolicyIds") + "." + std::to_string(dep1 + 1), customPrivacyPolicyIds[dep1]); + } +} + +std::string RemoveCustomPrivacyPoliciesFromBrandRequest::getInstanceId() const { + return instanceId_; +} + +void RemoveCustomPrivacyPoliciesFromBrandRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc b/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc new file mode 100644 index 000000000..ef11ded99 --- /dev/null +++ b/eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +RemoveCustomPrivacyPoliciesFromBrandResult::RemoveCustomPrivacyPoliciesFromBrandResult() : + ServiceResult() +{} + +RemoveCustomPrivacyPoliciesFromBrandResult::RemoveCustomPrivacyPoliciesFromBrandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveCustomPrivacyPoliciesFromBrandResult::~RemoveCustomPrivacyPoliciesFromBrandResult() +{} + +void RemoveCustomPrivacyPoliciesFromBrandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/UpdateCustomPrivacyPolicyRequest.cc b/eiam/src/model/UpdateCustomPrivacyPolicyRequest.cc new file mode 100644 index 000000000..b3f81fe5f --- /dev/null +++ b/eiam/src/model/UpdateCustomPrivacyPolicyRequest.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 + +using AlibabaCloud::Eiam::Model::UpdateCustomPrivacyPolicyRequest; + +UpdateCustomPrivacyPolicyRequest::UpdateCustomPrivacyPolicyRequest() + : RpcServiceRequest("eiam", "2021-12-01", "UpdateCustomPrivacyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomPrivacyPolicyRequest::~UpdateCustomPrivacyPolicyRequest() {} + +std::string UpdateCustomPrivacyPolicyRequest::getDefaultLanguageCode() const { + return defaultLanguageCode_; +} + +void UpdateCustomPrivacyPolicyRequest::setDefaultLanguageCode(const std::string &defaultLanguageCode) { + defaultLanguageCode_ = defaultLanguageCode; + setParameter(std::string("DefaultLanguageCode"), defaultLanguageCode); +} + +std::string UpdateCustomPrivacyPolicyRequest::getUserConsentType() const { + return userConsentType_; +} + +void UpdateCustomPrivacyPolicyRequest::setUserConsentType(const std::string &userConsentType) { + userConsentType_ = userConsentType; + setParameter(std::string("UserConsentType"), userConsentType); +} + +std::vector UpdateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyContents() const { + return customPrivacyPolicyContents_; +} + +void UpdateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyContents(const std::vector &customPrivacyPolicyContents) { + customPrivacyPolicyContents_ = customPrivacyPolicyContents; + for(int dep1 = 0; dep1 != customPrivacyPolicyContents.size(); dep1++) { + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyTip", customPrivacyPolicyContents[dep1].customPrivacyPolicyTip); + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".LanguageCode", customPrivacyPolicyContents[dep1].languageCode); + for(int dep2 = 0; dep2 != customPrivacyPolicyContents[dep1].customPrivacyPolicyItems.size(); dep2++) { + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyItems." + std::to_string(dep2 + 1) + ".CustomPrivacyPolicyItemUrl", customPrivacyPolicyContents[dep1].customPrivacyPolicyItems[dep2].customPrivacyPolicyItemUrl); + setParameter(std::string("CustomPrivacyPolicyContents") + "." + std::to_string(dep1 + 1) + ".CustomPrivacyPolicyItems." + std::to_string(dep2 + 1) + ".CustomPrivacyPolicyItemName", customPrivacyPolicyContents[dep1].customPrivacyPolicyItems[dep2].customPrivacyPolicyItemName); + } + } +} + +std::string UpdateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyId() const { + return customPrivacyPolicyId_; +} + +void UpdateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyId(const std::string &customPrivacyPolicyId) { + customPrivacyPolicyId_ = customPrivacyPolicyId; + setParameter(std::string("CustomPrivacyPolicyId"), customPrivacyPolicyId); +} + +std::string UpdateCustomPrivacyPolicyRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateCustomPrivacyPolicyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyName() const { + return customPrivacyPolicyName_; +} + +void UpdateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyName(const std::string &customPrivacyPolicyName) { + customPrivacyPolicyName_ = customPrivacyPolicyName; + setParameter(std::string("CustomPrivacyPolicyName"), customPrivacyPolicyName); +} + diff --git a/eiam/src/model/UpdateCustomPrivacyPolicyResult.cc b/eiam/src/model/UpdateCustomPrivacyPolicyResult.cc new file mode 100644 index 000000000..56cc8b6e5 --- /dev/null +++ b/eiam/src/model/UpdateCustomPrivacyPolicyResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +UpdateCustomPrivacyPolicyResult::UpdateCustomPrivacyPolicyResult() : + ServiceResult() +{} + +UpdateCustomPrivacyPolicyResult::UpdateCustomPrivacyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomPrivacyPolicyResult::~UpdateCustomPrivacyPolicyResult() +{} + +void UpdateCustomPrivacyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +