Generated 2023-01-20 for csas.

This commit is contained in:
sdk-team
2024-06-11 02:26:46 +00:00
parent 83f9047345
commit d80ca0d7e2
12 changed files with 658 additions and 1 deletions

View File

@@ -627,6 +627,42 @@ CsasClient::DeleteRegistrationPoliciesOutcomeCallable CsasClient::deleteRegistra
return task->get_future();
}
CsasClient::DeleteUserDevicesOutcome CsasClient::deleteUserDevices(const DeleteUserDevicesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteUserDevicesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteUserDevicesOutcome(DeleteUserDevicesResult(outcome.result()));
else
return DeleteUserDevicesOutcome(outcome.error());
}
void CsasClient::deleteUserDevicesAsync(const DeleteUserDevicesRequest& request, const DeleteUserDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteUserDevices(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::DeleteUserDevicesOutcomeCallable CsasClient::deleteUserDevicesCallable(const DeleteUserDevicesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteUserDevicesOutcome()>>(
[this, request]()
{
return this->deleteUserDevices(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::DeleteUserGroupOutcome CsasClient::deleteUserGroup(const DeleteUserGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +735,42 @@ CsasClient::DetachApplication2ConnectorOutcomeCallable CsasClient::detachApplica
return task->get_future();
}
CsasClient::ExportUserDevicesOutcome CsasClient::exportUserDevices(const ExportUserDevicesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExportUserDevicesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExportUserDevicesOutcome(ExportUserDevicesResult(outcome.result()));
else
return ExportUserDevicesOutcome(outcome.error());
}
void CsasClient::exportUserDevicesAsync(const ExportUserDevicesRequest& request, const ExportUserDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, exportUserDevices(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::ExportUserDevicesOutcomeCallable CsasClient::exportUserDevicesCallable(const ExportUserDevicesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExportUserDevicesOutcome()>>(
[this, request]()
{
return this->exportUserDevices(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::GetActiveIdpConfigOutcome CsasClient::getActiveIdpConfig(const GetActiveIdpConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,47 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/csas/model/DeleteUserDevicesRequest.h>
using AlibabaCloud::Csas::Model::DeleteUserDevicesRequest;
DeleteUserDevicesRequest::DeleteUserDevicesRequest()
: RpcServiceRequest("csas", "2023-01-20", "DeleteUserDevices") {
setMethod(HttpRequest::Method::Post);
}
DeleteUserDevicesRequest::~DeleteUserDevicesRequest() {}
std::vector<DeleteUserDevicesRequest::std::string> DeleteUserDevicesRequest::getDeviceTags() const {
return deviceTags_;
}
void DeleteUserDevicesRequest::setDeviceTags(const std::vector<DeleteUserDevicesRequest::std::string> &deviceTags) {
deviceTags_ = deviceTags;
for(int dep1 = 0; dep1 != deviceTags.size(); dep1++) {
setBodyParameter(std::string("DeviceTags") + "." + std::to_string(dep1 + 1), deviceTags[dep1]);
}
}
std::string DeleteUserDevicesRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteUserDevicesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}

View 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/csas/model/DeleteUserDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
DeleteUserDevicesResult::DeleteUserDevicesResult() :
ServiceResult()
{}
DeleteUserDevicesResult::DeleteUserDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteUserDevicesResult::~DeleteUserDevicesResult()
{}
void DeleteUserDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,187 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/csas/model/ExportUserDevicesRequest.h>
using AlibabaCloud::Csas::Model::ExportUserDevicesRequest;
ExportUserDevicesRequest::ExportUserDevicesRequest()
: RpcServiceRequest("csas", "2023-01-20", "ExportUserDevices") {
setMethod(HttpRequest::Method::Post);
}
ExportUserDevicesRequest::~ExportUserDevicesRequest() {}
std::string ExportUserDevicesRequest::getMac() const {
return mac_;
}
void ExportUserDevicesRequest::setMac(const std::string &mac) {
mac_ = mac;
setBodyParameter(std::string("Mac"), mac);
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getDeviceTypes() const {
return deviceTypes_;
}
void ExportUserDevicesRequest::setDeviceTypes(const std::vector<ExportUserDevicesRequest::std::string> &deviceTypes) {
deviceTypes_ = deviceTypes;
for(int dep1 = 0; dep1 != deviceTypes.size(); dep1++) {
setBodyParameter(std::string("DeviceTypes") + "." + std::to_string(dep1 + 1), deviceTypes[dep1]);
}
}
std::string ExportUserDevicesRequest::getHostname() const {
return hostname_;
}
void ExportUserDevicesRequest::setHostname(const std::string &hostname) {
hostname_ = hostname;
setBodyParameter(std::string("Hostname"), hostname);
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getAppStatuses() const {
return appStatuses_;
}
void ExportUserDevicesRequest::setAppStatuses(const std::vector<ExportUserDevicesRequest::std::string> &appStatuses) {
appStatuses_ = appStatuses;
for(int dep1 = 0; dep1 != appStatuses.size(); dep1++) {
setBodyParameter(std::string("AppStatuses") + "." + std::to_string(dep1 + 1), appStatuses[dep1]);
}
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getDlpStatuses() const {
return dlpStatuses_;
}
void ExportUserDevicesRequest::setDlpStatuses(const std::vector<ExportUserDevicesRequest::std::string> &dlpStatuses) {
dlpStatuses_ = dlpStatuses;
for(int dep1 = 0; dep1 != dlpStatuses.size(); dep1++) {
setBodyParameter(std::string("DlpStatuses") + "." + std::to_string(dep1 + 1), dlpStatuses[dep1]);
}
}
std::string ExportUserDevicesRequest::getSourceIp() const {
return sourceIp_;
}
void ExportUserDevicesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ExportUserDevicesRequest::getSaseUserId() const {
return saseUserId_;
}
void ExportUserDevicesRequest::setSaseUserId(const std::string &saseUserId) {
saseUserId_ = saseUserId;
setBodyParameter(std::string("SaseUserId"), saseUserId);
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getNacStatuses() const {
return nacStatuses_;
}
void ExportUserDevicesRequest::setNacStatuses(const std::vector<ExportUserDevicesRequest::std::string> &nacStatuses) {
nacStatuses_ = nacStatuses;
for(int dep1 = 0; dep1 != nacStatuses.size(); dep1++) {
setBodyParameter(std::string("NacStatuses") + "." + std::to_string(dep1 + 1), nacStatuses[dep1]);
}
}
std::string ExportUserDevicesRequest::getDepartment() const {
return department_;
}
void ExportUserDevicesRequest::setDepartment(const std::string &department) {
department_ = department;
setBodyParameter(std::string("Department"), department);
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getIaStatuses() const {
return iaStatuses_;
}
void ExportUserDevicesRequest::setIaStatuses(const std::vector<ExportUserDevicesRequest::std::string> &iaStatuses) {
iaStatuses_ = iaStatuses;
for(int dep1 = 0; dep1 != iaStatuses.size(); dep1++) {
setBodyParameter(std::string("IaStatuses") + "." + std::to_string(dep1 + 1), iaStatuses[dep1]);
}
}
std::string ExportUserDevicesRequest::getDeviceBelong() const {
return deviceBelong_;
}
void ExportUserDevicesRequest::setDeviceBelong(const std::string &deviceBelong) {
deviceBelong_ = deviceBelong;
setBodyParameter(std::string("DeviceBelong"), deviceBelong);
}
bool ExportUserDevicesRequest::getSharingStatus() const {
return sharingStatus_;
}
void ExportUserDevicesRequest::setSharingStatus(bool sharingStatus) {
sharingStatus_ = sharingStatus;
setBodyParameter(std::string("SharingStatus"), sharingStatus ? "true" : "false");
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getDeviceTags() const {
return deviceTags_;
}
void ExportUserDevicesRequest::setDeviceTags(const std::vector<ExportUserDevicesRequest::std::string> &deviceTags) {
deviceTags_ = deviceTags;
for(int dep1 = 0; dep1 != deviceTags.size(); dep1++) {
setBodyParameter(std::string("DeviceTags") + "." + std::to_string(dep1 + 1), deviceTags[dep1]);
}
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getDeviceStatuses() const {
return deviceStatuses_;
}
void ExportUserDevicesRequest::setDeviceStatuses(const std::vector<ExportUserDevicesRequest::std::string> &deviceStatuses) {
deviceStatuses_ = deviceStatuses;
for(int dep1 = 0; dep1 != deviceStatuses.size(); dep1++) {
setBodyParameter(std::string("DeviceStatuses") + "." + std::to_string(dep1 + 1), deviceStatuses[dep1]);
}
}
std::vector<ExportUserDevicesRequest::std::string> ExportUserDevicesRequest::getPaStatuses() const {
return paStatuses_;
}
void ExportUserDevicesRequest::setPaStatuses(const std::vector<ExportUserDevicesRequest::std::string> &paStatuses) {
paStatuses_ = paStatuses;
for(int dep1 = 0; dep1 != paStatuses.size(); dep1++) {
setBodyParameter(std::string("PaStatuses") + "." + std::to_string(dep1 + 1), paStatuses[dep1]);
}
}
std::string ExportUserDevicesRequest::getUsername() const {
return username_;
}
void ExportUserDevicesRequest::setUsername(const std::string &username) {
username_ = username;
setBodyParameter(std::string("Username"), username);
}

View 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/csas/model/ExportUserDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
ExportUserDevicesResult::ExportUserDevicesResult() :
ServiceResult()
{}
ExportUserDevicesResult::ExportUserDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExportUserDevicesResult::~ExportUserDevicesResult()
{}
void ExportUserDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SignedUrl"].isNull())
signedUrl_ = value["SignedUrl"].asString();
}
std::string ExportUserDevicesResult::getSignedUrl()const
{
return signedUrl_;
}