diff --git a/CHANGELOG b/CHANGELOG index 7ad4489f7..ad7a8d680 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-14 Version: 1.34.18 +1, Update Dependency + 2019-03-14 Version: 1.34.17 1, Update Dependency diff --git a/CMakeLists.txt b/CMakeLists.txt index a263af48d..a369517cf 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,4 +94,5 @@ add_subdirectory(alimt) add_subdirectory(xspace) add_subdirectory(jarvis-public) add_subdirectory(cbn) -add_subdirectory(emr) \ No newline at end of file +add_subdirectory(emr) +add_subdirectory(ram) \ No newline at end of file diff --git a/VERSION b/VERSION index eb9cfec48..8ea9bbbf3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.17 \ No newline at end of file +1.34.18 \ No newline at end of file diff --git a/ram/CMakeLists.txt b/ram/CMakeLists.txt new file mode 100644 index 000000000..20cbec04d --- /dev/null +++ b/ram/CMakeLists.txt @@ -0,0 +1,346 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(ram_public_header + include/alibabacloud/ram/RamClient.h + include/alibabacloud/ram/RamExport.h ) + +set(ram_public_header_model + include/alibabacloud/ram/model/CreatePolicyRequest.h + include/alibabacloud/ram/model/CreatePolicyResult.h + include/alibabacloud/ram/model/ListUsersRequest.h + include/alibabacloud/ram/model/ListUsersResult.h + include/alibabacloud/ram/model/GetUserMFAInfoRequest.h + include/alibabacloud/ram/model/GetUserMFAInfoResult.h + include/alibabacloud/ram/model/UnbindMFADeviceRequest.h + include/alibabacloud/ram/model/UnbindMFADeviceResult.h + include/alibabacloud/ram/model/BindMFADeviceRequest.h + include/alibabacloud/ram/model/BindMFADeviceResult.h + include/alibabacloud/ram/model/ListPublicKeysRequest.h + include/alibabacloud/ram/model/ListPublicKeysResult.h + include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h + include/alibabacloud/ram/model/AttachPolicyToRoleResult.h + include/alibabacloud/ram/model/AddUserToGroupRequest.h + include/alibabacloud/ram/model/AddUserToGroupResult.h + include/alibabacloud/ram/model/GetAccountAliasRequest.h + include/alibabacloud/ram/model/GetAccountAliasResult.h + include/alibabacloud/ram/model/GetLoginProfileRequest.h + include/alibabacloud/ram/model/GetLoginProfileResult.h + include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h + include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h + include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h + include/alibabacloud/ram/model/SetSecurityPreferenceResult.h + include/alibabacloud/ram/model/ListPoliciesForUserRequest.h + include/alibabacloud/ram/model/ListPoliciesForUserResult.h + include/alibabacloud/ram/model/UpdateLoginProfileRequest.h + include/alibabacloud/ram/model/UpdateLoginProfileResult.h + include/alibabacloud/ram/model/ListUsersForGroupRequest.h + include/alibabacloud/ram/model/ListUsersForGroupResult.h + include/alibabacloud/ram/model/GetPolicyVersionRequest.h + include/alibabacloud/ram/model/GetPolicyVersionResult.h + include/alibabacloud/ram/model/DeleteRoleRequest.h + include/alibabacloud/ram/model/DeleteRoleResult.h + include/alibabacloud/ram/model/GetUserRequest.h + include/alibabacloud/ram/model/GetUserResult.h + include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h + include/alibabacloud/ram/model/DeleteVirtualMFADeviceResult.h + include/alibabacloud/ram/model/UploadPublicKeyRequest.h + include/alibabacloud/ram/model/UploadPublicKeyResult.h + include/alibabacloud/ram/model/DeletePolicyVersionRequest.h + include/alibabacloud/ram/model/DeletePolicyVersionResult.h + include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h + include/alibabacloud/ram/model/RemoveUserFromGroupResult.h + include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h + include/alibabacloud/ram/model/GetAccessKeyLastUsedResult.h + include/alibabacloud/ram/model/UpdateAccessKeyRequest.h + include/alibabacloud/ram/model/UpdateAccessKeyResult.h + include/alibabacloud/ram/model/GetGroupRequest.h + include/alibabacloud/ram/model/GetGroupResult.h + include/alibabacloud/ram/model/CreateAccessKeyRequest.h + include/alibabacloud/ram/model/CreateAccessKeyResult.h + include/alibabacloud/ram/model/SetAccountAliasRequest.h + include/alibabacloud/ram/model/SetAccountAliasResult.h + include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h + include/alibabacloud/ram/model/ListPoliciesForGroupResult.h + include/alibabacloud/ram/model/ChangePasswordRequest.h + include/alibabacloud/ram/model/ChangePasswordResult.h + include/alibabacloud/ram/model/ListGroupsForUserRequest.h + include/alibabacloud/ram/model/ListGroupsForUserResult.h + include/alibabacloud/ram/model/AttachPolicyToUserRequest.h + include/alibabacloud/ram/model/AttachPolicyToUserResult.h + include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h + include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h + include/alibabacloud/ram/model/ListGroupsRequest.h + include/alibabacloud/ram/model/ListGroupsResult.h + include/alibabacloud/ram/model/DeleteUserRequest.h + include/alibabacloud/ram/model/DeleteUserResult.h + include/alibabacloud/ram/model/DeletePolicyRequest.h + include/alibabacloud/ram/model/DeletePolicyResult.h + include/alibabacloud/ram/model/DeleteGroupRequest.h + include/alibabacloud/ram/model/DeleteGroupResult.h + include/alibabacloud/ram/model/ClearAccountAliasRequest.h + include/alibabacloud/ram/model/ClearAccountAliasResult.h + include/alibabacloud/ram/model/UpdateRoleRequest.h + include/alibabacloud/ram/model/UpdateRoleResult.h + include/alibabacloud/ram/model/ListPoliciesRequest.h + include/alibabacloud/ram/model/ListPoliciesResult.h + include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h + include/alibabacloud/ram/model/AttachPolicyToGroupResult.h + include/alibabacloud/ram/model/GetPublicKeyRequest.h + include/alibabacloud/ram/model/GetPublicKeyResult.h + include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h + include/alibabacloud/ram/model/DetachPolicyFromRoleResult.h + include/alibabacloud/ram/model/DeletePublicKeyRequest.h + include/alibabacloud/ram/model/DeletePublicKeyResult.h + include/alibabacloud/ram/model/ListRolesRequest.h + include/alibabacloud/ram/model/ListRolesResult.h + include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h + include/alibabacloud/ram/model/SetDefaultPolicyVersionResult.h + include/alibabacloud/ram/model/ListPolicyVersionsRequest.h + include/alibabacloud/ram/model/ListPolicyVersionsResult.h + include/alibabacloud/ram/model/CreateRoleRequest.h + include/alibabacloud/ram/model/CreateRoleResult.h + include/alibabacloud/ram/model/CreatePolicyVersionRequest.h + include/alibabacloud/ram/model/CreatePolicyVersionResult.h + include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h + include/alibabacloud/ram/model/ListPoliciesForRoleResult.h + include/alibabacloud/ram/model/UpdatePublicKeyRequest.h + include/alibabacloud/ram/model/UpdatePublicKeyResult.h + include/alibabacloud/ram/model/CreateGroupRequest.h + include/alibabacloud/ram/model/CreateGroupResult.h + include/alibabacloud/ram/model/CreateUserRequest.h + include/alibabacloud/ram/model/CreateUserResult.h + include/alibabacloud/ram/model/GetPasswordPolicyRequest.h + include/alibabacloud/ram/model/GetPasswordPolicyResult.h + include/alibabacloud/ram/model/ListAccessKeysRequest.h + include/alibabacloud/ram/model/ListAccessKeysResult.h + include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h + include/alibabacloud/ram/model/DetachPolicyFromGroupResult.h + include/alibabacloud/ram/model/SetPasswordPolicyRequest.h + include/alibabacloud/ram/model/SetPasswordPolicyResult.h + include/alibabacloud/ram/model/DeleteAccessKeyRequest.h + include/alibabacloud/ram/model/DeleteAccessKeyResult.h + include/alibabacloud/ram/model/GetRoleRequest.h + include/alibabacloud/ram/model/GetRoleResult.h + include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h + include/alibabacloud/ram/model/GetSecurityPreferenceResult.h + include/alibabacloud/ram/model/DeleteLoginProfileRequest.h + include/alibabacloud/ram/model/DeleteLoginProfileResult.h + include/alibabacloud/ram/model/UpdateUserRequest.h + include/alibabacloud/ram/model/UpdateUserResult.h + include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h + include/alibabacloud/ram/model/DetachPolicyFromUserResult.h + include/alibabacloud/ram/model/CreateLoginProfileRequest.h + include/alibabacloud/ram/model/CreateLoginProfileResult.h + include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h + include/alibabacloud/ram/model/ListVirtualMFADevicesResult.h + include/alibabacloud/ram/model/UpdateGroupRequest.h + include/alibabacloud/ram/model/UpdateGroupResult.h + include/alibabacloud/ram/model/GetPolicyRequest.h + include/alibabacloud/ram/model/GetPolicyResult.h ) + +set(ram_src + src/RamClient.cc + src/model/CreatePolicyRequest.cc + src/model/CreatePolicyResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/GetUserMFAInfoRequest.cc + src/model/GetUserMFAInfoResult.cc + src/model/UnbindMFADeviceRequest.cc + src/model/UnbindMFADeviceResult.cc + src/model/BindMFADeviceRequest.cc + src/model/BindMFADeviceResult.cc + src/model/ListPublicKeysRequest.cc + src/model/ListPublicKeysResult.cc + src/model/AttachPolicyToRoleRequest.cc + src/model/AttachPolicyToRoleResult.cc + src/model/AddUserToGroupRequest.cc + src/model/AddUserToGroupResult.cc + src/model/GetAccountAliasRequest.cc + src/model/GetAccountAliasResult.cc + src/model/GetLoginProfileRequest.cc + src/model/GetLoginProfileResult.cc + src/model/ListEntitiesForPolicyRequest.cc + src/model/ListEntitiesForPolicyResult.cc + src/model/SetSecurityPreferenceRequest.cc + src/model/SetSecurityPreferenceResult.cc + src/model/ListPoliciesForUserRequest.cc + src/model/ListPoliciesForUserResult.cc + src/model/UpdateLoginProfileRequest.cc + src/model/UpdateLoginProfileResult.cc + src/model/ListUsersForGroupRequest.cc + src/model/ListUsersForGroupResult.cc + src/model/GetPolicyVersionRequest.cc + src/model/GetPolicyVersionResult.cc + src/model/DeleteRoleRequest.cc + src/model/DeleteRoleResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/DeleteVirtualMFADeviceRequest.cc + src/model/DeleteVirtualMFADeviceResult.cc + src/model/UploadPublicKeyRequest.cc + src/model/UploadPublicKeyResult.cc + src/model/DeletePolicyVersionRequest.cc + src/model/DeletePolicyVersionResult.cc + src/model/RemoveUserFromGroupRequest.cc + src/model/RemoveUserFromGroupResult.cc + src/model/GetAccessKeyLastUsedRequest.cc + src/model/GetAccessKeyLastUsedResult.cc + src/model/UpdateAccessKeyRequest.cc + src/model/UpdateAccessKeyResult.cc + src/model/GetGroupRequest.cc + src/model/GetGroupResult.cc + src/model/CreateAccessKeyRequest.cc + src/model/CreateAccessKeyResult.cc + src/model/SetAccountAliasRequest.cc + src/model/SetAccountAliasResult.cc + src/model/ListPoliciesForGroupRequest.cc + src/model/ListPoliciesForGroupResult.cc + src/model/ChangePasswordRequest.cc + src/model/ChangePasswordResult.cc + src/model/ListGroupsForUserRequest.cc + src/model/ListGroupsForUserResult.cc + src/model/AttachPolicyToUserRequest.cc + src/model/AttachPolicyToUserResult.cc + src/model/CreateVirtualMFADeviceRequest.cc + src/model/CreateVirtualMFADeviceResult.cc + src/model/ListGroupsRequest.cc + src/model/ListGroupsResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/DeletePolicyRequest.cc + src/model/DeletePolicyResult.cc + src/model/DeleteGroupRequest.cc + src/model/DeleteGroupResult.cc + src/model/ClearAccountAliasRequest.cc + src/model/ClearAccountAliasResult.cc + src/model/UpdateRoleRequest.cc + src/model/UpdateRoleResult.cc + src/model/ListPoliciesRequest.cc + src/model/ListPoliciesResult.cc + src/model/AttachPolicyToGroupRequest.cc + src/model/AttachPolicyToGroupResult.cc + src/model/GetPublicKeyRequest.cc + src/model/GetPublicKeyResult.cc + src/model/DetachPolicyFromRoleRequest.cc + src/model/DetachPolicyFromRoleResult.cc + src/model/DeletePublicKeyRequest.cc + src/model/DeletePublicKeyResult.cc + src/model/ListRolesRequest.cc + src/model/ListRolesResult.cc + src/model/SetDefaultPolicyVersionRequest.cc + src/model/SetDefaultPolicyVersionResult.cc + src/model/ListPolicyVersionsRequest.cc + src/model/ListPolicyVersionsResult.cc + src/model/CreateRoleRequest.cc + src/model/CreateRoleResult.cc + src/model/CreatePolicyVersionRequest.cc + src/model/CreatePolicyVersionResult.cc + src/model/ListPoliciesForRoleRequest.cc + src/model/ListPoliciesForRoleResult.cc + src/model/UpdatePublicKeyRequest.cc + src/model/UpdatePublicKeyResult.cc + src/model/CreateGroupRequest.cc + src/model/CreateGroupResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/GetPasswordPolicyRequest.cc + src/model/GetPasswordPolicyResult.cc + src/model/ListAccessKeysRequest.cc + src/model/ListAccessKeysResult.cc + src/model/DetachPolicyFromGroupRequest.cc + src/model/DetachPolicyFromGroupResult.cc + src/model/SetPasswordPolicyRequest.cc + src/model/SetPasswordPolicyResult.cc + src/model/DeleteAccessKeyRequest.cc + src/model/DeleteAccessKeyResult.cc + src/model/GetRoleRequest.cc + src/model/GetRoleResult.cc + src/model/GetSecurityPreferenceRequest.cc + src/model/GetSecurityPreferenceResult.cc + src/model/DeleteLoginProfileRequest.cc + src/model/DeleteLoginProfileResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc + src/model/DetachPolicyFromUserRequest.cc + src/model/DetachPolicyFromUserResult.cc + src/model/CreateLoginProfileRequest.cc + src/model/CreateLoginProfileResult.cc + src/model/ListVirtualMFADevicesRequest.cc + src/model/ListVirtualMFADevicesResult.cc + src/model/UpdateGroupRequest.cc + src/model/UpdateGroupResult.cc + src/model/GetPolicyRequest.cc + src/model/GetPolicyResult.cc ) + +add_library(ram ${LIB_TYPE} + ${ram_public_header} + ${ram_public_header_model} + ${ram_src}) + +set_target_properties(ram + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ram + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ram + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_RAM_LIBRARY) +endif() + +target_include_directories(ram + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ram + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ram + jsoncpp) + target_include_directories(ram + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ram + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ram + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ram + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ram + jsoncpp) +endif() + +install(FILES ${ram_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ram) +install(FILES ${ram_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ram/model) +install(TARGETS ram + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/RamClient.h b/ram/include/alibabacloud/ram/RamClient.h new file mode 100644 index 000000000..7ccc1190d --- /dev/null +++ b/ram/include/alibabacloud/ram/RamClient.h @@ -0,0 +1,574 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_RAMCLIENT_H_ +#define ALIBABACLOUD_RAM_RAMCLIENT_H_ + +#include +#include +#include +#include +#include "RamExport.h" +#include "model/CreatePolicyRequest.h" +#include "model/CreatePolicyResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/GetUserMFAInfoRequest.h" +#include "model/GetUserMFAInfoResult.h" +#include "model/UnbindMFADeviceRequest.h" +#include "model/UnbindMFADeviceResult.h" +#include "model/BindMFADeviceRequest.h" +#include "model/BindMFADeviceResult.h" +#include "model/ListPublicKeysRequest.h" +#include "model/ListPublicKeysResult.h" +#include "model/AttachPolicyToRoleRequest.h" +#include "model/AttachPolicyToRoleResult.h" +#include "model/AddUserToGroupRequest.h" +#include "model/AddUserToGroupResult.h" +#include "model/GetAccountAliasRequest.h" +#include "model/GetAccountAliasResult.h" +#include "model/GetLoginProfileRequest.h" +#include "model/GetLoginProfileResult.h" +#include "model/ListEntitiesForPolicyRequest.h" +#include "model/ListEntitiesForPolicyResult.h" +#include "model/SetSecurityPreferenceRequest.h" +#include "model/SetSecurityPreferenceResult.h" +#include "model/ListPoliciesForUserRequest.h" +#include "model/ListPoliciesForUserResult.h" +#include "model/UpdateLoginProfileRequest.h" +#include "model/UpdateLoginProfileResult.h" +#include "model/ListUsersForGroupRequest.h" +#include "model/ListUsersForGroupResult.h" +#include "model/GetPolicyVersionRequest.h" +#include "model/GetPolicyVersionResult.h" +#include "model/DeleteRoleRequest.h" +#include "model/DeleteRoleResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/DeleteVirtualMFADeviceRequest.h" +#include "model/DeleteVirtualMFADeviceResult.h" +#include "model/UploadPublicKeyRequest.h" +#include "model/UploadPublicKeyResult.h" +#include "model/DeletePolicyVersionRequest.h" +#include "model/DeletePolicyVersionResult.h" +#include "model/RemoveUserFromGroupRequest.h" +#include "model/RemoveUserFromGroupResult.h" +#include "model/GetAccessKeyLastUsedRequest.h" +#include "model/GetAccessKeyLastUsedResult.h" +#include "model/UpdateAccessKeyRequest.h" +#include "model/UpdateAccessKeyResult.h" +#include "model/GetGroupRequest.h" +#include "model/GetGroupResult.h" +#include "model/CreateAccessKeyRequest.h" +#include "model/CreateAccessKeyResult.h" +#include "model/SetAccountAliasRequest.h" +#include "model/SetAccountAliasResult.h" +#include "model/ListPoliciesForGroupRequest.h" +#include "model/ListPoliciesForGroupResult.h" +#include "model/ChangePasswordRequest.h" +#include "model/ChangePasswordResult.h" +#include "model/ListGroupsForUserRequest.h" +#include "model/ListGroupsForUserResult.h" +#include "model/AttachPolicyToUserRequest.h" +#include "model/AttachPolicyToUserResult.h" +#include "model/CreateVirtualMFADeviceRequest.h" +#include "model/CreateVirtualMFADeviceResult.h" +#include "model/ListGroupsRequest.h" +#include "model/ListGroupsResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/DeletePolicyRequest.h" +#include "model/DeletePolicyResult.h" +#include "model/DeleteGroupRequest.h" +#include "model/DeleteGroupResult.h" +#include "model/ClearAccountAliasRequest.h" +#include "model/ClearAccountAliasResult.h" +#include "model/UpdateRoleRequest.h" +#include "model/UpdateRoleResult.h" +#include "model/ListPoliciesRequest.h" +#include "model/ListPoliciesResult.h" +#include "model/AttachPolicyToGroupRequest.h" +#include "model/AttachPolicyToGroupResult.h" +#include "model/GetPublicKeyRequest.h" +#include "model/GetPublicKeyResult.h" +#include "model/DetachPolicyFromRoleRequest.h" +#include "model/DetachPolicyFromRoleResult.h" +#include "model/DeletePublicKeyRequest.h" +#include "model/DeletePublicKeyResult.h" +#include "model/ListRolesRequest.h" +#include "model/ListRolesResult.h" +#include "model/SetDefaultPolicyVersionRequest.h" +#include "model/SetDefaultPolicyVersionResult.h" +#include "model/ListPolicyVersionsRequest.h" +#include "model/ListPolicyVersionsResult.h" +#include "model/CreateRoleRequest.h" +#include "model/CreateRoleResult.h" +#include "model/CreatePolicyVersionRequest.h" +#include "model/CreatePolicyVersionResult.h" +#include "model/ListPoliciesForRoleRequest.h" +#include "model/ListPoliciesForRoleResult.h" +#include "model/UpdatePublicKeyRequest.h" +#include "model/UpdatePublicKeyResult.h" +#include "model/CreateGroupRequest.h" +#include "model/CreateGroupResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/GetPasswordPolicyRequest.h" +#include "model/GetPasswordPolicyResult.h" +#include "model/ListAccessKeysRequest.h" +#include "model/ListAccessKeysResult.h" +#include "model/DetachPolicyFromGroupRequest.h" +#include "model/DetachPolicyFromGroupResult.h" +#include "model/SetPasswordPolicyRequest.h" +#include "model/SetPasswordPolicyResult.h" +#include "model/DeleteAccessKeyRequest.h" +#include "model/DeleteAccessKeyResult.h" +#include "model/GetRoleRequest.h" +#include "model/GetRoleResult.h" +#include "model/GetSecurityPreferenceRequest.h" +#include "model/GetSecurityPreferenceResult.h" +#include "model/DeleteLoginProfileRequest.h" +#include "model/DeleteLoginProfileResult.h" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" +#include "model/DetachPolicyFromUserRequest.h" +#include "model/DetachPolicyFromUserResult.h" +#include "model/CreateLoginProfileRequest.h" +#include "model/CreateLoginProfileResult.h" +#include "model/ListVirtualMFADevicesRequest.h" +#include "model/ListVirtualMFADevicesResult.h" +#include "model/UpdateGroupRequest.h" +#include "model/UpdateGroupResult.h" +#include "model/GetPolicyRequest.h" +#include "model/GetPolicyResult.h" + + +namespace AlibabaCloud +{ + namespace Ram + { + class ALIBABACLOUD_RAM_EXPORT RamClient : public RpcServiceClient + { + public: + typedef Outcome CreatePolicyOutcome; + typedef std::future CreatePolicyOutcomeCallable; + typedef std::function&)> CreatePolicyAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome GetUserMFAInfoOutcome; + typedef std::future GetUserMFAInfoOutcomeCallable; + typedef std::function&)> GetUserMFAInfoAsyncHandler; + typedef Outcome UnbindMFADeviceOutcome; + typedef std::future UnbindMFADeviceOutcomeCallable; + typedef std::function&)> UnbindMFADeviceAsyncHandler; + typedef Outcome BindMFADeviceOutcome; + typedef std::future BindMFADeviceOutcomeCallable; + typedef std::function&)> BindMFADeviceAsyncHandler; + typedef Outcome ListPublicKeysOutcome; + typedef std::future ListPublicKeysOutcomeCallable; + typedef std::function&)> ListPublicKeysAsyncHandler; + typedef Outcome AttachPolicyToRoleOutcome; + typedef std::future AttachPolicyToRoleOutcomeCallable; + typedef std::function&)> AttachPolicyToRoleAsyncHandler; + typedef Outcome AddUserToGroupOutcome; + typedef std::future AddUserToGroupOutcomeCallable; + typedef std::function&)> AddUserToGroupAsyncHandler; + typedef Outcome GetAccountAliasOutcome; + typedef std::future GetAccountAliasOutcomeCallable; + typedef std::function&)> GetAccountAliasAsyncHandler; + typedef Outcome GetLoginProfileOutcome; + typedef std::future GetLoginProfileOutcomeCallable; + typedef std::function&)> GetLoginProfileAsyncHandler; + typedef Outcome ListEntitiesForPolicyOutcome; + typedef std::future ListEntitiesForPolicyOutcomeCallable; + typedef std::function&)> ListEntitiesForPolicyAsyncHandler; + typedef Outcome SetSecurityPreferenceOutcome; + typedef std::future SetSecurityPreferenceOutcomeCallable; + typedef std::function&)> SetSecurityPreferenceAsyncHandler; + typedef Outcome ListPoliciesForUserOutcome; + typedef std::future ListPoliciesForUserOutcomeCallable; + typedef std::function&)> ListPoliciesForUserAsyncHandler; + typedef Outcome UpdateLoginProfileOutcome; + typedef std::future UpdateLoginProfileOutcomeCallable; + typedef std::function&)> UpdateLoginProfileAsyncHandler; + typedef Outcome ListUsersForGroupOutcome; + typedef std::future ListUsersForGroupOutcomeCallable; + typedef std::function&)> ListUsersForGroupAsyncHandler; + typedef Outcome GetPolicyVersionOutcome; + typedef std::future GetPolicyVersionOutcomeCallable; + typedef std::function&)> GetPolicyVersionAsyncHandler; + typedef Outcome DeleteRoleOutcome; + typedef std::future DeleteRoleOutcomeCallable; + typedef std::function&)> DeleteRoleAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome DeleteVirtualMFADeviceOutcome; + typedef std::future DeleteVirtualMFADeviceOutcomeCallable; + typedef std::function&)> DeleteVirtualMFADeviceAsyncHandler; + typedef Outcome UploadPublicKeyOutcome; + typedef std::future UploadPublicKeyOutcomeCallable; + typedef std::function&)> UploadPublicKeyAsyncHandler; + typedef Outcome DeletePolicyVersionOutcome; + typedef std::future DeletePolicyVersionOutcomeCallable; + typedef std::function&)> DeletePolicyVersionAsyncHandler; + typedef Outcome RemoveUserFromGroupOutcome; + typedef std::future RemoveUserFromGroupOutcomeCallable; + typedef std::function&)> RemoveUserFromGroupAsyncHandler; + typedef Outcome GetAccessKeyLastUsedOutcome; + typedef std::future GetAccessKeyLastUsedOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedAsyncHandler; + typedef Outcome UpdateAccessKeyOutcome; + typedef std::future UpdateAccessKeyOutcomeCallable; + typedef std::function&)> UpdateAccessKeyAsyncHandler; + typedef Outcome GetGroupOutcome; + typedef std::future GetGroupOutcomeCallable; + typedef std::function&)> GetGroupAsyncHandler; + typedef Outcome CreateAccessKeyOutcome; + typedef std::future CreateAccessKeyOutcomeCallable; + typedef std::function&)> CreateAccessKeyAsyncHandler; + typedef Outcome SetAccountAliasOutcome; + typedef std::future SetAccountAliasOutcomeCallable; + typedef std::function&)> SetAccountAliasAsyncHandler; + typedef Outcome ListPoliciesForGroupOutcome; + typedef std::future ListPoliciesForGroupOutcomeCallable; + typedef std::function&)> ListPoliciesForGroupAsyncHandler; + typedef Outcome ChangePasswordOutcome; + typedef std::future ChangePasswordOutcomeCallable; + typedef std::function&)> ChangePasswordAsyncHandler; + typedef Outcome ListGroupsForUserOutcome; + typedef std::future ListGroupsForUserOutcomeCallable; + typedef std::function&)> ListGroupsForUserAsyncHandler; + typedef Outcome AttachPolicyToUserOutcome; + typedef std::future AttachPolicyToUserOutcomeCallable; + typedef std::function&)> AttachPolicyToUserAsyncHandler; + typedef Outcome CreateVirtualMFADeviceOutcome; + typedef std::future CreateVirtualMFADeviceOutcomeCallable; + typedef std::function&)> CreateVirtualMFADeviceAsyncHandler; + typedef Outcome ListGroupsOutcome; + typedef std::future ListGroupsOutcomeCallable; + typedef std::function&)> ListGroupsAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome DeletePolicyOutcome; + typedef std::future DeletePolicyOutcomeCallable; + typedef std::function&)> DeletePolicyAsyncHandler; + typedef Outcome DeleteGroupOutcome; + typedef std::future DeleteGroupOutcomeCallable; + typedef std::function&)> DeleteGroupAsyncHandler; + typedef Outcome ClearAccountAliasOutcome; + typedef std::future ClearAccountAliasOutcomeCallable; + typedef std::function&)> ClearAccountAliasAsyncHandler; + typedef Outcome UpdateRoleOutcome; + typedef std::future UpdateRoleOutcomeCallable; + typedef std::function&)> UpdateRoleAsyncHandler; + typedef Outcome ListPoliciesOutcome; + typedef std::future ListPoliciesOutcomeCallable; + typedef std::function&)> ListPoliciesAsyncHandler; + typedef Outcome AttachPolicyToGroupOutcome; + typedef std::future AttachPolicyToGroupOutcomeCallable; + typedef std::function&)> AttachPolicyToGroupAsyncHandler; + typedef Outcome GetPublicKeyOutcome; + typedef std::future GetPublicKeyOutcomeCallable; + typedef std::function&)> GetPublicKeyAsyncHandler; + typedef Outcome DetachPolicyFromRoleOutcome; + typedef std::future DetachPolicyFromRoleOutcomeCallable; + typedef std::function&)> DetachPolicyFromRoleAsyncHandler; + typedef Outcome DeletePublicKeyOutcome; + typedef std::future DeletePublicKeyOutcomeCallable; + typedef std::function&)> DeletePublicKeyAsyncHandler; + typedef Outcome ListRolesOutcome; + typedef std::future ListRolesOutcomeCallable; + typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome SetDefaultPolicyVersionOutcome; + typedef std::future SetDefaultPolicyVersionOutcomeCallable; + typedef std::function&)> SetDefaultPolicyVersionAsyncHandler; + typedef Outcome ListPolicyVersionsOutcome; + typedef std::future ListPolicyVersionsOutcomeCallable; + typedef std::function&)> ListPolicyVersionsAsyncHandler; + typedef Outcome CreateRoleOutcome; + typedef std::future CreateRoleOutcomeCallable; + typedef std::function&)> CreateRoleAsyncHandler; + typedef Outcome CreatePolicyVersionOutcome; + typedef std::future CreatePolicyVersionOutcomeCallable; + typedef std::function&)> CreatePolicyVersionAsyncHandler; + typedef Outcome ListPoliciesForRoleOutcome; + typedef std::future ListPoliciesForRoleOutcomeCallable; + typedef std::function&)> ListPoliciesForRoleAsyncHandler; + typedef Outcome UpdatePublicKeyOutcome; + typedef std::future UpdatePublicKeyOutcomeCallable; + typedef std::function&)> UpdatePublicKeyAsyncHandler; + typedef Outcome CreateGroupOutcome; + typedef std::future CreateGroupOutcomeCallable; + typedef std::function&)> CreateGroupAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome GetPasswordPolicyOutcome; + typedef std::future GetPasswordPolicyOutcomeCallable; + typedef std::function&)> GetPasswordPolicyAsyncHandler; + typedef Outcome ListAccessKeysOutcome; + typedef std::future ListAccessKeysOutcomeCallable; + typedef std::function&)> ListAccessKeysAsyncHandler; + typedef Outcome DetachPolicyFromGroupOutcome; + typedef std::future DetachPolicyFromGroupOutcomeCallable; + typedef std::function&)> DetachPolicyFromGroupAsyncHandler; + typedef Outcome SetPasswordPolicyOutcome; + typedef std::future SetPasswordPolicyOutcomeCallable; + typedef std::function&)> SetPasswordPolicyAsyncHandler; + typedef Outcome DeleteAccessKeyOutcome; + typedef std::future DeleteAccessKeyOutcomeCallable; + typedef std::function&)> DeleteAccessKeyAsyncHandler; + typedef Outcome GetRoleOutcome; + typedef std::future GetRoleOutcomeCallable; + typedef std::function&)> GetRoleAsyncHandler; + typedef Outcome GetSecurityPreferenceOutcome; + typedef std::future GetSecurityPreferenceOutcomeCallable; + typedef std::function&)> GetSecurityPreferenceAsyncHandler; + typedef Outcome DeleteLoginProfileOutcome; + typedef std::future DeleteLoginProfileOutcomeCallable; + typedef std::function&)> DeleteLoginProfileAsyncHandler; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; + typedef Outcome DetachPolicyFromUserOutcome; + typedef std::future DetachPolicyFromUserOutcomeCallable; + typedef std::function&)> DetachPolicyFromUserAsyncHandler; + typedef Outcome CreateLoginProfileOutcome; + typedef std::future CreateLoginProfileOutcomeCallable; + typedef std::function&)> CreateLoginProfileAsyncHandler; + typedef Outcome ListVirtualMFADevicesOutcome; + typedef std::future ListVirtualMFADevicesOutcomeCallable; + typedef std::function&)> ListVirtualMFADevicesAsyncHandler; + typedef Outcome UpdateGroupOutcome; + typedef std::future UpdateGroupOutcomeCallable; + typedef std::function&)> UpdateGroupAsyncHandler; + typedef Outcome GetPolicyOutcome; + typedef std::future GetPolicyOutcomeCallable; + typedef std::function&)> GetPolicyAsyncHandler; + + RamClient(const Credentials &credentials, const ClientConfiguration &configuration); + RamClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + RamClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~RamClient(); + CreatePolicyOutcome createPolicy(const Model::CreatePolicyRequest &request)const; + void createPolicyAsync(const Model::CreatePolicyRequest& request, const CreatePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePolicyOutcomeCallable createPolicyCallable(const Model::CreatePolicyRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + GetUserMFAInfoOutcome getUserMFAInfo(const Model::GetUserMFAInfoRequest &request)const; + void getUserMFAInfoAsync(const Model::GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserMFAInfoOutcomeCallable getUserMFAInfoCallable(const Model::GetUserMFAInfoRequest& request) const; + UnbindMFADeviceOutcome unbindMFADevice(const Model::UnbindMFADeviceRequest &request)const; + void unbindMFADeviceAsync(const Model::UnbindMFADeviceRequest& request, const UnbindMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindMFADeviceOutcomeCallable unbindMFADeviceCallable(const Model::UnbindMFADeviceRequest& request) const; + BindMFADeviceOutcome bindMFADevice(const Model::BindMFADeviceRequest &request)const; + void bindMFADeviceAsync(const Model::BindMFADeviceRequest& request, const BindMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindMFADeviceOutcomeCallable bindMFADeviceCallable(const Model::BindMFADeviceRequest& request) const; + ListPublicKeysOutcome listPublicKeys(const Model::ListPublicKeysRequest &request)const; + void listPublicKeysAsync(const Model::ListPublicKeysRequest& request, const ListPublicKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPublicKeysOutcomeCallable listPublicKeysCallable(const Model::ListPublicKeysRequest& request) const; + AttachPolicyToRoleOutcome attachPolicyToRole(const Model::AttachPolicyToRoleRequest &request)const; + void attachPolicyToRoleAsync(const Model::AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicyToRoleOutcomeCallable attachPolicyToRoleCallable(const Model::AttachPolicyToRoleRequest& request) const; + AddUserToGroupOutcome addUserToGroup(const Model::AddUserToGroupRequest &request)const; + void addUserToGroupAsync(const Model::AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserToGroupOutcomeCallable addUserToGroupCallable(const Model::AddUserToGroupRequest& request) const; + GetAccountAliasOutcome getAccountAlias(const Model::GetAccountAliasRequest &request)const; + void getAccountAliasAsync(const Model::GetAccountAliasRequest& request, const GetAccountAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountAliasOutcomeCallable getAccountAliasCallable(const Model::GetAccountAliasRequest& request) const; + GetLoginProfileOutcome getLoginProfile(const Model::GetLoginProfileRequest &request)const; + void getLoginProfileAsync(const Model::GetLoginProfileRequest& request, const GetLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLoginProfileOutcomeCallable getLoginProfileCallable(const Model::GetLoginProfileRequest& request) const; + ListEntitiesForPolicyOutcome listEntitiesForPolicy(const Model::ListEntitiesForPolicyRequest &request)const; + void listEntitiesForPolicyAsync(const Model::ListEntitiesForPolicyRequest& request, const ListEntitiesForPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEntitiesForPolicyOutcomeCallable listEntitiesForPolicyCallable(const Model::ListEntitiesForPolicyRequest& request) const; + SetSecurityPreferenceOutcome setSecurityPreference(const Model::SetSecurityPreferenceRequest &request)const; + void setSecurityPreferenceAsync(const Model::SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSecurityPreferenceOutcomeCallable setSecurityPreferenceCallable(const Model::SetSecurityPreferenceRequest& request) const; + ListPoliciesForUserOutcome listPoliciesForUser(const Model::ListPoliciesForUserRequest &request)const; + void listPoliciesForUserAsync(const Model::ListPoliciesForUserRequest& request, const ListPoliciesForUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesForUserOutcomeCallable listPoliciesForUserCallable(const Model::ListPoliciesForUserRequest& request) const; + UpdateLoginProfileOutcome updateLoginProfile(const Model::UpdateLoginProfileRequest &request)const; + void updateLoginProfileAsync(const Model::UpdateLoginProfileRequest& request, const UpdateLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoginProfileOutcomeCallable updateLoginProfileCallable(const Model::UpdateLoginProfileRequest& request) const; + ListUsersForGroupOutcome listUsersForGroup(const Model::ListUsersForGroupRequest &request)const; + void listUsersForGroupAsync(const Model::ListUsersForGroupRequest& request, const ListUsersForGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersForGroupOutcomeCallable listUsersForGroupCallable(const Model::ListUsersForGroupRequest& request) const; + GetPolicyVersionOutcome getPolicyVersion(const Model::GetPolicyVersionRequest &request)const; + void getPolicyVersionAsync(const Model::GetPolicyVersionRequest& request, const GetPolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPolicyVersionOutcomeCallable getPolicyVersionCallable(const Model::GetPolicyVersionRequest& request) const; + DeleteRoleOutcome deleteRole(const Model::DeleteRoleRequest &request)const; + void deleteRoleAsync(const Model::DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRoleOutcomeCallable deleteRoleCallable(const Model::DeleteRoleRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + DeleteVirtualMFADeviceOutcome deleteVirtualMFADevice(const Model::DeleteVirtualMFADeviceRequest &request)const; + void deleteVirtualMFADeviceAsync(const Model::DeleteVirtualMFADeviceRequest& request, const DeleteVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVirtualMFADeviceOutcomeCallable deleteVirtualMFADeviceCallable(const Model::DeleteVirtualMFADeviceRequest& request) const; + UploadPublicKeyOutcome uploadPublicKey(const Model::UploadPublicKeyRequest &request)const; + void uploadPublicKeyAsync(const Model::UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadPublicKeyOutcomeCallable uploadPublicKeyCallable(const Model::UploadPublicKeyRequest& request) const; + DeletePolicyVersionOutcome deletePolicyVersion(const Model::DeletePolicyVersionRequest &request)const; + void deletePolicyVersionAsync(const Model::DeletePolicyVersionRequest& request, const DeletePolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePolicyVersionOutcomeCallable deletePolicyVersionCallable(const Model::DeletePolicyVersionRequest& request) const; + RemoveUserFromGroupOutcome removeUserFromGroup(const Model::RemoveUserFromGroupRequest &request)const; + void removeUserFromGroupAsync(const Model::RemoveUserFromGroupRequest& request, const RemoveUserFromGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUserFromGroupOutcomeCallable removeUserFromGroupCallable(const Model::RemoveUserFromGroupRequest& request) const; + GetAccessKeyLastUsedOutcome getAccessKeyLastUsed(const Model::GetAccessKeyLastUsedRequest &request)const; + void getAccessKeyLastUsedAsync(const Model::GetAccessKeyLastUsedRequest& request, const GetAccessKeyLastUsedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccessKeyLastUsedOutcomeCallable getAccessKeyLastUsedCallable(const Model::GetAccessKeyLastUsedRequest& request) const; + UpdateAccessKeyOutcome updateAccessKey(const Model::UpdateAccessKeyRequest &request)const; + void updateAccessKeyAsync(const Model::UpdateAccessKeyRequest& request, const UpdateAccessKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAccessKeyOutcomeCallable updateAccessKeyCallable(const Model::UpdateAccessKeyRequest& request) const; + GetGroupOutcome getGroup(const Model::GetGroupRequest &request)const; + void getGroupAsync(const Model::GetGroupRequest& request, const GetGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupOutcomeCallable getGroupCallable(const Model::GetGroupRequest& request) const; + CreateAccessKeyOutcome createAccessKey(const Model::CreateAccessKeyRequest &request)const; + void createAccessKeyAsync(const Model::CreateAccessKeyRequest& request, const CreateAccessKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccessKeyOutcomeCallable createAccessKeyCallable(const Model::CreateAccessKeyRequest& request) const; + SetAccountAliasOutcome setAccountAlias(const Model::SetAccountAliasRequest &request)const; + void setAccountAliasAsync(const Model::SetAccountAliasRequest& request, const SetAccountAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAccountAliasOutcomeCallable setAccountAliasCallable(const Model::SetAccountAliasRequest& request) const; + ListPoliciesForGroupOutcome listPoliciesForGroup(const Model::ListPoliciesForGroupRequest &request)const; + void listPoliciesForGroupAsync(const Model::ListPoliciesForGroupRequest& request, const ListPoliciesForGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesForGroupOutcomeCallable listPoliciesForGroupCallable(const Model::ListPoliciesForGroupRequest& request) const; + ChangePasswordOutcome changePassword(const Model::ChangePasswordRequest &request)const; + void changePasswordAsync(const Model::ChangePasswordRequest& request, const ChangePasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangePasswordOutcomeCallable changePasswordCallable(const Model::ChangePasswordRequest& request) const; + ListGroupsForUserOutcome listGroupsForUser(const Model::ListGroupsForUserRequest &request)const; + void listGroupsForUserAsync(const Model::ListGroupsForUserRequest& request, const ListGroupsForUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupsForUserOutcomeCallable listGroupsForUserCallable(const Model::ListGroupsForUserRequest& request) const; + AttachPolicyToUserOutcome attachPolicyToUser(const Model::AttachPolicyToUserRequest &request)const; + void attachPolicyToUserAsync(const Model::AttachPolicyToUserRequest& request, const AttachPolicyToUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicyToUserOutcomeCallable attachPolicyToUserCallable(const Model::AttachPolicyToUserRequest& request) const; + CreateVirtualMFADeviceOutcome createVirtualMFADevice(const Model::CreateVirtualMFADeviceRequest &request)const; + void createVirtualMFADeviceAsync(const Model::CreateVirtualMFADeviceRequest& request, const CreateVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVirtualMFADeviceOutcomeCallable createVirtualMFADeviceCallable(const Model::CreateVirtualMFADeviceRequest& request) const; + ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const; + void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const; + DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; + void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + DeletePolicyOutcome deletePolicy(const Model::DeletePolicyRequest &request)const; + void deletePolicyAsync(const Model::DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePolicyOutcomeCallable deletePolicyCallable(const Model::DeletePolicyRequest& request) const; + DeleteGroupOutcome deleteGroup(const Model::DeleteGroupRequest &request)const; + void deleteGroupAsync(const Model::DeleteGroupRequest& request, const DeleteGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGroupOutcomeCallable deleteGroupCallable(const Model::DeleteGroupRequest& request) const; + ClearAccountAliasOutcome clearAccountAlias(const Model::ClearAccountAliasRequest &request)const; + void clearAccountAliasAsync(const Model::ClearAccountAliasRequest& request, const ClearAccountAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ClearAccountAliasOutcomeCallable clearAccountAliasCallable(const Model::ClearAccountAliasRequest& request) const; + UpdateRoleOutcome updateRole(const Model::UpdateRoleRequest &request)const; + void updateRoleAsync(const Model::UpdateRoleRequest& request, const UpdateRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRoleOutcomeCallable updateRoleCallable(const Model::UpdateRoleRequest& request) const; + ListPoliciesOutcome listPolicies(const Model::ListPoliciesRequest &request)const; + void listPoliciesAsync(const Model::ListPoliciesRequest& request, const ListPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesOutcomeCallable listPoliciesCallable(const Model::ListPoliciesRequest& request) const; + AttachPolicyToGroupOutcome attachPolicyToGroup(const Model::AttachPolicyToGroupRequest &request)const; + void attachPolicyToGroupAsync(const Model::AttachPolicyToGroupRequest& request, const AttachPolicyToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicyToGroupOutcomeCallable attachPolicyToGroupCallable(const Model::AttachPolicyToGroupRequest& request) const; + GetPublicKeyOutcome getPublicKey(const Model::GetPublicKeyRequest &request)const; + void getPublicKeyAsync(const Model::GetPublicKeyRequest& request, const GetPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPublicKeyOutcomeCallable getPublicKeyCallable(const Model::GetPublicKeyRequest& request) const; + DetachPolicyFromRoleOutcome detachPolicyFromRole(const Model::DetachPolicyFromRoleRequest &request)const; + void detachPolicyFromRoleAsync(const Model::DetachPolicyFromRoleRequest& request, const DetachPolicyFromRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachPolicyFromRoleOutcomeCallable detachPolicyFromRoleCallable(const Model::DetachPolicyFromRoleRequest& request) const; + DeletePublicKeyOutcome deletePublicKey(const Model::DeletePublicKeyRequest &request)const; + void deletePublicKeyAsync(const Model::DeletePublicKeyRequest& request, const DeletePublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePublicKeyOutcomeCallable deletePublicKeyCallable(const Model::DeletePublicKeyRequest& request) const; + ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; + void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + SetDefaultPolicyVersionOutcome setDefaultPolicyVersion(const Model::SetDefaultPolicyVersionRequest &request)const; + void setDefaultPolicyVersionAsync(const Model::SetDefaultPolicyVersionRequest& request, const SetDefaultPolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDefaultPolicyVersionOutcomeCallable setDefaultPolicyVersionCallable(const Model::SetDefaultPolicyVersionRequest& request) const; + ListPolicyVersionsOutcome listPolicyVersions(const Model::ListPolicyVersionsRequest &request)const; + void listPolicyVersionsAsync(const Model::ListPolicyVersionsRequest& request, const ListPolicyVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPolicyVersionsOutcomeCallable listPolicyVersionsCallable(const Model::ListPolicyVersionsRequest& request) const; + CreateRoleOutcome createRole(const Model::CreateRoleRequest &request)const; + void createRoleAsync(const Model::CreateRoleRequest& request, const CreateRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRoleOutcomeCallable createRoleCallable(const Model::CreateRoleRequest& request) const; + CreatePolicyVersionOutcome createPolicyVersion(const Model::CreatePolicyVersionRequest &request)const; + void createPolicyVersionAsync(const Model::CreatePolicyVersionRequest& request, const CreatePolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePolicyVersionOutcomeCallable createPolicyVersionCallable(const Model::CreatePolicyVersionRequest& request) const; + ListPoliciesForRoleOutcome listPoliciesForRole(const Model::ListPoliciesForRoleRequest &request)const; + void listPoliciesForRoleAsync(const Model::ListPoliciesForRoleRequest& request, const ListPoliciesForRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesForRoleOutcomeCallable listPoliciesForRoleCallable(const Model::ListPoliciesForRoleRequest& request) const; + UpdatePublicKeyOutcome updatePublicKey(const Model::UpdatePublicKeyRequest &request)const; + void updatePublicKeyAsync(const Model::UpdatePublicKeyRequest& request, const UpdatePublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePublicKeyOutcomeCallable updatePublicKeyCallable(const Model::UpdatePublicKeyRequest& request) const; + CreateGroupOutcome createGroup(const Model::CreateGroupRequest &request)const; + void createGroupAsync(const Model::CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupOutcomeCallable createGroupCallable(const Model::CreateGroupRequest& request) const; + CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; + void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; + GetPasswordPolicyOutcome getPasswordPolicy(const Model::GetPasswordPolicyRequest &request)const; + void getPasswordPolicyAsync(const Model::GetPasswordPolicyRequest& request, const GetPasswordPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPasswordPolicyOutcomeCallable getPasswordPolicyCallable(const Model::GetPasswordPolicyRequest& request) const; + ListAccessKeysOutcome listAccessKeys(const Model::ListAccessKeysRequest &request)const; + void listAccessKeysAsync(const Model::ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccessKeysOutcomeCallable listAccessKeysCallable(const Model::ListAccessKeysRequest& request) const; + DetachPolicyFromGroupOutcome detachPolicyFromGroup(const Model::DetachPolicyFromGroupRequest &request)const; + void detachPolicyFromGroupAsync(const Model::DetachPolicyFromGroupRequest& request, const DetachPolicyFromGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachPolicyFromGroupOutcomeCallable detachPolicyFromGroupCallable(const Model::DetachPolicyFromGroupRequest& request) const; + SetPasswordPolicyOutcome setPasswordPolicy(const Model::SetPasswordPolicyRequest &request)const; + void setPasswordPolicyAsync(const Model::SetPasswordPolicyRequest& request, const SetPasswordPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetPasswordPolicyOutcomeCallable setPasswordPolicyCallable(const Model::SetPasswordPolicyRequest& request) const; + DeleteAccessKeyOutcome deleteAccessKey(const Model::DeleteAccessKeyRequest &request)const; + void deleteAccessKeyAsync(const Model::DeleteAccessKeyRequest& request, const DeleteAccessKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessKeyOutcomeCallable deleteAccessKeyCallable(const Model::DeleteAccessKeyRequest& request) const; + GetRoleOutcome getRole(const Model::GetRoleRequest &request)const; + void getRoleAsync(const Model::GetRoleRequest& request, const GetRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRoleOutcomeCallable getRoleCallable(const Model::GetRoleRequest& request) const; + GetSecurityPreferenceOutcome getSecurityPreference(const Model::GetSecurityPreferenceRequest &request)const; + void getSecurityPreferenceAsync(const Model::GetSecurityPreferenceRequest& request, const GetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSecurityPreferenceOutcomeCallable getSecurityPreferenceCallable(const Model::GetSecurityPreferenceRequest& request) const; + DeleteLoginProfileOutcome deleteLoginProfile(const Model::DeleteLoginProfileRequest &request)const; + void deleteLoginProfileAsync(const Model::DeleteLoginProfileRequest& request, const DeleteLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLoginProfileOutcomeCallable deleteLoginProfileCallable(const Model::DeleteLoginProfileRequest& request) const; + UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const; + void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const; + DetachPolicyFromUserOutcome detachPolicyFromUser(const Model::DetachPolicyFromUserRequest &request)const; + void detachPolicyFromUserAsync(const Model::DetachPolicyFromUserRequest& request, const DetachPolicyFromUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachPolicyFromUserOutcomeCallable detachPolicyFromUserCallable(const Model::DetachPolicyFromUserRequest& request) const; + CreateLoginProfileOutcome createLoginProfile(const Model::CreateLoginProfileRequest &request)const; + void createLoginProfileAsync(const Model::CreateLoginProfileRequest& request, const CreateLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoginProfileOutcomeCallable createLoginProfileCallable(const Model::CreateLoginProfileRequest& request) const; + ListVirtualMFADevicesOutcome listVirtualMFADevices(const Model::ListVirtualMFADevicesRequest &request)const; + void listVirtualMFADevicesAsync(const Model::ListVirtualMFADevicesRequest& request, const ListVirtualMFADevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVirtualMFADevicesOutcomeCallable listVirtualMFADevicesCallable(const Model::ListVirtualMFADevicesRequest& request) const; + UpdateGroupOutcome updateGroup(const Model::UpdateGroupRequest &request)const; + void updateGroupAsync(const Model::UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGroupOutcomeCallable updateGroupCallable(const Model::UpdateGroupRequest& request) const; + GetPolicyOutcome getPolicy(const Model::GetPolicyRequest &request)const; + void getPolicyAsync(const Model::GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPolicyOutcomeCallable getPolicyCallable(const Model::GetPolicyRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_RAM_RAMCLIENT_H_ diff --git a/ram/include/alibabacloud/ram/RamExport.h b/ram/include/alibabacloud/ram/RamExport.h new file mode 100644 index 000000000..5053be438 --- /dev/null +++ b/ram/include/alibabacloud/ram/RamExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_RAMEXPORT_H_ +#define ALIBABACLOUD_RAM_RAMEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_RAM_LIBRARY) +# define ALIBABACLOUD_RAM_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_RAM_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_RAM_EXPORT +#endif + +#endif // !ALIBABACLOUD_RAM_RAMEXPORT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h b/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h new file mode 100644 index 000000000..9f01adbc3 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AddUserToGroupRequest : public RpcServiceRequest + { + + public: + AddUserToGroupRequest(); + ~AddUserToGroupRequest(); + + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string groupName_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AddUserToGroupResult.h b/ram/include/alibabacloud/ram/model/AddUserToGroupResult.h new file mode 100644 index 000000000..e60669062 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AddUserToGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AddUserToGroupResult : public ServiceResult + { + public: + + + AddUserToGroupResult(); + explicit AddUserToGroupResult(const std::string &payload); + ~AddUserToGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h new file mode 100644 index 000000000..33b69f475 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToGroupRequest : public RpcServiceRequest + { + + public: + AttachPolicyToGroupRequest(); + ~AttachPolicyToGroupRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string policyType_; + std::string policyName_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToGroupResult.h b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupResult.h new file mode 100644 index 000000000..c06253f95 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToGroupResult : public ServiceResult + { + public: + + + AttachPolicyToGroupResult(); + explicit AttachPolicyToGroupResult(const std::string &payload); + ~AttachPolicyToGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h new file mode 100644 index 000000000..099f0168d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToRoleRequest : public RpcServiceRequest + { + + public: + AttachPolicyToRoleRequest(); + ~AttachPolicyToRoleRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyType_; + std::string roleName_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToRoleResult.h b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleResult.h new file mode 100644 index 000000000..d3a195054 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToRoleResult : public ServiceResult + { + public: + + + AttachPolicyToRoleResult(); + explicit AttachPolicyToRoleResult(const std::string &payload); + ~AttachPolicyToRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h new file mode 100644 index 000000000..35ce54be7 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToUserRequest : public RpcServiceRequest + { + + public: + AttachPolicyToUserRequest(); + ~AttachPolicyToUserRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string policyType_; + std::string policyName_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToUserResult.h b/ram/include/alibabacloud/ram/model/AttachPolicyToUserResult.h new file mode 100644 index 000000000..de3ecd73b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT AttachPolicyToUserResult : public ServiceResult + { + public: + + + AttachPolicyToUserResult(); + explicit AttachPolicyToUserResult(const std::string &payload); + ~AttachPolicyToUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h new file mode 100644 index 000000000..d8541fb82 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT BindMFADeviceRequest : public RpcServiceRequest + { + + public: + BindMFADeviceRequest(); + ~BindMFADeviceRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getAuthenticationCode2()const; + void setAuthenticationCode2(const std::string& authenticationCode2); + std::string getAuthenticationCode1()const; + void setAuthenticationCode1(const std::string& authenticationCode1); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string serialNumber_; + std::string authenticationCode2_; + std::string authenticationCode1_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/BindMFADeviceResult.h b/ram/include/alibabacloud/ram/model/BindMFADeviceResult.h new file mode 100644 index 000000000..28adfcf3e --- /dev/null +++ b/ram/include/alibabacloud/ram/model/BindMFADeviceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_BINDMFADEVICERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_BINDMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT BindMFADeviceResult : public ServiceResult + { + public: + + + BindMFADeviceResult(); + explicit BindMFADeviceResult(const std::string &payload); + ~BindMFADeviceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_BINDMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h b/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h new file mode 100644 index 000000000..4d8a7d236 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ChangePasswordRequest : public RpcServiceRequest + { + + public: + ChangePasswordRequest(); + ~ChangePasswordRequest(); + + std::string getOldPassword()const; + void setOldPassword(const std::string& oldPassword); + std::string getNewPassword()const; + void setNewPassword(const std::string& newPassword); + + private: + std::string oldPassword_; + std::string newPassword_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ChangePasswordResult.h b/ram/include/alibabacloud/ram/model/ChangePasswordResult.h new file mode 100644 index 000000000..a8e0d4fce --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ChangePasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ChangePasswordResult : public ServiceResult + { + public: + + + ChangePasswordResult(); + explicit ChangePasswordResult(const std::string &payload); + ~ChangePasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h new file mode 100644 index 000000000..31627433b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ClearAccountAliasRequest : public RpcServiceRequest + { + + public: + ClearAccountAliasRequest(); + ~ClearAccountAliasRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ClearAccountAliasResult.h b/ram/include/alibabacloud/ram/model/ClearAccountAliasResult.h new file mode 100644 index 000000000..d44b1526d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ClearAccountAliasResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ClearAccountAliasResult : public ServiceResult + { + public: + + + ClearAccountAliasResult(); + explicit ClearAccountAliasResult(const std::string &payload); + ~ClearAccountAliasResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h new file mode 100644 index 000000000..159244460 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateAccessKeyRequest : public RpcServiceRequest + { + + public: + CreateAccessKeyRequest(); + ~CreateAccessKeyRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateAccessKeyResult.h b/ram/include/alibabacloud/ram/model/CreateAccessKeyResult.h new file mode 100644 index 000000000..7e4ee2b92 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateAccessKeyResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateAccessKeyResult : public ServiceResult + { + public: + struct AccessKey + { + std::string status; + std::string accessKeyId; + std::string accessKeySecret; + std::string createDate; + }; + + + CreateAccessKeyResult(); + explicit CreateAccessKeyResult(const std::string &payload); + ~CreateAccessKeyResult(); + AccessKey getAccessKey()const; + + protected: + void parse(const std::string &payload); + private: + AccessKey accessKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateGroupRequest.h b/ram/include/alibabacloud/ram/model/CreateGroupRequest.h new file mode 100644 index 000000000..bd49f3c6f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateGroupRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateGroupRequest : public RpcServiceRequest + { + + public: + CreateGroupRequest(); + ~CreateGroupRequest(); + + std::string getComments()const; + void setComments(const std::string& comments); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string comments_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateGroupResult.h b/ram/include/alibabacloud/ram/model/CreateGroupResult.h new file mode 100644 index 000000000..c490169a2 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string comments; + std::string createDate; + }; + + + CreateGroupResult(); + explicit CreateGroupResult(const std::string &payload); + ~CreateGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h new file mode 100644 index 000000000..7bc38c191 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateLoginProfileRequest : public RpcServiceRequest + { + + public: + CreateLoginProfileRequest(); + ~CreateLoginProfileRequest(); + + std::string getPassword()const; + void setPassword(const std::string& password); + bool getPasswordResetRequired()const; + void setPasswordResetRequired(bool passwordResetRequired); + bool getMFABindRequired()const; + void setMFABindRequired(bool mFABindRequired); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string password_; + bool passwordResetRequired_; + bool mFABindRequired_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateLoginProfileResult.h b/ram/include/alibabacloud/ram/model/CreateLoginProfileResult.h new file mode 100644 index 000000000..421c2734f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateLoginProfileResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateLoginProfileResult : public ServiceResult + { + public: + struct LoginProfile + { + bool passwordResetRequired; + std::string userName; + bool mFABindRequired; + std::string createDate; + }; + + + CreateLoginProfileResult(); + explicit CreateLoginProfileResult(const std::string &payload); + ~CreateLoginProfileResult(); + LoginProfile getLoginProfile()const; + + protected: + void parse(const std::string &payload); + private: + LoginProfile loginProfile_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h b/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h new file mode 100644 index 000000000..620652514 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreatePolicyRequest : public RpcServiceRequest + { + + public: + CreatePolicyRequest(); + ~CreatePolicyRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getPolicyDocument()const; + void setPolicyDocument(const std::string& policyDocument); + + private: + std::string description_; + std::string policyName_; + std::string policyDocument_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyResult.h b/ram/include/alibabacloud/ram/model/CreatePolicyResult.h new file mode 100644 index 000000000..a07c647be --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreatePolicyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreatePolicyResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string description; + std::string policyName; + std::string defaultVersion; + std::string createDate; + }; + + + CreatePolicyResult(); + explicit CreatePolicyResult(const std::string &payload); + ~CreatePolicyResult(); + Policy getPolicy()const; + + protected: + void parse(const std::string &payload); + private: + Policy policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h new file mode 100644 index 000000000..1bca8914f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreatePolicyVersionRequest : public RpcServiceRequest + { + + public: + CreatePolicyVersionRequest(); + ~CreatePolicyVersionRequest(); + + bool getSetAsDefault()const; + void setSetAsDefault(bool setAsDefault); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getPolicyDocument()const; + void setPolicyDocument(const std::string& policyDocument); + + private: + bool setAsDefault_; + std::string policyName_; + std::string policyDocument_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyVersionResult.h b/ram/include/alibabacloud/ram/model/CreatePolicyVersionResult.h new file mode 100644 index 000000000..3425d4894 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreatePolicyVersionResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreatePolicyVersionResult : public ServiceResult + { + public: + struct PolicyVersion + { + std::string versionId; + bool isDefaultVersion; + std::string policyDocument; + std::string createDate; + }; + + + CreatePolicyVersionResult(); + explicit CreatePolicyVersionResult(const std::string &payload); + ~CreatePolicyVersionResult(); + PolicyVersion getPolicyVersion()const; + + protected: + void parse(const std::string &payload); + private: + PolicyVersion policyVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateRoleRequest.h b/ram/include/alibabacloud/ram/model/CreateRoleRequest.h new file mode 100644 index 000000000..50f7338e7 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateRoleRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateRoleRequest : public RpcServiceRequest + { + + public: + CreateRoleRequest(); + ~CreateRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAssumeRolePolicyDocument()const; + void setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument); + + private: + std::string roleName_; + std::string description_; + std::string assumeRolePolicyDocument_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateRoleResult.h b/ram/include/alibabacloud/ram/model/CreateRoleResult.h new file mode 100644 index 000000000..5aa26e385 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateRoleResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateRoleResult : public ServiceResult + { + public: + struct Role + { + std::string roleName; + std::string description; + std::string assumeRolePolicyDocument; + std::string arn; + std::string roleId; + std::string createDate; + }; + + + CreateRoleResult(); + explicit CreateRoleResult(const std::string &payload); + ~CreateRoleResult(); + Role getRole()const; + + protected: + void parse(const std::string &payload); + private: + Role role_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateUserRequest.h b/ram/include/alibabacloud/ram/model/CreateUserRequest.h new file mode 100644 index 000000000..2ed42079b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateUserRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateUserRequest : public RpcServiceRequest + { + + public: + CreateUserRequest(); + ~CreateUserRequest(); + + std::string getComments()const; + void setComments(const std::string& comments); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::string getMobilePhone()const; + void setMobilePhone(const std::string& mobilePhone); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string comments_; + std::string displayName_; + std::string mobilePhone_; + std::string email_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateUserResult.h b/ram/include/alibabacloud/ram/model/CreateUserResult.h new file mode 100644 index 000000000..8cc3ccc53 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateUserResult : public ServiceResult + { + public: + struct User + { + std::string userName; + std::string email; + std::string userId; + std::string comments; + std::string displayName; + std::string createDate; + std::string mobilePhone; + }; + + + CreateUserResult(); + explicit CreateUserResult(const std::string &payload); + ~CreateUserResult(); + User getUser()const; + + protected: + void parse(const std::string &payload); + private: + User user_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h new file mode 100644 index 000000000..e688e8ca3 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateVirtualMFADeviceRequest : public RpcServiceRequest + { + + public: + CreateVirtualMFADeviceRequest(); + ~CreateVirtualMFADeviceRequest(); + + std::string getVirtualMFADeviceName()const; + void setVirtualMFADeviceName(const std::string& virtualMFADeviceName); + + private: + std::string virtualMFADeviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h new file mode 100644 index 000000000..19c3f5bf4 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT CreateVirtualMFADeviceResult : public ServiceResult + { + public: + struct VirtualMFADevice + { + std::string serialNumber; + std::string qRCodePNG; + std::string base32StringSeed; + }; + + + CreateVirtualMFADeviceResult(); + explicit CreateVirtualMFADeviceResult(const std::string &payload); + ~CreateVirtualMFADeviceResult(); + VirtualMFADevice getVirtualMFADevice()const; + + protected: + void parse(const std::string &payload); + private: + VirtualMFADevice virtualMFADevice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h new file mode 100644 index 000000000..5485ba190 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteAccessKeyRequest : public RpcServiceRequest + { + + public: + DeleteAccessKeyRequest(); + ~DeleteAccessKeyRequest(); + + std::string getUserAccessKeyId()const; + void setUserAccessKeyId(const std::string& userAccessKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userAccessKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteAccessKeyResult.h b/ram/include/alibabacloud/ram/model/DeleteAccessKeyResult.h new file mode 100644 index 000000000..ef7b7cb31 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteAccessKeyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteAccessKeyResult : public ServiceResult + { + public: + + + DeleteAccessKeyResult(); + explicit DeleteAccessKeyResult(const std::string &payload); + ~DeleteAccessKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h b/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h new file mode 100644 index 000000000..c7b67a53f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteGroupRequest : public RpcServiceRequest + { + + public: + DeleteGroupRequest(); + ~DeleteGroupRequest(); + + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteGroupResult.h b/ram/include/alibabacloud/ram/model/DeleteGroupResult.h new file mode 100644 index 000000000..d66989e84 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteGroupResult : public ServiceResult + { + public: + + + DeleteGroupResult(); + explicit DeleteGroupResult(const std::string &payload); + ~DeleteGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h new file mode 100644 index 000000000..23e4ef05c --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteLoginProfileRequest : public RpcServiceRequest + { + + public: + DeleteLoginProfileRequest(); + ~DeleteLoginProfileRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteLoginProfileResult.h b/ram/include/alibabacloud/ram/model/DeleteLoginProfileResult.h new file mode 100644 index 000000000..af63b87a9 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteLoginProfileResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteLoginProfileResult : public ServiceResult + { + public: + + + DeleteLoginProfileResult(); + explicit DeleteLoginProfileResult(const std::string &payload); + ~DeleteLoginProfileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h b/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h new file mode 100644 index 000000000..c4cce4c88 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePolicyRequest : public RpcServiceRequest + { + + public: + DeletePolicyRequest(); + ~DeletePolicyRequest(); + + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyResult.h b/ram/include/alibabacloud/ram/model/DeletePolicyResult.h new file mode 100644 index 000000000..b04e3855c --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePolicyResult : public ServiceResult + { + public: + + + DeletePolicyResult(); + explicit DeletePolicyResult(const std::string &payload); + ~DeletePolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h new file mode 100644 index 000000000..230dae18f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePolicyVersionRequest : public RpcServiceRequest + { + + public: + DeletePolicyVersionRequest(); + ~DeletePolicyVersionRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string versionId_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyVersionResult.h b/ram/include/alibabacloud/ram/model/DeletePolicyVersionResult.h new file mode 100644 index 000000000..dcafda4e0 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePolicyVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePolicyVersionResult : public ServiceResult + { + public: + + + DeletePolicyVersionResult(); + explicit DeletePolicyVersionResult(const std::string &payload); + ~DeletePolicyVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h b/ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h new file mode 100644 index 000000000..f6f22e184 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePublicKeyRequest : public RpcServiceRequest + { + + public: + DeletePublicKeyRequest(); + ~DeletePublicKeyRequest(); + + std::string getUserPublicKeyId()const; + void setUserPublicKeyId(const std::string& userPublicKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userPublicKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h b/ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h new file mode 100644 index 000000000..d8b0edeed --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeletePublicKeyResult : public ServiceResult + { + public: + + + DeletePublicKeyResult(); + explicit DeletePublicKeyResult(const std::string &payload); + ~DeletePublicKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h b/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h new file mode 100644 index 000000000..a80dfa218 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteRoleRequest : public RpcServiceRequest + { + + public: + DeleteRoleRequest(); + ~DeleteRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteRoleResult.h b/ram/include/alibabacloud/ram/model/DeleteRoleResult.h new file mode 100644 index 000000000..0fba3d9dd --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteRoleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteRoleResult : public ServiceResult + { + public: + + + DeleteRoleResult(); + explicit DeleteRoleResult(const std::string &payload); + ~DeleteRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteUserRequest.h b/ram/include/alibabacloud/ram/model/DeleteUserRequest.h new file mode 100644 index 000000000..737f4fe16 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteUserRequest : public RpcServiceRequest + { + + public: + DeleteUserRequest(); + ~DeleteUserRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteUserResult.h b/ram/include/alibabacloud/ram/model/DeleteUserResult.h new file mode 100644 index 000000000..1d39d42b4 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteUserResult : public ServiceResult + { + public: + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h new file mode 100644 index 000000000..4412d950a --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteVirtualMFADeviceRequest : public RpcServiceRequest + { + + public: + DeleteVirtualMFADeviceRequest(); + ~DeleteVirtualMFADeviceRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + + private: + std::string serialNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceResult.h b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceResult.h new file mode 100644 index 000000000..d98553cf4 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DeleteVirtualMFADeviceResult : public ServiceResult + { + public: + + + DeleteVirtualMFADeviceResult(); + explicit DeleteVirtualMFADeviceResult(const std::string &payload); + ~DeleteVirtualMFADeviceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h new file mode 100644 index 000000000..b0b802519 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromGroupRequest : public RpcServiceRequest + { + + public: + DetachPolicyFromGroupRequest(); + ~DetachPolicyFromGroupRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string policyType_; + std::string policyName_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupResult.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupResult.h new file mode 100644 index 000000000..aa8045ad6 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromGroupResult : public ServiceResult + { + public: + + + DetachPolicyFromGroupResult(); + explicit DetachPolicyFromGroupResult(const std::string &payload); + ~DetachPolicyFromGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h new file mode 100644 index 000000000..720c70201 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromRoleRequest : public RpcServiceRequest + { + + public: + DetachPolicyFromRoleRequest(); + ~DetachPolicyFromRoleRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyType_; + std::string roleName_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleResult.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleResult.h new file mode 100644 index 000000000..1b86aac64 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromRoleResult : public ServiceResult + { + public: + + + DetachPolicyFromRoleResult(); + explicit DetachPolicyFromRoleResult(const std::string &payload); + ~DetachPolicyFromRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h new file mode 100644 index 000000000..b82edb7b2 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromUserRequest : public RpcServiceRequest + { + + public: + DetachPolicyFromUserRequest(); + ~DetachPolicyFromUserRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string policyType_; + std::string policyName_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromUserResult.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserResult.h new file mode 100644 index 000000000..99b78db0b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromUserResult : public ServiceResult + { + public: + + + DetachPolicyFromUserResult(); + explicit DetachPolicyFromUserResult(const std::string &payload); + ~DetachPolicyFromUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h new file mode 100644 index 000000000..dc6c0441c --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetAccessKeyLastUsedRequest : public RpcServiceRequest + { + + public: + GetAccessKeyLastUsedRequest(); + ~GetAccessKeyLastUsedRequest(); + + std::string getUserAccessKeyId()const; + void setUserAccessKeyId(const std::string& userAccessKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userAccessKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedResult.h b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedResult.h new file mode 100644 index 000000000..b3a79ceac --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetAccessKeyLastUsedResult : public ServiceResult + { + public: + struct AccessKeyLastUsed + { + std::string lastUsedDate; + }; + + + GetAccessKeyLastUsedResult(); + explicit GetAccessKeyLastUsedResult(const std::string &payload); + ~GetAccessKeyLastUsedResult(); + AccessKeyLastUsed getAccessKeyLastUsed()const; + + protected: + void parse(const std::string &payload); + private: + AccessKeyLastUsed accessKeyLastUsed_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h new file mode 100644 index 000000000..04ad0c9db --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetAccountAliasRequest : public RpcServiceRequest + { + + public: + GetAccountAliasRequest(); + ~GetAccountAliasRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetAccountAliasResult.h b/ram/include/alibabacloud/ram/model/GetAccountAliasResult.h new file mode 100644 index 000000000..f26c35948 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetAccountAliasResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetAccountAliasResult : public ServiceResult + { + public: + + + GetAccountAliasResult(); + explicit GetAccountAliasResult(const std::string &payload); + ~GetAccountAliasResult(); + std::string getAccountAlias()const; + + protected: + void parse(const std::string &payload); + private: + std::string accountAlias_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetGroupRequest.h b/ram/include/alibabacloud/ram/model/GetGroupRequest.h new file mode 100644 index 000000000..3a245d038 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetGroupRequest : public RpcServiceRequest + { + + public: + GetGroupRequest(); + ~GetGroupRequest(); + + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetGroupResult.h b/ram/include/alibabacloud/ram/model/GetGroupResult.h new file mode 100644 index 000000000..266166592 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetGroupResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string comments; + std::string createDate; + }; + + + GetGroupResult(); + explicit GetGroupResult(const std::string &payload); + ~GetGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h new file mode 100644 index 000000000..ab51d2937 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetLoginProfileRequest : public RpcServiceRequest + { + + public: + GetLoginProfileRequest(); + ~GetLoginProfileRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetLoginProfileResult.h b/ram/include/alibabacloud/ram/model/GetLoginProfileResult.h new file mode 100644 index 000000000..67aa5381b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetLoginProfileResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetLoginProfileResult : public ServiceResult + { + public: + struct LoginProfile + { + bool passwordResetRequired; + std::string userName; + bool mFABindRequired; + std::string createDate; + }; + + + GetLoginProfileResult(); + explicit GetLoginProfileResult(const std::string &payload); + ~GetLoginProfileResult(); + LoginProfile getLoginProfile()const; + + protected: + void parse(const std::string &payload); + private: + LoginProfile loginProfile_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h b/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h new file mode 100644 index 000000000..051c7ee4d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPasswordPolicyRequest : public RpcServiceRequest + { + + public: + GetPasswordPolicyRequest(); + ~GetPasswordPolicyRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h b/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h new file mode 100644 index 000000000..a69d05571 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPasswordPolicyResult : public ServiceResult + { + public: + struct PasswordPolicy + { + int minimumPasswordLength; + bool requireLowercaseCharacters; + bool requireNumbers; + int maxPasswordAge; + int passwordReusePrevention; + int maxLoginAttemps; + bool hardExpiry; + bool requireUppercaseCharacters; + bool requireSymbols; + }; + + + GetPasswordPolicyResult(); + explicit GetPasswordPolicyResult(const std::string &payload); + ~GetPasswordPolicyResult(); + PasswordPolicy getPasswordPolicy()const; + + protected: + void parse(const std::string &payload); + private: + PasswordPolicy passwordPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPolicyRequest.h b/ram/include/alibabacloud/ram/model/GetPolicyRequest.h new file mode 100644 index 000000000..d9266eca9 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPolicyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPolicyRequest : public RpcServiceRequest + { + + public: + GetPolicyRequest(); + ~GetPolicyRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyType_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPolicyResult.h b/ram/include/alibabacloud/ram/model/GetPolicyResult.h new file mode 100644 index 000000000..23c40d3e1 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPolicyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPolicyResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string updateDate; + std::string description; + int attachmentCount; + std::string policyName; + std::string defaultVersion; + std::string policyDocument; + std::string createDate; + }; + + + GetPolicyResult(); + explicit GetPolicyResult(const std::string &payload); + ~GetPolicyResult(); + Policy getPolicy()const; + + protected: + void parse(const std::string &payload); + private: + Policy policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h new file mode 100644 index 000000000..cb4c518dc --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPolicyVersionRequest : public RpcServiceRequest + { + + public: + GetPolicyVersionRequest(); + ~GetPolicyVersionRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string versionId_; + std::string policyType_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPolicyVersionResult.h b/ram/include/alibabacloud/ram/model/GetPolicyVersionResult.h new file mode 100644 index 000000000..822651402 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPolicyVersionResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPolicyVersionResult : public ServiceResult + { + public: + struct PolicyVersion + { + std::string versionId; + bool isDefaultVersion; + std::string policyDocument; + std::string createDate; + }; + + + GetPolicyVersionResult(); + explicit GetPolicyVersionResult(const std::string &payload); + ~GetPolicyVersionResult(); + PolicyVersion getPolicyVersion()const; + + protected: + void parse(const std::string &payload); + private: + PolicyVersion policyVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h b/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h new file mode 100644 index 000000000..746bc420d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPublicKeyRequest : public RpcServiceRequest + { + + public: + GetPublicKeyRequest(); + ~GetPublicKeyRequest(); + + std::string getUserPublicKeyId()const; + void setUserPublicKeyId(const std::string& userPublicKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userPublicKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h b/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h new file mode 100644 index 000000000..06386dc9c --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetPublicKeyResult : public ServiceResult + { + public: + struct PublicKey + { + std::string status; + std::string publicKeyId; + std::string publicKeySpec; + std::string createDate; + }; + + + GetPublicKeyResult(); + explicit GetPublicKeyResult(const std::string &payload); + ~GetPublicKeyResult(); + PublicKey getPublicKey()const; + + protected: + void parse(const std::string &payload); + private: + PublicKey publicKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetRoleRequest.h b/ram/include/alibabacloud/ram/model/GetRoleRequest.h new file mode 100644 index 000000000..fe4f69009 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetRoleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetRoleRequest : public RpcServiceRequest + { + + public: + GetRoleRequest(); + ~GetRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetRoleResult.h b/ram/include/alibabacloud/ram/model/GetRoleResult.h new file mode 100644 index 000000000..918a41bc9 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetRoleResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetRoleResult : public ServiceResult + { + public: + struct Role + { + std::string updateDate; + std::string roleName; + std::string description; + std::string assumeRolePolicyDocument; + std::string arn; + std::string roleId; + std::string createDate; + }; + + + GetRoleResult(); + explicit GetRoleResult(const std::string &payload); + ~GetRoleResult(); + Role getRole()const; + + protected: + void parse(const std::string &payload); + private: + Role role_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h new file mode 100644 index 000000000..566add0e5 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetSecurityPreferenceRequest : public RpcServiceRequest + { + + public: + GetSecurityPreferenceRequest(); + ~GetSecurityPreferenceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h new file mode 100644 index 000000000..28b7c550d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetSecurityPreferenceResult : public ServiceResult + { + public: + struct SecurityPreference + { + struct LoginProfilePreference + { + int loginSessionDuration; + std::string loginNetworkMasks; + bool allowUserToChangePassword; + bool enableSaveMFATicket; + }; + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct PublicKeyPreference + { + bool allowUserToManagePublicKeys; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; + LoginProfilePreference loginProfilePreference; + AccessKeyPreference accessKeyPreference; + PublicKeyPreference publicKeyPreference; + MFAPreference mFAPreference; + }; + + + GetSecurityPreferenceResult(); + explicit GetSecurityPreferenceResult(const std::string &payload); + ~GetSecurityPreferenceResult(); + SecurityPreference getSecurityPreference()const; + + protected: + void parse(const std::string &payload); + private: + SecurityPreference securityPreference_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h b/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h new file mode 100644 index 000000000..f87b6a1dd --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetUserMFAInfoRequest : public RpcServiceRequest + { + + public: + GetUserMFAInfoRequest(); + ~GetUserMFAInfoRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h b/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h new file mode 100644 index 000000000..1a82732b1 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFORESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetUserMFAInfoResult : public ServiceResult + { + public: + struct MFADevice + { + std::string serialNumber; + }; + + + GetUserMFAInfoResult(); + explicit GetUserMFAInfoResult(const std::string &payload); + ~GetUserMFAInfoResult(); + MFADevice getMFADevice()const; + + protected: + void parse(const std::string &payload); + private: + MFADevice mFADevice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFORESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetUserRequest.h b/ram/include/alibabacloud/ram/model/GetUserRequest.h new file mode 100644 index 000000000..d44a015fb --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetUserRequest : public RpcServiceRequest + { + + public: + GetUserRequest(); + ~GetUserRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetUserResult.h b/ram/include/alibabacloud/ram/model/GetUserResult.h new file mode 100644 index 000000000..acea19434 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/GetUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT GetUserResult : public ServiceResult + { + public: + struct User + { + std::string updateDate; + std::string userName; + std::string email; + std::string userId; + std::string comments; + std::string displayName; + std::string lastLoginDate; + std::string createDate; + std::string mobilePhone; + }; + + + GetUserResult(); + explicit GetUserResult(const std::string &payload); + ~GetUserResult(); + User getUser()const; + + protected: + void parse(const std::string &payload); + private: + User user_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h b/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h new file mode 100644 index 000000000..c2c07fa89 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListAccessKeysRequest : public RpcServiceRequest + { + + public: + ListAccessKeysRequest(); + ~ListAccessKeysRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListAccessKeysResult.h b/ram/include/alibabacloud/ram/model/ListAccessKeysResult.h new file mode 100644 index 000000000..7cd434fcd --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListAccessKeysResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListAccessKeysResult : public ServiceResult + { + public: + struct AccessKey + { + std::string status; + std::string accessKeyId; + std::string createDate; + }; + + + ListAccessKeysResult(); + explicit ListAccessKeysResult(const std::string &payload); + ~ListAccessKeysResult(); + std::vector getAccessKeys()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accessKeys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h new file mode 100644 index 000000000..997000547 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListEntitiesForPolicyRequest : public RpcServiceRequest + { + + public: + ListEntitiesForPolicyRequest(); + ~ListEntitiesForPolicyRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyType_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h new file mode 100644 index 000000000..8fa6b0c5a --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListEntitiesForPolicyResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string attachDate; + std::string comments; + }; + struct User + { + std::string userName; + std::string attachDate; + std::string userId; + std::string displayName; + }; + struct Role + { + std::string roleName; + std::string description; + std::string attachDate; + std::string arn; + std::string roleId; + }; + + + ListEntitiesForPolicyResult(); + explicit ListEntitiesForPolicyResult(const std::string &payload); + ~ListEntitiesForPolicyResult(); + std::vector getGroups()const; + std::vector getRoles()const; + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + std::vector roles_; + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h b/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h new file mode 100644 index 000000000..938034ca8 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListGroupsForUserRequest : public RpcServiceRequest + { + + public: + ListGroupsForUserRequest(); + ~ListGroupsForUserRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h b/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h new file mode 100644 index 000000000..05da5a5b3 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListGroupsForUserResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string comments; + std::string joinDate; + }; + + + ListGroupsForUserResult(); + explicit ListGroupsForUserResult(const std::string &payload); + ~ListGroupsForUserResult(); + std::vector getGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListGroupsRequest.h b/ram/include/alibabacloud/ram/model/ListGroupsRequest.h new file mode 100644 index 000000000..c27691e1b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListGroupsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListGroupsRequest : public RpcServiceRequest + { + + public: + ListGroupsRequest(); + ~ListGroupsRequest(); + + std::string getMarker()const; + void setMarker(const std::string& marker); + int getMaxItems()const; + void setMaxItems(int maxItems); + + private: + std::string marker_; + int maxItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListGroupsResult.h b/ram/include/alibabacloud/ram/model/ListGroupsResult.h new file mode 100644 index 000000000..45cac30ba --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListGroupsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListGroupsResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string comments; + std::string createDate; + }; + + + ListGroupsResult(); + explicit ListGroupsResult(const std::string &payload); + ~ListGroupsResult(); + std::vector getGroups()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h new file mode 100644 index 000000000..0b3103e93 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForGroupRequest : public RpcServiceRequest + { + + public: + ListPoliciesForGroupRequest(); + ~ListPoliciesForGroupRequest(); + + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h new file mode 100644 index 000000000..51c57032f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForGroupResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string description; + std::string attachDate; + std::string policyName; + std::string defaultVersion; + }; + + + ListPoliciesForGroupResult(); + explicit ListPoliciesForGroupResult(const std::string &payload); + ~ListPoliciesForGroupResult(); + std::vector getPolicies()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h new file mode 100644 index 000000000..9f4fecfe6 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForRoleRequest : public RpcServiceRequest + { + + public: + ListPoliciesForRoleRequest(); + ~ListPoliciesForRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h new file mode 100644 index 000000000..3c9f34164 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForRoleResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string description; + std::string attachDate; + std::string policyName; + std::string defaultVersion; + }; + + + ListPoliciesForRoleResult(); + explicit ListPoliciesForRoleResult(const std::string &payload); + ~ListPoliciesForRoleResult(); + std::vector getPolicies()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h new file mode 100644 index 000000000..4668db759 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForUserRequest : public RpcServiceRequest + { + + public: + ListPoliciesForUserRequest(); + ~ListPoliciesForUserRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h new file mode 100644 index 000000000..6e9f4dc54 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesForUserResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string description; + std::string attachDate; + std::string policyName; + std::string defaultVersion; + }; + + + ListPoliciesForUserResult(); + explicit ListPoliciesForUserResult(const std::string &payload); + ~ListPoliciesForUserResult(); + std::vector getPolicies()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h new file mode 100644 index 000000000..51e89face --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesRequest : public RpcServiceRequest + { + + public: + ListPoliciesRequest(); + ~ListPoliciesRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getMarker()const; + void setMarker(const std::string& marker); + int getMaxItems()const; + void setMaxItems(int maxItems); + + private: + std::string policyType_; + std::string marker_; + int maxItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesResult.h new file mode 100644 index 000000000..c397839de --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPoliciesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPoliciesResult : public ServiceResult + { + public: + struct Policy + { + std::string policyType; + std::string updateDate; + std::string description; + int attachmentCount; + std::string policyName; + std::string defaultVersion; + std::string createDate; + }; + + + ListPoliciesResult(); + explicit ListPoliciesResult(const std::string &payload); + ~ListPoliciesResult(); + std::vector getPolicies()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h b/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h new file mode 100644 index 000000000..a71db4284 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPolicyVersionsRequest : public RpcServiceRequest + { + + public: + ListPolicyVersionsRequest(); + ~ListPolicyVersionsRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string policyType_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPolicyVersionsResult.h b/ram/include/alibabacloud/ram/model/ListPolicyVersionsResult.h new file mode 100644 index 000000000..4d412f962 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPolicyVersionsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPolicyVersionsResult : public ServiceResult + { + public: + struct PolicyVersion + { + std::string versionId; + bool isDefaultVersion; + std::string policyDocument; + std::string createDate; + }; + + + ListPolicyVersionsResult(); + explicit ListPolicyVersionsResult(const std::string &payload); + ~ListPolicyVersionsResult(); + std::vector getPolicyVersions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policyVersions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h b/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h new file mode 100644 index 000000000..de0fc4395 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPublicKeysRequest : public RpcServiceRequest + { + + public: + ListPublicKeysRequest(); + ~ListPublicKeysRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListPublicKeysResult.h b/ram/include/alibabacloud/ram/model/ListPublicKeysResult.h new file mode 100644 index 000000000..27f0a0567 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListPublicKeysResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListPublicKeysResult : public ServiceResult + { + public: + struct PublicKey + { + std::string status; + std::string publicKeyId; + std::string createDate; + }; + + + ListPublicKeysResult(); + explicit ListPublicKeysResult(const std::string &payload); + ~ListPublicKeysResult(); + std::vector getPublicKeys()const; + + protected: + void parse(const std::string &payload); + private: + std::vector publicKeys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListRolesRequest.h b/ram/include/alibabacloud/ram/model/ListRolesRequest.h new file mode 100644 index 000000000..df9e60566 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListRolesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListRolesRequest : public RpcServiceRequest + { + + public: + ListRolesRequest(); + ~ListRolesRequest(); + + std::string getMarker()const; + void setMarker(const std::string& marker); + int getMaxItems()const; + void setMaxItems(int maxItems); + + private: + std::string marker_; + int maxItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListRolesResult.h b/ram/include/alibabacloud/ram/model/ListRolesResult.h new file mode 100644 index 000000000..cf33330ba --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListRolesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTROLESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTROLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListRolesResult : public ServiceResult + { + public: + struct Role + { + std::string updateDate; + std::string roleName; + std::string description; + std::string arn; + std::string roleId; + std::string createDate; + }; + + + ListRolesResult(); + explicit ListRolesResult(const std::string &payload); + ~ListRolesResult(); + std::vector getRoles()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector roles_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTROLESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h b/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h new file mode 100644 index 000000000..63b9d4e53 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListUsersForGroupRequest : public RpcServiceRequest + { + + public: + ListUsersForGroupRequest(); + ~ListUsersForGroupRequest(); + + std::string getMarker()const; + void setMarker(const std::string& marker); + int getMaxItems()const; + void setMaxItems(int maxItems); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string marker_; + int maxItems_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListUsersForGroupResult.h b/ram/include/alibabacloud/ram/model/ListUsersForGroupResult.h new file mode 100644 index 000000000..b9f436f8a --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListUsersForGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListUsersForGroupResult : public ServiceResult + { + public: + struct User + { + std::string userName; + std::string displayName; + std::string joinDate; + }; + + + ListUsersForGroupResult(); + explicit ListUsersForGroupResult(const std::string &payload); + ~ListUsersForGroupResult(); + bool getIsTruncated()const; + std::vector getUsers()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + bool isTruncated_; + std::vector users_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListUsersRequest.h b/ram/include/alibabacloud/ram/model/ListUsersRequest.h new file mode 100644 index 000000000..4f941b69b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListUsersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListUsersRequest : public RpcServiceRequest + { + + public: + ListUsersRequest(); + ~ListUsersRequest(); + + std::string getMarker()const; + void setMarker(const std::string& marker); + int getMaxItems()const; + void setMaxItems(int maxItems); + + private: + std::string marker_; + int maxItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListUsersResult.h b/ram/include/alibabacloud/ram/model/ListUsersResult.h new file mode 100644 index 000000000..67088477d --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListUsersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListUsersResult : public ServiceResult + { + public: + struct User + { + std::string updateDate; + std::string userName; + std::string email; + std::string userId; + std::string comments; + std::string displayName; + std::string createDate; + std::string mobilePhone; + }; + + + ListUsersResult(); + explicit ListUsersResult(const std::string &payload); + ~ListUsersResult(); + bool getIsTruncated()const; + std::vector getUsers()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + bool isTruncated_; + std::vector users_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h new file mode 100644 index 000000000..e5eb1c801 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListVirtualMFADevicesRequest : public RpcServiceRequest + { + + public: + ListVirtualMFADevicesRequest(); + ~ListVirtualMFADevicesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesResult.h b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesResult.h new file mode 100644 index 000000000..4a8cc0d8c --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT ListVirtualMFADevicesResult : public ServiceResult + { + public: + struct VirtualMFADevice + { + struct User + { + std::string userName; + std::string userId; + std::string displayName; + }; + User user; + std::string serialNumber; + std::string activateDate; + }; + + + ListVirtualMFADevicesResult(); + explicit ListVirtualMFADevicesResult(const std::string &payload); + ~ListVirtualMFADevicesResult(); + std::vector getVirtualMFADevices()const; + + protected: + void parse(const std::string &payload); + private: + std::vector virtualMFADevices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h new file mode 100644 index 000000000..095c17cdb --- /dev/null +++ b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT RemoveUserFromGroupRequest : public RpcServiceRequest + { + + public: + RemoveUserFromGroupRequest(); + ~RemoveUserFromGroupRequest(); + + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string groupName_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/RemoveUserFromGroupResult.h b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupResult.h new file mode 100644 index 000000000..2f74f9ec9 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT RemoveUserFromGroupResult : public ServiceResult + { + public: + + + RemoveUserFromGroupResult(); + explicit RemoveUserFromGroupResult(const std::string &payload); + ~RemoveUserFromGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h new file mode 100644 index 000000000..5cc7fb98f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetAccountAliasRequest : public RpcServiceRequest + { + + public: + SetAccountAliasRequest(); + ~SetAccountAliasRequest(); + + std::string getAccountAlias()const; + void setAccountAlias(const std::string& accountAlias); + + private: + std::string accountAlias_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetAccountAliasResult.h b/ram/include/alibabacloud/ram/model/SetAccountAliasResult.h new file mode 100644 index 000000000..f3444d4d0 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetAccountAliasResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetAccountAliasResult : public ServiceResult + { + public: + + + SetAccountAliasResult(); + explicit SetAccountAliasResult(const std::string &payload); + ~SetAccountAliasResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h new file mode 100644 index 000000000..211aae79b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetDefaultPolicyVersionRequest : public RpcServiceRequest + { + + public: + SetDefaultPolicyVersionRequest(); + ~SetDefaultPolicyVersionRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + + private: + std::string versionId_; + std::string policyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionResult.h b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionResult.h new file mode 100644 index 000000000..d1e85c112 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetDefaultPolicyVersionResult : public ServiceResult + { + public: + + + SetDefaultPolicyVersionResult(); + explicit SetDefaultPolicyVersionResult(const std::string &payload); + ~SetDefaultPolicyVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h b/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h new file mode 100644 index 000000000..7ba647077 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetPasswordPolicyRequest : public RpcServiceRequest + { + + public: + SetPasswordPolicyRequest(); + ~SetPasswordPolicyRequest(); + + bool getRequireNumbers()const; + void setRequireNumbers(bool requireNumbers); + int getPasswordReusePrevention()const; + void setPasswordReusePrevention(int passwordReusePrevention); + bool getRequireUppercaseCharacters()const; + void setRequireUppercaseCharacters(bool requireUppercaseCharacters); + int getMaxPasswordAge()const; + void setMaxPasswordAge(int maxPasswordAge); + int getMaxLoginAttemps()const; + void setMaxLoginAttemps(int maxLoginAttemps); + bool getHardExpiry()const; + void setHardExpiry(bool hardExpiry); + int getMinimumPasswordLength()const; + void setMinimumPasswordLength(int minimumPasswordLength); + bool getRequireLowercaseCharacters()const; + void setRequireLowercaseCharacters(bool requireLowercaseCharacters); + bool getRequireSymbols()const; + void setRequireSymbols(bool requireSymbols); + + private: + bool requireNumbers_; + int passwordReusePrevention_; + bool requireUppercaseCharacters_; + int maxPasswordAge_; + int maxLoginAttemps_; + bool hardExpiry_; + int minimumPasswordLength_; + bool requireLowercaseCharacters_; + bool requireSymbols_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h b/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h new file mode 100644 index 000000000..fbeeb346b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetPasswordPolicyResult : public ServiceResult + { + public: + struct PasswordPolicy + { + int minimumPasswordLength; + bool requireLowercaseCharacters; + bool requireNumbers; + int maxPasswordAge; + int passwordReusePrevention; + int maxLoginAttemps; + bool hardExpiry; + bool requireUppercaseCharacters; + bool requireSymbols; + }; + + + SetPasswordPolicyResult(); + explicit SetPasswordPolicyResult(const std::string &payload); + ~SetPasswordPolicyResult(); + PasswordPolicy getPasswordPolicy()const; + + protected: + void parse(const std::string &payload); + private: + PasswordPolicy passwordPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h new file mode 100644 index 000000000..9100c2e30 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetSecurityPreferenceRequest : public RpcServiceRequest + { + + public: + SetSecurityPreferenceRequest(); + ~SetSecurityPreferenceRequest(); + + bool getAllowUserToManageAccessKeys()const; + void setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys); + bool getAllowUserToManageMFADevices()const; + void setAllowUserToManageMFADevices(bool allowUserToManageMFADevices); + bool getAllowUserToManagePublicKeys()const; + void setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys); + bool getEnableSaveMFATicket()const; + void setEnableSaveMFATicket(bool enableSaveMFATicket); + std::string getLoginNetworkMasks()const; + void setLoginNetworkMasks(const std::string& loginNetworkMasks); + bool getAllowUserToChangePassword()const; + void setAllowUserToChangePassword(bool allowUserToChangePassword); + int getLoginSessionDuration()const; + void setLoginSessionDuration(int loginSessionDuration); + + private: + bool allowUserToManageAccessKeys_; + bool allowUserToManageMFADevices_; + bool allowUserToManagePublicKeys_; + bool enableSaveMFATicket_; + std::string loginNetworkMasks_; + bool allowUserToChangePassword_; + int loginSessionDuration_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h new file mode 100644 index 000000000..23a9d8f0b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT SetSecurityPreferenceResult : public ServiceResult + { + public: + struct SecurityPreference + { + struct LoginProfilePreference + { + int loginSessionDuration; + std::string loginNetworkMasks; + bool allowUserToChangePassword; + bool enableSaveMFATicket; + }; + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct PublicKeyPreference + { + bool allowUserToManagePublicKeys; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; + LoginProfilePreference loginProfilePreference; + AccessKeyPreference accessKeyPreference; + PublicKeyPreference publicKeyPreference; + MFAPreference mFAPreference; + }; + + + SetSecurityPreferenceResult(); + explicit SetSecurityPreferenceResult(const std::string &payload); + ~SetSecurityPreferenceResult(); + SecurityPreference getSecurityPreference()const; + + protected: + void parse(const std::string &payload); + private: + SecurityPreference securityPreference_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h new file mode 100644 index 000000000..9a6290380 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UnbindMFADeviceRequest : public RpcServiceRequest + { + + public: + UnbindMFADeviceRequest(); + ~UnbindMFADeviceRequest(); + + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UnbindMFADeviceResult.h b/ram/include/alibabacloud/ram/model/UnbindMFADeviceResult.h new file mode 100644 index 000000000..f6b4dedb7 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UnbindMFADeviceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UnbindMFADeviceResult : public ServiceResult + { + public: + struct MFADevice + { + std::string serialNumber; + }; + + + UnbindMFADeviceResult(); + explicit UnbindMFADeviceResult(const std::string &payload); + ~UnbindMFADeviceResult(); + MFADevice getMFADevice()const; + + protected: + void parse(const std::string &payload); + private: + MFADevice mFADevice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h new file mode 100644 index 000000000..90d8333ff --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateAccessKeyRequest : public RpcServiceRequest + { + + public: + UpdateAccessKeyRequest(); + ~UpdateAccessKeyRequest(); + + std::string getUserAccessKeyId()const; + void setUserAccessKeyId(const std::string& userAccessKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string userAccessKeyId_; + std::string userName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateAccessKeyResult.h b/ram/include/alibabacloud/ram/model/UpdateAccessKeyResult.h new file mode 100644 index 000000000..0b23e3bdc --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateAccessKeyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateAccessKeyResult : public ServiceResult + { + public: + + + UpdateAccessKeyResult(); + explicit UpdateAccessKeyResult(const std::string &payload); + ~UpdateAccessKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h b/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h new file mode 100644 index 000000000..21b76051e --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateGroupRequest : public RpcServiceRequest + { + + public: + UpdateGroupRequest(); + ~UpdateGroupRequest(); + + std::string getNewGroupName()const; + void setNewGroupName(const std::string& newGroupName); + std::string getNewComments()const; + void setNewComments(const std::string& newComments); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string newGroupName_; + std::string newComments_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateGroupResult.h b/ram/include/alibabacloud/ram/model/UpdateGroupResult.h new file mode 100644 index 000000000..08de9cc3f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateGroupResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEGROUPRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string comments; + std::string createDate; + }; + + + UpdateGroupResult(); + explicit UpdateGroupResult(const std::string &payload); + ~UpdateGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEGROUPRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h new file mode 100644 index 000000000..f61b1a592 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateLoginProfileRequest : public RpcServiceRequest + { + + public: + UpdateLoginProfileRequest(); + ~UpdateLoginProfileRequest(); + + std::string getPassword()const; + void setPassword(const std::string& password); + bool getPasswordResetRequired()const; + void setPasswordResetRequired(bool passwordResetRequired); + bool getMFABindRequired()const; + void setMFABindRequired(bool mFABindRequired); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string password_; + bool passwordResetRequired_; + bool mFABindRequired_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateLoginProfileResult.h b/ram/include/alibabacloud/ram/model/UpdateLoginProfileResult.h new file mode 100644 index 000000000..50dbf7eae --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateLoginProfileResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateLoginProfileResult : public ServiceResult + { + public: + + + UpdateLoginProfileResult(); + explicit UpdateLoginProfileResult(const std::string &payload); + ~UpdateLoginProfileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h b/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h new file mode 100644 index 000000000..f163d4dd6 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdatePublicKeyRequest : public RpcServiceRequest + { + + public: + UpdatePublicKeyRequest(); + ~UpdatePublicKeyRequest(); + + std::string getUserPublicKeyId()const; + void setUserPublicKeyId(const std::string& userPublicKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string userPublicKeyId_; + std::string userName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h b/ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h new file mode 100644 index 000000000..ad2629680 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdatePublicKeyResult : public ServiceResult + { + public: + + + UpdatePublicKeyResult(); + explicit UpdatePublicKeyResult(const std::string &payload); + ~UpdatePublicKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h b/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h new file mode 100644 index 000000000..5d3d9d1b7 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateRoleRequest : public RpcServiceRequest + { + + public: + UpdateRoleRequest(); + ~UpdateRoleRequest(); + + std::string getNewAssumeRolePolicyDocument()const; + void setNewAssumeRolePolicyDocument(const std::string& newAssumeRolePolicyDocument); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string newAssumeRolePolicyDocument_; + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateRoleResult.h b/ram/include/alibabacloud/ram/model/UpdateRoleResult.h new file mode 100644 index 000000000..c9acedb83 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateRoleResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEROLERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateRoleResult : public ServiceResult + { + public: + struct Role + { + std::string updateDate; + std::string roleName; + std::string description; + std::string assumeRolePolicyDocument; + std::string arn; + std::string roleId; + std::string createDate; + }; + + + UpdateRoleResult(); + explicit UpdateRoleResult(const std::string &payload); + ~UpdateRoleResult(); + Role getRole()const; + + protected: + void parse(const std::string &payload); + private: + Role role_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEROLERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateUserRequest.h b/ram/include/alibabacloud/ram/model/UpdateUserRequest.h new file mode 100644 index 000000000..bdd16cd87 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateUserRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateUserRequest : public RpcServiceRequest + { + + public: + UpdateUserRequest(); + ~UpdateUserRequest(); + + std::string getNewUserName()const; + void setNewUserName(const std::string& newUserName); + std::string getNewDisplayName()const; + void setNewDisplayName(const std::string& newDisplayName); + std::string getNewMobilePhone()const; + void setNewMobilePhone(const std::string& newMobilePhone); + std::string getNewComments()const; + void setNewComments(const std::string& newComments); + std::string getNewEmail()const; + void setNewEmail(const std::string& newEmail); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string newUserName_; + std::string newDisplayName_; + std::string newMobilePhone_; + std::string newComments_; + std::string newEmail_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateUserResult.h b/ram/include/alibabacloud/ram/model/UpdateUserResult.h new file mode 100644 index 000000000..08c437b7f --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdateUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UpdateUserResult : public ServiceResult + { + public: + struct User + { + std::string updateDate; + std::string userName; + std::string email; + std::string userId; + std::string comments; + std::string displayName; + std::string createDate; + std::string mobilePhone; + }; + + + UpdateUserResult(); + explicit UpdateUserResult(const std::string &payload); + ~UpdateUserResult(); + User getUser()const; + + protected: + void parse(const std::string &payload); + private: + User user_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h b/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h new file mode 100644 index 000000000..f846bc887 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UploadPublicKeyRequest : public RpcServiceRequest + { + + public: + UploadPublicKeyRequest(); + ~UploadPublicKeyRequest(); + + std::string getPublicKeySpec()const; + void setPublicKeySpec(const std::string& publicKeySpec); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string publicKeySpec_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h b/ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h new file mode 100644 index 000000000..12d0bc684 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT UploadPublicKeyResult : public ServiceResult + { + public: + struct PublicKey + { + std::string status; + std::string publicKeyId; + std::string publicKeySpec; + std::string createDate; + }; + + + UploadPublicKeyResult(); + explicit UploadPublicKeyResult(const std::string &payload); + ~UploadPublicKeyResult(); + PublicKey getPublicKey()const; + + protected: + void parse(const std::string &payload); + private: + PublicKey publicKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ \ No newline at end of file diff --git a/ram/src/RamClient.cc b/ram/src/RamClient.cc new file mode 100644 index 000000000..b3c4b387e --- /dev/null +++ b/ram/src/RamClient.cc @@ -0,0 +1,2429 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +namespace +{ + const std::string SERVICE_NAME = "Ram"; +} + +RamClient::RamClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ram"); +} + +RamClient::RamClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ram"); +} + +RamClient::RamClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ram"); +} + +RamClient::~RamClient() +{} + +RamClient::CreatePolicyOutcome RamClient::createPolicy(const CreatePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePolicyOutcome(CreatePolicyResult(outcome.result())); + else + return CreatePolicyOutcome(outcome.error()); +} + +void RamClient::createPolicyAsync(const CreatePolicyRequest& request, const CreatePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreatePolicyOutcomeCallable RamClient::createPolicyCallable(const CreatePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListUsersOutcome RamClient::listUsers(const ListUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOutcome(ListUsersResult(outcome.result())); + else + return ListUsersOutcome(outcome.error()); +} + +void RamClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListUsersOutcomeCallable RamClient::listUsersCallable(const ListUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetUserMFAInfoOutcome RamClient::getUserMFAInfo(const GetUserMFAInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserMFAInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserMFAInfoOutcome(GetUserMFAInfoResult(outcome.result())); + else + return GetUserMFAInfoOutcome(outcome.error()); +} + +void RamClient::getUserMFAInfoAsync(const GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserMFAInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetUserMFAInfoOutcomeCallable RamClient::getUserMFAInfoCallable(const GetUserMFAInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserMFAInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UnbindMFADeviceOutcome RamClient::unbindMFADevice(const UnbindMFADeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindMFADeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindMFADeviceOutcome(UnbindMFADeviceResult(outcome.result())); + else + return UnbindMFADeviceOutcome(outcome.error()); +} + +void RamClient::unbindMFADeviceAsync(const UnbindMFADeviceRequest& request, const UnbindMFADeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindMFADevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UnbindMFADeviceOutcomeCallable RamClient::unbindMFADeviceCallable(const UnbindMFADeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindMFADevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::BindMFADeviceOutcome RamClient::bindMFADevice(const BindMFADeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindMFADeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindMFADeviceOutcome(BindMFADeviceResult(outcome.result())); + else + return BindMFADeviceOutcome(outcome.error()); +} + +void RamClient::bindMFADeviceAsync(const BindMFADeviceRequest& request, const BindMFADeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindMFADevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::BindMFADeviceOutcomeCallable RamClient::bindMFADeviceCallable(const BindMFADeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindMFADevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPublicKeysOutcome RamClient::listPublicKeys(const ListPublicKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPublicKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPublicKeysOutcome(ListPublicKeysResult(outcome.result())); + else + return ListPublicKeysOutcome(outcome.error()); +} + +void RamClient::listPublicKeysAsync(const ListPublicKeysRequest& request, const ListPublicKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPublicKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPublicKeysOutcomeCallable RamClient::listPublicKeysCallable(const ListPublicKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPublicKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::AttachPolicyToRoleOutcome RamClient::attachPolicyToRole(const AttachPolicyToRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicyToRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicyToRoleOutcome(AttachPolicyToRoleResult(outcome.result())); + else + return AttachPolicyToRoleOutcome(outcome.error()); +} + +void RamClient::attachPolicyToRoleAsync(const AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicyToRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AttachPolicyToRoleOutcomeCallable RamClient::attachPolicyToRoleCallable(const AttachPolicyToRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicyToRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::AddUserToGroupOutcome RamClient::addUserToGroup(const AddUserToGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserToGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserToGroupOutcome(AddUserToGroupResult(outcome.result())); + else + return AddUserToGroupOutcome(outcome.error()); +} + +void RamClient::addUserToGroupAsync(const AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserToGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AddUserToGroupOutcomeCallable RamClient::addUserToGroupCallable(const AddUserToGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserToGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetAccountAliasOutcome RamClient::getAccountAlias(const GetAccountAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountAliasOutcome(GetAccountAliasResult(outcome.result())); + else + return GetAccountAliasOutcome(outcome.error()); +} + +void RamClient::getAccountAliasAsync(const GetAccountAliasRequest& request, const GetAccountAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetAccountAliasOutcomeCallable RamClient::getAccountAliasCallable(const GetAccountAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetLoginProfileOutcome RamClient::getLoginProfile(const GetLoginProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLoginProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLoginProfileOutcome(GetLoginProfileResult(outcome.result())); + else + return GetLoginProfileOutcome(outcome.error()); +} + +void RamClient::getLoginProfileAsync(const GetLoginProfileRequest& request, const GetLoginProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLoginProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetLoginProfileOutcomeCallable RamClient::getLoginProfileCallable(const GetLoginProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLoginProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListEntitiesForPolicyOutcome RamClient::listEntitiesForPolicy(const ListEntitiesForPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEntitiesForPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEntitiesForPolicyOutcome(ListEntitiesForPolicyResult(outcome.result())); + else + return ListEntitiesForPolicyOutcome(outcome.error()); +} + +void RamClient::listEntitiesForPolicyAsync(const ListEntitiesForPolicyRequest& request, const ListEntitiesForPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEntitiesForPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListEntitiesForPolicyOutcomeCallable RamClient::listEntitiesForPolicyCallable(const ListEntitiesForPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEntitiesForPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::SetSecurityPreferenceOutcome RamClient::setSecurityPreference(const SetSecurityPreferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSecurityPreferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSecurityPreferenceOutcome(SetSecurityPreferenceResult(outcome.result())); + else + return SetSecurityPreferenceOutcome(outcome.error()); +} + +void RamClient::setSecurityPreferenceAsync(const SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSecurityPreference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::SetSecurityPreferenceOutcomeCallable RamClient::setSecurityPreferenceCallable(const SetSecurityPreferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSecurityPreference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPoliciesForUserOutcome RamClient::listPoliciesForUser(const ListPoliciesForUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesForUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesForUserOutcome(ListPoliciesForUserResult(outcome.result())); + else + return ListPoliciesForUserOutcome(outcome.error()); +} + +void RamClient::listPoliciesForUserAsync(const ListPoliciesForUserRequest& request, const ListPoliciesForUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPoliciesForUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPoliciesForUserOutcomeCallable RamClient::listPoliciesForUserCallable(const ListPoliciesForUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPoliciesForUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdateLoginProfileOutcome RamClient::updateLoginProfile(const UpdateLoginProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoginProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoginProfileOutcome(UpdateLoginProfileResult(outcome.result())); + else + return UpdateLoginProfileOutcome(outcome.error()); +} + +void RamClient::updateLoginProfileAsync(const UpdateLoginProfileRequest& request, const UpdateLoginProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoginProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateLoginProfileOutcomeCallable RamClient::updateLoginProfileCallable(const UpdateLoginProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoginProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListUsersForGroupOutcome RamClient::listUsersForGroup(const ListUsersForGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersForGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersForGroupOutcome(ListUsersForGroupResult(outcome.result())); + else + return ListUsersForGroupOutcome(outcome.error()); +} + +void RamClient::listUsersForGroupAsync(const ListUsersForGroupRequest& request, const ListUsersForGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsersForGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListUsersForGroupOutcomeCallable RamClient::listUsersForGroupCallable(const ListUsersForGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsersForGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetPolicyVersionOutcome RamClient::getPolicyVersion(const GetPolicyVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPolicyVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPolicyVersionOutcome(GetPolicyVersionResult(outcome.result())); + else + return GetPolicyVersionOutcome(outcome.error()); +} + +void RamClient::getPolicyVersionAsync(const GetPolicyVersionRequest& request, const GetPolicyVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPolicyVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetPolicyVersionOutcomeCallable RamClient::getPolicyVersionCallable(const GetPolicyVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPolicyVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteRoleOutcome RamClient::deleteRole(const DeleteRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRoleOutcome(DeleteRoleResult(outcome.result())); + else + return DeleteRoleOutcome(outcome.error()); +} + +void RamClient::deleteRoleAsync(const DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteRoleOutcomeCallable RamClient::deleteRoleCallable(const DeleteRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetUserOutcome RamClient::getUser(const GetUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutcome(GetUserResult(outcome.result())); + else + return GetUserOutcome(outcome.error()); +} + +void RamClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetUserOutcomeCallable RamClient::getUserCallable(const GetUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteVirtualMFADeviceOutcome RamClient::deleteVirtualMFADevice(const DeleteVirtualMFADeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVirtualMFADeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVirtualMFADeviceOutcome(DeleteVirtualMFADeviceResult(outcome.result())); + else + return DeleteVirtualMFADeviceOutcome(outcome.error()); +} + +void RamClient::deleteVirtualMFADeviceAsync(const DeleteVirtualMFADeviceRequest& request, const DeleteVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVirtualMFADevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteVirtualMFADeviceOutcomeCallable RamClient::deleteVirtualMFADeviceCallable(const DeleteVirtualMFADeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVirtualMFADevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UploadPublicKeyOutcome RamClient::uploadPublicKey(const UploadPublicKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadPublicKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadPublicKeyOutcome(UploadPublicKeyResult(outcome.result())); + else + return UploadPublicKeyOutcome(outcome.error()); +} + +void RamClient::uploadPublicKeyAsync(const UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadPublicKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UploadPublicKeyOutcomeCallable RamClient::uploadPublicKeyCallable(const UploadPublicKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadPublicKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeletePolicyVersionOutcome RamClient::deletePolicyVersion(const DeletePolicyVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePolicyVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePolicyVersionOutcome(DeletePolicyVersionResult(outcome.result())); + else + return DeletePolicyVersionOutcome(outcome.error()); +} + +void RamClient::deletePolicyVersionAsync(const DeletePolicyVersionRequest& request, const DeletePolicyVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePolicyVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeletePolicyVersionOutcomeCallable RamClient::deletePolicyVersionCallable(const DeletePolicyVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePolicyVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::RemoveUserFromGroupOutcome RamClient::removeUserFromGroup(const RemoveUserFromGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveUserFromGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveUserFromGroupOutcome(RemoveUserFromGroupResult(outcome.result())); + else + return RemoveUserFromGroupOutcome(outcome.error()); +} + +void RamClient::removeUserFromGroupAsync(const RemoveUserFromGroupRequest& request, const RemoveUserFromGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeUserFromGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::RemoveUserFromGroupOutcomeCallable RamClient::removeUserFromGroupCallable(const RemoveUserFromGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeUserFromGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetAccessKeyLastUsedOutcome RamClient::getAccessKeyLastUsed(const GetAccessKeyLastUsedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccessKeyLastUsedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccessKeyLastUsedOutcome(GetAccessKeyLastUsedResult(outcome.result())); + else + return GetAccessKeyLastUsedOutcome(outcome.error()); +} + +void RamClient::getAccessKeyLastUsedAsync(const GetAccessKeyLastUsedRequest& request, const GetAccessKeyLastUsedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccessKeyLastUsed(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetAccessKeyLastUsedOutcomeCallable RamClient::getAccessKeyLastUsedCallable(const GetAccessKeyLastUsedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccessKeyLastUsed(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdateAccessKeyOutcome RamClient::updateAccessKey(const UpdateAccessKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAccessKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAccessKeyOutcome(UpdateAccessKeyResult(outcome.result())); + else + return UpdateAccessKeyOutcome(outcome.error()); +} + +void RamClient::updateAccessKeyAsync(const UpdateAccessKeyRequest& request, const UpdateAccessKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAccessKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateAccessKeyOutcomeCallable RamClient::updateAccessKeyCallable(const UpdateAccessKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAccessKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetGroupOutcome RamClient::getGroup(const GetGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupOutcome(GetGroupResult(outcome.result())); + else + return GetGroupOutcome(outcome.error()); +} + +void RamClient::getGroupAsync(const GetGroupRequest& request, const GetGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetGroupOutcomeCallable RamClient::getGroupCallable(const GetGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateAccessKeyOutcome RamClient::createAccessKey(const CreateAccessKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccessKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccessKeyOutcome(CreateAccessKeyResult(outcome.result())); + else + return CreateAccessKeyOutcome(outcome.error()); +} + +void RamClient::createAccessKeyAsync(const CreateAccessKeyRequest& request, const CreateAccessKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccessKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateAccessKeyOutcomeCallable RamClient::createAccessKeyCallable(const CreateAccessKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccessKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::SetAccountAliasOutcome RamClient::setAccountAlias(const SetAccountAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAccountAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAccountAliasOutcome(SetAccountAliasResult(outcome.result())); + else + return SetAccountAliasOutcome(outcome.error()); +} + +void RamClient::setAccountAliasAsync(const SetAccountAliasRequest& request, const SetAccountAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAccountAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::SetAccountAliasOutcomeCallable RamClient::setAccountAliasCallable(const SetAccountAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAccountAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPoliciesForGroupOutcome RamClient::listPoliciesForGroup(const ListPoliciesForGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesForGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesForGroupOutcome(ListPoliciesForGroupResult(outcome.result())); + else + return ListPoliciesForGroupOutcome(outcome.error()); +} + +void RamClient::listPoliciesForGroupAsync(const ListPoliciesForGroupRequest& request, const ListPoliciesForGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPoliciesForGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPoliciesForGroupOutcomeCallable RamClient::listPoliciesForGroupCallable(const ListPoliciesForGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPoliciesForGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ChangePasswordOutcome RamClient::changePassword(const ChangePasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangePasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangePasswordOutcome(ChangePasswordResult(outcome.result())); + else + return ChangePasswordOutcome(outcome.error()); +} + +void RamClient::changePasswordAsync(const ChangePasswordRequest& request, const ChangePasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changePassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ChangePasswordOutcomeCallable RamClient::changePasswordCallable(const ChangePasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changePassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListGroupsForUserOutcome RamClient::listGroupsForUser(const ListGroupsForUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupsForUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupsForUserOutcome(ListGroupsForUserResult(outcome.result())); + else + return ListGroupsForUserOutcome(outcome.error()); +} + +void RamClient::listGroupsForUserAsync(const ListGroupsForUserRequest& request, const ListGroupsForUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroupsForUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListGroupsForUserOutcomeCallable RamClient::listGroupsForUserCallable(const ListGroupsForUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroupsForUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::AttachPolicyToUserOutcome RamClient::attachPolicyToUser(const AttachPolicyToUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicyToUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicyToUserOutcome(AttachPolicyToUserResult(outcome.result())); + else + return AttachPolicyToUserOutcome(outcome.error()); +} + +void RamClient::attachPolicyToUserAsync(const AttachPolicyToUserRequest& request, const AttachPolicyToUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicyToUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AttachPolicyToUserOutcomeCallable RamClient::attachPolicyToUserCallable(const AttachPolicyToUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicyToUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateVirtualMFADeviceOutcome RamClient::createVirtualMFADevice(const CreateVirtualMFADeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVirtualMFADeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVirtualMFADeviceOutcome(CreateVirtualMFADeviceResult(outcome.result())); + else + return CreateVirtualMFADeviceOutcome(outcome.error()); +} + +void RamClient::createVirtualMFADeviceAsync(const CreateVirtualMFADeviceRequest& request, const CreateVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVirtualMFADevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateVirtualMFADeviceOutcomeCallable RamClient::createVirtualMFADeviceCallable(const CreateVirtualMFADeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVirtualMFADevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListGroupsOutcome RamClient::listGroups(const ListGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupsOutcome(ListGroupsResult(outcome.result())); + else + return ListGroupsOutcome(outcome.error()); +} + +void RamClient::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListGroupsOutcomeCallable RamClient::listGroupsCallable(const ListGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteUserOutcome RamClient::deleteUser(const DeleteUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserOutcome(DeleteUserResult(outcome.result())); + else + return DeleteUserOutcome(outcome.error()); +} + +void RamClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteUserOutcomeCallable RamClient::deleteUserCallable(const DeleteUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeletePolicyOutcome RamClient::deletePolicy(const DeletePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePolicyOutcome(DeletePolicyResult(outcome.result())); + else + return DeletePolicyOutcome(outcome.error()); +} + +void RamClient::deletePolicyAsync(const DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeletePolicyOutcomeCallable RamClient::deletePolicyCallable(const DeletePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteGroupOutcome RamClient::deleteGroup(const DeleteGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGroupOutcome(DeleteGroupResult(outcome.result())); + else + return DeleteGroupOutcome(outcome.error()); +} + +void RamClient::deleteGroupAsync(const DeleteGroupRequest& request, const DeleteGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteGroupOutcomeCallable RamClient::deleteGroupCallable(const DeleteGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ClearAccountAliasOutcome RamClient::clearAccountAlias(const ClearAccountAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ClearAccountAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ClearAccountAliasOutcome(ClearAccountAliasResult(outcome.result())); + else + return ClearAccountAliasOutcome(outcome.error()); +} + +void RamClient::clearAccountAliasAsync(const ClearAccountAliasRequest& request, const ClearAccountAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, clearAccountAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ClearAccountAliasOutcomeCallable RamClient::clearAccountAliasCallable(const ClearAccountAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->clearAccountAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdateRoleOutcome RamClient::updateRole(const UpdateRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRoleOutcome(UpdateRoleResult(outcome.result())); + else + return UpdateRoleOutcome(outcome.error()); +} + +void RamClient::updateRoleAsync(const UpdateRoleRequest& request, const UpdateRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateRoleOutcomeCallable RamClient::updateRoleCallable(const UpdateRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPoliciesOutcome RamClient::listPolicies(const ListPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesOutcome(ListPoliciesResult(outcome.result())); + else + return ListPoliciesOutcome(outcome.error()); +} + +void RamClient::listPoliciesAsync(const ListPoliciesRequest& request, const ListPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPoliciesOutcomeCallable RamClient::listPoliciesCallable(const ListPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::AttachPolicyToGroupOutcome RamClient::attachPolicyToGroup(const AttachPolicyToGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicyToGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicyToGroupOutcome(AttachPolicyToGroupResult(outcome.result())); + else + return AttachPolicyToGroupOutcome(outcome.error()); +} + +void RamClient::attachPolicyToGroupAsync(const AttachPolicyToGroupRequest& request, const AttachPolicyToGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicyToGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AttachPolicyToGroupOutcomeCallable RamClient::attachPolicyToGroupCallable(const AttachPolicyToGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicyToGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetPublicKeyOutcome RamClient::getPublicKey(const GetPublicKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPublicKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPublicKeyOutcome(GetPublicKeyResult(outcome.result())); + else + return GetPublicKeyOutcome(outcome.error()); +} + +void RamClient::getPublicKeyAsync(const GetPublicKeyRequest& request, const GetPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPublicKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetPublicKeyOutcomeCallable RamClient::getPublicKeyCallable(const GetPublicKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPublicKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DetachPolicyFromRoleOutcome RamClient::detachPolicyFromRole(const DetachPolicyFromRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachPolicyFromRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachPolicyFromRoleOutcome(DetachPolicyFromRoleResult(outcome.result())); + else + return DetachPolicyFromRoleOutcome(outcome.error()); +} + +void RamClient::detachPolicyFromRoleAsync(const DetachPolicyFromRoleRequest& request, const DetachPolicyFromRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachPolicyFromRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DetachPolicyFromRoleOutcomeCallable RamClient::detachPolicyFromRoleCallable(const DetachPolicyFromRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachPolicyFromRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeletePublicKeyOutcome RamClient::deletePublicKey(const DeletePublicKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePublicKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePublicKeyOutcome(DeletePublicKeyResult(outcome.result())); + else + return DeletePublicKeyOutcome(outcome.error()); +} + +void RamClient::deletePublicKeyAsync(const DeletePublicKeyRequest& request, const DeletePublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePublicKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeletePublicKeyOutcomeCallable RamClient::deletePublicKeyCallable(const DeletePublicKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePublicKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListRolesOutcome RamClient::listRoles(const ListRolesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRolesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRolesOutcome(ListRolesResult(outcome.result())); + else + return ListRolesOutcome(outcome.error()); +} + +void RamClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRoles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListRolesOutcomeCallable RamClient::listRolesCallable(const ListRolesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRoles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::SetDefaultPolicyVersionOutcome RamClient::setDefaultPolicyVersion(const SetDefaultPolicyVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDefaultPolicyVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDefaultPolicyVersionOutcome(SetDefaultPolicyVersionResult(outcome.result())); + else + return SetDefaultPolicyVersionOutcome(outcome.error()); +} + +void RamClient::setDefaultPolicyVersionAsync(const SetDefaultPolicyVersionRequest& request, const SetDefaultPolicyVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDefaultPolicyVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::SetDefaultPolicyVersionOutcomeCallable RamClient::setDefaultPolicyVersionCallable(const SetDefaultPolicyVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDefaultPolicyVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPolicyVersionsOutcome RamClient::listPolicyVersions(const ListPolicyVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPolicyVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPolicyVersionsOutcome(ListPolicyVersionsResult(outcome.result())); + else + return ListPolicyVersionsOutcome(outcome.error()); +} + +void RamClient::listPolicyVersionsAsync(const ListPolicyVersionsRequest& request, const ListPolicyVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPolicyVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPolicyVersionsOutcomeCallable RamClient::listPolicyVersionsCallable(const ListPolicyVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPolicyVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateRoleOutcome RamClient::createRole(const CreateRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRoleOutcome(CreateRoleResult(outcome.result())); + else + return CreateRoleOutcome(outcome.error()); +} + +void RamClient::createRoleAsync(const CreateRoleRequest& request, const CreateRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateRoleOutcomeCallable RamClient::createRoleCallable(const CreateRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreatePolicyVersionOutcome RamClient::createPolicyVersion(const CreatePolicyVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePolicyVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePolicyVersionOutcome(CreatePolicyVersionResult(outcome.result())); + else + return CreatePolicyVersionOutcome(outcome.error()); +} + +void RamClient::createPolicyVersionAsync(const CreatePolicyVersionRequest& request, const CreatePolicyVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPolicyVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreatePolicyVersionOutcomeCallable RamClient::createPolicyVersionCallable(const CreatePolicyVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPolicyVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListPoliciesForRoleOutcome RamClient::listPoliciesForRole(const ListPoliciesForRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesForRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesForRoleOutcome(ListPoliciesForRoleResult(outcome.result())); + else + return ListPoliciesForRoleOutcome(outcome.error()); +} + +void RamClient::listPoliciesForRoleAsync(const ListPoliciesForRoleRequest& request, const ListPoliciesForRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPoliciesForRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListPoliciesForRoleOutcomeCallable RamClient::listPoliciesForRoleCallable(const ListPoliciesForRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPoliciesForRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdatePublicKeyOutcome RamClient::updatePublicKey(const UpdatePublicKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePublicKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePublicKeyOutcome(UpdatePublicKeyResult(outcome.result())); + else + return UpdatePublicKeyOutcome(outcome.error()); +} + +void RamClient::updatePublicKeyAsync(const UpdatePublicKeyRequest& request, const UpdatePublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePublicKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdatePublicKeyOutcomeCallable RamClient::updatePublicKeyCallable(const UpdatePublicKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePublicKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateGroupOutcome RamClient::createGroup(const CreateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGroupOutcome(CreateGroupResult(outcome.result())); + else + return CreateGroupOutcome(outcome.error()); +} + +void RamClient::createGroupAsync(const CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateGroupOutcomeCallable RamClient::createGroupCallable(const CreateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateUserOutcome RamClient::createUser(const CreateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserOutcome(CreateUserResult(outcome.result())); + else + return CreateUserOutcome(outcome.error()); +} + +void RamClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateUserOutcomeCallable RamClient::createUserCallable(const CreateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetPasswordPolicyOutcome RamClient::getPasswordPolicy(const GetPasswordPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPasswordPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPasswordPolicyOutcome(GetPasswordPolicyResult(outcome.result())); + else + return GetPasswordPolicyOutcome(outcome.error()); +} + +void RamClient::getPasswordPolicyAsync(const GetPasswordPolicyRequest& request, const GetPasswordPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPasswordPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetPasswordPolicyOutcomeCallable RamClient::getPasswordPolicyCallable(const GetPasswordPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPasswordPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListAccessKeysOutcome RamClient::listAccessKeys(const ListAccessKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccessKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccessKeysOutcome(ListAccessKeysResult(outcome.result())); + else + return ListAccessKeysOutcome(outcome.error()); +} + +void RamClient::listAccessKeysAsync(const ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccessKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListAccessKeysOutcomeCallable RamClient::listAccessKeysCallable(const ListAccessKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccessKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DetachPolicyFromGroupOutcome RamClient::detachPolicyFromGroup(const DetachPolicyFromGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachPolicyFromGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachPolicyFromGroupOutcome(DetachPolicyFromGroupResult(outcome.result())); + else + return DetachPolicyFromGroupOutcome(outcome.error()); +} + +void RamClient::detachPolicyFromGroupAsync(const DetachPolicyFromGroupRequest& request, const DetachPolicyFromGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachPolicyFromGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DetachPolicyFromGroupOutcomeCallable RamClient::detachPolicyFromGroupCallable(const DetachPolicyFromGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachPolicyFromGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::SetPasswordPolicyOutcome RamClient::setPasswordPolicy(const SetPasswordPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetPasswordPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetPasswordPolicyOutcome(SetPasswordPolicyResult(outcome.result())); + else + return SetPasswordPolicyOutcome(outcome.error()); +} + +void RamClient::setPasswordPolicyAsync(const SetPasswordPolicyRequest& request, const SetPasswordPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setPasswordPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::SetPasswordPolicyOutcomeCallable RamClient::setPasswordPolicyCallable(const SetPasswordPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setPasswordPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteAccessKeyOutcome RamClient::deleteAccessKey(const DeleteAccessKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessKeyOutcome(DeleteAccessKeyResult(outcome.result())); + else + return DeleteAccessKeyOutcome(outcome.error()); +} + +void RamClient::deleteAccessKeyAsync(const DeleteAccessKeyRequest& request, const DeleteAccessKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteAccessKeyOutcomeCallable RamClient::deleteAccessKeyCallable(const DeleteAccessKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetRoleOutcome RamClient::getRole(const GetRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRoleOutcome(GetRoleResult(outcome.result())); + else + return GetRoleOutcome(outcome.error()); +} + +void RamClient::getRoleAsync(const GetRoleRequest& request, const GetRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetRoleOutcomeCallable RamClient::getRoleCallable(const GetRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetSecurityPreferenceOutcome RamClient::getSecurityPreference(const GetSecurityPreferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSecurityPreferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSecurityPreferenceOutcome(GetSecurityPreferenceResult(outcome.result())); + else + return GetSecurityPreferenceOutcome(outcome.error()); +} + +void RamClient::getSecurityPreferenceAsync(const GetSecurityPreferenceRequest& request, const GetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSecurityPreference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetSecurityPreferenceOutcomeCallable RamClient::getSecurityPreferenceCallable(const GetSecurityPreferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSecurityPreference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DeleteLoginProfileOutcome RamClient::deleteLoginProfile(const DeleteLoginProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLoginProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLoginProfileOutcome(DeleteLoginProfileResult(outcome.result())); + else + return DeleteLoginProfileOutcome(outcome.error()); +} + +void RamClient::deleteLoginProfileAsync(const DeleteLoginProfileRequest& request, const DeleteLoginProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLoginProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteLoginProfileOutcomeCallable RamClient::deleteLoginProfileCallable(const DeleteLoginProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLoginProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdateUserOutcome RamClient::updateUser(const UpdateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserOutcome(UpdateUserResult(outcome.result())); + else + return UpdateUserOutcome(outcome.error()); +} + +void RamClient::updateUserAsync(const UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateUserOutcomeCallable RamClient::updateUserCallable(const UpdateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::DetachPolicyFromUserOutcome RamClient::detachPolicyFromUser(const DetachPolicyFromUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachPolicyFromUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachPolicyFromUserOutcome(DetachPolicyFromUserResult(outcome.result())); + else + return DetachPolicyFromUserOutcome(outcome.error()); +} + +void RamClient::detachPolicyFromUserAsync(const DetachPolicyFromUserRequest& request, const DetachPolicyFromUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachPolicyFromUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DetachPolicyFromUserOutcomeCallable RamClient::detachPolicyFromUserCallable(const DetachPolicyFromUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachPolicyFromUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::CreateLoginProfileOutcome RamClient::createLoginProfile(const CreateLoginProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoginProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoginProfileOutcome(CreateLoginProfileResult(outcome.result())); + else + return CreateLoginProfileOutcome(outcome.error()); +} + +void RamClient::createLoginProfileAsync(const CreateLoginProfileRequest& request, const CreateLoginProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoginProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::CreateLoginProfileOutcomeCallable RamClient::createLoginProfileCallable(const CreateLoginProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoginProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::ListVirtualMFADevicesOutcome RamClient::listVirtualMFADevices(const ListVirtualMFADevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVirtualMFADevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVirtualMFADevicesOutcome(ListVirtualMFADevicesResult(outcome.result())); + else + return ListVirtualMFADevicesOutcome(outcome.error()); +} + +void RamClient::listVirtualMFADevicesAsync(const ListVirtualMFADevicesRequest& request, const ListVirtualMFADevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVirtualMFADevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListVirtualMFADevicesOutcomeCallable RamClient::listVirtualMFADevicesCallable(const ListVirtualMFADevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVirtualMFADevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::UpdateGroupOutcome RamClient::updateGroup(const UpdateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGroupOutcome(UpdateGroupResult(outcome.result())); + else + return UpdateGroupOutcome(outcome.error()); +} + +void RamClient::updateGroupAsync(const UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateGroupOutcomeCallable RamClient::updateGroupCallable(const UpdateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::GetPolicyOutcome RamClient::getPolicy(const GetPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPolicyOutcome(GetPolicyResult(outcome.result())); + else + return GetPolicyOutcome(outcome.error()); +} + +void RamClient::getPolicyAsync(const GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetPolicyOutcomeCallable RamClient::getPolicyCallable(const GetPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ram/src/model/AddUserToGroupRequest.cc b/ram/src/model/AddUserToGroupRequest.cc new file mode 100644 index 000000000..66acc6058 --- /dev/null +++ b/ram/src/model/AddUserToGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/AddUserToGroupResult.cc b/ram/src/model/AddUserToGroupResult.cc new file mode 100644 index 000000000..9f1a654c3 --- /dev/null +++ b/ram/src/model/AddUserToGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/AttachPolicyToGroupRequest.cc b/ram/src/model/AttachPolicyToGroupRequest.cc new file mode 100644 index 000000000..0bab0b930 --- /dev/null +++ b/ram/src/model/AttachPolicyToGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/AttachPolicyToGroupResult.cc b/ram/src/model/AttachPolicyToGroupResult.cc new file mode 100644 index 000000000..3328abf70 --- /dev/null +++ b/ram/src/model/AttachPolicyToGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/AttachPolicyToRoleRequest.cc b/ram/src/model/AttachPolicyToRoleRequest.cc new file mode 100644 index 000000000..97a0c6164 --- /dev/null +++ b/ram/src/model/AttachPolicyToRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/AttachPolicyToRoleResult.cc b/ram/src/model/AttachPolicyToRoleResult.cc new file mode 100644 index 000000000..37bd496c5 --- /dev/null +++ b/ram/src/model/AttachPolicyToRoleResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/AttachPolicyToUserRequest.cc b/ram/src/model/AttachPolicyToUserRequest.cc new file mode 100644 index 000000000..cd3a915ee --- /dev/null +++ b/ram/src/model/AttachPolicyToUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/AttachPolicyToUserResult.cc b/ram/src/model/AttachPolicyToUserResult.cc new file mode 100644 index 000000000..ae5c55264 --- /dev/null +++ b/ram/src/model/AttachPolicyToUserResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/BindMFADeviceRequest.cc b/ram/src/model/BindMFADeviceRequest.cc new file mode 100644 index 000000000..fad603c12 --- /dev/null +++ b/ram/src/model/BindMFADeviceRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/BindMFADeviceResult.cc b/ram/src/model/BindMFADeviceResult.cc new file mode 100644 index 000000000..eade75847 --- /dev/null +++ b/ram/src/model/BindMFADeviceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/ChangePasswordRequest.cc b/ram/src/model/ChangePasswordRequest.cc new file mode 100644 index 000000000..bf16ccc2d --- /dev/null +++ b/ram/src/model/ChangePasswordRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ChangePasswordResult.cc b/ram/src/model/ChangePasswordResult.cc new file mode 100644 index 000000000..41f7f94d2 --- /dev/null +++ b/ram/src/model/ChangePasswordResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/ClearAccountAliasRequest.cc b/ram/src/model/ClearAccountAliasRequest.cc new file mode 100644 index 000000000..906bc0975 --- /dev/null +++ b/ram/src/model/ClearAccountAliasRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::ClearAccountAliasRequest; + +ClearAccountAliasRequest::ClearAccountAliasRequest() : + RpcServiceRequest("ram", "2015-05-01", "ClearAccountAlias") +{} + +ClearAccountAliasRequest::~ClearAccountAliasRequest() +{} + diff --git a/ram/src/model/ClearAccountAliasResult.cc b/ram/src/model/ClearAccountAliasResult.cc new file mode 100644 index 000000000..b19592daf --- /dev/null +++ b/ram/src/model/ClearAccountAliasResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/CreateAccessKeyRequest.cc b/ram/src/model/CreateAccessKeyRequest.cc new file mode 100644 index 000000000..3be7ddf01 --- /dev/null +++ b/ram/src/model/CreateAccessKeyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreateAccessKeyResult.cc b/ram/src/model/CreateAccessKeyResult.cc new file mode 100644 index 000000000..b531348fa --- /dev/null +++ b/ram/src/model/CreateAccessKeyResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreateGroupRequest.cc b/ram/src/model/CreateGroupRequest.cc new file mode 100644 index 000000000..6f345eadd --- /dev/null +++ b/ram/src/model/CreateGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreateGroupResult.cc b/ram/src/model/CreateGroupResult.cc new file mode 100644 index 000000000..ee0f52e0b --- /dev/null +++ b/ram/src/model/CreateGroupResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreateLoginProfileRequest.cc b/ram/src/model/CreateLoginProfileRequest.cc new file mode 100644 index 000000000..6f11678ae --- /dev/null +++ b/ram/src/model/CreateLoginProfileRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreateLoginProfileResult.cc b/ram/src/model/CreateLoginProfileResult.cc new file mode 100644 index 000000000..2bf6bbdd9 --- /dev/null +++ b/ram/src/model/CreateLoginProfileResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreatePolicyRequest.cc b/ram/src/model/CreatePolicyRequest.cc new file mode 100644 index 000000000..994f42c61 --- /dev/null +++ b/ram/src/model/CreatePolicyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreatePolicyResult.cc b/ram/src/model/CreatePolicyResult.cc new file mode 100644 index 000000000..0288cd98e --- /dev/null +++ b/ram/src/model/CreatePolicyResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreatePolicyVersionRequest.cc b/ram/src/model/CreatePolicyVersionRequest.cc new file mode 100644 index 000000000..202adb437 --- /dev/null +++ b/ram/src/model/CreatePolicyVersionRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreatePolicyVersionResult.cc b/ram/src/model/CreatePolicyVersionResult.cc new file mode 100644 index 000000000..5c02a4d71 --- /dev/null +++ b/ram/src/model/CreatePolicyVersionResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreateRoleRequest.cc b/ram/src/model/CreateRoleRequest.cc new file mode 100644 index 000000000..1aa3d997c --- /dev/null +++ b/ram/src/model/CreateRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreateRoleResult.cc b/ram/src/model/CreateRoleResult.cc new file mode 100644 index 000000000..4d724e121 --- /dev/null +++ b/ram/src/model/CreateRoleResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreateUserRequest.cc b/ram/src/model/CreateUserRequest.cc new file mode 100644 index 000000000..05a08b3df --- /dev/null +++ b/ram/src/model/CreateUserRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/ram/src/model/CreateUserResult.cc b/ram/src/model/CreateUserResult.cc new file mode 100644 index 000000000..de2500bd5 --- /dev/null +++ b/ram/src/model/CreateUserResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/CreateVirtualMFADeviceRequest.cc b/ram/src/model/CreateVirtualMFADeviceRequest.cc new file mode 100644 index 000000000..26a456bd1 --- /dev/null +++ b/ram/src/model/CreateVirtualMFADeviceRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/CreateVirtualMFADeviceResult.cc b/ram/src/model/CreateVirtualMFADeviceResult.cc new file mode 100644 index 000000000..278caf366 --- /dev/null +++ b/ram/src/model/CreateVirtualMFADeviceResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/DeleteAccessKeyRequest.cc b/ram/src/model/DeleteAccessKeyRequest.cc new file mode 100644 index 000000000..98ed10083 --- /dev/null +++ b/ram/src/model/DeleteAccessKeyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteAccessKeyResult.cc b/ram/src/model/DeleteAccessKeyResult.cc new file mode 100644 index 000000000..879e19066 --- /dev/null +++ b/ram/src/model/DeleteAccessKeyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeleteGroupRequest.cc b/ram/src/model/DeleteGroupRequest.cc new file mode 100644 index 000000000..643847159 --- /dev/null +++ b/ram/src/model/DeleteGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteGroupResult.cc b/ram/src/model/DeleteGroupResult.cc new file mode 100644 index 000000000..840d560f7 --- /dev/null +++ b/ram/src/model/DeleteGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeleteLoginProfileRequest.cc b/ram/src/model/DeleteLoginProfileRequest.cc new file mode 100644 index 000000000..1588ee519 --- /dev/null +++ b/ram/src/model/DeleteLoginProfileRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteLoginProfileResult.cc b/ram/src/model/DeleteLoginProfileResult.cc new file mode 100644 index 000000000..76b905d14 --- /dev/null +++ b/ram/src/model/DeleteLoginProfileResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeletePolicyRequest.cc b/ram/src/model/DeletePolicyRequest.cc new file mode 100644 index 000000000..fc5b98cde --- /dev/null +++ b/ram/src/model/DeletePolicyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeletePolicyResult.cc b/ram/src/model/DeletePolicyResult.cc new file mode 100644 index 000000000..dd8274b30 --- /dev/null +++ b/ram/src/model/DeletePolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeletePolicyVersionRequest.cc b/ram/src/model/DeletePolicyVersionRequest.cc new file mode 100644 index 000000000..1ea3b7ba0 --- /dev/null +++ b/ram/src/model/DeletePolicyVersionRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeletePolicyVersionResult.cc b/ram/src/model/DeletePolicyVersionResult.cc new file mode 100644 index 000000000..55cf2cc8e --- /dev/null +++ b/ram/src/model/DeletePolicyVersionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeletePublicKeyRequest.cc b/ram/src/model/DeletePublicKeyRequest.cc new file mode 100644 index 000000000..6c4e42213 --- /dev/null +++ b/ram/src/model/DeletePublicKeyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeletePublicKeyResult.cc b/ram/src/model/DeletePublicKeyResult.cc new file mode 100644 index 000000000..7844a61c6 --- /dev/null +++ b/ram/src/model/DeletePublicKeyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeleteRoleRequest.cc b/ram/src/model/DeleteRoleRequest.cc new file mode 100644 index 000000000..a0b838e59 --- /dev/null +++ b/ram/src/model/DeleteRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteRoleResult.cc b/ram/src/model/DeleteRoleResult.cc new file mode 100644 index 000000000..96c34a01f --- /dev/null +++ b/ram/src/model/DeleteRoleResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeleteUserRequest.cc b/ram/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..f6ec00854 --- /dev/null +++ b/ram/src/model/DeleteUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteUserResult.cc b/ram/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..1f7caf385 --- /dev/null +++ b/ram/src/model/DeleteUserResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DeleteVirtualMFADeviceRequest.cc b/ram/src/model/DeleteVirtualMFADeviceRequest.cc new file mode 100644 index 000000000..40376fad2 --- /dev/null +++ b/ram/src/model/DeleteVirtualMFADeviceRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DeleteVirtualMFADeviceResult.cc b/ram/src/model/DeleteVirtualMFADeviceResult.cc new file mode 100644 index 000000000..44944e9e0 --- /dev/null +++ b/ram/src/model/DeleteVirtualMFADeviceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DetachPolicyFromGroupRequest.cc b/ram/src/model/DetachPolicyFromGroupRequest.cc new file mode 100644 index 000000000..0f1becae0 --- /dev/null +++ b/ram/src/model/DetachPolicyFromGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DetachPolicyFromGroupResult.cc b/ram/src/model/DetachPolicyFromGroupResult.cc new file mode 100644 index 000000000..9b572596a --- /dev/null +++ b/ram/src/model/DetachPolicyFromGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DetachPolicyFromRoleRequest.cc b/ram/src/model/DetachPolicyFromRoleRequest.cc new file mode 100644 index 000000000..cecf767ff --- /dev/null +++ b/ram/src/model/DetachPolicyFromRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DetachPolicyFromRoleResult.cc b/ram/src/model/DetachPolicyFromRoleResult.cc new file mode 100644 index 000000000..3430a24cd --- /dev/null +++ b/ram/src/model/DetachPolicyFromRoleResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/DetachPolicyFromUserRequest.cc b/ram/src/model/DetachPolicyFromUserRequest.cc new file mode 100644 index 000000000..036db47d4 --- /dev/null +++ b/ram/src/model/DetachPolicyFromUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/DetachPolicyFromUserResult.cc b/ram/src/model/DetachPolicyFromUserResult.cc new file mode 100644 index 000000000..6a548361a --- /dev/null +++ b/ram/src/model/DetachPolicyFromUserResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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()); + +} + diff --git a/ram/src/model/GetAccessKeyLastUsedRequest.cc b/ram/src/model/GetAccessKeyLastUsedRequest.cc new file mode 100644 index 000000000..a1f6e0e59 --- /dev/null +++ b/ram/src/model/GetAccessKeyLastUsedRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetAccessKeyLastUsedResult.cc b/ram/src/model/GetAccessKeyLastUsedResult.cc new file mode 100644 index 000000000..b476cf081 --- /dev/null +++ b/ram/src/model/GetAccessKeyLastUsedResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetAccountAliasRequest.cc b/ram/src/model/GetAccountAliasRequest.cc new file mode 100644 index 000000000..607490ddc --- /dev/null +++ b/ram/src/model/GetAccountAliasRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::GetAccountAliasRequest; + +GetAccountAliasRequest::GetAccountAliasRequest() : + RpcServiceRequest("ram", "2015-05-01", "GetAccountAlias") +{} + +GetAccountAliasRequest::~GetAccountAliasRequest() +{} + diff --git a/ram/src/model/GetAccountAliasResult.cc b/ram/src/model/GetAccountAliasResult.cc new file mode 100644 index 000000000..c9e68ae83 --- /dev/null +++ b/ram/src/model/GetAccountAliasResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetGroupRequest.cc b/ram/src/model/GetGroupRequest.cc new file mode 100644 index 000000000..05f6a7946 --- /dev/null +++ b/ram/src/model/GetGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetGroupResult.cc b/ram/src/model/GetGroupResult.cc new file mode 100644 index 000000000..282e3b066 --- /dev/null +++ b/ram/src/model/GetGroupResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetLoginProfileRequest.cc b/ram/src/model/GetLoginProfileRequest.cc new file mode 100644 index 000000000..3d412c989 --- /dev/null +++ b/ram/src/model/GetLoginProfileRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetLoginProfileResult.cc b/ram/src/model/GetLoginProfileResult.cc new file mode 100644 index 000000000..79f5cf0ea --- /dev/null +++ b/ram/src/model/GetLoginProfileResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetPasswordPolicyRequest.cc b/ram/src/model/GetPasswordPolicyRequest.cc new file mode 100644 index 000000000..25720d8cc --- /dev/null +++ b/ram/src/model/GetPasswordPolicyRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::GetPasswordPolicyRequest; + +GetPasswordPolicyRequest::GetPasswordPolicyRequest() : + RpcServiceRequest("ram", "2015-05-01", "GetPasswordPolicy") +{} + +GetPasswordPolicyRequest::~GetPasswordPolicyRequest() +{} + diff --git a/ram/src/model/GetPasswordPolicyResult.cc b/ram/src/model/GetPasswordPolicyResult.cc new file mode 100644 index 000000000..096132041 --- /dev/null +++ b/ram/src/model/GetPasswordPolicyResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetPolicyRequest.cc b/ram/src/model/GetPolicyRequest.cc new file mode 100644 index 000000000..a82252070 --- /dev/null +++ b/ram/src/model/GetPolicyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetPolicyResult.cc b/ram/src/model/GetPolicyResult.cc new file mode 100644 index 000000000..eb71c7393 --- /dev/null +++ b/ram/src/model/GetPolicyResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetPolicyVersionRequest.cc b/ram/src/model/GetPolicyVersionRequest.cc new file mode 100644 index 000000000..fcaa5b7e3 --- /dev/null +++ b/ram/src/model/GetPolicyVersionRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetPolicyVersionResult.cc b/ram/src/model/GetPolicyVersionResult.cc new file mode 100644 index 000000000..7e22fa98c --- /dev/null +++ b/ram/src/model/GetPolicyVersionResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetPublicKeyRequest.cc b/ram/src/model/GetPublicKeyRequest.cc new file mode 100644 index 000000000..ae7d17933 --- /dev/null +++ b/ram/src/model/GetPublicKeyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetPublicKeyResult.cc b/ram/src/model/GetPublicKeyResult.cc new file mode 100644 index 000000000..468f14087 --- /dev/null +++ b/ram/src/model/GetPublicKeyResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetRoleRequest.cc b/ram/src/model/GetRoleRequest.cc new file mode 100644 index 000000000..697a34372 --- /dev/null +++ b/ram/src/model/GetRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetRoleResult.cc b/ram/src/model/GetRoleResult.cc new file mode 100644 index 000000000..f3261335c --- /dev/null +++ b/ram/src/model/GetRoleResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetSecurityPreferenceRequest.cc b/ram/src/model/GetSecurityPreferenceRequest.cc new file mode 100644 index 000000000..ff77aa547 --- /dev/null +++ b/ram/src/model/GetSecurityPreferenceRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::GetSecurityPreferenceRequest; + +GetSecurityPreferenceRequest::GetSecurityPreferenceRequest() : + RpcServiceRequest("ram", "2015-05-01", "GetSecurityPreference") +{} + +GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest() +{} + diff --git a/ram/src/model/GetSecurityPreferenceResult.cc b/ram/src/model/GetSecurityPreferenceResult.cc new file mode 100644 index 000000000..115f35f95 --- /dev/null +++ b/ram/src/model/GetSecurityPreferenceResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetUserMFAInfoRequest.cc b/ram/src/model/GetUserMFAInfoRequest.cc new file mode 100644 index 000000000..342ffdd47 --- /dev/null +++ b/ram/src/model/GetUserMFAInfoRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetUserMFAInfoResult.cc b/ram/src/model/GetUserMFAInfoResult.cc new file mode 100644 index 000000000..48e2074c1 --- /dev/null +++ b/ram/src/model/GetUserMFAInfoResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/GetUserRequest.cc b/ram/src/model/GetUserRequest.cc new file mode 100644 index 000000000..a1378d19f --- /dev/null +++ b/ram/src/model/GetUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/GetUserResult.cc b/ram/src/model/GetUserResult.cc new file mode 100644 index 000000000..e83406d3c --- /dev/null +++ b/ram/src/model/GetUserResult.cc @@ -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 +#include + +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_; +} + diff --git a/ram/src/model/ListAccessKeysRequest.cc b/ram/src/model/ListAccessKeysRequest.cc new file mode 100644 index 000000000..cee9132d6 --- /dev/null +++ b/ram/src/model/ListAccessKeysRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListAccessKeysResult.cc b/ram/src/model/ListAccessKeysResult.cc new file mode 100644 index 000000000..08e1130ba --- /dev/null +++ b/ram/src/model/ListAccessKeysResult.cc @@ -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 +#include + +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::getAccessKeys()const +{ + return accessKeys_; +} + diff --git a/ram/src/model/ListEntitiesForPolicyRequest.cc b/ram/src/model/ListEntitiesForPolicyRequest.cc new file mode 100644 index 000000000..07d92f89a --- /dev/null +++ b/ram/src/model/ListEntitiesForPolicyRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListEntitiesForPolicyResult.cc b/ram/src/model/ListEntitiesForPolicyResult.cc new file mode 100644 index 000000000..967e5332a --- /dev/null +++ b/ram/src/model/ListEntitiesForPolicyResult.cc @@ -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 +#include + +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::getGroups()const +{ + return groups_; +} + +std::vector ListEntitiesForPolicyResult::getRoles()const +{ + return roles_; +} + +std::vector ListEntitiesForPolicyResult::getUsers()const +{ + return users_; +} + diff --git a/ram/src/model/ListGroupsForUserRequest.cc b/ram/src/model/ListGroupsForUserRequest.cc new file mode 100644 index 000000000..6fafb0499 --- /dev/null +++ b/ram/src/model/ListGroupsForUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListGroupsForUserResult.cc b/ram/src/model/ListGroupsForUserResult.cc new file mode 100644 index 000000000..afdc8d95e --- /dev/null +++ b/ram/src/model/ListGroupsForUserResult.cc @@ -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 +#include + +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::getGroups()const +{ + return groups_; +} + diff --git a/ram/src/model/ListGroupsRequest.cc b/ram/src/model/ListGroupsRequest.cc new file mode 100644 index 000000000..f85f0bb3b --- /dev/null +++ b/ram/src/model/ListGroupsRequest.cc @@ -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 + +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)); +} + diff --git a/ram/src/model/ListGroupsResult.cc b/ram/src/model/ListGroupsResult.cc new file mode 100644 index 000000000..45552b801 --- /dev/null +++ b/ram/src/model/ListGroupsResult.cc @@ -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 +#include + +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::getGroups()const +{ + return groups_; +} + +bool ListGroupsResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListGroupsResult::getMarker()const +{ + return marker_; +} + diff --git a/ram/src/model/ListPoliciesForGroupRequest.cc b/ram/src/model/ListPoliciesForGroupRequest.cc new file mode 100644 index 000000000..8b07ac491 --- /dev/null +++ b/ram/src/model/ListPoliciesForGroupRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListPoliciesForGroupResult.cc b/ram/src/model/ListPoliciesForGroupResult.cc new file mode 100644 index 000000000..1feef8cf1 --- /dev/null +++ b/ram/src/model/ListPoliciesForGroupResult.cc @@ -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 +#include + +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::getPolicies()const +{ + return policies_; +} + diff --git a/ram/src/model/ListPoliciesForRoleRequest.cc b/ram/src/model/ListPoliciesForRoleRequest.cc new file mode 100644 index 000000000..3e2138bfa --- /dev/null +++ b/ram/src/model/ListPoliciesForRoleRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListPoliciesForRoleResult.cc b/ram/src/model/ListPoliciesForRoleResult.cc new file mode 100644 index 000000000..160c1169e --- /dev/null +++ b/ram/src/model/ListPoliciesForRoleResult.cc @@ -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 +#include + +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::getPolicies()const +{ + return policies_; +} + diff --git a/ram/src/model/ListPoliciesForUserRequest.cc b/ram/src/model/ListPoliciesForUserRequest.cc new file mode 100644 index 000000000..ec14f12f3 --- /dev/null +++ b/ram/src/model/ListPoliciesForUserRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListPoliciesForUserResult.cc b/ram/src/model/ListPoliciesForUserResult.cc new file mode 100644 index 000000000..3c5d3fd2e --- /dev/null +++ b/ram/src/model/ListPoliciesForUserResult.cc @@ -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 +#include + +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::getPolicies()const +{ + return policies_; +} + diff --git a/ram/src/model/ListPoliciesRequest.cc b/ram/src/model/ListPoliciesRequest.cc new file mode 100644 index 000000000..704f91f50 --- /dev/null +++ b/ram/src/model/ListPoliciesRequest.cc @@ -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 + +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)); +} + diff --git a/ram/src/model/ListPoliciesResult.cc b/ram/src/model/ListPoliciesResult.cc new file mode 100644 index 000000000..1d85cf9da --- /dev/null +++ b/ram/src/model/ListPoliciesResult.cc @@ -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 +#include + +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::getPolicies()const +{ + return policies_; +} + +bool ListPoliciesResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListPoliciesResult::getMarker()const +{ + return marker_; +} + diff --git a/ram/src/model/ListPolicyVersionsRequest.cc b/ram/src/model/ListPolicyVersionsRequest.cc new file mode 100644 index 000000000..99e55cb99 --- /dev/null +++ b/ram/src/model/ListPolicyVersionsRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListPolicyVersionsResult.cc b/ram/src/model/ListPolicyVersionsResult.cc new file mode 100644 index 000000000..aaf1bcbcc --- /dev/null +++ b/ram/src/model/ListPolicyVersionsResult.cc @@ -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 +#include + +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::getPolicyVersions()const +{ + return policyVersions_; +} + diff --git a/ram/src/model/ListPublicKeysRequest.cc b/ram/src/model/ListPublicKeysRequest.cc new file mode 100644 index 000000000..374703840 --- /dev/null +++ b/ram/src/model/ListPublicKeysRequest.cc @@ -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 + +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); +} + diff --git a/ram/src/model/ListPublicKeysResult.cc b/ram/src/model/ListPublicKeysResult.cc new file mode 100644 index 000000000..95a8ecf4f --- /dev/null +++ b/ram/src/model/ListPublicKeysResult.cc @@ -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 +#include + +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::getPublicKeys()const +{ + return publicKeys_; +} + diff --git a/ram/src/model/ListRolesRequest.cc b/ram/src/model/ListRolesRequest.cc new file mode 100644 index 000000000..142b732f6 --- /dev/null +++ b/ram/src/model/ListRolesRequest.cc @@ -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 + +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)); +} + diff --git a/ram/src/model/ListRolesResult.cc b/ram/src/model/ListRolesResult.cc new file mode 100644 index 000000000..7719f513d --- /dev/null +++ b/ram/src/model/ListRolesResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +ListRolesResult::ListRolesResult() : + ServiceResult() +{} + +ListRolesResult::ListRolesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRolesResult::~ListRolesResult() +{} + +void ListRolesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + 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["CreateDate"].isNull()) + rolesObject.createDate = value["CreateDate"].asString(); + if(!value["UpdateDate"].isNull()) + rolesObject.updateDate = value["UpdateDate"].asString(); + roles_.push_back(rolesObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +std::vector ListRolesResult::getRoles()const +{ + return roles_; +} + +bool ListRolesResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListRolesResult::getMarker()const +{ + return marker_; +} + diff --git a/ram/src/model/ListUsersForGroupRequest.cc b/ram/src/model/ListUsersForGroupRequest.cc new file mode 100644 index 000000000..6ac07b1a2 --- /dev/null +++ b/ram/src/model/ListUsersForGroupRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::ListUsersForGroupRequest; + +ListUsersForGroupRequest::ListUsersForGroupRequest() : + RpcServiceRequest("ram", "2015-05-01", "ListUsersForGroup") +{} + +ListUsersForGroupRequest::~ListUsersForGroupRequest() +{} + +std::string ListUsersForGroupRequest::getMarker()const +{ + return marker_; +} + +void ListUsersForGroupRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +int ListUsersForGroupRequest::getMaxItems()const +{ + return maxItems_; +} + +void ListUsersForGroupRequest::setMaxItems(int maxItems) +{ + maxItems_ = maxItems; + setParameter("MaxItems", std::to_string(maxItems)); +} + +std::string ListUsersForGroupRequest::getGroupName()const +{ + return groupName_; +} + +void ListUsersForGroupRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/ram/src/model/ListUsersForGroupResult.cc b/ram/src/model/ListUsersForGroupResult.cc new file mode 100644 index 000000000..a34560077 --- /dev/null +++ b/ram/src/model/ListUsersForGroupResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +ListUsersForGroupResult::ListUsersForGroupResult() : + ServiceResult() +{} + +ListUsersForGroupResult::ListUsersForGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersForGroupResult::~ListUsersForGroupResult() +{} + +void ListUsersForGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUsers = value["Users"]["User"]; + for (auto value : allUsers) + { + User usersObject; + if(!value["UserName"].isNull()) + usersObject.userName = value["UserName"].asString(); + if(!value["DisplayName"].isNull()) + usersObject.displayName = value["DisplayName"].asString(); + if(!value["JoinDate"].isNull()) + usersObject.joinDate = value["JoinDate"].asString(); + users_.push_back(usersObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +bool ListUsersForGroupResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::vector ListUsersForGroupResult::getUsers()const +{ + return users_; +} + +std::string ListUsersForGroupResult::getMarker()const +{ + return marker_; +} + diff --git a/ram/src/model/ListUsersRequest.cc b/ram/src/model/ListUsersRequest.cc new file mode 100644 index 000000000..c1f3339fe --- /dev/null +++ b/ram/src/model/ListUsersRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() : + RpcServiceRequest("ram", "2015-05-01", "ListUsers") +{} + +ListUsersRequest::~ListUsersRequest() +{} + +std::string ListUsersRequest::getMarker()const +{ + return marker_; +} + +void ListUsersRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +int ListUsersRequest::getMaxItems()const +{ + return maxItems_; +} + +void ListUsersRequest::setMaxItems(int maxItems) +{ + maxItems_ = maxItems; + setParameter("MaxItems", std::to_string(maxItems)); +} + diff --git a/ram/src/model/ListUsersResult.cc b/ram/src/model/ListUsersResult.cc new file mode 100644 index 000000000..f461e112b --- /dev/null +++ b/ram/src/model/ListUsersResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +ListUsersResult::ListUsersResult() : + ServiceResult() +{} + +ListUsersResult::ListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersResult::~ListUsersResult() +{} + +void ListUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto 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["MobilePhone"].isNull()) + usersObject.mobilePhone = value["MobilePhone"].asString(); + if(!value["Email"].isNull()) + usersObject.email = value["Email"].asString(); + if(!value["Comments"].isNull()) + usersObject.comments = value["Comments"].asString(); + if(!value["CreateDate"].isNull()) + usersObject.createDate = value["CreateDate"].asString(); + if(!value["UpdateDate"].isNull()) + usersObject.updateDate = value["UpdateDate"].asString(); + users_.push_back(usersObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +bool ListUsersResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::vector ListUsersResult::getUsers()const +{ + return users_; +} + +std::string ListUsersResult::getMarker()const +{ + return marker_; +} + diff --git a/ram/src/model/ListVirtualMFADevicesRequest.cc b/ram/src/model/ListVirtualMFADevicesRequest.cc new file mode 100644 index 000000000..3952b08c3 --- /dev/null +++ b/ram/src/model/ListVirtualMFADevicesRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::ListVirtualMFADevicesRequest; + +ListVirtualMFADevicesRequest::ListVirtualMFADevicesRequest() : + RpcServiceRequest("ram", "2015-05-01", "ListVirtualMFADevices") +{} + +ListVirtualMFADevicesRequest::~ListVirtualMFADevicesRequest() +{} + diff --git a/ram/src/model/ListVirtualMFADevicesResult.cc b/ram/src/model/ListVirtualMFADevicesResult.cc new file mode 100644 index 000000000..8e676d2d4 --- /dev/null +++ b/ram/src/model/ListVirtualMFADevicesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +ListVirtualMFADevicesResult::ListVirtualMFADevicesResult() : + ServiceResult() +{} + +ListVirtualMFADevicesResult::ListVirtualMFADevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVirtualMFADevicesResult::~ListVirtualMFADevicesResult() +{} + +void ListVirtualMFADevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVirtualMFADevices = value["VirtualMFADevices"]["VirtualMFADevice"]; + for (auto value : allVirtualMFADevices) + { + VirtualMFADevice virtualMFADevicesObject; + if(!value["SerialNumber"].isNull()) + virtualMFADevicesObject.serialNumber = value["SerialNumber"].asString(); + if(!value["ActivateDate"].isNull()) + virtualMFADevicesObject.activateDate = value["ActivateDate"].asString(); + auto userNode = value["User"]; + if(!userNode["UserId"].isNull()) + virtualMFADevicesObject.user.userId = userNode["UserId"].asString(); + if(!userNode["UserName"].isNull()) + virtualMFADevicesObject.user.userName = userNode["UserName"].asString(); + if(!userNode["DisplayName"].isNull()) + virtualMFADevicesObject.user.displayName = userNode["DisplayName"].asString(); + virtualMFADevices_.push_back(virtualMFADevicesObject); + } + +} + +std::vector ListVirtualMFADevicesResult::getVirtualMFADevices()const +{ + return virtualMFADevices_; +} + diff --git a/ram/src/model/RemoveUserFromGroupRequest.cc b/ram/src/model/RemoveUserFromGroupRequest.cc new file mode 100644 index 000000000..813f922cd --- /dev/null +++ b/ram/src/model/RemoveUserFromGroupRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::RemoveUserFromGroupRequest; + +RemoveUserFromGroupRequest::RemoveUserFromGroupRequest() : + RpcServiceRequest("ram", "2015-05-01", "RemoveUserFromGroup") +{} + +RemoveUserFromGroupRequest::~RemoveUserFromGroupRequest() +{} + +std::string RemoveUserFromGroupRequest::getGroupName()const +{ + return groupName_; +} + +void RemoveUserFromGroupRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string RemoveUserFromGroupRequest::getUserName()const +{ + return userName_; +} + +void RemoveUserFromGroupRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/ram/src/model/RemoveUserFromGroupResult.cc b/ram/src/model/RemoveUserFromGroupResult.cc new file mode 100644 index 000000000..88e6a8858 --- /dev/null +++ b/ram/src/model/RemoveUserFromGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +RemoveUserFromGroupResult::RemoveUserFromGroupResult() : + ServiceResult() +{} + +RemoveUserFromGroupResult::RemoveUserFromGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUserFromGroupResult::~RemoveUserFromGroupResult() +{} + +void RemoveUserFromGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/SetAccountAliasRequest.cc b/ram/src/model/SetAccountAliasRequest.cc new file mode 100644 index 000000000..d807bdbe3 --- /dev/null +++ b/ram/src/model/SetAccountAliasRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::SetAccountAliasRequest; + +SetAccountAliasRequest::SetAccountAliasRequest() : + RpcServiceRequest("ram", "2015-05-01", "SetAccountAlias") +{} + +SetAccountAliasRequest::~SetAccountAliasRequest() +{} + +std::string SetAccountAliasRequest::getAccountAlias()const +{ + return accountAlias_; +} + +void SetAccountAliasRequest::setAccountAlias(const std::string& accountAlias) +{ + accountAlias_ = accountAlias; + setParameter("AccountAlias", accountAlias); +} + diff --git a/ram/src/model/SetAccountAliasResult.cc b/ram/src/model/SetAccountAliasResult.cc new file mode 100644 index 000000000..aa435106a --- /dev/null +++ b/ram/src/model/SetAccountAliasResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +SetAccountAliasResult::SetAccountAliasResult() : + ServiceResult() +{} + +SetAccountAliasResult::SetAccountAliasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAccountAliasResult::~SetAccountAliasResult() +{} + +void SetAccountAliasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/SetDefaultPolicyVersionRequest.cc b/ram/src/model/SetDefaultPolicyVersionRequest.cc new file mode 100644 index 000000000..623337a4f --- /dev/null +++ b/ram/src/model/SetDefaultPolicyVersionRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::SetDefaultPolicyVersionRequest; + +SetDefaultPolicyVersionRequest::SetDefaultPolicyVersionRequest() : + RpcServiceRequest("ram", "2015-05-01", "SetDefaultPolicyVersion") +{} + +SetDefaultPolicyVersionRequest::~SetDefaultPolicyVersionRequest() +{} + +std::string SetDefaultPolicyVersionRequest::getVersionId()const +{ + return versionId_; +} + +void SetDefaultPolicyVersionRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string SetDefaultPolicyVersionRequest::getPolicyName()const +{ + return policyName_; +} + +void SetDefaultPolicyVersionRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + diff --git a/ram/src/model/SetDefaultPolicyVersionResult.cc b/ram/src/model/SetDefaultPolicyVersionResult.cc new file mode 100644 index 000000000..413eef590 --- /dev/null +++ b/ram/src/model/SetDefaultPolicyVersionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +SetDefaultPolicyVersionResult::SetDefaultPolicyVersionResult() : + ServiceResult() +{} + +SetDefaultPolicyVersionResult::SetDefaultPolicyVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDefaultPolicyVersionResult::~SetDefaultPolicyVersionResult() +{} + +void SetDefaultPolicyVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/SetPasswordPolicyRequest.cc b/ram/src/model/SetPasswordPolicyRequest.cc new file mode 100644 index 000000000..735f58642 --- /dev/null +++ b/ram/src/model/SetPasswordPolicyRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ram::Model::SetPasswordPolicyRequest; + +SetPasswordPolicyRequest::SetPasswordPolicyRequest() : + RpcServiceRequest("ram", "2015-05-01", "SetPasswordPolicy") +{} + +SetPasswordPolicyRequest::~SetPasswordPolicyRequest() +{} + +bool SetPasswordPolicyRequest::getRequireNumbers()const +{ + return requireNumbers_; +} + +void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers) +{ + requireNumbers_ = requireNumbers; + setParameter("RequireNumbers", std::to_string(requireNumbers)); +} + +int SetPasswordPolicyRequest::getPasswordReusePrevention()const +{ + return passwordReusePrevention_; +} + +void SetPasswordPolicyRequest::setPasswordReusePrevention(int passwordReusePrevention) +{ + passwordReusePrevention_ = passwordReusePrevention; + setParameter("PasswordReusePrevention", std::to_string(passwordReusePrevention)); +} + +bool SetPasswordPolicyRequest::getRequireUppercaseCharacters()const +{ + return requireUppercaseCharacters_; +} + +void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUppercaseCharacters) +{ + requireUppercaseCharacters_ = requireUppercaseCharacters; + setParameter("RequireUppercaseCharacters", std::to_string(requireUppercaseCharacters)); +} + +int SetPasswordPolicyRequest::getMaxPasswordAge()const +{ + return maxPasswordAge_; +} + +void SetPasswordPolicyRequest::setMaxPasswordAge(int maxPasswordAge) +{ + maxPasswordAge_ = maxPasswordAge; + setParameter("MaxPasswordAge", std::to_string(maxPasswordAge)); +} + +int SetPasswordPolicyRequest::getMaxLoginAttemps()const +{ + return maxLoginAttemps_; +} + +void SetPasswordPolicyRequest::setMaxLoginAttemps(int maxLoginAttemps) +{ + maxLoginAttemps_ = maxLoginAttemps; + setParameter("MaxLoginAttemps", std::to_string(maxLoginAttemps)); +} + +bool SetPasswordPolicyRequest::getHardExpiry()const +{ + return hardExpiry_; +} + +void SetPasswordPolicyRequest::setHardExpiry(bool hardExpiry) +{ + hardExpiry_ = hardExpiry; + setParameter("HardExpiry", std::to_string(hardExpiry)); +} + +int SetPasswordPolicyRequest::getMinimumPasswordLength()const +{ + return minimumPasswordLength_; +} + +void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength) +{ + minimumPasswordLength_ = minimumPasswordLength; + setParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength)); +} + +bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const +{ + return requireLowercaseCharacters_; +} + +void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters) +{ + requireLowercaseCharacters_ = requireLowercaseCharacters; + setParameter("RequireLowercaseCharacters", std::to_string(requireLowercaseCharacters)); +} + +bool SetPasswordPolicyRequest::getRequireSymbols()const +{ + return requireSymbols_; +} + +void SetPasswordPolicyRequest::setRequireSymbols(bool requireSymbols) +{ + requireSymbols_ = requireSymbols; + setParameter("RequireSymbols", std::to_string(requireSymbols)); +} + diff --git a/ram/src/model/SetPasswordPolicyResult.cc b/ram/src/model/SetPasswordPolicyResult.cc new file mode 100644 index 000000000..6f0f4c356 --- /dev/null +++ b/ram/src/model/SetPasswordPolicyResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +SetPasswordPolicyResult::SetPasswordPolicyResult() : + ServiceResult() +{} + +SetPasswordPolicyResult::SetPasswordPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetPasswordPolicyResult::~SetPasswordPolicyResult() +{} + +void SetPasswordPolicyResult::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()); + +} + +SetPasswordPolicyResult::PasswordPolicy SetPasswordPolicyResult::getPasswordPolicy()const +{ + return passwordPolicy_; +} + diff --git a/ram/src/model/SetSecurityPreferenceRequest.cc b/ram/src/model/SetSecurityPreferenceRequest.cc new file mode 100644 index 000000000..fa710c688 --- /dev/null +++ b/ram/src/model/SetSecurityPreferenceRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ram::Model::SetSecurityPreferenceRequest; + +SetSecurityPreferenceRequest::SetSecurityPreferenceRequest() : + RpcServiceRequest("ram", "2015-05-01", "SetSecurityPreference") +{} + +SetSecurityPreferenceRequest::~SetSecurityPreferenceRequest() +{} + +bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys()const +{ + return allowUserToManageAccessKeys_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys) +{ + allowUserToManageAccessKeys_ = allowUserToManageAccessKeys; + setParameter("AllowUserToManageAccessKeys", std::to_string(allowUserToManageAccessKeys)); +} + +bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const +{ + return allowUserToManageMFADevices_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices) +{ + allowUserToManageMFADevices_ = allowUserToManageMFADevices; + setParameter("AllowUserToManageMFADevices", std::to_string(allowUserToManageMFADevices)); +} + +bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const +{ + return allowUserToManagePublicKeys_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys) +{ + allowUserToManagePublicKeys_ = allowUserToManagePublicKeys; + setParameter("AllowUserToManagePublicKeys", std::to_string(allowUserToManagePublicKeys)); +} + +bool SetSecurityPreferenceRequest::getEnableSaveMFATicket()const +{ + return enableSaveMFATicket_; +} + +void SetSecurityPreferenceRequest::setEnableSaveMFATicket(bool enableSaveMFATicket) +{ + enableSaveMFATicket_ = enableSaveMFATicket; + setParameter("EnableSaveMFATicket", std::to_string(enableSaveMFATicket)); +} + +std::string SetSecurityPreferenceRequest::getLoginNetworkMasks()const +{ + return loginNetworkMasks_; +} + +void SetSecurityPreferenceRequest::setLoginNetworkMasks(const std::string& loginNetworkMasks) +{ + loginNetworkMasks_ = loginNetworkMasks; + setParameter("LoginNetworkMasks", loginNetworkMasks); +} + +bool SetSecurityPreferenceRequest::getAllowUserToChangePassword()const +{ + return allowUserToChangePassword_; +} + +void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserToChangePassword) +{ + allowUserToChangePassword_ = allowUserToChangePassword; + setParameter("AllowUserToChangePassword", std::to_string(allowUserToChangePassword)); +} + +int SetSecurityPreferenceRequest::getLoginSessionDuration()const +{ + return loginSessionDuration_; +} + +void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDuration) +{ + loginSessionDuration_ = loginSessionDuration; + setParameter("LoginSessionDuration", std::to_string(loginSessionDuration)); +} + diff --git a/ram/src/model/SetSecurityPreferenceResult.cc b/ram/src/model/SetSecurityPreferenceResult.cc new file mode 100644 index 000000000..18d942d91 --- /dev/null +++ b/ram/src/model/SetSecurityPreferenceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +SetSecurityPreferenceResult::SetSecurityPreferenceResult() : + ServiceResult() +{} + +SetSecurityPreferenceResult::SetSecurityPreferenceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSecurityPreferenceResult::~SetSecurityPreferenceResult() +{} + +void SetSecurityPreferenceResult::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"; + +} + +SetSecurityPreferenceResult::SecurityPreference SetSecurityPreferenceResult::getSecurityPreference()const +{ + return securityPreference_; +} + diff --git a/ram/src/model/UnbindMFADeviceRequest.cc b/ram/src/model/UnbindMFADeviceRequest.cc new file mode 100644 index 000000000..626ab50b4 --- /dev/null +++ b/ram/src/model/UnbindMFADeviceRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UnbindMFADeviceRequest; + +UnbindMFADeviceRequest::UnbindMFADeviceRequest() : + RpcServiceRequest("ram", "2015-05-01", "UnbindMFADevice") +{} + +UnbindMFADeviceRequest::~UnbindMFADeviceRequest() +{} + +std::string UnbindMFADeviceRequest::getUserName()const +{ + return userName_; +} + +void UnbindMFADeviceRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/ram/src/model/UnbindMFADeviceResult.cc b/ram/src/model/UnbindMFADeviceResult.cc new file mode 100644 index 000000000..c8ab48671 --- /dev/null +++ b/ram/src/model/UnbindMFADeviceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UnbindMFADeviceResult::UnbindMFADeviceResult() : + ServiceResult() +{} + +UnbindMFADeviceResult::UnbindMFADeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindMFADeviceResult::~UnbindMFADeviceResult() +{} + +void UnbindMFADeviceResult::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(); + +} + +UnbindMFADeviceResult::MFADevice UnbindMFADeviceResult::getMFADevice()const +{ + return mFADevice_; +} + diff --git a/ram/src/model/UpdateAccessKeyRequest.cc b/ram/src/model/UpdateAccessKeyRequest.cc new file mode 100644 index 000000000..bf728475b --- /dev/null +++ b/ram/src/model/UpdateAccessKeyRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UpdateAccessKeyRequest; + +UpdateAccessKeyRequest::UpdateAccessKeyRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdateAccessKey") +{} + +UpdateAccessKeyRequest::~UpdateAccessKeyRequest() +{} + +std::string UpdateAccessKeyRequest::getUserAccessKeyId()const +{ + return userAccessKeyId_; +} + +void UpdateAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId) +{ + userAccessKeyId_ = userAccessKeyId; + setParameter("UserAccessKeyId", userAccessKeyId); +} + +std::string UpdateAccessKeyRequest::getUserName()const +{ + return userName_; +} + +void UpdateAccessKeyRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + +std::string UpdateAccessKeyRequest::getStatus()const +{ + return status_; +} + +void UpdateAccessKeyRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ram/src/model/UpdateAccessKeyResult.cc b/ram/src/model/UpdateAccessKeyResult.cc new file mode 100644 index 000000000..c3ced3ca0 --- /dev/null +++ b/ram/src/model/UpdateAccessKeyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdateAccessKeyResult::UpdateAccessKeyResult() : + ServiceResult() +{} + +UpdateAccessKeyResult::UpdateAccessKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAccessKeyResult::~UpdateAccessKeyResult() +{} + +void UpdateAccessKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/UpdateGroupRequest.cc b/ram/src/model/UpdateGroupRequest.cc new file mode 100644 index 000000000..17eef1bc6 --- /dev/null +++ b/ram/src/model/UpdateGroupRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UpdateGroupRequest; + +UpdateGroupRequest::UpdateGroupRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdateGroup") +{} + +UpdateGroupRequest::~UpdateGroupRequest() +{} + +std::string UpdateGroupRequest::getNewGroupName()const +{ + return newGroupName_; +} + +void UpdateGroupRequest::setNewGroupName(const std::string& newGroupName) +{ + newGroupName_ = newGroupName; + setParameter("NewGroupName", newGroupName); +} + +std::string UpdateGroupRequest::getNewComments()const +{ + return newComments_; +} + +void UpdateGroupRequest::setNewComments(const std::string& newComments) +{ + newComments_ = newComments; + setParameter("NewComments", newComments); +} + +std::string UpdateGroupRequest::getGroupName()const +{ + return groupName_; +} + +void UpdateGroupRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/ram/src/model/UpdateGroupResult.cc b/ram/src/model/UpdateGroupResult.cc new file mode 100644 index 000000000..32d558def --- /dev/null +++ b/ram/src/model/UpdateGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdateGroupResult::UpdateGroupResult() : + ServiceResult() +{} + +UpdateGroupResult::UpdateGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGroupResult::~UpdateGroupResult() +{} + +void UpdateGroupResult::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(); + +} + +UpdateGroupResult::Group UpdateGroupResult::getGroup()const +{ + return group_; +} + diff --git a/ram/src/model/UpdateLoginProfileRequest.cc b/ram/src/model/UpdateLoginProfileRequest.cc new file mode 100644 index 000000000..663a43a54 --- /dev/null +++ b/ram/src/model/UpdateLoginProfileRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UpdateLoginProfileRequest; + +UpdateLoginProfileRequest::UpdateLoginProfileRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdateLoginProfile") +{} + +UpdateLoginProfileRequest::~UpdateLoginProfileRequest() +{} + +std::string UpdateLoginProfileRequest::getPassword()const +{ + return password_; +} + +void UpdateLoginProfileRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +bool UpdateLoginProfileRequest::getPasswordResetRequired()const +{ + return passwordResetRequired_; +} + +void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) +{ + passwordResetRequired_ = passwordResetRequired; + setParameter("PasswordResetRequired", std::to_string(passwordResetRequired)); +} + +bool UpdateLoginProfileRequest::getMFABindRequired()const +{ + return mFABindRequired_; +} + +void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) +{ + mFABindRequired_ = mFABindRequired; + setParameter("MFABindRequired", std::to_string(mFABindRequired)); +} + +std::string UpdateLoginProfileRequest::getUserName()const +{ + return userName_; +} + +void UpdateLoginProfileRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/ram/src/model/UpdateLoginProfileResult.cc b/ram/src/model/UpdateLoginProfileResult.cc new file mode 100644 index 000000000..2f13e037c --- /dev/null +++ b/ram/src/model/UpdateLoginProfileResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdateLoginProfileResult::UpdateLoginProfileResult() : + ServiceResult() +{} + +UpdateLoginProfileResult::UpdateLoginProfileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoginProfileResult::~UpdateLoginProfileResult() +{} + +void UpdateLoginProfileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/UpdatePublicKeyRequest.cc b/ram/src/model/UpdatePublicKeyRequest.cc new file mode 100644 index 000000000..569b39e6e --- /dev/null +++ b/ram/src/model/UpdatePublicKeyRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UpdatePublicKeyRequest; + +UpdatePublicKeyRequest::UpdatePublicKeyRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdatePublicKey") +{} + +UpdatePublicKeyRequest::~UpdatePublicKeyRequest() +{} + +std::string UpdatePublicKeyRequest::getUserPublicKeyId()const +{ + return userPublicKeyId_; +} + +void UpdatePublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId) +{ + userPublicKeyId_ = userPublicKeyId; + setParameter("UserPublicKeyId", userPublicKeyId); +} + +std::string UpdatePublicKeyRequest::getUserName()const +{ + return userName_; +} + +void UpdatePublicKeyRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + +std::string UpdatePublicKeyRequest::getStatus()const +{ + return status_; +} + +void UpdatePublicKeyRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ram/src/model/UpdatePublicKeyResult.cc b/ram/src/model/UpdatePublicKeyResult.cc new file mode 100644 index 000000000..cfb95bb28 --- /dev/null +++ b/ram/src/model/UpdatePublicKeyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdatePublicKeyResult::UpdatePublicKeyResult() : + ServiceResult() +{} + +UpdatePublicKeyResult::UpdatePublicKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePublicKeyResult::~UpdatePublicKeyResult() +{} + +void UpdatePublicKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ram/src/model/UpdateRoleRequest.cc b/ram/src/model/UpdateRoleRequest.cc new file mode 100644 index 000000000..b7820eb05 --- /dev/null +++ b/ram/src/model/UpdateRoleRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UpdateRoleRequest; + +UpdateRoleRequest::UpdateRoleRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdateRole") +{} + +UpdateRoleRequest::~UpdateRoleRequest() +{} + +std::string UpdateRoleRequest::getNewAssumeRolePolicyDocument()const +{ + return newAssumeRolePolicyDocument_; +} + +void UpdateRoleRequest::setNewAssumeRolePolicyDocument(const std::string& newAssumeRolePolicyDocument) +{ + newAssumeRolePolicyDocument_ = newAssumeRolePolicyDocument; + setParameter("NewAssumeRolePolicyDocument", newAssumeRolePolicyDocument); +} + +std::string UpdateRoleRequest::getRoleName()const +{ + return roleName_; +} + +void UpdateRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + diff --git a/ram/src/model/UpdateRoleResult.cc b/ram/src/model/UpdateRoleResult.cc new file mode 100644 index 000000000..11160a8ce --- /dev/null +++ b/ram/src/model/UpdateRoleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdateRoleResult::UpdateRoleResult() : + ServiceResult() +{} + +UpdateRoleResult::UpdateRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRoleResult::~UpdateRoleResult() +{} + +void UpdateRoleResult::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(); + +} + +UpdateRoleResult::Role UpdateRoleResult::getRole()const +{ + return role_; +} + diff --git a/ram/src/model/UpdateUserRequest.cc b/ram/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..25a5873ac --- /dev/null +++ b/ram/src/model/UpdateUserRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() : + RpcServiceRequest("ram", "2015-05-01", "UpdateUser") +{} + +UpdateUserRequest::~UpdateUserRequest() +{} + +std::string UpdateUserRequest::getNewUserName()const +{ + return newUserName_; +} + +void UpdateUserRequest::setNewUserName(const std::string& newUserName) +{ + newUserName_ = newUserName; + setParameter("NewUserName", newUserName); +} + +std::string UpdateUserRequest::getNewDisplayName()const +{ + return newDisplayName_; +} + +void UpdateUserRequest::setNewDisplayName(const std::string& newDisplayName) +{ + newDisplayName_ = newDisplayName; + setParameter("NewDisplayName", newDisplayName); +} + +std::string UpdateUserRequest::getNewMobilePhone()const +{ + return newMobilePhone_; +} + +void UpdateUserRequest::setNewMobilePhone(const std::string& newMobilePhone) +{ + newMobilePhone_ = newMobilePhone; + setParameter("NewMobilePhone", newMobilePhone); +} + +std::string UpdateUserRequest::getNewComments()const +{ + return newComments_; +} + +void UpdateUserRequest::setNewComments(const std::string& newComments) +{ + newComments_ = newComments; + setParameter("NewComments", newComments); +} + +std::string UpdateUserRequest::getNewEmail()const +{ + return newEmail_; +} + +void UpdateUserRequest::setNewEmail(const std::string& newEmail) +{ + newEmail_ = newEmail; + setParameter("NewEmail", newEmail); +} + +std::string UpdateUserRequest::getUserName()const +{ + return userName_; +} + +void UpdateUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/ram/src/model/UpdateUserResult.cc b/ram/src/model/UpdateUserResult.cc new file mode 100644 index 000000000..7bb3e896b --- /dev/null +++ b/ram/src/model/UpdateUserResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdateUserResult::UpdateUserResult() : + ServiceResult() +{} + +UpdateUserResult::UpdateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserResult::~UpdateUserResult() +{} + +void UpdateUserResult::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(); + +} + +UpdateUserResult::User UpdateUserResult::getUser()const +{ + return user_; +} + diff --git a/ram/src/model/UploadPublicKeyRequest.cc b/ram/src/model/UploadPublicKeyRequest.cc new file mode 100644 index 000000000..428530402 --- /dev/null +++ b/ram/src/model/UploadPublicKeyRequest.cc @@ -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 + +using AlibabaCloud::Ram::Model::UploadPublicKeyRequest; + +UploadPublicKeyRequest::UploadPublicKeyRequest() : + RpcServiceRequest("ram", "2015-05-01", "UploadPublicKey") +{} + +UploadPublicKeyRequest::~UploadPublicKeyRequest() +{} + +std::string UploadPublicKeyRequest::getPublicKeySpec()const +{ + return publicKeySpec_; +} + +void UploadPublicKeyRequest::setPublicKeySpec(const std::string& publicKeySpec) +{ + publicKeySpec_ = publicKeySpec; + setParameter("PublicKeySpec", publicKeySpec); +} + +std::string UploadPublicKeyRequest::getUserName()const +{ + return userName_; +} + +void UploadPublicKeyRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/ram/src/model/UploadPublicKeyResult.cc b/ram/src/model/UploadPublicKeyResult.cc new file mode 100644 index 000000000..7fc178d99 --- /dev/null +++ b/ram/src/model/UploadPublicKeyResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UploadPublicKeyResult::UploadPublicKeyResult() : + ServiceResult() +{} + +UploadPublicKeyResult::UploadPublicKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadPublicKeyResult::~UploadPublicKeyResult() +{} + +void UploadPublicKeyResult::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(); + +} + +UploadPublicKeyResult::PublicKey UploadPublicKeyResult::getPublicKey()const +{ + return publicKey_; +} +