RAM SDK Auto Released By shenshi,Version:1.34.18

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-14 13:05:33 +08:00
parent aa06915a34
commit 26d4cdb3b5
271 changed files with 17624 additions and 2 deletions

2429
ram/src/RamClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/AddUserToGroupRequest.h>
using AlibabaCloud::Ram::Model::AddUserToGroupRequest;
AddUserToGroupRequest::AddUserToGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "AddUserToGroup")
{}
AddUserToGroupRequest::~AddUserToGroupRequest()
{}
std::string AddUserToGroupRequest::getGroupName()const
{
return groupName_;
}
void AddUserToGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
std::string AddUserToGroupRequest::getUserName()const
{
return userName_;
}
void AddUserToGroupRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/AttachPolicyToGroupRequest.h>
using AlibabaCloud::Ram::Model::AttachPolicyToGroupRequest;
AttachPolicyToGroupRequest::AttachPolicyToGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToGroup")
{}
AttachPolicyToGroupRequest::~AttachPolicyToGroupRequest()
{}
std::string AttachPolicyToGroupRequest::getPolicyType()const
{
return policyType_;
}
void AttachPolicyToGroupRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string AttachPolicyToGroupRequest::getPolicyName()const
{
return policyName_;
}
void AttachPolicyToGroupRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string AttachPolicyToGroupRequest::getGroupName()const
{
return groupName_;
}
void AttachPolicyToGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/AttachPolicyToRoleRequest.h>
using AlibabaCloud::Ram::Model::AttachPolicyToRoleRequest;
AttachPolicyToRoleRequest::AttachPolicyToRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToRole")
{}
AttachPolicyToRoleRequest::~AttachPolicyToRoleRequest()
{}
std::string AttachPolicyToRoleRequest::getPolicyType()const
{
return policyType_;
}
void AttachPolicyToRoleRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string AttachPolicyToRoleRequest::getRoleName()const
{
return roleName_;
}
void AttachPolicyToRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}
std::string AttachPolicyToRoleRequest::getPolicyName()const
{
return policyName_;
}
void AttachPolicyToRoleRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/AttachPolicyToUserRequest.h>
using AlibabaCloud::Ram::Model::AttachPolicyToUserRequest;
AttachPolicyToUserRequest::AttachPolicyToUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToUser")
{}
AttachPolicyToUserRequest::~AttachPolicyToUserRequest()
{}
std::string AttachPolicyToUserRequest::getPolicyType()const
{
return policyType_;
}
void AttachPolicyToUserRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string AttachPolicyToUserRequest::getPolicyName()const
{
return policyName_;
}
void AttachPolicyToUserRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string AttachPolicyToUserRequest::getUserName()const
{
return userName_;
}
void AttachPolicyToUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/BindMFADeviceRequest.h>
using AlibabaCloud::Ram::Model::BindMFADeviceRequest;
BindMFADeviceRequest::BindMFADeviceRequest() :
RpcServiceRequest("ram", "2015-05-01", "BindMFADevice")
{}
BindMFADeviceRequest::~BindMFADeviceRequest()
{}
std::string BindMFADeviceRequest::getSerialNumber()const
{
return serialNumber_;
}
void BindMFADeviceRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setParameter("SerialNumber", serialNumber);
}
std::string BindMFADeviceRequest::getAuthenticationCode2()const
{
return authenticationCode2_;
}
void BindMFADeviceRequest::setAuthenticationCode2(const std::string& authenticationCode2)
{
authenticationCode2_ = authenticationCode2;
setParameter("AuthenticationCode2", authenticationCode2);
}
std::string BindMFADeviceRequest::getAuthenticationCode1()const
{
return authenticationCode1_;
}
void BindMFADeviceRequest::setAuthenticationCode1(const std::string& authenticationCode1)
{
authenticationCode1_ = authenticationCode1;
setParameter("AuthenticationCode1", authenticationCode1);
}
std::string BindMFADeviceRequest::getUserName()const
{
return userName_;
}
void BindMFADeviceRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ChangePasswordRequest.h>
using AlibabaCloud::Ram::Model::ChangePasswordRequest;
ChangePasswordRequest::ChangePasswordRequest() :
RpcServiceRequest("ram", "2015-05-01", "ChangePassword")
{}
ChangePasswordRequest::~ChangePasswordRequest()
{}
std::string ChangePasswordRequest::getOldPassword()const
{
return oldPassword_;
}
void ChangePasswordRequest::setOldPassword(const std::string& oldPassword)
{
oldPassword_ = oldPassword;
setParameter("OldPassword", oldPassword);
}
std::string ChangePasswordRequest::getNewPassword()const
{
return newPassword_;
}
void ChangePasswordRequest::setNewPassword(const std::string& newPassword)
{
newPassword_ = newPassword;
setParameter("NewPassword", newPassword);
}

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

View File

