Supported Custom Privacy Policy.
This commit is contained in:
@@ -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<const AsyncCallerContext>& 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<std::packaged_task<AddCustomPrivacyPoliciesToBrandOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateCustomPrivacyPolicyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteCustomPrivacyPolicyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DisableCustomPrivacyPolicyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<EnableCustomPrivacyPolicyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<GetCustomPrivacyPolicyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ListCustomPrivacyPoliciesOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ListCustomPrivacyPoliciesForBrandOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<RemoveCustomPrivacyPoliciesFromBrandOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<UpdateCustomPrivacyPolicyOutcome()>>(
|
||||
[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();
|
||||
|
||||
56
eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.cc
Normal file
56
eiam/src/model/AddCustomPrivacyPoliciesToBrandRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandRequest.h>
|
||||
|
||||
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::std::string> AddCustomPrivacyPoliciesToBrandRequest::getCustomPrivacyPolicyIds() const {
|
||||
return customPrivacyPolicyIds_;
|
||||
}
|
||||
|
||||
void AddCustomPrivacyPoliciesToBrandRequest::setCustomPrivacyPolicyIds(const std::vector<AddCustomPrivacyPoliciesToBrandRequest::std::string> &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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.cc
Normal file
44
eiam/src/model/AddCustomPrivacyPoliciesToBrandResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/AddCustomPrivacyPoliciesToBrandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
97
eiam/src/model/CreateCustomPrivacyPolicyRequest.cc
Normal file
97
eiam/src/model/CreateCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/CreateCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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::CustomPrivacyPolicyContents> CreateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyContents() const {
|
||||
return customPrivacyPolicyContents_;
|
||||
}
|
||||
|
||||
void CreateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyContents(const std::vector<CreateCustomPrivacyPolicyRequest::CustomPrivacyPolicyContents> &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);
|
||||
}
|
||||
|
||||
51
eiam/src/model/CreateCustomPrivacyPolicyResult.cc
Normal file
51
eiam/src/model/CreateCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/CreateCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
45
eiam/src/model/DeleteCustomPrivacyPolicyRequest.cc
Normal file
45
eiam/src/model/DeleteCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/DeleteCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/DeleteCustomPrivacyPolicyResult.cc
Normal file
44
eiam/src/model/DeleteCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/DeleteCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
45
eiam/src/model/DisableCustomPrivacyPolicyRequest.cc
Normal file
45
eiam/src/model/DisableCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/DisableCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/DisableCustomPrivacyPolicyResult.cc
Normal file
44
eiam/src/model/DisableCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/DisableCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
45
eiam/src/model/EnableCustomPrivacyPolicyRequest.cc
Normal file
45
eiam/src/model/EnableCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/EnableCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/EnableCustomPrivacyPolicyResult.cc
Normal file
44
eiam/src/model/EnableCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/EnableCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
45
eiam/src/model/GetCustomPrivacyPolicyRequest.cc
Normal file
45
eiam/src/model/GetCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/GetCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
82
eiam/src/model/GetCustomPrivacyPolicyResult.cc
Normal file
82
eiam/src/model/GetCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/GetCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
72
eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc
Normal file
72
eiam/src/model/ListCustomPrivacyPoliciesForBrandRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
85
eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc
Normal file
85
eiam/src/model/ListCustomPrivacyPoliciesForBrandResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/ListCustomPrivacyPoliciesForBrandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::BrandCustomPrivacyPolicy> ListCustomPrivacyPoliciesForBrandResult::getBrandCustomPrivacyPolicies()const
|
||||
{
|
||||
return brandCustomPrivacyPolicies_;
|
||||
}
|
||||
|
||||
std::string ListCustomPrivacyPoliciesForBrandResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
long ListCustomPrivacyPoliciesForBrandResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
72
eiam/src/model/ListCustomPrivacyPoliciesRequest.cc
Normal file
72
eiam/src/model/ListCustomPrivacyPoliciesRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/ListCustomPrivacyPoliciesRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
95
eiam/src/model/ListCustomPrivacyPoliciesResult.cc
Normal file
95
eiam/src/model/ListCustomPrivacyPoliciesResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/ListCustomPrivacyPoliciesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::CustomPrivacyPolicy> 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_;
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandRequest.h>
|
||||
|
||||
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::std::string> RemoveCustomPrivacyPoliciesFromBrandRequest::getCustomPrivacyPolicyIds() const {
|
||||
return customPrivacyPolicyIds_;
|
||||
}
|
||||
|
||||
void RemoveCustomPrivacyPoliciesFromBrandRequest::setCustomPrivacyPolicyIds(const std::vector<RemoveCustomPrivacyPoliciesFromBrandRequest::std::string> &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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc
Normal file
44
eiam/src/model/RemoveCustomPrivacyPoliciesFromBrandResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/RemoveCustomPrivacyPoliciesFromBrandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
88
eiam/src/model/UpdateCustomPrivacyPolicyRequest.cc
Normal file
88
eiam/src/model/UpdateCustomPrivacyPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/eiam/model/UpdateCustomPrivacyPolicyRequest.h>
|
||||
|
||||
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::CustomPrivacyPolicyContents> UpdateCustomPrivacyPolicyRequest::getCustomPrivacyPolicyContents() const {
|
||||
return customPrivacyPolicyContents_;
|
||||
}
|
||||
|
||||
void UpdateCustomPrivacyPolicyRequest::setCustomPrivacyPolicyContents(const std::vector<UpdateCustomPrivacyPolicyRequest::CustomPrivacyPolicyContents> &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);
|
||||
}
|
||||
|
||||
44
eiam/src/model/UpdateCustomPrivacyPolicyResult.cc
Normal file
44
eiam/src/model/UpdateCustomPrivacyPolicyResult.cc
Normal file
@@ -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 <alibabacloud/eiam/model/UpdateCustomPrivacyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user