Generated 2023-01-20 for csas.
This commit is contained in:
@@ -1095,6 +1095,42 @@ CsasClient::ListPolicesForUserGroupOutcomeCallable CsasClient::listPolicesForUse
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CsasClient::ListPopTrafficStatisticsOutcome CsasClient::listPopTrafficStatistics(const ListPopTrafficStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPopTrafficStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPopTrafficStatisticsOutcome(ListPopTrafficStatisticsResult(outcome.result()));
|
||||
else
|
||||
return ListPopTrafficStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CsasClient::listPopTrafficStatisticsAsync(const ListPopTrafficStatisticsRequest& request, const ListPopTrafficStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPopTrafficStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CsasClient::ListPopTrafficStatisticsOutcomeCallable CsasClient::listPopTrafficStatisticsCallable(const ListPopTrafficStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPopTrafficStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPopTrafficStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CsasClient::ListPrivateAccessApplicationsOutcome CsasClient::listPrivateAccessApplications(const ListPrivateAccessApplicationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1599,6 +1635,42 @@ CsasClient::ListUserGroupsForRegistrationPolicyOutcomeCallable CsasClient::listU
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CsasClient::ListUsersOutcome CsasClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUsersOutcome(ListUsersResult(outcome.result()));
|
||||
else
|
||||
return ListUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CsasClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CsasClient::ListUsersOutcomeCallable CsasClient::listUsersCallable(const ListUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CsasClient::UpdateDynamicRouteOutcome CsasClient::updateDynamicRoute(const UpdateDynamicRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,3 +1959,39 @@ CsasClient::UpdateUserGroupOutcomeCallable CsasClient::updateUserGroupCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CsasClient::UpdateUsersStatusOutcome CsasClient::updateUsersStatus(const UpdateUsersStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateUsersStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateUsersStatusOutcome(UpdateUsersStatusResult(outcome.result()));
|
||||
else
|
||||
return UpdateUsersStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CsasClient::updateUsersStatusAsync(const UpdateUsersStatusRequest& request, const UpdateUsersStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateUsersStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CsasClient::UpdateUsersStatusOutcomeCallable CsasClient::updateUsersStatusCallable(const UpdateUsersStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateUsersStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateUsersStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,15 @@ void CreatePrivateAccessPolicyRequest::setTagIds(const std::vector<CreatePrivate
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getDeviceAttributeId() const {
|
||||
return deviceAttributeId_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setDeviceAttributeId(const std::string &deviceAttributeId) {
|
||||
deviceAttributeId_ = deviceAttributeId;
|
||||
setBodyParameter(std::string("DeviceAttributeId"), deviceAttributeId);
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessPolicyRequest::std::string> CreatePrivateAccessPolicyRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,8 @@ void GetPrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
policy_.userGroupMode = policyNode["UserGroupMode"].asString();
|
||||
if(!policyNode["ApplicationType"].isNull())
|
||||
policy_.applicationType = policyNode["ApplicationType"].asString();
|
||||
if(!policyNode["DeviceAttributeId"].isNull())
|
||||
policy_.deviceAttributeId = policyNode["DeviceAttributeId"].asString();
|
||||
auto allCustomUserAttributesNode = policyNode["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto policyNodeCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
|
||||
54
csas/src/model/ListPopTrafficStatisticsRequest.cc
Normal file
54
csas/src/model/ListPopTrafficStatisticsRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListPopTrafficStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPopTrafficStatisticsRequest;
|
||||
|
||||
ListPopTrafficStatisticsRequest::ListPopTrafficStatisticsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPopTrafficStatistics") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPopTrafficStatisticsRequest::~ListPopTrafficStatisticsRequest() {}
|
||||
|
||||
std::string ListPopTrafficStatisticsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPopTrafficStatisticsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string ListPopTrafficStatisticsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPopTrafficStatisticsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string ListPopTrafficStatisticsRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListPopTrafficStatisticsRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
67
csas/src/model/ListPopTrafficStatisticsResult.cc
Normal file
67
csas/src/model/ListPopTrafficStatisticsResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListPopTrafficStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPopTrafficStatisticsResult::ListPopTrafficStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPopTrafficStatisticsResult::ListPopTrafficStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPopTrafficStatisticsResult::~ListPopTrafficStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListPopTrafficStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrafficDataNode = value["TrafficData"]["data"];
|
||||
for (auto valueTrafficDatadata : allTrafficDataNode)
|
||||
{
|
||||
Data trafficDataObject;
|
||||
if(!valueTrafficDatadata["MetricName"].isNull())
|
||||
trafficDataObject.metricName = valueTrafficDatadata["MetricName"].asString();
|
||||
auto allDatapointsNode = valueTrafficDatadata["Datapoints"]["point"];
|
||||
for (auto valueTrafficDatadataDatapointspoint : allDatapointsNode)
|
||||
{
|
||||
Data::Point datapointsObject;
|
||||
if(!valueTrafficDatadataDatapointspoint["DateTime"].isNull())
|
||||
datapointsObject.dateTime = valueTrafficDatadataDatapointspoint["DateTime"].asString();
|
||||
if(!valueTrafficDatadataDatapointspoint["Average"].isNull())
|
||||
datapointsObject.average = valueTrafficDatadataDatapointspoint["Average"].asString();
|
||||
trafficDataObject.datapoints.push_back(datapointsObject);
|
||||
}
|
||||
trafficData_.push_back(trafficDataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPopTrafficStatisticsResult::Data> ListPopTrafficStatisticsResult::getTrafficData()const
|
||||
{
|
||||
return trafficData_;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,15 @@ void ListPrivateAccessPolicesRequest::setPolicyIds(const std::vector<ListPrivate
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getTagName() const {
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setTagName(const std::string &tagName) {
|
||||
tagName_ = tagName;
|
||||
setParameter(std::string("TagName"), tagName);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -99,6 +108,15 @@ void ListPrivateAccessPolicesRequest::setPolicyAction(const std::string &policyA
|
||||
setParameter(std::string("PolicyAction"), policyAction);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@ void ListPrivateAccessPolicesResult::parse(const std::string &payload)
|
||||
policesObject.userGroupMode = valuePolicespolicy["UserGroupMode"].asString();
|
||||
if(!valuePolicespolicy["ApplicationType"].isNull())
|
||||
policesObject.applicationType = valuePolicespolicy["ApplicationType"].asString();
|
||||
if(!valuePolicespolicy["DeviceAttributeId"].isNull())
|
||||
policesObject.deviceAttributeId = valuePolicespolicy["DeviceAttributeId"].asString();
|
||||
auto allCustomUserAttributesNode = valuePolicespolicy["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto valuePolicespolicyCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
|
||||
101
csas/src/model/ListUsersRequest.cc
Normal file
101
csas/src/model/ListUsersRequest.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListUsersRequest;
|
||||
|
||||
ListUsersRequest::ListUsersRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListUsers") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListUsersRequest::~ListUsersRequest() {}
|
||||
|
||||
std::string ListUsersRequest::getFuzzyUsername() const {
|
||||
return fuzzyUsername_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setFuzzyUsername(const std::string &fuzzyUsername) {
|
||||
fuzzyUsername_ = fuzzyUsername;
|
||||
setParameter(std::string("FuzzyUsername"), fuzzyUsername);
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
long ListUsersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getDepartment() const {
|
||||
return department_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setDepartment(const std::string &department) {
|
||||
department_ = department;
|
||||
setParameter(std::string("Department"), department);
|
||||
}
|
||||
|
||||
long ListUsersRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getPreciseUsername() const {
|
||||
return preciseUsername_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPreciseUsername(const std::string &preciseUsername) {
|
||||
preciseUsername_ = preciseUsername;
|
||||
setParameter(std::string("PreciseUsername"), preciseUsername);
|
||||
}
|
||||
|
||||
std::vector<ListUsersRequest::std::string> ListUsersRequest::getSaseUserIds() const {
|
||||
return saseUserIds_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setSaseUserIds(const std::vector<ListUsersRequest::std::string> &saseUserIds) {
|
||||
saseUserIds_ = saseUserIds;
|
||||
for(int dep1 = 0; dep1 != saseUserIds.size(); dep1++) {
|
||||
setParameter(std::string("SaseUserIds") + "." + std::to_string(dep1 + 1), saseUserIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
76
csas/src/model/ListUsersResult.cc
Normal file
76
csas/src/model/ListUsersResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListUsersResult::ListUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUsersResult::ListUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUsersResult::~ListUsersResult()
|
||||
{}
|
||||
|
||||
void ListUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsersNode = value["Users"]["dataList"];
|
||||
for (auto valueUsersdataList : allUsersNode)
|
||||
{
|
||||
DataList usersObject;
|
||||
if(!valueUsersdataList["Username"].isNull())
|
||||
usersObject.username = valueUsersdataList["Username"].asString();
|
||||
if(!valueUsersdataList["SaseUserId"].isNull())
|
||||
usersObject.saseUserId = valueUsersdataList["SaseUserId"].asString();
|
||||
if(!valueUsersdataList["Department"].isNull())
|
||||
usersObject.department = valueUsersdataList["Department"].asString();
|
||||
if(!valueUsersdataList["Email"].isNull())
|
||||
usersObject.email = valueUsersdataList["Email"].asString();
|
||||
if(!valueUsersdataList["Phone"].isNull())
|
||||
usersObject.phone = valueUsersdataList["Phone"].asString();
|
||||
if(!valueUsersdataList["Status"].isNull())
|
||||
usersObject.status = valueUsersdataList["Status"].asString();
|
||||
if(!valueUsersdataList["IdpName"].isNull())
|
||||
usersObject.idpName = valueUsersdataList["IdpName"].asString();
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = value["TotalNum"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListUsersResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListUsersResult::DataList> ListUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,15 @@ void UpdatePrivateAccessPolicyRequest::setTagIds(const std::vector<UpdatePrivate
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getDeviceAttributeId() const {
|
||||
return deviceAttributeId_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setDeviceAttributeId(const std::string &deviceAttributeId) {
|
||||
deviceAttributeId_ = deviceAttributeId;
|
||||
setBodyParameter(std::string("DeviceAttributeId"), deviceAttributeId);
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessPolicyRequest::std::string> UpdatePrivateAccessPolicyRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
56
csas/src/model/UpdateUsersStatusRequest.cc
Normal file
56
csas/src/model/UpdateUsersStatusRequest.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/csas/model/UpdateUsersStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::UpdateUsersStatusRequest;
|
||||
|
||||
UpdateUsersStatusRequest::UpdateUsersStatusRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "UpdateUsersStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateUsersStatusRequest::~UpdateUsersStatusRequest() {}
|
||||
|
||||
std::vector<UpdateUsersStatusRequest::std::string> UpdateUsersStatusRequest::getSaseUserIds() const {
|
||||
return saseUserIds_;
|
||||
}
|
||||
|
||||
void UpdateUsersStatusRequest::setSaseUserIds(const std::vector<UpdateUsersStatusRequest::std::string> &saseUserIds) {
|
||||
saseUserIds_ = saseUserIds;
|
||||
for(int dep1 = 0; dep1 != saseUserIds.size(); dep1++) {
|
||||
setParameter(std::string("SaseUserIds") + "." + std::to_string(dep1 + 1), saseUserIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateUsersStatusRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdateUsersStatusRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdateUsersStatusRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateUsersStatusRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
44
csas/src/model/UpdateUsersStatusResult.cc
Normal file
44
csas/src/model/UpdateUsersStatusResult.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/csas/model/UpdateUsersStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
UpdateUsersStatusResult::UpdateUsersStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateUsersStatusResult::UpdateUsersStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateUsersStatusResult::~UpdateUsersStatusResult()
|
||||
{}
|
||||
|
||||
void UpdateUsersStatusResult::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