@@ -0,0 +1,27 @@
/*
* 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/ram/model/ClearAccountAliasRequest.h>
using AlibabaCloud::Ram::Model::ClearAccountAliasRequest;
ClearAccountAliasRequest::ClearAccountAliasRequest() :
RpcServiceRequest("ram", "2015-05-01", "ClearAccountAlias")
{}
ClearAccountAliasRequest::~ClearAccountAliasRequest()
{}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/CreateAccessKeyRequest.h>
using AlibabaCloud::Ram::Model::CreateAccessKeyRequest;
CreateAccessKeyRequest::CreateAccessKeyRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateAccessKey")
{}
CreateAccessKeyRequest::~CreateAccessKeyRequest()
{}
std::string CreateAccessKeyRequest::getUserName()const
{
return userName_;
}
void CreateAccessKeyRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/CreateAccessKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateAccessKeyResult::CreateAccessKeyResult() :
ServiceResult()
{}
CreateAccessKeyResult::CreateAccessKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAccessKeyResult::~CreateAccessKeyResult()
{}
void CreateAccessKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessKeyNode = value["AccessKey"];
if(!accessKeyNode["AccessKeyId"].isNull())
accessKey_.accessKeyId = accessKeyNode["AccessKeyId"].asString();
if(!accessKeyNode["AccessKeySecret"].isNull())
accessKey_.accessKeySecret = accessKeyNode["AccessKeySecret"].asString();
if(!accessKeyNode["Status"].isNull())
accessKey_.status = accessKeyNode["Status"].asString();
if(!accessKeyNode["CreateDate"].isNull())
accessKey_.createDate = accessKeyNode["CreateDate"].asString();
}
CreateAccessKeyResult::AccessKey CreateAccessKeyResult::getAccessKey()const
{
return accessKey_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/CreateGroupRequest.h>
using AlibabaCloud::Ram::Model::CreateGroupRequest;
CreateGroupRequest::CreateGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateGroup")
{}
CreateGroupRequest::~CreateGroupRequest()
{}
std::string CreateGroupRequest::getComments()const
{
return comments_;
}
void CreateGroupRequest::setComments(const std::string& comments)
{
comments_ = comments;
setParameter("Comments", comments);
}
std::string CreateGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/CreateGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateGroupResult::CreateGroupResult() :
ServiceResult()
{}
CreateGroupResult::CreateGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGroupResult::~CreateGroupResult()
{}
void CreateGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["Comments"].isNull())
group_.comments = groupNode["Comments"].asString();
if(!groupNode["CreateDate"].isNull())
group_.createDate = groupNode["CreateDate"].asString();
}
CreateGroupResult::Group CreateGroupResult::getGroup()const
{
return group_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/CreateLoginProfileRequest.h>
using AlibabaCloud::Ram::Model::CreateLoginProfileRequest;
CreateLoginProfileRequest::CreateLoginProfileRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateLoginProfile")
{}
CreateLoginProfileRequest::~CreateLoginProfileRequest()
{}
std::string CreateLoginProfileRequest::getPassword()const
{
return password_;
}
void CreateLoginProfileRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
bool CreateLoginProfileRequest::getPasswordResetRequired()const
{
return passwordResetRequired_;
}
void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired)
{
passwordResetRequired_ = passwordResetRequired;
setParameter("PasswordResetRequired", std::to_string(passwordResetRequired));
}
bool CreateLoginProfileRequest::getMFABindRequired()const
{
return mFABindRequired_;
}
void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired)
{
mFABindRequired_ = mFABindRequired;
setParameter("MFABindRequired", std::to_string(mFABindRequired));
}
std::string CreateLoginProfileRequest::getUserName()const
{
return userName_;
}
void CreateLoginProfileRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/CreateLoginProfileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateLoginProfileResult::CreateLoginProfileResult() :
ServiceResult()
{}
CreateLoginProfileResult::CreateLoginProfileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoginProfileResult::~CreateLoginProfileResult()
{}
void CreateLoginProfileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto loginProfileNode = value["LoginProfile"];
if(!loginProfileNode["UserName"].isNull())
loginProfile_.userName = loginProfileNode["UserName"].asString();
if(!loginProfileNode["PasswordResetRequired"].isNull())
loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true";
if(!loginProfileNode["MFABindRequired"].isNull())
loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true";
if(!loginProfileNode["CreateDate"].isNull())
loginProfile_.createDate = loginProfileNode["CreateDate"].asString();
}
CreateLoginProfileResult::LoginProfile CreateLoginProfileResult::getLoginProfile()const
{
return loginProfile_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/CreatePolicyRequest.h>
using AlibabaCloud::Ram::Model::CreatePolicyRequest;
CreatePolicyRequest::CreatePolicyRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreatePolicy")
{}
CreatePolicyRequest::~CreatePolicyRequest()
{}
std::string CreatePolicyRequest::getDescription()const
{
return description_;
}
void CreatePolicyRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreatePolicyRequest::getPolicyName()const
{
return policyName_;
}
void CreatePolicyRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string CreatePolicyRequest::getPolicyDocument()const
{
return policyDocument_;
}
void CreatePolicyRequest::setPolicyDocument(const std::string& policyDocument)
{
policyDocument_ = policyDocument;
setParameter("PolicyDocument", policyDocument);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/ram/model/CreatePolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreatePolicyResult::CreatePolicyResult() :
ServiceResult()
{}
CreatePolicyResult::CreatePolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePolicyResult::~CreatePolicyResult()
{}
void CreatePolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyNode = value["Policy"];
if(!policyNode["PolicyName"].isNull())
policy_.policyName = policyNode["PolicyName"].asString();
if(!policyNode["PolicyType"].isNull())
policy_.policyType = policyNode["PolicyType"].asString();
if(!policyNode["Description"].isNull())
policy_.description = policyNode["Description"].asString();
if(!policyNode["DefaultVersion"].isNull())
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
}
CreatePolicyResult::Policy CreatePolicyResult::getPolicy()const
{
return policy_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/CreatePolicyVersionRequest.h>
using AlibabaCloud::Ram::Model::CreatePolicyVersionRequest;
CreatePolicyVersionRequest::CreatePolicyVersionRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreatePolicyVersion")
{}
CreatePolicyVersionRequest::~CreatePolicyVersionRequest()
{}
bool CreatePolicyVersionRequest::getSetAsDefault()const
{
return setAsDefault_;
}
void CreatePolicyVersionRequest::setSetAsDefault(bool setAsDefault)
{
setAsDefault_ = setAsDefault;
setParameter("SetAsDefault", std::to_string(setAsDefault));
}
std::string CreatePolicyVersionRequest::getPolicyName()const
{
return policyName_;
}
void CreatePolicyVersionRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string CreatePolicyVersionRequest::getPolicyDocument()const
{
return policyDocument_;
}
void CreatePolicyVersionRequest::setPolicyDocument(const std::string& policyDocument)
{
policyDocument_ = policyDocument;
setParameter("PolicyDocument", policyDocument);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/CreatePolicyVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreatePolicyVersionResult::CreatePolicyVersionResult() :
ServiceResult()
{}
CreatePolicyVersionResult::CreatePolicyVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePolicyVersionResult::~CreatePolicyVersionResult()
{}
void CreatePolicyVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyVersionNode = value["PolicyVersion"];
if(!policyVersionNode["VersionId"].isNull())
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
if(!policyVersionNode["IsDefaultVersion"].isNull())
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
if(!policyVersionNode["PolicyDocument"].isNull())
policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString();
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
}
CreatePolicyVersionResult::PolicyVersion CreatePolicyVersionResult::getPolicyVersion()const
{
return policyVersion_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/CreateRoleRequest.h>
using AlibabaCloud::Ram::Model::CreateRoleRequest;
CreateRoleRequest::CreateRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateRole")
{}
CreateRoleRequest::~CreateRoleRequest()
{}
std::string CreateRoleRequest::getRoleName()const
{
return roleName_;
}
void CreateRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}
std::string CreateRoleRequest::getDescription()const
{
return description_;
}
void CreateRoleRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateRoleRequest::getAssumeRolePolicyDocument()const
{
return assumeRolePolicyDocument_;
}
void CreateRoleRequest::setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument)
{
assumeRolePolicyDocument_ = assumeRolePolicyDocument;
setParameter("AssumeRolePolicyDocument", assumeRolePolicyDocument);
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/CreateRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateRoleResult::CreateRoleResult() :
ServiceResult()
{}
CreateRoleResult::CreateRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRoleResult::~CreateRoleResult()
{}
void CreateRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
}
CreateRoleResult::Role CreateRoleResult::getRole()const
{
return role_;
}

View 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/ram/model/CreateUserRequest.h>
using AlibabaCloud::Ram::Model::CreateUserRequest;
CreateUserRequest::CreateUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateUser")
{}
CreateUserRequest::~CreateUserRequest()
{}
std::string CreateUserRequest::getComments()const
{
return comments_;
}
void CreateUserRequest::setComments(const std::string& comments)
{
comments_ = comments;
setParameter("Comments", comments);
}
std::string CreateUserRequest::getDisplayName()const
{
return displayName_;
}
void CreateUserRequest::setDisplayName(const std::string& displayName)
{
displayName_ = displayName;
setParameter("DisplayName", displayName);
}
std::string CreateUserRequest::getMobilePhone()const
{
return mobilePhone_;
}
void CreateUserRequest::setMobilePhone(const std::string& mobilePhone)
{
mobilePhone_ = mobilePhone;
setParameter("MobilePhone", mobilePhone);
}
std::string CreateUserRequest::getEmail()const
{
return email_;
}
void CreateUserRequest::setEmail(const std::string& email)
{
email_ = email;
setParameter("Email", email);
}
std::string CreateUserRequest::getUserName()const
{
return userName_;
}
void CreateUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/ram/model/CreateUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateUserResult::CreateUserResult() :
ServiceResult()
{}
CreateUserResult::CreateUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserResult::~CreateUserResult()
{}
void CreateUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userNode = value["User"];
if(!userNode["UserId"].isNull())
user_.userId = userNode["UserId"].asString();
if(!userNode["UserName"].isNull())
user_.userName = userNode["UserName"].asString();
if(!userNode["DisplayName"].isNull())
user_.displayName = userNode["DisplayName"].asString();
if(!userNode["MobilePhone"].isNull())
user_.mobilePhone = userNode["MobilePhone"].asString();
if(!userNode["Email"].isNull())
user_.email = userNode["Email"].asString();
if(!userNode["Comments"].isNull())
user_.comments = userNode["Comments"].asString();
if(!userNode["CreateDate"].isNull())
user_.createDate = userNode["CreateDate"].asString();
}
CreateUserResult::User CreateUserResult::getUser()const
{
return user_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/CreateVirtualMFADeviceRequest.h>
using AlibabaCloud::Ram::Model::CreateVirtualMFADeviceRequest;
CreateVirtualMFADeviceRequest::CreateVirtualMFADeviceRequest() :
RpcServiceRequest("ram", "2015-05-01", "CreateVirtualMFADevice")
{}
CreateVirtualMFADeviceRequest::~CreateVirtualMFADeviceRequest()
{}
std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName()const
{
return virtualMFADeviceName_;
}
void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string& virtualMFADeviceName)
{
virtualMFADeviceName_ = virtualMFADeviceName;
setParameter("VirtualMFADeviceName", virtualMFADeviceName);
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/CreateVirtualMFADeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
CreateVirtualMFADeviceResult::CreateVirtualMFADeviceResult() :
ServiceResult()
{}
CreateVirtualMFADeviceResult::CreateVirtualMFADeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVirtualMFADeviceResult::~CreateVirtualMFADeviceResult()
{}
void CreateVirtualMFADeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto virtualMFADeviceNode = value["VirtualMFADevice"];
if(!virtualMFADeviceNode["SerialNumber"].isNull())
virtualMFADevice_.serialNumber = virtualMFADeviceNode["SerialNumber"].asString();
if(!virtualMFADeviceNode["Base32StringSeed"].isNull())
virtualMFADevice_.base32StringSeed = virtualMFADeviceNode["Base32StringSeed"].asString();
if(!virtualMFADeviceNode["QRCodePNG"].isNull())
virtualMFADevice_.qRCodePNG = virtualMFADeviceNode["QRCodePNG"].asString();
}
CreateVirtualMFADeviceResult::VirtualMFADevice CreateVirtualMFADeviceResult::getVirtualMFADevice()const
{
return virtualMFADevice_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/DeleteAccessKeyRequest.h>
using AlibabaCloud::Ram::Model::DeleteAccessKeyRequest;
DeleteAccessKeyRequest::DeleteAccessKeyRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteAccessKey")
{}
DeleteAccessKeyRequest::~DeleteAccessKeyRequest()
{}
std::string DeleteAccessKeyRequest::getUserAccessKeyId()const
{
return userAccessKeyId_;
}
void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId)
{
userAccessKeyId_ = userAccessKeyId;
setParameter("UserAccessKeyId", userAccessKeyId);
}
std::string DeleteAccessKeyRequest::getUserName()const
{
return userName_;
}
void DeleteAccessKeyRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeleteGroupRequest.h>
using AlibabaCloud::Ram::Model::DeleteGroupRequest;
DeleteGroupRequest::DeleteGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteGroup")
{}
DeleteGroupRequest::~DeleteGroupRequest()
{}
std::string DeleteGroupRequest::getGroupName()const
{
return groupName_;
}
void DeleteGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeleteLoginProfileRequest.h>
using AlibabaCloud::Ram::Model::DeleteLoginProfileRequest;
DeleteLoginProfileRequest::DeleteLoginProfileRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteLoginProfile")
{}
DeleteLoginProfileRequest::~DeleteLoginProfileRequest()
{}
std::string DeleteLoginProfileRequest::getUserName()const
{
return userName_;
}
void DeleteLoginProfileRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeletePolicyRequest.h>
using AlibabaCloud::Ram::Model::DeletePolicyRequest;
DeletePolicyRequest::DeletePolicyRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeletePolicy")
{}
DeletePolicyRequest::~DeletePolicyRequest()
{}
std::string DeletePolicyRequest::getPolicyName()const
{
return policyName_;
}
void DeletePolicyRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/DeletePolicyVersionRequest.h>
using AlibabaCloud::Ram::Model::DeletePolicyVersionRequest;
DeletePolicyVersionRequest::DeletePolicyVersionRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeletePolicyVersion")
{}
DeletePolicyVersionRequest::~DeletePolicyVersionRequest()
{}
std::string DeletePolicyVersionRequest::getVersionId()const
{
return versionId_;
}
void DeletePolicyVersionRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}
std::string DeletePolicyVersionRequest::getPolicyName()const
{
return policyName_;
}
void DeletePolicyVersionRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/DeletePublicKeyRequest.h>
using AlibabaCloud::Ram::Model::DeletePublicKeyRequest;
DeletePublicKeyRequest::DeletePublicKeyRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeletePublicKey")
{}
DeletePublicKeyRequest::~DeletePublicKeyRequest()
{}
std::string DeletePublicKeyRequest::getUserPublicKeyId()const
{
return userPublicKeyId_;
}
void DeletePublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId)
{
userPublicKeyId_ = userPublicKeyId;
setParameter("UserPublicKeyId", userPublicKeyId);
}
std::string DeletePublicKeyRequest::getUserName()const
{
return userName_;
}
void DeletePublicKeyRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeleteRoleRequest.h>
using AlibabaCloud::Ram::Model::DeleteRoleRequest;
DeleteRoleRequest::DeleteRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteRole")
{}
DeleteRoleRequest::~DeleteRoleRequest()
{}
std::string DeleteRoleRequest::getRoleName()const
{
return roleName_;
}
void DeleteRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeleteUserRequest.h>
using AlibabaCloud::Ram::Model::DeleteUserRequest;
DeleteUserRequest::DeleteUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteUser")
{}
DeleteUserRequest::~DeleteUserRequest()
{}
std::string DeleteUserRequest::getUserName()const
{
return userName_;
}
void DeleteUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/DeleteVirtualMFADeviceRequest.h>
using AlibabaCloud::Ram::Model::DeleteVirtualMFADeviceRequest;
DeleteVirtualMFADeviceRequest::DeleteVirtualMFADeviceRequest() :
RpcServiceRequest("ram", "2015-05-01", "DeleteVirtualMFADevice")
{}
DeleteVirtualMFADeviceRequest::~DeleteVirtualMFADeviceRequest()
{}
std::string DeleteVirtualMFADeviceRequest::getSerialNumber()const
{
return serialNumber_;
}
void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setParameter("SerialNumber", serialNumber);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/DetachPolicyFromGroupRequest.h>
using AlibabaCloud::Ram::Model::DetachPolicyFromGroupRequest;
DetachPolicyFromGroupRequest::DetachPolicyFromGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromGroup")
{}
DetachPolicyFromGroupRequest::~DetachPolicyFromGroupRequest()
{}
std::string DetachPolicyFromGroupRequest::getPolicyType()const
{
return policyType_;
}
void DetachPolicyFromGroupRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string DetachPolicyFromGroupRequest::getPolicyName()const
{
return policyName_;
}
void DetachPolicyFromGroupRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string DetachPolicyFromGroupRequest::getGroupName()const
{
return groupName_;
}
void DetachPolicyFromGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/DetachPolicyFromRoleRequest.h>
using AlibabaCloud::Ram::Model::DetachPolicyFromRoleRequest;
DetachPolicyFromRoleRequest::DetachPolicyFromRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromRole")
{}
DetachPolicyFromRoleRequest::~DetachPolicyFromRoleRequest()
{}
std::string DetachPolicyFromRoleRequest::getPolicyType()const
{
return policyType_;
}
void DetachPolicyFromRoleRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string DetachPolicyFromRoleRequest::getRoleName()const
{
return roleName_;
}
void DetachPolicyFromRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}
std::string DetachPolicyFromRoleRequest::getPolicyName()const
{
return policyName_;
}
void DetachPolicyFromRoleRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

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

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/DetachPolicyFromUserRequest.h>
using AlibabaCloud::Ram::Model::DetachPolicyFromUserRequest;
DetachPolicyFromUserRequest::DetachPolicyFromUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromUser")
{}
DetachPolicyFromUserRequest::~DetachPolicyFromUserRequest()
{}
std::string DetachPolicyFromUserRequest::getPolicyType()const
{
return policyType_;
}
void DetachPolicyFromUserRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string DetachPolicyFromUserRequest::getPolicyName()const
{
return policyName_;
}
void DetachPolicyFromUserRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}
std::string DetachPolicyFromUserRequest::getUserName()const
{
return userName_;
}
void DetachPolicyFromUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h>
using AlibabaCloud::Ram::Model::GetAccessKeyLastUsedRequest;
GetAccessKeyLastUsedRequest::GetAccessKeyLastUsedRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetAccessKeyLastUsed")
{}
GetAccessKeyLastUsedRequest::~GetAccessKeyLastUsedRequest()
{}
std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId()const
{
return userAccessKeyId_;
}
void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string& userAccessKeyId)
{
userAccessKeyId_ = userAccessKeyId;
setParameter("UserAccessKeyId", userAccessKeyId);
}
std::string GetAccessKeyLastUsedRequest::getUserName()const
{
return userName_;
}
void GetAccessKeyLastUsedRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/ram/model/GetAccessKeyLastUsedResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetAccessKeyLastUsedResult::GetAccessKeyLastUsedResult() :
ServiceResult()
{}
GetAccessKeyLastUsedResult::GetAccessKeyLastUsedResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedResult::~GetAccessKeyLastUsedResult()
{}
void GetAccessKeyLastUsedResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessKeyLastUsedNode = value["AccessKeyLastUsed"];
if(!accessKeyLastUsedNode["LastUsedDate"].isNull())
accessKeyLastUsed_.lastUsedDate = accessKeyLastUsedNode["LastUsedDate"].asString();
}
GetAccessKeyLastUsedResult::AccessKeyLastUsed GetAccessKeyLastUsedResult::getAccessKeyLastUsed()const
{
return accessKeyLastUsed_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/ram/model/GetAccountAliasRequest.h>
using AlibabaCloud::Ram::Model::GetAccountAliasRequest;
GetAccountAliasRequest::GetAccountAliasRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetAccountAlias")
{}
GetAccountAliasRequest::~GetAccountAliasRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/ram/model/GetAccountAliasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetAccountAliasResult::GetAccountAliasResult() :
ServiceResult()
{}
GetAccountAliasResult::GetAccountAliasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccountAliasResult::~GetAccountAliasResult()
{}
void GetAccountAliasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AccountAlias"].isNull())
accountAlias_ = value["AccountAlias"].asString();
}
std::string GetAccountAliasResult::getAccountAlias()const
{
return accountAlias_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/GetGroupRequest.h>
using AlibabaCloud::Ram::Model::GetGroupRequest;
GetGroupRequest::GetGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetGroup")
{}
GetGroupRequest::~GetGroupRequest()
{}
std::string GetGroupRequest::getGroupName()const
{
return groupName_;
}
void GetGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/GetGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetGroupResult::GetGroupResult() :
ServiceResult()
{}
GetGroupResult::GetGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGroupResult::~GetGroupResult()
{}
void GetGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["Comments"].isNull())
group_.comments = groupNode["Comments"].asString();
if(!groupNode["CreateDate"].isNull())
group_.createDate = groupNode["CreateDate"].asString();
if(!groupNode["UpdateDate"].isNull())
group_.updateDate = groupNode["UpdateDate"].asString();
}
GetGroupResult::Group GetGroupResult::getGroup()const
{
return group_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/GetLoginProfileRequest.h>
using AlibabaCloud::Ram::Model::GetLoginProfileRequest;
GetLoginProfileRequest::GetLoginProfileRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetLoginProfile")
{}
GetLoginProfileRequest::~GetLoginProfileRequest()
{}
std::string GetLoginProfileRequest::getUserName()const
{
return userName_;
}
void GetLoginProfileRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/GetLoginProfileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetLoginProfileResult::GetLoginProfileResult() :
ServiceResult()
{}
GetLoginProfileResult::GetLoginProfileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLoginProfileResult::~GetLoginProfileResult()
{}
void GetLoginProfileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto loginProfileNode = value["LoginProfile"];
if(!loginProfileNode["UserName"].isNull())
loginProfile_.userName = loginProfileNode["UserName"].asString();
if(!loginProfileNode["PasswordResetRequired"].isNull())
loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true";
if(!loginProfileNode["MFABindRequired"].isNull())
loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true";
if(!loginProfileNode["CreateDate"].isNull())
loginProfile_.createDate = loginProfileNode["CreateDate"].asString();
}
GetLoginProfileResult::LoginProfile GetLoginProfileResult::getLoginProfile()const
{
return loginProfile_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/ram/model/GetPasswordPolicyRequest.h>
using AlibabaCloud::Ram::Model::GetPasswordPolicyRequest;
GetPasswordPolicyRequest::GetPasswordPolicyRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetPasswordPolicy")
{}
GetPasswordPolicyRequest::~GetPasswordPolicyRequest()
{}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetPasswordPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetPasswordPolicyResult::GetPasswordPolicyResult() :
ServiceResult()
{}
GetPasswordPolicyResult::GetPasswordPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPasswordPolicyResult::~GetPasswordPolicyResult()
{}
void GetPasswordPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto passwordPolicyNode = value["PasswordPolicy"];
if(!passwordPolicyNode["MinimumPasswordLength"].isNull())
passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString());
if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull())
passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true";
if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull())
passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true";
if(!passwordPolicyNode["RequireNumbers"].isNull())
passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true";
if(!passwordPolicyNode["RequireSymbols"].isNull())
passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true";
if(!passwordPolicyNode["HardExpiry"].isNull())
passwordPolicy_.hardExpiry = passwordPolicyNode["HardExpiry"].asString() == "true";
if(!passwordPolicyNode["MaxPasswordAge"].isNull())
passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString());
if(!passwordPolicyNode["PasswordReusePrevention"].isNull())
passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString());
if(!passwordPolicyNode["MaxLoginAttemps"].isNull())
passwordPolicy_.maxLoginAttemps = std::stoi(passwordPolicyNode["MaxLoginAttemps"].asString());
}
GetPasswordPolicyResult::PasswordPolicy GetPasswordPolicyResult::getPasswordPolicy()const
{
return passwordPolicy_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetPolicyRequest.h>
using AlibabaCloud::Ram::Model::GetPolicyRequest;
GetPolicyRequest::GetPolicyRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetPolicy")
{}
GetPolicyRequest::~GetPolicyRequest()
{}
std::string GetPolicyRequest::getPolicyType()const
{
return policyType_;
}
void GetPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string GetPolicyRequest::getPolicyName()const
{
return policyName_;
}
void GetPolicyRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

View 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/ram/model/GetPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetPolicyResult::GetPolicyResult() :
ServiceResult()
{}
GetPolicyResult::GetPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPolicyResult::~GetPolicyResult()
{}
void GetPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyNode = value["Policy"];
if(!policyNode["PolicyName"].isNull())
policy_.policyName = policyNode["PolicyName"].asString();
if(!policyNode["PolicyType"].isNull())
policy_.policyType = policyNode["PolicyType"].asString();
if(!policyNode["Description"].isNull())
policy_.description = policyNode["Description"].asString();
if(!policyNode["DefaultVersion"].isNull())
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
if(!policyNode["PolicyDocument"].isNull())
policy_.policyDocument = policyNode["PolicyDocument"].asString();
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
if(!policyNode["UpdateDate"].isNull())
policy_.updateDate = policyNode["UpdateDate"].asString();
if(!policyNode["AttachmentCount"].isNull())
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
}
GetPolicyResult::Policy GetPolicyResult::getPolicy()const
{
return policy_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/GetPolicyVersionRequest.h>
using AlibabaCloud::Ram::Model::GetPolicyVersionRequest;
GetPolicyVersionRequest::GetPolicyVersionRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetPolicyVersion")
{}
GetPolicyVersionRequest::~GetPolicyVersionRequest()
{}
std::string GetPolicyVersionRequest::getVersionId()const
{
return versionId_;
}
void GetPolicyVersionRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}
std::string GetPolicyVersionRequest::getPolicyType()const
{
return policyType_;
}
void GetPolicyVersionRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string GetPolicyVersionRequest::getPolicyName()const
{
return policyName_;
}
void GetPolicyVersionRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/GetPolicyVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetPolicyVersionResult::GetPolicyVersionResult() :
ServiceResult()
{}
GetPolicyVersionResult::GetPolicyVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPolicyVersionResult::~GetPolicyVersionResult()
{}
void GetPolicyVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyVersionNode = value["PolicyVersion"];
if(!policyVersionNode["VersionId"].isNull())
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
if(!policyVersionNode["IsDefaultVersion"].isNull())
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
if(!policyVersionNode["PolicyDocument"].isNull())
policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString();
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
}
GetPolicyVersionResult::PolicyVersion GetPolicyVersionResult::getPolicyVersion()const
{
return policyVersion_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetPublicKeyRequest.h>
using AlibabaCloud::Ram::Model::GetPublicKeyRequest;
GetPublicKeyRequest::GetPublicKeyRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetPublicKey")
{}
GetPublicKeyRequest::~GetPublicKeyRequest()
{}
std::string GetPublicKeyRequest::getUserPublicKeyId()const
{
return userPublicKeyId_;
}
void GetPublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId)
{
userPublicKeyId_ = userPublicKeyId;
setParameter("UserPublicKeyId", userPublicKeyId);
}
std::string GetPublicKeyRequest::getUserName()const
{
return userName_;
}
void GetPublicKeyRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ram/model/GetPublicKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetPublicKeyResult::GetPublicKeyResult() :
ServiceResult()
{}
GetPublicKeyResult::GetPublicKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPublicKeyResult::~GetPublicKeyResult()
{}
void GetPublicKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto publicKeyNode = value["PublicKey"];
if(!publicKeyNode["PublicKeyId"].isNull())
publicKey_.publicKeyId = publicKeyNode["PublicKeyId"].asString();
if(!publicKeyNode["PublicKeySpec"].isNull())
publicKey_.publicKeySpec = publicKeyNode["PublicKeySpec"].asString();
if(!publicKeyNode["Status"].isNull())
publicKey_.status = publicKeyNode["Status"].asString();
if(!publicKeyNode["CreateDate"].isNull())
publicKey_.createDate = publicKeyNode["CreateDate"].asString();
}
GetPublicKeyResult::PublicKey GetPublicKeyResult::getPublicKey()const
{
return publicKey_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/GetRoleRequest.h>
using AlibabaCloud::Ram::Model::GetRoleRequest;
GetRoleRequest::GetRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetRole")
{}
GetRoleRequest::~GetRoleRequest()
{}
std::string GetRoleRequest::getRoleName()const
{
return roleName_;
}
void GetRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/ram/model/GetRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetRoleResult::GetRoleResult() :
ServiceResult()
{}
GetRoleResult::GetRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRoleResult::~GetRoleResult()
{}
void GetRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["UpdateDate"].isNull())
role_.updateDate = roleNode["UpdateDate"].asString();
}
GetRoleResult::Role GetRoleResult::getRole()const
{
return role_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/ram/model/GetSecurityPreferenceRequest.h>
using AlibabaCloud::Ram::Model::GetSecurityPreferenceRequest;
GetSecurityPreferenceRequest::GetSecurityPreferenceRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetSecurityPreference")
{}
GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest()
{}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetSecurityPreferenceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetSecurityPreferenceResult::GetSecurityPreferenceResult() :
ServiceResult()
{}
GetSecurityPreferenceResult::GetSecurityPreferenceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSecurityPreferenceResult::~GetSecurityPreferenceResult()
{}
void GetSecurityPreferenceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto securityPreferenceNode = value["SecurityPreference"];
auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"];
if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull())
securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true";
if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull())
securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true";
if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull())
securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString());
if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull())
securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString();
auto accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"];
if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull())
securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true";
auto publicKeyPreferenceNode = securityPreferenceNode["PublicKeyPreference"];
if(!publicKeyPreferenceNode["AllowUserToManagePublicKeys"].isNull())
securityPreference_.publicKeyPreference.allowUserToManagePublicKeys = publicKeyPreferenceNode["AllowUserToManagePublicKeys"].asString() == "true";
auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"];
if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull())
securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true";
}
GetSecurityPreferenceResult::SecurityPreference GetSecurityPreferenceResult::getSecurityPreference()const
{
return securityPreference_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/GetUserMFAInfoRequest.h>
using AlibabaCloud::Ram::Model::GetUserMFAInfoRequest;
GetUserMFAInfoRequest::GetUserMFAInfoRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetUserMFAInfo")
{}
GetUserMFAInfoRequest::~GetUserMFAInfoRequest()
{}
std::string GetUserMFAInfoRequest::getUserName()const
{
return userName_;
}
void GetUserMFAInfoRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/ram/model/GetUserMFAInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetUserMFAInfoResult::GetUserMFAInfoResult() :
ServiceResult()
{}
GetUserMFAInfoResult::GetUserMFAInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserMFAInfoResult::~GetUserMFAInfoResult()
{}
void GetUserMFAInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mFADeviceNode = value["MFADevice"];
if(!mFADeviceNode["SerialNumber"].isNull())
mFADevice_.serialNumber = mFADeviceNode["SerialNumber"].asString();
}
GetUserMFAInfoResult::MFADevice GetUserMFAInfoResult::getMFADevice()const
{
return mFADevice_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/GetUserRequest.h>
using AlibabaCloud::Ram::Model::GetUserRequest;
GetUserRequest::GetUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "GetUser")
{}
GetUserRequest::~GetUserRequest()
{}
std::string GetUserRequest::getUserName()const
{
return userName_;
}
void GetUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
GetUserResult::GetUserResult() :
ServiceResult()
{}
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserResult::~GetUserResult()
{}
void GetUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userNode = value["User"];
if(!userNode["UserId"].isNull())
user_.userId = userNode["UserId"].asString();
if(!userNode["UserName"].isNull())
user_.userName = userNode["UserName"].asString();
if(!userNode["DisplayName"].isNull())
user_.displayName = userNode["DisplayName"].asString();
if(!userNode["MobilePhone"].isNull())
user_.mobilePhone = userNode["MobilePhone"].asString();
if(!userNode["Email"].isNull())
user_.email = userNode["Email"].asString();
if(!userNode["Comments"].isNull())
user_.comments = userNode["Comments"].asString();
if(!userNode["CreateDate"].isNull())
user_.createDate = userNode["CreateDate"].asString();
if(!userNode["UpdateDate"].isNull())
user_.updateDate = userNode["UpdateDate"].asString();
if(!userNode["LastLoginDate"].isNull())
user_.lastLoginDate = userNode["LastLoginDate"].asString();
}
GetUserResult::User GetUserResult::getUser()const
{
return user_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListAccessKeysRequest.h>
using AlibabaCloud::Ram::Model::ListAccessKeysRequest;
ListAccessKeysRequest::ListAccessKeysRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListAccessKeys")
{}
ListAccessKeysRequest::~ListAccessKeysRequest()
{}
std::string ListAccessKeysRequest::getUserName()const
{
return userName_;
}
void ListAccessKeysRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListAccessKeysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListAccessKeysResult::ListAccessKeysResult() :
ServiceResult()
{}
ListAccessKeysResult::ListAccessKeysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAccessKeysResult::~ListAccessKeysResult()
{}
void ListAccessKeysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccessKeys = value["AccessKeys"]["AccessKey"];
for (auto value : allAccessKeys)
{
AccessKey accessKeysObject;
if(!value["AccessKeyId"].isNull())
accessKeysObject.accessKeyId = value["AccessKeyId"].asString();
if(!value["Status"].isNull())
accessKeysObject.status = value["Status"].asString();
if(!value["CreateDate"].isNull())
accessKeysObject.createDate = value["CreateDate"].asString();
accessKeys_.push_back(accessKeysObject);
}
}
std::vector<ListAccessKeysResult::AccessKey> ListAccessKeysResult::getAccessKeys()const
{
return accessKeys_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListEntitiesForPolicyRequest.h>
using AlibabaCloud::Ram::Model::ListEntitiesForPolicyRequest;
ListEntitiesForPolicyRequest::ListEntitiesForPolicyRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListEntitiesForPolicy")
{}
ListEntitiesForPolicyRequest::~ListEntitiesForPolicyRequest()
{}
std::string ListEntitiesForPolicyRequest::getPolicyType()const
{
return policyType_;
}
void ListEntitiesForPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string ListEntitiesForPolicyRequest::getPolicyName()const
{
return policyName_;
}
void ListEntitiesForPolicyRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

View File

@@ -0,0 +1,102 @@
/*
* 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/ram/model/ListEntitiesForPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListEntitiesForPolicyResult::ListEntitiesForPolicyResult() :
ServiceResult()
{}
ListEntitiesForPolicyResult::ListEntitiesForPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListEntitiesForPolicyResult::~ListEntitiesForPolicyResult()
{}
void ListEntitiesForPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroups = value["Groups"]["Group"];
for (auto value : allGroups)
{
Group groupsObject;
if(!value["GroupName"].isNull())
groupsObject.groupName = value["GroupName"].asString();
if(!value["Comments"].isNull())
groupsObject.comments = value["Comments"].asString();
if(!value["AttachDate"].isNull())
groupsObject.attachDate = value["AttachDate"].asString();
groups_.push_back(groupsObject);
}
auto allUsers = value["Users"]["User"];
for (auto value : allUsers)
{
User usersObject;
if(!value["UserId"].isNull())
usersObject.userId = value["UserId"].asString();
if(!value["UserName"].isNull())
usersObject.userName = value["UserName"].asString();
if(!value["DisplayName"].isNull())
usersObject.displayName = value["DisplayName"].asString();
if(!value["AttachDate"].isNull())
usersObject.attachDate = value["AttachDate"].asString();
users_.push_back(usersObject);
}
auto allRoles = value["Roles"]["Role"];
for (auto value : allRoles)
{
Role rolesObject;
if(!value["RoleId"].isNull())
rolesObject.roleId = value["RoleId"].asString();
if(!value["RoleName"].isNull())
rolesObject.roleName = value["RoleName"].asString();
if(!value["Arn"].isNull())
rolesObject.arn = value["Arn"].asString();
if(!value["Description"].isNull())
rolesObject.description = value["Description"].asString();
if(!value["AttachDate"].isNull())
rolesObject.attachDate = value["AttachDate"].asString();
roles_.push_back(rolesObject);
}
}
std::vector<ListEntitiesForPolicyResult::Group> ListEntitiesForPolicyResult::getGroups()const
{
return groups_;
}
std::vector<ListEntitiesForPolicyResult::Role> ListEntitiesForPolicyResult::getRoles()const
{
return roles_;
}
std::vector<ListEntitiesForPolicyResult::User> ListEntitiesForPolicyResult::getUsers()const
{
return users_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListGroupsForUserRequest.h>
using AlibabaCloud::Ram::Model::ListGroupsForUserRequest;
ListGroupsForUserRequest::ListGroupsForUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListGroupsForUser")
{}
ListGroupsForUserRequest::~ListGroupsForUserRequest()
{}
std::string ListGroupsForUserRequest::getUserName()const
{
return userName_;
}
void ListGroupsForUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListGroupsForUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListGroupsForUserResult::ListGroupsForUserResult() :
ServiceResult()
{}
ListGroupsForUserResult::ListGroupsForUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListGroupsForUserResult::~ListGroupsForUserResult()
{}
void ListGroupsForUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroups = value["Groups"]["Group"];
for (auto value : allGroups)
{
Group groupsObject;
if(!value["GroupName"].isNull())
groupsObject.groupName = value["GroupName"].asString();
if(!value["Comments"].isNull())
groupsObject.comments = value["Comments"].asString();
if(!value["JoinDate"].isNull())
groupsObject.joinDate = value["JoinDate"].asString();
groups_.push_back(groupsObject);
}
}
std::vector<ListGroupsForUserResult::Group> ListGroupsForUserResult::getGroups()const
{
return groups_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListGroupsRequest.h>
using AlibabaCloud::Ram::Model::ListGroupsRequest;
ListGroupsRequest::ListGroupsRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListGroups")
{}
ListGroupsRequest::~ListGroupsRequest()
{}
std::string ListGroupsRequest::getMarker()const
{
return marker_;
}
void ListGroupsRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setParameter("Marker", marker);
}
int ListGroupsRequest::getMaxItems()const
{
return maxItems_;
}
void ListGroupsRequest::setMaxItems(int maxItems)
{
maxItems_ = maxItems;
setParameter("MaxItems", std::to_string(maxItems));
}

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListGroupsResult::ListGroupsResult() :
ServiceResult()
{}
ListGroupsResult::ListGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListGroupsResult::~ListGroupsResult()
{}
void ListGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroups = value["Groups"]["Group"];
for (auto value : allGroups)
{
Group groupsObject;
if(!value["GroupName"].isNull())
groupsObject.groupName = value["GroupName"].asString();
if(!value["Comments"].isNull())
groupsObject.comments = value["Comments"].asString();
if(!value["CreateDate"].isNull())
groupsObject.createDate = value["CreateDate"].asString();
if(!value["UpdateDate"].isNull())
groupsObject.updateDate = value["UpdateDate"].asString();
groups_.push_back(groupsObject);
}
if(!value["IsTruncated"].isNull())
isTruncated_ = value["IsTruncated"].asString() == "true";
if(!value["Marker"].isNull())
marker_ = value["Marker"].asString();
}
std::vector<ListGroupsResult::Group> ListGroupsResult::getGroups()const
{
return groups_;
}
bool ListGroupsResult::getIsTruncated()const
{
return isTruncated_;
}
std::string ListGroupsResult::getMarker()const
{
return marker_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListPoliciesForGroupRequest.h>
using AlibabaCloud::Ram::Model::ListPoliciesForGroupRequest;
ListPoliciesForGroupRequest::ListPoliciesForGroupRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForGroup")
{}
ListPoliciesForGroupRequest::~ListPoliciesForGroupRequest()
{}
std::string ListPoliciesForGroupRequest::getGroupName()const
{
return groupName_;
}
void ListPoliciesForGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPoliciesForGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPoliciesForGroupResult::ListPoliciesForGroupResult() :
ServiceResult()
{}
ListPoliciesForGroupResult::ListPoliciesForGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPoliciesForGroupResult::~ListPoliciesForGroupResult()
{}
void ListPoliciesForGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicies = value["Policies"]["Policy"];
for (auto value : allPolicies)
{
Policy policiesObject;
if(!value["PolicyName"].isNull())
policiesObject.policyName = value["PolicyName"].asString();
if(!value["PolicyType"].isNull())
policiesObject.policyType = value["PolicyType"].asString();
if(!value["Description"].isNull())
policiesObject.description = value["Description"].asString();
if(!value["DefaultVersion"].isNull())
policiesObject.defaultVersion = value["DefaultVersion"].asString();
if(!value["AttachDate"].isNull())
policiesObject.attachDate = value["AttachDate"].asString();
policies_.push_back(policiesObject);
}
}
std::vector<ListPoliciesForGroupResult::Policy> ListPoliciesForGroupResult::getPolicies()const
{
return policies_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListPoliciesForRoleRequest.h>
using AlibabaCloud::Ram::Model::ListPoliciesForRoleRequest;
ListPoliciesForRoleRequest::ListPoliciesForRoleRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForRole")
{}
ListPoliciesForRoleRequest::~ListPoliciesForRoleRequest()
{}
std::string ListPoliciesForRoleRequest::getRoleName()const
{
return roleName_;
}
void ListPoliciesForRoleRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setParameter("RoleName", roleName);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPoliciesForRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPoliciesForRoleResult::ListPoliciesForRoleResult() :
ServiceResult()
{}
ListPoliciesForRoleResult::ListPoliciesForRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPoliciesForRoleResult::~ListPoliciesForRoleResult()
{}
void ListPoliciesForRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicies = value["Policies"]["Policy"];
for (auto value : allPolicies)
{
Policy policiesObject;
if(!value["PolicyName"].isNull())
policiesObject.policyName = value["PolicyName"].asString();
if(!value["PolicyType"].isNull())
policiesObject.policyType = value["PolicyType"].asString();
if(!value["Description"].isNull())
policiesObject.description = value["Description"].asString();
if(!value["DefaultVersion"].isNull())
policiesObject.defaultVersion = value["DefaultVersion"].asString();
if(!value["AttachDate"].isNull())
policiesObject.attachDate = value["AttachDate"].asString();
policies_.push_back(policiesObject);
}
}
std::vector<ListPoliciesForRoleResult::Policy> ListPoliciesForRoleResult::getPolicies()const
{
return policies_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListPoliciesForUserRequest.h>
using AlibabaCloud::Ram::Model::ListPoliciesForUserRequest;
ListPoliciesForUserRequest::ListPoliciesForUserRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForUser")
{}
ListPoliciesForUserRequest::~ListPoliciesForUserRequest()
{}
std::string ListPoliciesForUserRequest::getUserName()const
{
return userName_;
}
void ListPoliciesForUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPoliciesForUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPoliciesForUserResult::ListPoliciesForUserResult() :
ServiceResult()
{}
ListPoliciesForUserResult::ListPoliciesForUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPoliciesForUserResult::~ListPoliciesForUserResult()
{}
void ListPoliciesForUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicies = value["Policies"]["Policy"];
for (auto value : allPolicies)
{
Policy policiesObject;
if(!value["PolicyName"].isNull())
policiesObject.policyName = value["PolicyName"].asString();
if(!value["PolicyType"].isNull())
policiesObject.policyType = value["PolicyType"].asString();
if(!value["Description"].isNull())
policiesObject.description = value["Description"].asString();
if(!value["DefaultVersion"].isNull())
policiesObject.defaultVersion = value["DefaultVersion"].asString();
if(!value["AttachDate"].isNull())
policiesObject.attachDate = value["AttachDate"].asString();
policies_.push_back(policiesObject);
}
}
std::vector<ListPoliciesForUserResult::Policy> ListPoliciesForUserResult::getPolicies()const
{
return policies_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/ram/model/ListPoliciesRequest.h>
using AlibabaCloud::Ram::Model::ListPoliciesRequest;
ListPoliciesRequest::ListPoliciesRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPolicies")
{}
ListPoliciesRequest::~ListPoliciesRequest()
{}
std::string ListPoliciesRequest::getPolicyType()const
{
return policyType_;
}
void ListPoliciesRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string ListPoliciesRequest::getMarker()const
{
return marker_;
}
void ListPoliciesRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setParameter("Marker", marker);
}
int ListPoliciesRequest::getMaxItems()const
{
return maxItems_;
}
void ListPoliciesRequest::setMaxItems(int maxItems)
{
maxItems_ = maxItems;
setParameter("MaxItems", std::to_string(maxItems));
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ram/model/ListPoliciesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPoliciesResult::ListPoliciesResult() :
ServiceResult()
{}
ListPoliciesResult::ListPoliciesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPoliciesResult::~ListPoliciesResult()
{}
void ListPoliciesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicies = value["Policies"]["Policy"];
for (auto value : allPolicies)
{
Policy policiesObject;
if(!value["PolicyName"].isNull())
policiesObject.policyName = value["PolicyName"].asString();
if(!value["PolicyType"].isNull())
policiesObject.policyType = value["PolicyType"].asString();
if(!value["Description"].isNull())
policiesObject.description = value["Description"].asString();
if(!value["DefaultVersion"].isNull())
policiesObject.defaultVersion = value["DefaultVersion"].asString();
if(!value["CreateDate"].isNull())
policiesObject.createDate = value["CreateDate"].asString();
if(!value["UpdateDate"].isNull())
policiesObject.updateDate = value["UpdateDate"].asString();
if(!value["AttachmentCount"].isNull())
policiesObject.attachmentCount = std::stoi(value["AttachmentCount"].asString());
policies_.push_back(policiesObject);
}
if(!value["IsTruncated"].isNull())
isTruncated_ = value["IsTruncated"].asString() == "true";
if(!value["Marker"].isNull())
marker_ = value["Marker"].asString();
}
std::vector<ListPoliciesResult::Policy> ListPoliciesResult::getPolicies()const
{
return policies_;
}
bool ListPoliciesResult::getIsTruncated()const
{
return isTruncated_;
}
std::string ListPoliciesResult::getMarker()const
{
return marker_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPolicyVersionsRequest.h>
using AlibabaCloud::Ram::Model::ListPolicyVersionsRequest;
ListPolicyVersionsRequest::ListPolicyVersionsRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPolicyVersions")
{}
ListPolicyVersionsRequest::~ListPolicyVersionsRequest()
{}
std::string ListPolicyVersionsRequest::getPolicyType()const
{
return policyType_;
}
void ListPolicyVersionsRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setParameter("PolicyType", policyType);
}
std::string ListPolicyVersionsRequest::getPolicyName()const
{
return policyName_;
}
void ListPolicyVersionsRequest::setPolicyName(const std::string& policyName)
{
policyName_ = policyName;
setParameter("PolicyName", policyName);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPolicyVersionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPolicyVersionsResult::ListPolicyVersionsResult() :
ServiceResult()
{}
ListPolicyVersionsResult::ListPolicyVersionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPolicyVersionsResult::~ListPolicyVersionsResult()
{}
void ListPolicyVersionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicyVersions = value["PolicyVersions"]["PolicyVersion"];
for (auto value : allPolicyVersions)
{
PolicyVersion policyVersionsObject;
if(!value["VersionId"].isNull())
policyVersionsObject.versionId = value["VersionId"].asString();
if(!value["IsDefaultVersion"].isNull())
policyVersionsObject.isDefaultVersion = value["IsDefaultVersion"].asString() == "true";
if(!value["PolicyDocument"].isNull())
policyVersionsObject.policyDocument = value["PolicyDocument"].asString();
if(!value["CreateDate"].isNull())
policyVersionsObject.createDate = value["CreateDate"].asString();
policyVersions_.push_back(policyVersionsObject);
}
}
std::vector<ListPolicyVersionsResult::PolicyVersion> ListPolicyVersionsResult::getPolicyVersions()const
{
return policyVersions_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/ram/model/ListPublicKeysRequest.h>
using AlibabaCloud::Ram::Model::ListPublicKeysRequest;
ListPublicKeysRequest::ListPublicKeysRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListPublicKeys")
{}
ListPublicKeysRequest::~ListPublicKeysRequest()
{}
std::string ListPublicKeysRequest::getUserName()const
{
return userName_;
}
void ListPublicKeysRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListPublicKeysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ram;
using namespace AlibabaCloud::Ram::Model;
ListPublicKeysResult::ListPublicKeysResult() :
ServiceResult()
{}
ListPublicKeysResult::ListPublicKeysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPublicKeysResult::~ListPublicKeysResult()
{}
void ListPublicKeysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPublicKeys = value["PublicKeys"]["PublicKey"];
for (auto value : allPublicKeys)
{
PublicKey publicKeysObject;
if(!value["PublicKeyId"].isNull())
publicKeysObject.publicKeyId = value["PublicKeyId"].asString();
if(!value["Status"].isNull())
publicKeysObject.status = value["Status"].asString();
if(!value["CreateDate"].isNull())
publicKeysObject.createDate = value["CreateDate"].asString();
publicKeys_.push_back(publicKeysObject);
}
}
std::vector<ListPublicKeysResult::PublicKey> ListPublicKeysResult::getPublicKeys()const
{
return publicKeys_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ram/model/ListRolesRequest.h>
using AlibabaCloud::Ram::Model::ListRolesRequest;
ListRolesRequest::ListRolesRequest() :
RpcServiceRequest("ram", "2015-05-01", "ListRoles")
{}
ListRolesRequest::~ListRolesRequest()
{}
std::string ListRolesRequest::getMarker()const
{
return marker_;
}
void ListRolesRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setParameter("Marker", marker);
}
int ListRolesRequest::getMaxItems()const
{
return maxItems_;
}
void ListRolesRequest::setMaxItems(int maxItems)
{
maxItems_ = maxItems;
setParameter("MaxItems", std::to_string(maxItems));
}

Some files were not shown because too many files have changed in this diff Show More