diff --git a/VERSION b/VERSION index 2ac6eb775..c887b7e3d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2003 \ No newline at end of file +1.36.2004 \ No newline at end of file diff --git a/ims/CMakeLists.txt b/ims/CMakeLists.txt new file mode 100644 index 000000000..a7874db89 --- /dev/null +++ b/ims/CMakeLists.txt @@ -0,0 +1,374 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(ims_public_header + include/alibabacloud/ims/ImsClient.h + include/alibabacloud/ims/ImsExport.h ) + +set(ims_public_header_model + include/alibabacloud/ims/model/AddClientIdToOIDCProviderRequest.h + include/alibabacloud/ims/model/AddClientIdToOIDCProviderResult.h + include/alibabacloud/ims/model/AddFingerprintToOIDCProviderRequest.h + include/alibabacloud/ims/model/AddFingerprintToOIDCProviderResult.h + include/alibabacloud/ims/model/AddUserToGroupRequest.h + include/alibabacloud/ims/model/AddUserToGroupResult.h + include/alibabacloud/ims/model/BindMFADeviceRequest.h + include/alibabacloud/ims/model/BindMFADeviceResult.h + include/alibabacloud/ims/model/ChangePasswordRequest.h + include/alibabacloud/ims/model/ChangePasswordResult.h + include/alibabacloud/ims/model/CreateAccessKeyRequest.h + include/alibabacloud/ims/model/CreateAccessKeyResult.h + include/alibabacloud/ims/model/CreateAppSecretRequest.h + include/alibabacloud/ims/model/CreateAppSecretResult.h + include/alibabacloud/ims/model/CreateApplicationRequest.h + include/alibabacloud/ims/model/CreateApplicationResult.h + include/alibabacloud/ims/model/CreateGroupRequest.h + include/alibabacloud/ims/model/CreateGroupResult.h + include/alibabacloud/ims/model/CreateLoginProfileRequest.h + include/alibabacloud/ims/model/CreateLoginProfileResult.h + include/alibabacloud/ims/model/CreateOIDCProviderRequest.h + include/alibabacloud/ims/model/CreateOIDCProviderResult.h + include/alibabacloud/ims/model/CreateSAMLProviderRequest.h + include/alibabacloud/ims/model/CreateSAMLProviderResult.h + include/alibabacloud/ims/model/CreateUserRequest.h + include/alibabacloud/ims/model/CreateUserResult.h + include/alibabacloud/ims/model/CreateVirtualMFADeviceRequest.h + include/alibabacloud/ims/model/CreateVirtualMFADeviceResult.h + include/alibabacloud/ims/model/DeleteAccessKeyRequest.h + include/alibabacloud/ims/model/DeleteAccessKeyResult.h + include/alibabacloud/ims/model/DeleteAppSecretRequest.h + include/alibabacloud/ims/model/DeleteAppSecretResult.h + include/alibabacloud/ims/model/DeleteApplicationRequest.h + include/alibabacloud/ims/model/DeleteApplicationResult.h + include/alibabacloud/ims/model/DeleteGroupRequest.h + include/alibabacloud/ims/model/DeleteGroupResult.h + include/alibabacloud/ims/model/DeleteLoginProfileRequest.h + include/alibabacloud/ims/model/DeleteLoginProfileResult.h + include/alibabacloud/ims/model/DeleteOIDCProviderRequest.h + include/alibabacloud/ims/model/DeleteOIDCProviderResult.h + include/alibabacloud/ims/model/DeleteSAMLProviderRequest.h + include/alibabacloud/ims/model/DeleteSAMLProviderResult.h + include/alibabacloud/ims/model/DeleteUserRequest.h + include/alibabacloud/ims/model/DeleteUserResult.h + include/alibabacloud/ims/model/DeleteVirtualMFADeviceRequest.h + include/alibabacloud/ims/model/DeleteVirtualMFADeviceResult.h + include/alibabacloud/ims/model/DisableVirtualMFARequest.h + include/alibabacloud/ims/model/DisableVirtualMFAResult.h + include/alibabacloud/ims/model/GenerateCredentialReportRequest.h + include/alibabacloud/ims/model/GenerateCredentialReportResult.h + include/alibabacloud/ims/model/GetAccessKeyLastUsedRequest.h + include/alibabacloud/ims/model/GetAccessKeyLastUsedResult.h + include/alibabacloud/ims/model/GetAccountMFAInfoRequest.h + include/alibabacloud/ims/model/GetAccountMFAInfoResult.h + include/alibabacloud/ims/model/GetAccountSecurityPracticeReportRequest.h + include/alibabacloud/ims/model/GetAccountSecurityPracticeReportResult.h + include/alibabacloud/ims/model/GetAccountSummaryRequest.h + include/alibabacloud/ims/model/GetAccountSummaryResult.h + include/alibabacloud/ims/model/GetAppSecretRequest.h + include/alibabacloud/ims/model/GetAppSecretResult.h + include/alibabacloud/ims/model/GetApplicationRequest.h + include/alibabacloud/ims/model/GetApplicationResult.h + include/alibabacloud/ims/model/GetCredentialReportRequest.h + include/alibabacloud/ims/model/GetCredentialReportResult.h + include/alibabacloud/ims/model/GetDefaultDomainRequest.h + include/alibabacloud/ims/model/GetDefaultDomainResult.h + include/alibabacloud/ims/model/GetGroupRequest.h + include/alibabacloud/ims/model/GetGroupResult.h + include/alibabacloud/ims/model/GetLoginProfileRequest.h + include/alibabacloud/ims/model/GetLoginProfileResult.h + include/alibabacloud/ims/model/GetOIDCProviderRequest.h + include/alibabacloud/ims/model/GetOIDCProviderResult.h + include/alibabacloud/ims/model/GetPasswordPolicyRequest.h + include/alibabacloud/ims/model/GetPasswordPolicyResult.h + include/alibabacloud/ims/model/GetSAMLProviderRequest.h + include/alibabacloud/ims/model/GetSAMLProviderResult.h + include/alibabacloud/ims/model/GetSecurityPreferenceRequest.h + include/alibabacloud/ims/model/GetSecurityPreferenceResult.h + include/alibabacloud/ims/model/GetUserRequest.h + include/alibabacloud/ims/model/GetUserResult.h + include/alibabacloud/ims/model/GetUserMFAInfoRequest.h + include/alibabacloud/ims/model/GetUserMFAInfoResult.h + include/alibabacloud/ims/model/GetUserSsoSettingsRequest.h + include/alibabacloud/ims/model/GetUserSsoSettingsResult.h + include/alibabacloud/ims/model/GetVerificationInfoRequest.h + include/alibabacloud/ims/model/GetVerificationInfoResult.h + include/alibabacloud/ims/model/ListAccessKeysRequest.h + include/alibabacloud/ims/model/ListAccessKeysResult.h + include/alibabacloud/ims/model/ListAppSecretIdsRequest.h + include/alibabacloud/ims/model/ListAppSecretIdsResult.h + include/alibabacloud/ims/model/ListApplicationsRequest.h + include/alibabacloud/ims/model/ListApplicationsResult.h + include/alibabacloud/ims/model/ListGroupsRequest.h + include/alibabacloud/ims/model/ListGroupsResult.h + include/alibabacloud/ims/model/ListGroupsForUserRequest.h + include/alibabacloud/ims/model/ListGroupsForUserResult.h + include/alibabacloud/ims/model/ListOIDCProvidersRequest.h + include/alibabacloud/ims/model/ListOIDCProvidersResult.h + include/alibabacloud/ims/model/ListPredefinedScopesRequest.h + include/alibabacloud/ims/model/ListPredefinedScopesResult.h + include/alibabacloud/ims/model/ListSAMLProvidersRequest.h + include/alibabacloud/ims/model/ListSAMLProvidersResult.h + include/alibabacloud/ims/model/ListTagResourcesRequest.h + include/alibabacloud/ims/model/ListTagResourcesResult.h + include/alibabacloud/ims/model/ListUserBasicInfosRequest.h + include/alibabacloud/ims/model/ListUserBasicInfosResult.h + include/alibabacloud/ims/model/ListUsersRequest.h + include/alibabacloud/ims/model/ListUsersResult.h + include/alibabacloud/ims/model/ListUsersForGroupRequest.h + include/alibabacloud/ims/model/ListUsersForGroupResult.h + include/alibabacloud/ims/model/ListVirtualMFADevicesRequest.h + include/alibabacloud/ims/model/ListVirtualMFADevicesResult.h + include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderRequest.h + include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderResult.h + include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderRequest.h + include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderResult.h + include/alibabacloud/ims/model/RemoveUserFromGroupRequest.h + include/alibabacloud/ims/model/RemoveUserFromGroupResult.h + include/alibabacloud/ims/model/SetDefaultDomainRequest.h + include/alibabacloud/ims/model/SetDefaultDomainResult.h + include/alibabacloud/ims/model/SetPasswordPolicyRequest.h + include/alibabacloud/ims/model/SetPasswordPolicyResult.h + include/alibabacloud/ims/model/SetSecurityPreferenceRequest.h + include/alibabacloud/ims/model/SetSecurityPreferenceResult.h + include/alibabacloud/ims/model/SetUserSsoSettingsRequest.h + include/alibabacloud/ims/model/SetUserSsoSettingsResult.h + include/alibabacloud/ims/model/TagResourcesRequest.h + include/alibabacloud/ims/model/TagResourcesResult.h + include/alibabacloud/ims/model/UnbindMFADeviceRequest.h + include/alibabacloud/ims/model/UnbindMFADeviceResult.h + include/alibabacloud/ims/model/UntagResourcesRequest.h + include/alibabacloud/ims/model/UntagResourcesResult.h + include/alibabacloud/ims/model/UpdateAccessKeyRequest.h + include/alibabacloud/ims/model/UpdateAccessKeyResult.h + include/alibabacloud/ims/model/UpdateApplicationRequest.h + include/alibabacloud/ims/model/UpdateApplicationResult.h + include/alibabacloud/ims/model/UpdateGroupRequest.h + include/alibabacloud/ims/model/UpdateGroupResult.h + include/alibabacloud/ims/model/UpdateLoginProfileRequest.h + include/alibabacloud/ims/model/UpdateLoginProfileResult.h + include/alibabacloud/ims/model/UpdateOIDCProviderRequest.h + include/alibabacloud/ims/model/UpdateOIDCProviderResult.h + include/alibabacloud/ims/model/UpdateSAMLProviderRequest.h + include/alibabacloud/ims/model/UpdateSAMLProviderResult.h + include/alibabacloud/ims/model/UpdateUserRequest.h + include/alibabacloud/ims/model/UpdateUserResult.h ) + +set(ims_src + src/ImsClient.cc + src/model/AddClientIdToOIDCProviderRequest.cc + src/model/AddClientIdToOIDCProviderResult.cc + src/model/AddFingerprintToOIDCProviderRequest.cc + src/model/AddFingerprintToOIDCProviderResult.cc + src/model/AddUserToGroupRequest.cc + src/model/AddUserToGroupResult.cc + src/model/BindMFADeviceRequest.cc + src/model/BindMFADeviceResult.cc + src/model/ChangePasswordRequest.cc + src/model/ChangePasswordResult.cc + src/model/CreateAccessKeyRequest.cc + src/model/CreateAccessKeyResult.cc + src/model/CreateAppSecretRequest.cc + src/model/CreateAppSecretResult.cc + src/model/CreateApplicationRequest.cc + src/model/CreateApplicationResult.cc + src/model/CreateGroupRequest.cc + src/model/CreateGroupResult.cc + src/model/CreateLoginProfileRequest.cc + src/model/CreateLoginProfileResult.cc + src/model/CreateOIDCProviderRequest.cc + src/model/CreateOIDCProviderResult.cc + src/model/CreateSAMLProviderRequest.cc + src/model/CreateSAMLProviderResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/CreateVirtualMFADeviceRequest.cc + src/model/CreateVirtualMFADeviceResult.cc + src/model/DeleteAccessKeyRequest.cc + src/model/DeleteAccessKeyResult.cc + src/model/DeleteAppSecretRequest.cc + src/model/DeleteAppSecretResult.cc + src/model/DeleteApplicationRequest.cc + src/model/DeleteApplicationResult.cc + src/model/DeleteGroupRequest.cc + src/model/DeleteGroupResult.cc + src/model/DeleteLoginProfileRequest.cc + src/model/DeleteLoginProfileResult.cc + src/model/DeleteOIDCProviderRequest.cc + src/model/DeleteOIDCProviderResult.cc + src/model/DeleteSAMLProviderRequest.cc + src/model/DeleteSAMLProviderResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/DeleteVirtualMFADeviceRequest.cc + src/model/DeleteVirtualMFADeviceResult.cc + src/model/DisableVirtualMFARequest.cc + src/model/DisableVirtualMFAResult.cc + src/model/GenerateCredentialReportRequest.cc + src/model/GenerateCredentialReportResult.cc + src/model/GetAccessKeyLastUsedRequest.cc + src/model/GetAccessKeyLastUsedResult.cc + src/model/GetAccountMFAInfoRequest.cc + src/model/GetAccountMFAInfoResult.cc + src/model/GetAccountSecurityPracticeReportRequest.cc + src/model/GetAccountSecurityPracticeReportResult.cc + src/model/GetAccountSummaryRequest.cc + src/model/GetAccountSummaryResult.cc + src/model/GetAppSecretRequest.cc + src/model/GetAppSecretResult.cc + src/model/GetApplicationRequest.cc + src/model/GetApplicationResult.cc + src/model/GetCredentialReportRequest.cc + src/model/GetCredentialReportResult.cc + src/model/GetDefaultDomainRequest.cc + src/model/GetDefaultDomainResult.cc + src/model/GetGroupRequest.cc + src/model/GetGroupResult.cc + src/model/GetLoginProfileRequest.cc + src/model/GetLoginProfileResult.cc + src/model/GetOIDCProviderRequest.cc + src/model/GetOIDCProviderResult.cc + src/model/GetPasswordPolicyRequest.cc + src/model/GetPasswordPolicyResult.cc + src/model/GetSAMLProviderRequest.cc + src/model/GetSAMLProviderResult.cc + src/model/GetSecurityPreferenceRequest.cc + src/model/GetSecurityPreferenceResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/GetUserMFAInfoRequest.cc + src/model/GetUserMFAInfoResult.cc + src/model/GetUserSsoSettingsRequest.cc + src/model/GetUserSsoSettingsResult.cc + src/model/GetVerificationInfoRequest.cc + src/model/GetVerificationInfoResult.cc + src/model/ListAccessKeysRequest.cc + src/model/ListAccessKeysResult.cc + src/model/ListAppSecretIdsRequest.cc + src/model/ListAppSecretIdsResult.cc + src/model/ListApplicationsRequest.cc + src/model/ListApplicationsResult.cc + src/model/ListGroupsRequest.cc + src/model/ListGroupsResult.cc + src/model/ListGroupsForUserRequest.cc + src/model/ListGroupsForUserResult.cc + src/model/ListOIDCProvidersRequest.cc + src/model/ListOIDCProvidersResult.cc + src/model/ListPredefinedScopesRequest.cc + src/model/ListPredefinedScopesResult.cc + src/model/ListSAMLProvidersRequest.cc + src/model/ListSAMLProvidersResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ListUserBasicInfosRequest.cc + src/model/ListUserBasicInfosResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/ListUsersForGroupRequest.cc + src/model/ListUsersForGroupResult.cc + src/model/ListVirtualMFADevicesRequest.cc + src/model/ListVirtualMFADevicesResult.cc + src/model/RemoveClientIdFromOIDCProviderRequest.cc + src/model/RemoveClientIdFromOIDCProviderResult.cc + src/model/RemoveFingerprintFromOIDCProviderRequest.cc + src/model/RemoveFingerprintFromOIDCProviderResult.cc + src/model/RemoveUserFromGroupRequest.cc + src/model/RemoveUserFromGroupResult.cc + src/model/SetDefaultDomainRequest.cc + src/model/SetDefaultDomainResult.cc + src/model/SetPasswordPolicyRequest.cc + src/model/SetPasswordPolicyResult.cc + src/model/SetSecurityPreferenceRequest.cc + src/model/SetSecurityPreferenceResult.cc + src/model/SetUserSsoSettingsRequest.cc + src/model/SetUserSsoSettingsResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UnbindMFADeviceRequest.cc + src/model/UnbindMFADeviceResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateAccessKeyRequest.cc + src/model/UpdateAccessKeyResult.cc + src/model/UpdateApplicationRequest.cc + src/model/UpdateApplicationResult.cc + src/model/UpdateGroupRequest.cc + src/model/UpdateGroupResult.cc + src/model/UpdateLoginProfileRequest.cc + src/model/UpdateLoginProfileResult.cc + src/model/UpdateOIDCProviderRequest.cc + src/model/UpdateOIDCProviderResult.cc + src/model/UpdateSAMLProviderRequest.cc + src/model/UpdateSAMLProviderResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc ) + +add_library(ims ${LIB_TYPE} + ${ims_public_header} + ${ims_public_header_model} + ${ims_src}) + +set_target_properties(ims + 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}ims + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ims + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_IMS_LIBRARY) +endif() + +target_include_directories(ims + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ims + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ims + jsoncpp) + target_include_directories(ims + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ims + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ims + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ims + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ims + jsoncpp) +endif() + +install(FILES ${ims_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ims) +install(FILES ${ims_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ims/model) +install(TARGETS ims + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/ImsClient.h b/ims/include/alibabacloud/ims/ImsClient.h new file mode 100644 index 000000000..083010a23 --- /dev/null +++ b/ims/include/alibabacloud/ims/ImsClient.h @@ -0,0 +1,630 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_IMSCLIENT_H_ +#define ALIBABACLOUD_IMS_IMSCLIENT_H_ + +#include +#include +#include +#include +#include "ImsExport.h" +#include "model/AddClientIdToOIDCProviderRequest.h" +#include "model/AddClientIdToOIDCProviderResult.h" +#include "model/AddFingerprintToOIDCProviderRequest.h" +#include "model/AddFingerprintToOIDCProviderResult.h" +#include "model/AddUserToGroupRequest.h" +#include "model/AddUserToGroupResult.h" +#include "model/BindMFADeviceRequest.h" +#include "model/BindMFADeviceResult.h" +#include "model/ChangePasswordRequest.h" +#include "model/ChangePasswordResult.h" +#include "model/CreateAccessKeyRequest.h" +#include "model/CreateAccessKeyResult.h" +#include "model/CreateAppSecretRequest.h" +#include "model/CreateAppSecretResult.h" +#include "model/CreateApplicationRequest.h" +#include "model/CreateApplicationResult.h" +#include "model/CreateGroupRequest.h" +#include "model/CreateGroupResult.h" +#include "model/CreateLoginProfileRequest.h" +#include "model/CreateLoginProfileResult.h" +#include "model/CreateOIDCProviderRequest.h" +#include "model/CreateOIDCProviderResult.h" +#include "model/CreateSAMLProviderRequest.h" +#include "model/CreateSAMLProviderResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/CreateVirtualMFADeviceRequest.h" +#include "model/CreateVirtualMFADeviceResult.h" +#include "model/DeleteAccessKeyRequest.h" +#include "model/DeleteAccessKeyResult.h" +#include "model/DeleteAppSecretRequest.h" +#include "model/DeleteAppSecretResult.h" +#include "model/DeleteApplicationRequest.h" +#include "model/DeleteApplicationResult.h" +#include "model/DeleteGroupRequest.h" +#include "model/DeleteGroupResult.h" +#include "model/DeleteLoginProfileRequest.h" +#include "model/DeleteLoginProfileResult.h" +#include "model/DeleteOIDCProviderRequest.h" +#include "model/DeleteOIDCProviderResult.h" +#include "model/DeleteSAMLProviderRequest.h" +#include "model/DeleteSAMLProviderResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/DeleteVirtualMFADeviceRequest.h" +#include "model/DeleteVirtualMFADeviceResult.h" +#include "model/DisableVirtualMFARequest.h" +#include "model/DisableVirtualMFAResult.h" +#include "model/GenerateCredentialReportRequest.h" +#include "model/GenerateCredentialReportResult.h" +#include "model/GetAccessKeyLastUsedRequest.h" +#include "model/GetAccessKeyLastUsedResult.h" +#include "model/GetAccountMFAInfoRequest.h" +#include "model/GetAccountMFAInfoResult.h" +#include "model/GetAccountSecurityPracticeReportRequest.h" +#include "model/GetAccountSecurityPracticeReportResult.h" +#include "model/GetAccountSummaryRequest.h" +#include "model/GetAccountSummaryResult.h" +#include "model/GetAppSecretRequest.h" +#include "model/GetAppSecretResult.h" +#include "model/GetApplicationRequest.h" +#include "model/GetApplicationResult.h" +#include "model/GetCredentialReportRequest.h" +#include "model/GetCredentialReportResult.h" +#include "model/GetDefaultDomainRequest.h" +#include "model/GetDefaultDomainResult.h" +#include "model/GetGroupRequest.h" +#include "model/GetGroupResult.h" +#include "model/GetLoginProfileRequest.h" +#include "model/GetLoginProfileResult.h" +#include "model/GetOIDCProviderRequest.h" +#include "model/GetOIDCProviderResult.h" +#include "model/GetPasswordPolicyRequest.h" +#include "model/GetPasswordPolicyResult.h" +#include "model/GetSAMLProviderRequest.h" +#include "model/GetSAMLProviderResult.h" +#include "model/GetSecurityPreferenceRequest.h" +#include "model/GetSecurityPreferenceResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/GetUserMFAInfoRequest.h" +#include "model/GetUserMFAInfoResult.h" +#include "model/GetUserSsoSettingsRequest.h" +#include "model/GetUserSsoSettingsResult.h" +#include "model/GetVerificationInfoRequest.h" +#include "model/GetVerificationInfoResult.h" +#include "model/ListAccessKeysRequest.h" +#include "model/ListAccessKeysResult.h" +#include "model/ListAppSecretIdsRequest.h" +#include "model/ListAppSecretIdsResult.h" +#include "model/ListApplicationsRequest.h" +#include "model/ListApplicationsResult.h" +#include "model/ListGroupsRequest.h" +#include "model/ListGroupsResult.h" +#include "model/ListGroupsForUserRequest.h" +#include "model/ListGroupsForUserResult.h" +#include "model/ListOIDCProvidersRequest.h" +#include "model/ListOIDCProvidersResult.h" +#include "model/ListPredefinedScopesRequest.h" +#include "model/ListPredefinedScopesResult.h" +#include "model/ListSAMLProvidersRequest.h" +#include "model/ListSAMLProvidersResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ListUserBasicInfosRequest.h" +#include "model/ListUserBasicInfosResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/ListUsersForGroupRequest.h" +#include "model/ListUsersForGroupResult.h" +#include "model/ListVirtualMFADevicesRequest.h" +#include "model/ListVirtualMFADevicesResult.h" +#include "model/RemoveClientIdFromOIDCProviderRequest.h" +#include "model/RemoveClientIdFromOIDCProviderResult.h" +#include "model/RemoveFingerprintFromOIDCProviderRequest.h" +#include "model/RemoveFingerprintFromOIDCProviderResult.h" +#include "model/RemoveUserFromGroupRequest.h" +#include "model/RemoveUserFromGroupResult.h" +#include "model/SetDefaultDomainRequest.h" +#include "model/SetDefaultDomainResult.h" +#include "model/SetPasswordPolicyRequest.h" +#include "model/SetPasswordPolicyResult.h" +#include "model/SetSecurityPreferenceRequest.h" +#include "model/SetSecurityPreferenceResult.h" +#include "model/SetUserSsoSettingsRequest.h" +#include "model/SetUserSsoSettingsResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UnbindMFADeviceRequest.h" +#include "model/UnbindMFADeviceResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateAccessKeyRequest.h" +#include "model/UpdateAccessKeyResult.h" +#include "model/UpdateApplicationRequest.h" +#include "model/UpdateApplicationResult.h" +#include "model/UpdateGroupRequest.h" +#include "model/UpdateGroupResult.h" +#include "model/UpdateLoginProfileRequest.h" +#include "model/UpdateLoginProfileResult.h" +#include "model/UpdateOIDCProviderRequest.h" +#include "model/UpdateOIDCProviderResult.h" +#include "model/UpdateSAMLProviderRequest.h" +#include "model/UpdateSAMLProviderResult.h" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" + + +namespace AlibabaCloud +{ + namespace Ims + { + class ALIBABACLOUD_IMS_EXPORT ImsClient : public RpcServiceClient + { + public: + typedef Outcome AddClientIdToOIDCProviderOutcome; + typedef std::future AddClientIdToOIDCProviderOutcomeCallable; + typedef std::function&)> AddClientIdToOIDCProviderAsyncHandler; + typedef Outcome AddFingerprintToOIDCProviderOutcome; + typedef std::future AddFingerprintToOIDCProviderOutcomeCallable; + typedef std::function&)> AddFingerprintToOIDCProviderAsyncHandler; + typedef Outcome AddUserToGroupOutcome; + typedef std::future AddUserToGroupOutcomeCallable; + typedef std::function&)> AddUserToGroupAsyncHandler; + typedef Outcome BindMFADeviceOutcome; + typedef std::future BindMFADeviceOutcomeCallable; + typedef std::function&)> BindMFADeviceAsyncHandler; + typedef Outcome ChangePasswordOutcome; + typedef std::future ChangePasswordOutcomeCallable; + typedef std::function&)> ChangePasswordAsyncHandler; + typedef Outcome CreateAccessKeyOutcome; + typedef std::future CreateAccessKeyOutcomeCallable; + typedef std::function&)> CreateAccessKeyAsyncHandler; + typedef Outcome CreateAppSecretOutcome; + typedef std::future CreateAppSecretOutcomeCallable; + typedef std::function&)> CreateAppSecretAsyncHandler; + typedef Outcome CreateApplicationOutcome; + typedef std::future CreateApplicationOutcomeCallable; + typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateGroupOutcome; + typedef std::future CreateGroupOutcomeCallable; + typedef std::function&)> CreateGroupAsyncHandler; + typedef Outcome CreateLoginProfileOutcome; + typedef std::future CreateLoginProfileOutcomeCallable; + typedef std::function&)> CreateLoginProfileAsyncHandler; + typedef Outcome CreateOIDCProviderOutcome; + typedef std::future CreateOIDCProviderOutcomeCallable; + typedef std::function&)> CreateOIDCProviderAsyncHandler; + typedef Outcome CreateSAMLProviderOutcome; + typedef std::future CreateSAMLProviderOutcomeCallable; + typedef std::function&)> CreateSAMLProviderAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome CreateVirtualMFADeviceOutcome; + typedef std::future CreateVirtualMFADeviceOutcomeCallable; + typedef std::function&)> CreateVirtualMFADeviceAsyncHandler; + typedef Outcome DeleteAccessKeyOutcome; + typedef std::future DeleteAccessKeyOutcomeCallable; + typedef std::function&)> DeleteAccessKeyAsyncHandler; + typedef Outcome DeleteAppSecretOutcome; + typedef std::future DeleteAppSecretOutcomeCallable; + typedef std::function&)> DeleteAppSecretAsyncHandler; + typedef Outcome DeleteApplicationOutcome; + typedef std::future DeleteApplicationOutcomeCallable; + typedef std::function&)> DeleteApplicationAsyncHandler; + typedef Outcome DeleteGroupOutcome; + typedef std::future DeleteGroupOutcomeCallable; + typedef std::function&)> DeleteGroupAsyncHandler; + typedef Outcome DeleteLoginProfileOutcome; + typedef std::future DeleteLoginProfileOutcomeCallable; + typedef std::function&)> DeleteLoginProfileAsyncHandler; + typedef Outcome DeleteOIDCProviderOutcome; + typedef std::future DeleteOIDCProviderOutcomeCallable; + typedef std::function&)> DeleteOIDCProviderAsyncHandler; + typedef Outcome DeleteSAMLProviderOutcome; + typedef std::future DeleteSAMLProviderOutcomeCallable; + typedef std::function&)> DeleteSAMLProviderAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome DeleteVirtualMFADeviceOutcome; + typedef std::future DeleteVirtualMFADeviceOutcomeCallable; + typedef std::function&)> DeleteVirtualMFADeviceAsyncHandler; + typedef Outcome DisableVirtualMFAOutcome; + typedef std::future DisableVirtualMFAOutcomeCallable; + typedef std::function&)> DisableVirtualMFAAsyncHandler; + typedef Outcome GenerateCredentialReportOutcome; + typedef std::future GenerateCredentialReportOutcomeCallable; + typedef std::function&)> GenerateCredentialReportAsyncHandler; + typedef Outcome GetAccessKeyLastUsedOutcome; + typedef std::future GetAccessKeyLastUsedOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedAsyncHandler; + typedef Outcome GetAccountMFAInfoOutcome; + typedef std::future GetAccountMFAInfoOutcomeCallable; + typedef std::function&)> GetAccountMFAInfoAsyncHandler; + typedef Outcome GetAccountSecurityPracticeReportOutcome; + typedef std::future GetAccountSecurityPracticeReportOutcomeCallable; + typedef std::function&)> GetAccountSecurityPracticeReportAsyncHandler; + typedef Outcome GetAccountSummaryOutcome; + typedef std::future GetAccountSummaryOutcomeCallable; + typedef std::function&)> GetAccountSummaryAsyncHandler; + typedef Outcome GetAppSecretOutcome; + typedef std::future GetAppSecretOutcomeCallable; + typedef std::function&)> GetAppSecretAsyncHandler; + typedef Outcome GetApplicationOutcome; + typedef std::future GetApplicationOutcomeCallable; + typedef std::function&)> GetApplicationAsyncHandler; + typedef Outcome GetCredentialReportOutcome; + typedef std::future GetCredentialReportOutcomeCallable; + typedef std::function&)> GetCredentialReportAsyncHandler; + typedef Outcome GetDefaultDomainOutcome; + typedef std::future GetDefaultDomainOutcomeCallable; + typedef std::function&)> GetDefaultDomainAsyncHandler; + typedef Outcome GetGroupOutcome; + typedef std::future GetGroupOutcomeCallable; + typedef std::function&)> GetGroupAsyncHandler; + typedef Outcome GetLoginProfileOutcome; + typedef std::future GetLoginProfileOutcomeCallable; + typedef std::function&)> GetLoginProfileAsyncHandler; + typedef Outcome GetOIDCProviderOutcome; + typedef std::future GetOIDCProviderOutcomeCallable; + typedef std::function&)> GetOIDCProviderAsyncHandler; + typedef Outcome GetPasswordPolicyOutcome; + typedef std::future GetPasswordPolicyOutcomeCallable; + typedef std::function&)> GetPasswordPolicyAsyncHandler; + typedef Outcome GetSAMLProviderOutcome; + typedef std::future GetSAMLProviderOutcomeCallable; + typedef std::function&)> GetSAMLProviderAsyncHandler; + typedef Outcome GetSecurityPreferenceOutcome; + typedef std::future GetSecurityPreferenceOutcomeCallable; + typedef std::function&)> GetSecurityPreferenceAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetUserMFAInfoOutcome; + typedef std::future GetUserMFAInfoOutcomeCallable; + typedef std::function&)> GetUserMFAInfoAsyncHandler; + typedef Outcome GetUserSsoSettingsOutcome; + typedef std::future GetUserSsoSettingsOutcomeCallable; + typedef std::function&)> GetUserSsoSettingsAsyncHandler; + typedef Outcome GetVerificationInfoOutcome; + typedef std::future GetVerificationInfoOutcomeCallable; + typedef std::function&)> GetVerificationInfoAsyncHandler; + typedef Outcome ListAccessKeysOutcome; + typedef std::future ListAccessKeysOutcomeCallable; + typedef std::function&)> ListAccessKeysAsyncHandler; + typedef Outcome ListAppSecretIdsOutcome; + typedef std::future ListAppSecretIdsOutcomeCallable; + typedef std::function&)> ListAppSecretIdsAsyncHandler; + typedef Outcome ListApplicationsOutcome; + typedef std::future ListApplicationsOutcomeCallable; + typedef std::function&)> ListApplicationsAsyncHandler; + typedef Outcome ListGroupsOutcome; + typedef std::future ListGroupsOutcomeCallable; + typedef std::function&)> ListGroupsAsyncHandler; + typedef Outcome ListGroupsForUserOutcome; + typedef std::future ListGroupsForUserOutcomeCallable; + typedef std::function&)> ListGroupsForUserAsyncHandler; + typedef Outcome ListOIDCProvidersOutcome; + typedef std::future ListOIDCProvidersOutcomeCallable; + typedef std::function&)> ListOIDCProvidersAsyncHandler; + typedef Outcome ListPredefinedScopesOutcome; + typedef std::future ListPredefinedScopesOutcomeCallable; + typedef std::function&)> ListPredefinedScopesAsyncHandler; + typedef Outcome ListSAMLProvidersOutcome; + typedef std::future ListSAMLProvidersOutcomeCallable; + typedef std::function&)> ListSAMLProvidersAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListUserBasicInfosOutcome; + typedef std::future ListUserBasicInfosOutcomeCallable; + typedef std::function&)> ListUserBasicInfosAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ListUsersForGroupOutcome; + typedef std::future ListUsersForGroupOutcomeCallable; + typedef std::function&)> ListUsersForGroupAsyncHandler; + typedef Outcome ListVirtualMFADevicesOutcome; + typedef std::future ListVirtualMFADevicesOutcomeCallable; + typedef std::function&)> ListVirtualMFADevicesAsyncHandler; + typedef Outcome RemoveClientIdFromOIDCProviderOutcome; + typedef std::future RemoveClientIdFromOIDCProviderOutcomeCallable; + typedef std::function&)> RemoveClientIdFromOIDCProviderAsyncHandler; + typedef Outcome RemoveFingerprintFromOIDCProviderOutcome; + typedef std::future RemoveFingerprintFromOIDCProviderOutcomeCallable; + typedef std::function&)> RemoveFingerprintFromOIDCProviderAsyncHandler; + typedef Outcome RemoveUserFromGroupOutcome; + typedef std::future RemoveUserFromGroupOutcomeCallable; + typedef std::function&)> RemoveUserFromGroupAsyncHandler; + typedef Outcome SetDefaultDomainOutcome; + typedef std::future SetDefaultDomainOutcomeCallable; + typedef std::function&)> SetDefaultDomainAsyncHandler; + typedef Outcome SetPasswordPolicyOutcome; + typedef std::future SetPasswordPolicyOutcomeCallable; + typedef std::function&)> SetPasswordPolicyAsyncHandler; + typedef Outcome SetSecurityPreferenceOutcome; + typedef std::future SetSecurityPreferenceOutcomeCallable; + typedef std::function&)> SetSecurityPreferenceAsyncHandler; + typedef Outcome SetUserSsoSettingsOutcome; + typedef std::future SetUserSsoSettingsOutcomeCallable; + typedef std::function&)> SetUserSsoSettingsAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnbindMFADeviceOutcome; + typedef std::future UnbindMFADeviceOutcomeCallable; + typedef std::function&)> UnbindMFADeviceAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateAccessKeyOutcome; + typedef std::future UpdateAccessKeyOutcomeCallable; + typedef std::function&)> UpdateAccessKeyAsyncHandler; + typedef Outcome UpdateApplicationOutcome; + typedef std::future UpdateApplicationOutcomeCallable; + typedef std::function&)> UpdateApplicationAsyncHandler; + typedef Outcome UpdateGroupOutcome; + typedef std::future UpdateGroupOutcomeCallable; + typedef std::function&)> UpdateGroupAsyncHandler; + typedef Outcome UpdateLoginProfileOutcome; + typedef std::future UpdateLoginProfileOutcomeCallable; + typedef std::function&)> UpdateLoginProfileAsyncHandler; + typedef Outcome UpdateOIDCProviderOutcome; + typedef std::future UpdateOIDCProviderOutcomeCallable; + typedef std::function&)> UpdateOIDCProviderAsyncHandler; + typedef Outcome UpdateSAMLProviderOutcome; + typedef std::future UpdateSAMLProviderOutcomeCallable; + typedef std::function&)> UpdateSAMLProviderAsyncHandler; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; + + ImsClient(const Credentials &credentials, const ClientConfiguration &configuration); + ImsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ImsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ImsClient(); + AddClientIdToOIDCProviderOutcome addClientIdToOIDCProvider(const Model::AddClientIdToOIDCProviderRequest &request)const; + void addClientIdToOIDCProviderAsync(const Model::AddClientIdToOIDCProviderRequest& request, const AddClientIdToOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddClientIdToOIDCProviderOutcomeCallable addClientIdToOIDCProviderCallable(const Model::AddClientIdToOIDCProviderRequest& request) const; + AddFingerprintToOIDCProviderOutcome addFingerprintToOIDCProvider(const Model::AddFingerprintToOIDCProviderRequest &request)const; + void addFingerprintToOIDCProviderAsync(const Model::AddFingerprintToOIDCProviderRequest& request, const AddFingerprintToOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFingerprintToOIDCProviderOutcomeCallable addFingerprintToOIDCProviderCallable(const Model::AddFingerprintToOIDCProviderRequest& 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; + 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; + 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; + 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; + CreateAppSecretOutcome createAppSecret(const Model::CreateAppSecretRequest &request)const; + void createAppSecretAsync(const Model::CreateAppSecretRequest& request, const CreateAppSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppSecretOutcomeCallable createAppSecretCallable(const Model::CreateAppSecretRequest& request) const; + CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; + void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& 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; + 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; + CreateOIDCProviderOutcome createOIDCProvider(const Model::CreateOIDCProviderRequest &request)const; + void createOIDCProviderAsync(const Model::CreateOIDCProviderRequest& request, const CreateOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOIDCProviderOutcomeCallable createOIDCProviderCallable(const Model::CreateOIDCProviderRequest& request) const; + CreateSAMLProviderOutcome createSAMLProvider(const Model::CreateSAMLProviderRequest &request)const; + void createSAMLProviderAsync(const Model::CreateSAMLProviderRequest& request, const CreateSAMLProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSAMLProviderOutcomeCallable createSAMLProviderCallable(const Model::CreateSAMLProviderRequest& 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; + 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; + 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; + DeleteAppSecretOutcome deleteAppSecret(const Model::DeleteAppSecretRequest &request)const; + void deleteAppSecretAsync(const Model::DeleteAppSecretRequest& request, const DeleteAppSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppSecretOutcomeCallable deleteAppSecretCallable(const Model::DeleteAppSecretRequest& request) const; + DeleteApplicationOutcome deleteApplication(const Model::DeleteApplicationRequest &request)const; + void deleteApplicationAsync(const Model::DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationOutcomeCallable deleteApplicationCallable(const Model::DeleteApplicationRequest& 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; + 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; + DeleteOIDCProviderOutcome deleteOIDCProvider(const Model::DeleteOIDCProviderRequest &request)const; + void deleteOIDCProviderAsync(const Model::DeleteOIDCProviderRequest& request, const DeleteOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOIDCProviderOutcomeCallable deleteOIDCProviderCallable(const Model::DeleteOIDCProviderRequest& request) const; + DeleteSAMLProviderOutcome deleteSAMLProvider(const Model::DeleteSAMLProviderRequest &request)const; + void deleteSAMLProviderAsync(const Model::DeleteSAMLProviderRequest& request, const DeleteSAMLProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSAMLProviderOutcomeCallable deleteSAMLProviderCallable(const Model::DeleteSAMLProviderRequest& 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; + 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; + DisableVirtualMFAOutcome disableVirtualMFA(const Model::DisableVirtualMFARequest &request)const; + void disableVirtualMFAAsync(const Model::DisableVirtualMFARequest& request, const DisableVirtualMFAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableVirtualMFAOutcomeCallable disableVirtualMFACallable(const Model::DisableVirtualMFARequest& request) const; + GenerateCredentialReportOutcome generateCredentialReport(const Model::GenerateCredentialReportRequest &request)const; + void generateCredentialReportAsync(const Model::GenerateCredentialReportRequest& request, const GenerateCredentialReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateCredentialReportOutcomeCallable generateCredentialReportCallable(const Model::GenerateCredentialReportRequest& 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; + GetAccountMFAInfoOutcome getAccountMFAInfo(const Model::GetAccountMFAInfoRequest &request)const; + void getAccountMFAInfoAsync(const Model::GetAccountMFAInfoRequest& request, const GetAccountMFAInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountMFAInfoOutcomeCallable getAccountMFAInfoCallable(const Model::GetAccountMFAInfoRequest& request) const; + GetAccountSecurityPracticeReportOutcome getAccountSecurityPracticeReport(const Model::GetAccountSecurityPracticeReportRequest &request)const; + void getAccountSecurityPracticeReportAsync(const Model::GetAccountSecurityPracticeReportRequest& request, const GetAccountSecurityPracticeReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountSecurityPracticeReportOutcomeCallable getAccountSecurityPracticeReportCallable(const Model::GetAccountSecurityPracticeReportRequest& request) const; + GetAccountSummaryOutcome getAccountSummary(const Model::GetAccountSummaryRequest &request)const; + void getAccountSummaryAsync(const Model::GetAccountSummaryRequest& request, const GetAccountSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountSummaryOutcomeCallable getAccountSummaryCallable(const Model::GetAccountSummaryRequest& request) const; + GetAppSecretOutcome getAppSecret(const Model::GetAppSecretRequest &request)const; + void getAppSecretAsync(const Model::GetAppSecretRequest& request, const GetAppSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAppSecretOutcomeCallable getAppSecretCallable(const Model::GetAppSecretRequest& request) const; + GetApplicationOutcome getApplication(const Model::GetApplicationRequest &request)const; + void getApplicationAsync(const Model::GetApplicationRequest& request, const GetApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApplicationOutcomeCallable getApplicationCallable(const Model::GetApplicationRequest& request) const; + GetCredentialReportOutcome getCredentialReport(const Model::GetCredentialReportRequest &request)const; + void getCredentialReportAsync(const Model::GetCredentialReportRequest& request, const GetCredentialReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCredentialReportOutcomeCallable getCredentialReportCallable(const Model::GetCredentialReportRequest& request) const; + GetDefaultDomainOutcome getDefaultDomain(const Model::GetDefaultDomainRequest &request)const; + void getDefaultDomainAsync(const Model::GetDefaultDomainRequest& request, const GetDefaultDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDefaultDomainOutcomeCallable getDefaultDomainCallable(const Model::GetDefaultDomainRequest& 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; + 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; + GetOIDCProviderOutcome getOIDCProvider(const Model::GetOIDCProviderRequest &request)const; + void getOIDCProviderAsync(const Model::GetOIDCProviderRequest& request, const GetOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOIDCProviderOutcomeCallable getOIDCProviderCallable(const Model::GetOIDCProviderRequest& 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; + GetSAMLProviderOutcome getSAMLProvider(const Model::GetSAMLProviderRequest &request)const; + void getSAMLProviderAsync(const Model::GetSAMLProviderRequest& request, const GetSAMLProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSAMLProviderOutcomeCallable getSAMLProviderCallable(const Model::GetSAMLProviderRequest& 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; + 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; + 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; + GetUserSsoSettingsOutcome getUserSsoSettings(const Model::GetUserSsoSettingsRequest &request)const; + void getUserSsoSettingsAsync(const Model::GetUserSsoSettingsRequest& request, const GetUserSsoSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserSsoSettingsOutcomeCallable getUserSsoSettingsCallable(const Model::GetUserSsoSettingsRequest& request) const; + GetVerificationInfoOutcome getVerificationInfo(const Model::GetVerificationInfoRequest &request)const; + void getVerificationInfoAsync(const Model::GetVerificationInfoRequest& request, const GetVerificationInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVerificationInfoOutcomeCallable getVerificationInfoCallable(const Model::GetVerificationInfoRequest& 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; + ListAppSecretIdsOutcome listAppSecretIds(const Model::ListAppSecretIdsRequest &request)const; + void listAppSecretIdsAsync(const Model::ListAppSecretIdsRequest& request, const ListAppSecretIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppSecretIdsOutcomeCallable listAppSecretIdsCallable(const Model::ListAppSecretIdsRequest& request) const; + ListApplicationsOutcome listApplications(const Model::ListApplicationsRequest &request)const; + void listApplicationsAsync(const Model::ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationsOutcomeCallable listApplicationsCallable(const Model::ListApplicationsRequest& 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; + 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; + ListOIDCProvidersOutcome listOIDCProviders(const Model::ListOIDCProvidersRequest &request)const; + void listOIDCProvidersAsync(const Model::ListOIDCProvidersRequest& request, const ListOIDCProvidersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOIDCProvidersOutcomeCallable listOIDCProvidersCallable(const Model::ListOIDCProvidersRequest& request) const; + ListPredefinedScopesOutcome listPredefinedScopes(const Model::ListPredefinedScopesRequest &request)const; + void listPredefinedScopesAsync(const Model::ListPredefinedScopesRequest& request, const ListPredefinedScopesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPredefinedScopesOutcomeCallable listPredefinedScopesCallable(const Model::ListPredefinedScopesRequest& request) const; + ListSAMLProvidersOutcome listSAMLProviders(const Model::ListSAMLProvidersRequest &request)const; + void listSAMLProvidersAsync(const Model::ListSAMLProvidersRequest& request, const ListSAMLProvidersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSAMLProvidersOutcomeCallable listSAMLProvidersCallable(const Model::ListSAMLProvidersRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ListUserBasicInfosOutcome listUserBasicInfos(const Model::ListUserBasicInfosRequest &request)const; + void listUserBasicInfosAsync(const Model::ListUserBasicInfosRequest& request, const ListUserBasicInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserBasicInfosOutcomeCallable listUserBasicInfosCallable(const Model::ListUserBasicInfosRequest& 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; + 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; + 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; + RemoveClientIdFromOIDCProviderOutcome removeClientIdFromOIDCProvider(const Model::RemoveClientIdFromOIDCProviderRequest &request)const; + void removeClientIdFromOIDCProviderAsync(const Model::RemoveClientIdFromOIDCProviderRequest& request, const RemoveClientIdFromOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveClientIdFromOIDCProviderOutcomeCallable removeClientIdFromOIDCProviderCallable(const Model::RemoveClientIdFromOIDCProviderRequest& request) const; + RemoveFingerprintFromOIDCProviderOutcome removeFingerprintFromOIDCProvider(const Model::RemoveFingerprintFromOIDCProviderRequest &request)const; + void removeFingerprintFromOIDCProviderAsync(const Model::RemoveFingerprintFromOIDCProviderRequest& request, const RemoveFingerprintFromOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveFingerprintFromOIDCProviderOutcomeCallable removeFingerprintFromOIDCProviderCallable(const Model::RemoveFingerprintFromOIDCProviderRequest& 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; + SetDefaultDomainOutcome setDefaultDomain(const Model::SetDefaultDomainRequest &request)const; + void setDefaultDomainAsync(const Model::SetDefaultDomainRequest& request, const SetDefaultDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDefaultDomainOutcomeCallable setDefaultDomainCallable(const Model::SetDefaultDomainRequest& 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; + 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; + SetUserSsoSettingsOutcome setUserSsoSettings(const Model::SetUserSsoSettingsRequest &request)const; + void setUserSsoSettingsAsync(const Model::SetUserSsoSettingsRequest& request, const SetUserSsoSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetUserSsoSettingsOutcomeCallable setUserSsoSettingsCallable(const Model::SetUserSsoSettingsRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& 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; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& 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; + UpdateApplicationOutcome updateApplication(const Model::UpdateApplicationRequest &request)const; + void updateApplicationAsync(const Model::UpdateApplicationRequest& request, const UpdateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApplicationOutcomeCallable updateApplicationCallable(const Model::UpdateApplicationRequest& 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; + 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; + UpdateOIDCProviderOutcome updateOIDCProvider(const Model::UpdateOIDCProviderRequest &request)const; + void updateOIDCProviderAsync(const Model::UpdateOIDCProviderRequest& request, const UpdateOIDCProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateOIDCProviderOutcomeCallable updateOIDCProviderCallable(const Model::UpdateOIDCProviderRequest& request) const; + UpdateSAMLProviderOutcome updateSAMLProvider(const Model::UpdateSAMLProviderRequest &request)const; + void updateSAMLProviderAsync(const Model::UpdateSAMLProviderRequest& request, const UpdateSAMLProviderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSAMLProviderOutcomeCallable updateSAMLProviderCallable(const Model::UpdateSAMLProviderRequest& 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; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_IMS_IMSCLIENT_H_ diff --git a/ims/include/alibabacloud/ims/ImsExport.h b/ims/include/alibabacloud/ims/ImsExport.h new file mode 100644 index 000000000..a7a7116d7 --- /dev/null +++ b/ims/include/alibabacloud/ims/ImsExport.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_IMS_IMSEXPORT_H_ +#define ALIBABACLOUD_IMS_IMSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_IMS_LIBRARY) +# define ALIBABACLOUD_IMS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_IMS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_IMS_EXPORT +#endif + +#endif // !ALIBABACLOUD_IMS_IMSEXPORT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderRequest.h new file mode 100644 index 000000000..e6513a1f0 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderRequest.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_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT AddClientIdToOIDCProviderRequest : public RpcServiceRequest { +public: + AddClientIdToOIDCProviderRequest(); + ~AddClientIdToOIDCProviderRequest(); + std::string getClientId() const; + void setClientId(const std::string &clientId); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + +private: + std::string clientId_; + std::string akProxySuffix_; + std::string oIDCProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderResult.h new file mode 100644 index 000000000..cb7db1b44 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/AddClientIdToOIDCProviderResult.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_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT AddClientIdToOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + AddClientIdToOIDCProviderResult(); + explicit AddClientIdToOIDCProviderResult(const std::string &payload); + ~AddClientIdToOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_ADDCLIENTIDTOOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderRequest.h new file mode 100644 index 000000000..7f6739be8 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderRequest.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_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT AddFingerprintToOIDCProviderRequest : public RpcServiceRequest { +public: + AddFingerprintToOIDCProviderRequest(); + ~AddFingerprintToOIDCProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + std::string getFingerprint() const; + void setFingerprint(const std::string &fingerprint); + +private: + std::string akProxySuffix_; + std::string oIDCProviderName_; + std::string fingerprint_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderResult.h new file mode 100644 index 000000000..d3fe1ba89 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/AddFingerprintToOIDCProviderResult.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_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT AddFingerprintToOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + AddFingerprintToOIDCProviderResult(); + explicit AddFingerprintToOIDCProviderResult(const std::string &payload); + ~AddFingerprintToOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_ADDFINGERPRINTTOOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/AddUserToGroupRequest.h b/ims/include/alibabacloud/ims/model/AddUserToGroupRequest.h new file mode 100644 index 000000000..492d70f0b --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_ADDUSERTOGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDUSERTOGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT AddUserToGroupRequest : public RpcServiceRequest { +public: + AddUserToGroupRequest(); + ~AddUserToGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string groupName_; + std::string userPrincipalName_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_ADDUSERTOGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/AddUserToGroupResult.h b/ims/include/alibabacloud/ims/model/AddUserToGroupResult.h new file mode 100644 index 000000000..8a5e56854 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_ADDUSERTOGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_ADDUSERTOGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT AddUserToGroupResult : public ServiceResult + { + public: + + + AddUserToGroupResult(); + explicit AddUserToGroupResult(const std::string &payload); + ~AddUserToGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_ADDUSERTOGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/BindMFADeviceRequest.h b/ims/include/alibabacloud/ims/model/BindMFADeviceRequest.h new file mode 100644 index 000000000..c4db2553b --- /dev/null +++ b/ims/include/alibabacloud/ims/model/BindMFADeviceRequest.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_IMS_MODEL_BINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_BINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT BindMFADeviceRequest : public RpcServiceRequest { +public: + BindMFADeviceRequest(); + ~BindMFADeviceRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getU2fAppId() const; + void setU2fAppId(const std::string &u2fAppId); + std::string getAuthenticationCode2() const; + void setAuthenticationCode2(const std::string &authenticationCode2); + std::string getType() const; + void setType(const std::string &type); + std::string getAuthenticationCode1() const; + void setAuthenticationCode1(const std::string &authenticationCode1); + std::string getU2fPublicKey() const; + void setU2fPublicKey(const std::string &u2fPublicKey); + std::string getU2fVersion() const; + void setU2fVersion(const std::string &u2fVersion); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getU2fKeyHandler() const; + void setU2fKeyHandler(const std::string &u2fKeyHandler); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getU2fAttestationCert() const; + void setU2fAttestationCert(const std::string &u2fAttestationCert); + +private: + std::string akProxySuffix_; + std::string u2fAppId_; + std::string authenticationCode2_; + std::string type_; + std::string authenticationCode1_; + std::string u2fPublicKey_; + std::string u2fVersion_; + std::string serialNumber_; + std::string u2fKeyHandler_; + std::string userPrincipalName_; + std::string u2fAttestationCert_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_BINDMFADEVICEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/BindMFADeviceResult.h b/ims/include/alibabacloud/ims/model/BindMFADeviceResult.h new file mode 100644 index 000000000..982e92513 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_BINDMFADEVICERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_BINDMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT BindMFADeviceResult : public ServiceResult + { + public: + + + BindMFADeviceResult(); + explicit BindMFADeviceResult(const std::string &payload); + ~BindMFADeviceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_BINDMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ChangePasswordRequest.h b/ims/include/alibabacloud/ims/model/ChangePasswordRequest.h new file mode 100644 index 000000000..f4eb1ee7a --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ChangePasswordRequest.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_IMS_MODEL_CHANGEPASSWORDREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CHANGEPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ChangePasswordRequest : public RpcServiceRequest { +public: + ChangePasswordRequest(); + ~ChangePasswordRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOldPassword() const; + void setOldPassword(const std::string &oldPassword); + std::string getNewPassword() const; + void setNewPassword(const std::string &newPassword); + +private: + std::string akProxySuffix_; + std::string oldPassword_; + std::string newPassword_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CHANGEPASSWORDREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ChangePasswordResult.h b/ims/include/alibabacloud/ims/model/ChangePasswordResult.h new file mode 100644 index 000000000..6d9b99b56 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_CHANGEPASSWORDRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CHANGEPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ChangePasswordResult : public ServiceResult + { + public: + + + ChangePasswordResult(); + explicit ChangePasswordResult(const std::string &payload); + ~ChangePasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CHANGEPASSWORDRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateAccessKeyRequest.h b/ims/include/alibabacloud/ims/model/CreateAccessKeyRequest.h new file mode 100644 index 000000000..3d37074d4 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateAccessKeyRequest.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_IMS_MODEL_CREATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateAccessKeyRequest : public RpcServiceRequest { +public: + CreateAccessKeyRequest(); + ~CreateAccessKeyRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEACCESSKEYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateAccessKeyResult.h b/ims/include/alibabacloud/ims/model/CreateAccessKeyResult.h new file mode 100644 index 000000000..c50d2e7a1 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_CREATEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_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_IMS_MODEL_CREATEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateAppSecretRequest.h b/ims/include/alibabacloud/ims/model/CreateAppSecretRequest.h new file mode 100644 index 000000000..e314ea72c --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateAppSecretRequest.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_IMS_MODEL_CREATEAPPSECRETREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEAPPSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateAppSecretRequest : public RpcServiceRequest { +public: + CreateAppSecretRequest(); + ~CreateAppSecretRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEAPPSECRETREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateAppSecretResult.h b/ims/include/alibabacloud/ims/model/CreateAppSecretResult.h new file mode 100644 index 000000000..c8b8babfd --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateAppSecretResult.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_IMS_MODEL_CREATEAPPSECRETRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEAPPSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateAppSecretResult : public ServiceResult + { + public: + struct AppSecret + { + std::string appId; + std::string appSecretValue; + std::string appSecretId; + std::string createDate; + }; + + + CreateAppSecretResult(); + explicit CreateAppSecretResult(const std::string &payload); + ~CreateAppSecretResult(); + AppSecret getAppSecret()const; + + protected: + void parse(const std::string &payload); + private: + AppSecret appSecret_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEAPPSECRETRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateApplicationRequest.h b/ims/include/alibabacloud/ims/model/CreateApplicationRequest.h new file mode 100644 index 000000000..c9d57d206 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateApplicationRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_CREATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateApplicationRequest : public RpcServiceRequest { +public: + CreateApplicationRequest(); + ~CreateApplicationRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRequiredScopes() const; + void setRequiredScopes(const std::string &requiredScopes); + int getAccessTokenValidity() const; + void setAccessTokenValidity(int accessTokenValidity); + int getRefreshTokenValidity() const; + void setRefreshTokenValidity(int refreshTokenValidity); + std::string getRedirectUris() const; + void setRedirectUris(const std::string &redirectUris); + bool getSecretRequired() const; + void setSecretRequired(bool secretRequired); + std::string getAppType() const; + void setAppType(const std::string &appType); + std::string getAppPrincipalName() const; + void setAppPrincipalName(const std::string &appPrincipalName); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + std::string getPredefinedScopes() const; + void setPredefinedScopes(const std::string &predefinedScopes); + bool getIsMultiTenant() const; + void setIsMultiTenant(bool isMultiTenant); + +private: + std::string akProxySuffix_; + std::string appName_; + std::string requiredScopes_; + int accessTokenValidity_; + int refreshTokenValidity_; + std::string redirectUris_; + bool secretRequired_; + std::string appType_; + std::string appPrincipalName_; + std::string displayName_; + std::string predefinedScopes_; + bool isMultiTenant_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEAPPLICATIONREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateApplicationResult.h b/ims/include/alibabacloud/ims/model/CreateApplicationResult.h new file mode 100644 index 000000000..7c49c921c --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateApplicationResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_CREATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateApplicationResult : public ServiceResult + { + public: + struct Application + { + struct DelegatedScope + { + struct PredefinedScope + { + std::string description; + bool required; + std::string name; + }; + std::vector predefinedScopes; + }; + std::string accountId; + bool secretRequired; + bool isMultiTenant; + std::string createDate; + std::string appName; + DelegatedScope delegatedScope; + std::string updateDate; + std::string tenantId; + std::string appId; + std::string displayName; + int accessTokenValidity; + std::string appPrincipalName; + std::vector redirectUris; + int refreshTokenValidity; + std::string appType; + }; + + + CreateApplicationResult(); + explicit CreateApplicationResult(const std::string &payload); + ~CreateApplicationResult(); + Application getApplication()const; + + protected: + void parse(const std::string &payload); + private: + Application application_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateGroupRequest.h b/ims/include/alibabacloud/ims/model/CreateGroupRequest.h new file mode 100644 index 000000000..ad5569899 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateGroupRequest.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_IMS_MODEL_CREATEGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateGroupRequest : public RpcServiceRequest { +public: + CreateGroupRequest(); + ~CreateGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getComments() const; + void setComments(const std::string &comments); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string comments_; + std::string groupName_; + std::string displayName_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateGroupResult.h b/ims/include/alibabacloud/ims/model/CreateGroupResult.h new file mode 100644 index 000000000..4c7269ca7 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateGroupResult.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_IMS_MODEL_CREATEGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string groupPrincipalName; + std::string comments; + std::string displayName; + std::string createDate; + std::string groupId; + }; + + + CreateGroupResult(); + explicit CreateGroupResult(const std::string &payload); + ~CreateGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateLoginProfileRequest.h b/ims/include/alibabacloud/ims/model/CreateLoginProfileRequest.h new file mode 100644 index 000000000..a54a3f63f --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateLoginProfileRequest.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_IMS_MODEL_CREATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateLoginProfileRequest : public RpcServiceRequest { +public: + CreateLoginProfileRequest(); + ~CreateLoginProfileRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getPassword() const; + void setPassword(const std::string &password); + bool getGenerateRandomPassword() const; + void setGenerateRandomPassword(bool generateRandomPassword); + bool getMFABindRequired() const; + void setMFABindRequired(bool mFABindRequired); + bool getPasswordResetRequired() const; + void setPasswordResetRequired(bool passwordResetRequired); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string akProxySuffix_; + std::string password_; + bool generateRandomPassword_; + bool mFABindRequired_; + bool passwordResetRequired_; + std::string userPrincipalName_; + std::string status_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATELOGINPROFILEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateLoginProfileResult.h b/ims/include/alibabacloud/ims/model/CreateLoginProfileResult.h new file mode 100644 index 000000000..3bbf70e71 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateLoginProfileResult.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_IMS_MODEL_CREATELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateLoginProfileResult : public ServiceResult + { + public: + struct LoginProfile + { + std::string status; + std::string updateDate; + bool passwordResetRequired; + std::string userPrincipalName; + bool mFABindRequired; + std::string createDate; + std::string password; + }; + + + CreateLoginProfileResult(); + explicit CreateLoginProfileResult(const std::string &payload); + ~CreateLoginProfileResult(); + LoginProfile getLoginProfile()const; + + protected: + void parse(const std::string &payload); + private: + LoginProfile loginProfile_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/CreateOIDCProviderRequest.h new file mode 100644 index 000000000..c430289b3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateOIDCProviderRequest.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_IMS_MODEL_CREATEOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateOIDCProviderRequest : public RpcServiceRequest { +public: + CreateOIDCProviderRequest(); + ~CreateOIDCProviderRequest(); + long getIssuanceLimitTime() const; + void setIssuanceLimitTime(long issuanceLimitTime); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getIssuerUrl() const; + void setIssuerUrl(const std::string &issuerUrl); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getClientIds() const; + void setClientIds(const std::string &clientIds); + std::string getFingerprints() const; + void setFingerprints(const std::string &fingerprints); + +private: + long issuanceLimitTime_; + std::string akProxySuffix_; + std::string issuerUrl_; + std::string oIDCProviderName_; + std::string description_; + std::string clientIds_; + std::string fingerprints_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/CreateOIDCProviderResult.h new file mode 100644 index 000000000..7c573cb5d --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateOIDCProviderResult.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_IMS_MODEL_CREATEOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + CreateOIDCProviderResult(); + explicit CreateOIDCProviderResult(const std::string &payload); + ~CreateOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateSAMLProviderRequest.h b/ims/include/alibabacloud/ims/model/CreateSAMLProviderRequest.h new file mode 100644 index 000000000..a862ac3d0 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateSAMLProviderRequest.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_IMS_MODEL_CREATESAMLPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATESAMLPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateSAMLProviderRequest : public RpcServiceRequest { +public: + CreateSAMLProviderRequest(); + ~CreateSAMLProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSAMLMetadataDocument() const; + void setSAMLMetadataDocument(const std::string &sAMLMetadataDocument); + std::string getEncodedSAMLMetadataDocument() const; + void setEncodedSAMLMetadataDocument(const std::string &encodedSAMLMetadataDocument); + std::string getSAMLProviderName() const; + void setSAMLProviderName(const std::string &sAMLProviderName); + +private: + std::string akProxySuffix_; + std::string description_; + std::string sAMLMetadataDocument_; + std::string encodedSAMLMetadataDocument_; + std::string sAMLProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATESAMLPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateSAMLProviderResult.h b/ims/include/alibabacloud/ims/model/CreateSAMLProviderResult.h new file mode 100644 index 000000000..34c9c8abe --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateSAMLProviderResult.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_IMS_MODEL_CREATESAMLPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATESAMLPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateSAMLProviderResult : public ServiceResult + { + public: + struct SAMLProvider + { + std::string updateDate; + std::string description; + std::string sAMLProviderName; + std::string arn; + std::string createDate; + }; + + + CreateSAMLProviderResult(); + explicit CreateSAMLProviderResult(const std::string &payload); + ~CreateSAMLProviderResult(); + SAMLProvider getSAMLProvider()const; + + protected: + void parse(const std::string &payload); + private: + SAMLProvider sAMLProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_CREATESAMLPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateUserRequest.h b/ims/include/alibabacloud/ims/model/CreateUserRequest.h new file mode 100644 index 000000000..556af6fa3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateUserRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateUserRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateUserRequest(); + ~CreateUserRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getMobilePhone() const; + void setMobilePhone(const std::string &mobilePhone); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getEmail() const; + void setEmail(const std::string &email); + std::string getComments() const; + void setComments(const std::string &comments); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + +private: + std::string akProxySuffix_; + std::string externalId_; + std::string mobilePhone_; + std::vector tag_; + std::string email_; + std::string comments_; + std::string userPrincipalName_; + std::string displayName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEUSERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateUserResult.h b/ims/include/alibabacloud/ims/model/CreateUserResult.h new file mode 100644 index 000000000..e01c0bc0d --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_CREATEUSERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT CreateUserResult : public ServiceResult + { + public: + struct User + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string updateDate; + std::string email; + std::string userId; + std::string comments; + std::string provisionType; + std::string externalId; + std::string displayName; + std::string lastLoginDate; + std::string userPrincipalName; + std::string createDate; + std::vector tags; + 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_IMS_MODEL_CREATEUSERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/CreateVirtualMFADeviceRequest.h b/ims/include/alibabacloud/ims/model/CreateVirtualMFADeviceRequest.h new file mode 100644 index 000000000..4bd94e561 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/CreateVirtualMFADeviceRequest.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_IMS_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT CreateVirtualMFADeviceRequest : public RpcServiceRequest { +public: + CreateVirtualMFADeviceRequest(); + ~CreateVirtualMFADeviceRequest(); + std::string getVirtualMFADeviceName() const; + void setVirtualMFADeviceName(const std::string &virtualMFADeviceName); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string virtualMFADeviceName_; + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/CreateVirtualMFADeviceResult.h b/ims/include/alibabacloud/ims/model/CreateVirtualMFADeviceResult.h new file mode 100644 index 000000000..577202cb3 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_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_IMS_MODEL_CREATEVIRTUALMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteAccessKeyRequest.h b/ims/include/alibabacloud/ims/model/DeleteAccessKeyRequest.h new file mode 100644 index 000000000..c10d0c593 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteAccessKeyRequest.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_IMS_MODEL_DELETEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteAccessKeyRequest : public RpcServiceRequest { +public: + DeleteAccessKeyRequest(); + ~DeleteAccessKeyRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string userAccessKeyId_; + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEACCESSKEYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteAccessKeyResult.h b/ims/include/alibabacloud/ims/model/DeleteAccessKeyResult.h new file mode 100644 index 000000000..3e52fc7c9 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteAccessKeyResult : public ServiceResult + { + public: + + + DeleteAccessKeyResult(); + explicit DeleteAccessKeyResult(const std::string &payload); + ~DeleteAccessKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteAppSecretRequest.h b/ims/include/alibabacloud/ims/model/DeleteAppSecretRequest.h new file mode 100644 index 000000000..07c95dde9 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteAppSecretRequest.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_IMS_MODEL_DELETEAPPSECRETREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEAPPSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteAppSecretRequest : public RpcServiceRequest { +public: + DeleteAppSecretRequest(); + ~DeleteAppSecretRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppSecretId() const; + void setAppSecretId(const std::string &appSecretId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appSecretId_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEAPPSECRETREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteAppSecretResult.h b/ims/include/alibabacloud/ims/model/DeleteAppSecretResult.h new file mode 100644 index 000000000..2bc72cfa5 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteAppSecretResult.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_IMS_MODEL_DELETEAPPSECRETRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEAPPSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteAppSecretResult : public ServiceResult + { + public: + + + DeleteAppSecretResult(); + explicit DeleteAppSecretResult(const std::string &payload); + ~DeleteAppSecretResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEAPPSECRETRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteApplicationRequest.h b/ims/include/alibabacloud/ims/model/DeleteApplicationRequest.h new file mode 100644 index 000000000..a8cfb1e35 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteApplicationRequest.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_IMS_MODEL_DELETEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteApplicationRequest : public RpcServiceRequest { +public: + DeleteApplicationRequest(); + ~DeleteApplicationRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEAPPLICATIONREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteApplicationResult.h b/ims/include/alibabacloud/ims/model/DeleteApplicationResult.h new file mode 100644 index 000000000..3a903c3a6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteApplicationResult.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_IMS_MODEL_DELETEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteApplicationResult : public ServiceResult + { + public: + + + DeleteApplicationResult(); + explicit DeleteApplicationResult(const std::string &payload); + ~DeleteApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteGroupRequest.h b/ims/include/alibabacloud/ims/model/DeleteGroupRequest.h new file mode 100644 index 000000000..3cf33158c --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteGroupRequest : public RpcServiceRequest { +public: + DeleteGroupRequest(); + ~DeleteGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string groupName_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteGroupResult.h b/ims/include/alibabacloud/ims/model/DeleteGroupResult.h new file mode 100644 index 000000000..9e3142323 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteGroupResult : public ServiceResult + { + public: + + + DeleteGroupResult(); + explicit DeleteGroupResult(const std::string &payload); + ~DeleteGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteLoginProfileRequest.h b/ims/include/alibabacloud/ims/model/DeleteLoginProfileRequest.h new file mode 100644 index 000000000..fd68c598b --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteLoginProfileRequest.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_IMS_MODEL_DELETELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteLoginProfileRequest : public RpcServiceRequest { +public: + DeleteLoginProfileRequest(); + ~DeleteLoginProfileRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETELOGINPROFILEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteLoginProfileResult.h b/ims/include/alibabacloud/ims/model/DeleteLoginProfileResult.h new file mode 100644 index 000000000..35c9621e8 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteLoginProfileResult : public ServiceResult + { + public: + + + DeleteLoginProfileResult(); + explicit DeleteLoginProfileResult(const std::string &payload); + ~DeleteLoginProfileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/DeleteOIDCProviderRequest.h new file mode 100644 index 000000000..7f262626a --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteOIDCProviderRequest.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_IMS_MODEL_DELETEOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteOIDCProviderRequest : public RpcServiceRequest { +public: + DeleteOIDCProviderRequest(); + ~DeleteOIDCProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + +private: + std::string akProxySuffix_; + std::string oIDCProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/DeleteOIDCProviderResult.h new file mode 100644 index 000000000..2ebfe1fb3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteOIDCProviderResult.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_IMS_MODEL_DELETEOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteOIDCProviderResult : public ServiceResult + { + public: + + + DeleteOIDCProviderResult(); + explicit DeleteOIDCProviderResult(const std::string &payload); + ~DeleteOIDCProviderResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteSAMLProviderRequest.h b/ims/include/alibabacloud/ims/model/DeleteSAMLProviderRequest.h new file mode 100644 index 000000000..c550b30ae --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteSAMLProviderRequest.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_IMS_MODEL_DELETESAMLPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETESAMLPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteSAMLProviderRequest : public RpcServiceRequest { +public: + DeleteSAMLProviderRequest(); + ~DeleteSAMLProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getSAMLProviderName() const; + void setSAMLProviderName(const std::string &sAMLProviderName); + +private: + std::string akProxySuffix_; + std::string sAMLProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETESAMLPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteSAMLProviderResult.h b/ims/include/alibabacloud/ims/model/DeleteSAMLProviderResult.h new file mode 100644 index 000000000..f4e795245 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteSAMLProviderResult.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_IMS_MODEL_DELETESAMLPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETESAMLPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteSAMLProviderResult : public ServiceResult + { + public: + + + DeleteSAMLProviderResult(); + explicit DeleteSAMLProviderResult(const std::string &payload); + ~DeleteSAMLProviderResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETESAMLPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteUserRequest.h b/ims/include/alibabacloud/ims/model/DeleteUserRequest.h new file mode 100644 index 000000000..1fd99f75c --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteUserRequest : public RpcServiceRequest { +public: + DeleteUserRequest(); + ~DeleteUserRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userId_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEUSERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteUserResult.h b/ims/include/alibabacloud/ims/model/DeleteUserResult.h new file mode 100644 index 000000000..3a10bfb01 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteUserResult : public ServiceResult + { + public: + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DeleteVirtualMFADeviceRequest.h b/ims/include/alibabacloud/ims/model/DeleteVirtualMFADeviceRequest.h new file mode 100644 index 000000000..9fff48909 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DeleteVirtualMFADeviceRequest.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_IMS_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DeleteVirtualMFADeviceRequest : public RpcServiceRequest { +public: + DeleteVirtualMFADeviceRequest(); + ~DeleteVirtualMFADeviceRequest(); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string serialNumber_; + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DeleteVirtualMFADeviceResult.h b/ims/include/alibabacloud/ims/model/DeleteVirtualMFADeviceResult.h new file mode 100644 index 000000000..f7dec41b5 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DeleteVirtualMFADeviceResult : public ServiceResult + { + public: + + + DeleteVirtualMFADeviceResult(); + explicit DeleteVirtualMFADeviceResult(const std::string &payload); + ~DeleteVirtualMFADeviceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DELETEVIRTUALMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/DisableVirtualMFARequest.h b/ims/include/alibabacloud/ims/model/DisableVirtualMFARequest.h new file mode 100644 index 000000000..3669c1ebe --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DisableVirtualMFARequest.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_IMS_MODEL_DISABLEVIRTUALMFAREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_DISABLEVIRTUALMFAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT DisableVirtualMFARequest : public RpcServiceRequest { +public: + DisableVirtualMFARequest(); + ~DisableVirtualMFARequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_DISABLEVIRTUALMFAREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/DisableVirtualMFAResult.h b/ims/include/alibabacloud/ims/model/DisableVirtualMFAResult.h new file mode 100644 index 000000000..93717260a --- /dev/null +++ b/ims/include/alibabacloud/ims/model/DisableVirtualMFAResult.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_IMS_MODEL_DISABLEVIRTUALMFARESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_DISABLEVIRTUALMFARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT DisableVirtualMFAResult : public ServiceResult + { + public: + + + DisableVirtualMFAResult(); + explicit DisableVirtualMFAResult(const std::string &payload); + ~DisableVirtualMFAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_DISABLEVIRTUALMFARESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GenerateCredentialReportRequest.h b/ims/include/alibabacloud/ims/model/GenerateCredentialReportRequest.h new file mode 100644 index 000000000..c60bdd62d --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GenerateCredentialReportRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GENERATECREDENTIALREPORTREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GENERATECREDENTIALREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GenerateCredentialReportRequest : public RpcServiceRequest { +public: + GenerateCredentialReportRequest(); + ~GenerateCredentialReportRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GENERATECREDENTIALREPORTREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GenerateCredentialReportResult.h b/ims/include/alibabacloud/ims/model/GenerateCredentialReportResult.h new file mode 100644 index 000000000..91638be26 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GenerateCredentialReportResult.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_IMS_MODEL_GENERATECREDENTIALREPORTRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GENERATECREDENTIALREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GenerateCredentialReportResult : public ServiceResult + { + public: + + + GenerateCredentialReportResult(); + explicit GenerateCredentialReportResult(const std::string &payload); + ~GenerateCredentialReportResult(); + std::string getState()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GENERATECREDENTIALREPORTRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedRequest.h b/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedRequest.h new file mode 100644 index 000000000..123cec5ba --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedRequest.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_IMS_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetAccessKeyLastUsedRequest : public RpcServiceRequest { +public: + GetAccessKeyLastUsedRequest(); + ~GetAccessKeyLastUsedRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string userAccessKeyId_; + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedResult.h b/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedResult.h new file mode 100644 index 000000000..54817badb --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccessKeyLastUsedResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetAccessKeyLastUsedResult : public ServiceResult + { + public: + struct AccessKeyLastUsed + { + std::string lastUsedDate; + std::string serviceName; + }; + + + GetAccessKeyLastUsedResult(); + explicit GetAccessKeyLastUsedResult(const std::string &payload); + ~GetAccessKeyLastUsedResult(); + AccessKeyLastUsed getAccessKeyLastUsed()const; + + protected: + void parse(const std::string &payload); + private: + AccessKeyLastUsed accessKeyLastUsed_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCESSKEYLASTUSEDRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetAccountMFAInfoRequest.h b/ims/include/alibabacloud/ims/model/GetAccountMFAInfoRequest.h new file mode 100644 index 000000000..07e55b7d6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountMFAInfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETACCOUNTMFAINFOREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTMFAINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetAccountMFAInfoRequest : public RpcServiceRequest { +public: + GetAccountMFAInfoRequest(); + ~GetAccountMFAInfoRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTMFAINFOREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetAccountMFAInfoResult.h b/ims/include/alibabacloud/ims/model/GetAccountMFAInfoResult.h new file mode 100644 index 000000000..aa140f64c --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountMFAInfoResult.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_IMS_MODEL_GETACCOUNTMFAINFORESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTMFAINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetAccountMFAInfoResult : public ServiceResult + { + public: + + + GetAccountMFAInfoResult(); + explicit GetAccountMFAInfoResult(const std::string &payload); + ~GetAccountMFAInfoResult(); + bool getIsMFAEnable()const; + + protected: + void parse(const std::string &payload); + private: + bool isMFAEnable_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTMFAINFORESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportRequest.h b/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportRequest.h new file mode 100644 index 000000000..0e822a4a8 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetAccountSecurityPracticeReportRequest : public RpcServiceRequest { +public: + GetAccountSecurityPracticeReportRequest(); + ~GetAccountSecurityPracticeReportRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportResult.h b/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportResult.h new file mode 100644 index 000000000..effb297e0 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountSecurityPracticeReportResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetAccountSecurityPracticeReportResult : public ServiceResult + { + public: + struct AccountSecurityPracticeInfo + { + struct AccountSecurityPracticeUserInfo + { + int subUser; + int subUserBindMfa; + int subUserWithUnusedAccessKey; + int rootWithAccessKey; + int subUserWithOldAccessKey; + std::string subUserPwdLevel; + int unusedAkNum; + int oldAkNum; + bool bindMfa; + }; + int score; + AccountSecurityPracticeUserInfo accountSecurityPracticeUserInfo; + }; + + + GetAccountSecurityPracticeReportResult(); + explicit GetAccountSecurityPracticeReportResult(const std::string &payload); + ~GetAccountSecurityPracticeReportResult(); + AccountSecurityPracticeInfo getAccountSecurityPracticeInfo()const; + + protected: + void parse(const std::string &payload); + private: + AccountSecurityPracticeInfo accountSecurityPracticeInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTSECURITYPRACTICEREPORTRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetAccountSummaryRequest.h b/ims/include/alibabacloud/ims/model/GetAccountSummaryRequest.h new file mode 100644 index 000000000..41db4ce02 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETACCOUNTSUMMARYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetAccountSummaryRequest : public RpcServiceRequest { +public: + GetAccountSummaryRequest(); + ~GetAccountSummaryRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTSUMMARYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetAccountSummaryResult.h b/ims/include/alibabacloud/ims/model/GetAccountSummaryResult.h new file mode 100644 index 000000000..ab09846f2 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAccountSummaryResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETACCOUNTSUMMARYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETACCOUNTSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetAccountSummaryResult : public ServiceResult + { + public: + struct SummaryMap + { + int policies; + int groupsPerUserQuota; + int attachedPoliciesPerUserQuota; + int roles; + int rolesQuota; + int users; + int policiesQuota; + int virtualMFADevicesQuota; + int attachedSystemPoliciesPerGroupQuota; + int mFADevicesInUse; + int accessKeysPerUserQuota; + int attachedPoliciesPerGroupQuota; + int policySizeQuota; + int versionsPerPolicyQuota; + int attachedSystemPoliciesPerUserQuota; + int groups; + int attachedPoliciesPerRoleQuota; + int usersQuota; + int attachedSystemPoliciesPerRoleQuota; + int mFADevices; + int groupsQuota; + }; + + + GetAccountSummaryResult(); + explicit GetAccountSummaryResult(const std::string &payload); + ~GetAccountSummaryResult(); + SummaryMap getSummaryMap()const; + + protected: + void parse(const std::string &payload); + private: + SummaryMap summaryMap_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETACCOUNTSUMMARYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetAppSecretRequest.h b/ims/include/alibabacloud/ims/model/GetAppSecretRequest.h new file mode 100644 index 000000000..9933397bf --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAppSecretRequest.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_IMS_MODEL_GETAPPSECRETREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETAPPSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetAppSecretRequest : public RpcServiceRequest { +public: + GetAppSecretRequest(); + ~GetAppSecretRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppSecretId() const; + void setAppSecretId(const std::string &appSecretId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appSecretId_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETAPPSECRETREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetAppSecretResult.h b/ims/include/alibabacloud/ims/model/GetAppSecretResult.h new file mode 100644 index 000000000..2239004ee --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetAppSecretResult.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_IMS_MODEL_GETAPPSECRETRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETAPPSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetAppSecretResult : public ServiceResult + { + public: + struct AppSecret + { + std::string appId; + std::string appSecretValue; + std::string appSecretId; + std::string createDate; + }; + + + GetAppSecretResult(); + explicit GetAppSecretResult(const std::string &payload); + ~GetAppSecretResult(); + AppSecret getAppSecret()const; + + protected: + void parse(const std::string &payload); + private: + AppSecret appSecret_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETAPPSECRETRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetApplicationRequest.h b/ims/include/alibabacloud/ims/model/GetApplicationRequest.h new file mode 100644 index 000000000..a177086e3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetApplicationRequest.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_IMS_MODEL_GETAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetApplicationRequest : public RpcServiceRequest { +public: + GetApplicationRequest(); + ~GetApplicationRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETAPPLICATIONREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetApplicationResult.h b/ims/include/alibabacloud/ims/model/GetApplicationResult.h new file mode 100644 index 000000000..8ebaa50ae --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetApplicationResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetApplicationResult : public ServiceResult + { + public: + struct Application + { + struct DelegatedScope + { + struct PredefinedScope + { + std::string description; + bool required; + std::string name; + }; + std::vector predefinedScopes; + }; + std::string accountId; + bool secretRequired; + bool isMultiTenant; + std::string createDate; + std::string appName; + DelegatedScope delegatedScope; + std::string updateDate; + std::string tenantId; + std::string appId; + std::string displayName; + int accessTokenValidity; + std::string appPrincipalName; + std::vector redirectUris; + int refreshTokenValidity; + std::string appType; + }; + + + GetApplicationResult(); + explicit GetApplicationResult(const std::string &payload); + ~GetApplicationResult(); + Application getApplication()const; + + protected: + void parse(const std::string &payload); + private: + Application application_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetCredentialReportRequest.h b/ims/include/alibabacloud/ims/model/GetCredentialReportRequest.h new file mode 100644 index 000000000..e28dfb53f --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetCredentialReportRequest.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_IMS_MODEL_GETCREDENTIALREPORTREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETCREDENTIALREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetCredentialReportRequest : public RpcServiceRequest { +public: + GetCredentialReportRequest(); + ~GetCredentialReportRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMaxItems() const; + void setMaxItems(const std::string &maxItems); + +private: + std::string akProxySuffix_; + std::string nextToken_; + std::string maxItems_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETCREDENTIALREPORTREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetCredentialReportResult.h b/ims/include/alibabacloud/ims/model/GetCredentialReportResult.h new file mode 100644 index 000000000..e90170864 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetCredentialReportResult.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_IMS_MODEL_GETCREDENTIALREPORTRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETCREDENTIALREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetCredentialReportResult : public ServiceResult + { + public: + + + GetCredentialReportResult(); + explicit GetCredentialReportResult(const std::string &payload); + ~GetCredentialReportResult(); + std::string getGeneratedTime()const; + std::string getNextToken()const; + std::string getContent()const; + std::string getIsTruncated()const; + + protected: + void parse(const std::string &payload); + private: + std::string generatedTime_; + std::string nextToken_; + std::string content_; + std::string isTruncated_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETCREDENTIALREPORTRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetDefaultDomainRequest.h b/ims/include/alibabacloud/ims/model/GetDefaultDomainRequest.h new file mode 100644 index 000000000..983b64cc5 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetDefaultDomainRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETDEFAULTDOMAINREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETDEFAULTDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetDefaultDomainRequest : public RpcServiceRequest { +public: + GetDefaultDomainRequest(); + ~GetDefaultDomainRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETDEFAULTDOMAINREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetDefaultDomainResult.h b/ims/include/alibabacloud/ims/model/GetDefaultDomainResult.h new file mode 100644 index 000000000..cba7cd134 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetDefaultDomainResult.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_IMS_MODEL_GETDEFAULTDOMAINRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETDEFAULTDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetDefaultDomainResult : public ServiceResult + { + public: + + + GetDefaultDomainResult(); + explicit GetDefaultDomainResult(const std::string &payload); + ~GetDefaultDomainResult(); + std::string getDefaultDomainName()const; + + protected: + void parse(const std::string &payload); + private: + std::string defaultDomainName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETDEFAULTDOMAINRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetGroupRequest.h b/ims/include/alibabacloud/ims/model/GetGroupRequest.h new file mode 100644 index 000000000..563b783ab --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_GETGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetGroupRequest : public RpcServiceRequest { +public: + GetGroupRequest(); + ~GetGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string groupName_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetGroupResult.h b/ims/include/alibabacloud/ims/model/GetGroupResult.h new file mode 100644 index 000000000..6d6cf4532 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetGroupResult.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_IMS_MODEL_GETGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string groupPrincipalName; + std::string comments; + std::string displayName; + std::string createDate; + std::string groupId; + }; + + + GetGroupResult(); + explicit GetGroupResult(const std::string &payload); + ~GetGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetLoginProfileRequest.h b/ims/include/alibabacloud/ims/model/GetLoginProfileRequest.h new file mode 100644 index 000000000..1b11d498a --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetLoginProfileRequest.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_IMS_MODEL_GETLOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETLOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetLoginProfileRequest : public RpcServiceRequest { +public: + GetLoginProfileRequest(); + ~GetLoginProfileRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETLOGINPROFILEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetLoginProfileResult.h b/ims/include/alibabacloud/ims/model/GetLoginProfileResult.h new file mode 100644 index 000000000..11528d659 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetLoginProfileResult.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_IMS_MODEL_GETLOGINPROFILERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETLOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetLoginProfileResult : public ServiceResult + { + public: + struct LoginProfile + { + std::string status; + std::string updateDate; + std::string lastLoginTime; + bool passwordResetRequired; + std::string userPrincipalName; + 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_IMS_MODEL_GETLOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/GetOIDCProviderRequest.h new file mode 100644 index 000000000..8b3884d4b --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetOIDCProviderRequest.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_IMS_MODEL_GETOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetOIDCProviderRequest : public RpcServiceRequest { +public: + GetOIDCProviderRequest(); + ~GetOIDCProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + +private: + std::string akProxySuffix_; + std::string oIDCProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/GetOIDCProviderResult.h new file mode 100644 index 000000000..76562bfd4 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetOIDCProviderResult.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_IMS_MODEL_GETOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + GetOIDCProviderResult(); + explicit GetOIDCProviderResult(const std::string &payload); + ~GetOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetPasswordPolicyRequest.h b/ims/include/alibabacloud/ims/model/GetPasswordPolicyRequest.h new file mode 100644 index 000000000..eda4c3d8a --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetPasswordPolicyRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetPasswordPolicyRequest : public RpcServiceRequest { +public: + GetPasswordPolicyRequest(); + ~GetPasswordPolicyRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETPASSWORDPOLICYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetPasswordPolicyResult.h b/ims/include/alibabacloud/ims/model/GetPasswordPolicyResult.h new file mode 100644 index 000000000..e4b0f2305 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetPasswordPolicyResult.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_IMS_MODEL_GETPASSWORDPOLICYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETPASSWORDPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetPasswordPolicyResult : public ServiceResult + { + public: + struct PasswordPolicy + { + int minimumPasswordLength; + bool requireLowercaseCharacters; + bool hardExpire; + bool requireNumbers; + int passwordReusePrevention; + bool passwordNotContainUserName; + int maxPasswordAge; + int maxLoginAttemps; + bool requireUppercaseCharacters; + int minimumPasswordDifferentCharacter; + 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_IMS_MODEL_GETPASSWORDPOLICYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetSAMLProviderRequest.h b/ims/include/alibabacloud/ims/model/GetSAMLProviderRequest.h new file mode 100644 index 000000000..b49600d17 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetSAMLProviderRequest.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_IMS_MODEL_GETSAMLPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETSAMLPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetSAMLProviderRequest : public RpcServiceRequest { +public: + GetSAMLProviderRequest(); + ~GetSAMLProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getSAMLProviderName() const; + void setSAMLProviderName(const std::string &sAMLProviderName); + +private: + std::string akProxySuffix_; + std::string sAMLProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETSAMLPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetSAMLProviderResult.h b/ims/include/alibabacloud/ims/model/GetSAMLProviderResult.h new file mode 100644 index 000000000..cc16b5656 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetSAMLProviderResult.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_IMS_MODEL_GETSAMLPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETSAMLPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetSAMLProviderResult : public ServiceResult + { + public: + struct SAMLProvider + { + std::string updateDate; + std::string description; + std::string sAMLProviderName; + std::string encodedSAMLMetadataDocument; + std::string arn; + std::string createDate; + std::string sAMLMetadataDocument; + }; + + + GetSAMLProviderResult(); + explicit GetSAMLProviderResult(const std::string &payload); + ~GetSAMLProviderResult(); + SAMLProvider getSAMLProvider()const; + + protected: + void parse(const std::string &payload); + private: + SAMLProvider sAMLProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETSAMLPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetSecurityPreferenceRequest.h b/ims/include/alibabacloud/ims/model/GetSecurityPreferenceRequest.h new file mode 100644 index 000000000..8ca189fd0 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetSecurityPreferenceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetSecurityPreferenceRequest : public RpcServiceRequest { +public: + GetSecurityPreferenceRequest(); + ~GetSecurityPreferenceRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETSECURITYPREFERENCEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetSecurityPreferenceResult.h b/ims/include/alibabacloud/ims/model/GetSecurityPreferenceResult.h new file mode 100644 index 000000000..70c04b433 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetSecurityPreferenceResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETSECURITYPREFERENCERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETSECURITYPREFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetSecurityPreferenceResult : public ServiceResult + { + public: + struct SecurityPreference + { + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct LoginProfilePreference + { + bool enforceMFAForLogin; + int loginSessionDuration; + std::string operationForRiskLogin; + std::string loginNetworkMasks; + bool allowUserToChangePassword; + bool enableSaveMFATicket; + std::string mFAOperationForLogin; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; + struct VerificationPreference + { + std::vector verificationTypes; + }; + struct PersonalInfoPreference + { + bool allowUserToManagePersonalDingTalk; + }; + struct ApplicationLoginPreference + { + bool allowUserLongTermLogin; + }; + LoginProfilePreference loginProfilePreference; + ApplicationLoginPreference applicationLoginPreference; + PersonalInfoPreference personalInfoPreference; + AccessKeyPreference accessKeyPreference; + VerificationPreference verificationPreference; + 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_IMS_MODEL_GETSECURITYPREFERENCERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetUserMFAInfoRequest.h b/ims/include/alibabacloud/ims/model/GetUserMFAInfoRequest.h new file mode 100644 index 000000000..b3c32295d --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserMFAInfoRequest.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_IMS_MODEL_GETUSERMFAINFOREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERMFAINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetUserMFAInfoRequest : public RpcServiceRequest { +public: + GetUserMFAInfoRequest(); + ~GetUserMFAInfoRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETUSERMFAINFOREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetUserMFAInfoResult.h b/ims/include/alibabacloud/ims/model/GetUserMFAInfoResult.h new file mode 100644 index 000000000..6b336de31 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserMFAInfoResult.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_IMS_MODEL_GETUSERMFAINFORESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERMFAINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetUserMFAInfoResult : public ServiceResult + { + public: + struct MFADevice + { + std::string type; + std::string serialNumber; + }; + + + GetUserMFAInfoResult(); + explicit GetUserMFAInfoResult(const std::string &payload); + ~GetUserMFAInfoResult(); + MFADevice getMFADevice()const; + bool getIsMFAEnable()const; + + protected: + void parse(const std::string &payload); + private: + MFADevice mFADevice_; + bool isMFAEnable_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETUSERMFAINFORESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetUserRequest.h b/ims/include/alibabacloud/ims/model/GetUserRequest.h new file mode 100644 index 000000000..f018616b6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserRequest.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_IMS_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetUserRequest : public RpcServiceRequest { +public: + GetUserRequest(); + ~GetUserRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userId_; + std::string userAccessKeyId_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETUSERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetUserResult.h b/ims/include/alibabacloud/ims/model/GetUserResult.h new file mode 100644 index 000000000..0de1a8cc9 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetUserResult : public ServiceResult + { + public: + struct User + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string updateDate; + std::string email; + std::string userId; + std::string comments; + std::string provisionType; + std::string displayName; + std::string lastLoginDate; + std::string userPrincipalName; + std::string createDate; + std::vector tags; + 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_IMS_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetUserSsoSettingsRequest.h b/ims/include/alibabacloud/ims/model/GetUserSsoSettingsRequest.h new file mode 100644 index 000000000..0316cfe61 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserSsoSettingsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETUSERSSOSETTINGSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERSSOSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetUserSsoSettingsRequest : public RpcServiceRequest { +public: + GetUserSsoSettingsRequest(); + ~GetUserSsoSettingsRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETUSERSSOSETTINGSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetUserSsoSettingsResult.h b/ims/include/alibabacloud/ims/model/GetUserSsoSettingsResult.h new file mode 100644 index 000000000..e4c937737 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetUserSsoSettingsResult.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_IMS_MODEL_GETUSERSSOSETTINGSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETUSERSSOSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetUserSsoSettingsResult : public ServiceResult + { + public: + struct UserSsoSettings + { + bool useTenantSpecificSp; + std::string metadataDocument; + bool ssoEnabled; + std::string auxiliaryDomain; + std::string name; + }; + + + GetUserSsoSettingsResult(); + explicit GetUserSsoSettingsResult(const std::string &payload); + ~GetUserSsoSettingsResult(); + UserSsoSettings getUserSsoSettings()const; + + protected: + void parse(const std::string &payload); + private: + UserSsoSettings userSsoSettings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETUSERSSOSETTINGSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/GetVerificationInfoRequest.h b/ims/include/alibabacloud/ims/model/GetVerificationInfoRequest.h new file mode 100644 index 000000000..cbed9d986 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetVerificationInfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_GETVERIFICATIONINFOREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_GETVERIFICATIONINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT GetVerificationInfoRequest : public RpcServiceRequest { +public: + GetVerificationInfoRequest(); + ~GetVerificationInfoRequest(); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_GETVERIFICATIONINFOREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/GetVerificationInfoResult.h b/ims/include/alibabacloud/ims/model/GetVerificationInfoResult.h new file mode 100644 index 000000000..2152a9dc5 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/GetVerificationInfoResult.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_IMS_MODEL_GETVERIFICATIONINFORESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_GETVERIFICATIONINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT GetVerificationInfoResult : public ServiceResult + { + public: + struct SecurityPhoneDevice + { + std::string status; + std::string areaCode; + std::string phoneNumber; + }; + struct SecurityEmailDevice + { + std::string status; + std::string email; + }; + + + GetVerificationInfoResult(); + explicit GetVerificationInfoResult(const std::string &payload); + ~GetVerificationInfoResult(); + SecurityEmailDevice getSecurityEmailDevice()const; + SecurityPhoneDevice getSecurityPhoneDevice()const; + + protected: + void parse(const std::string &payload); + private: + SecurityEmailDevice securityEmailDevice_; + SecurityPhoneDevice securityPhoneDevice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_GETVERIFICATIONINFORESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListAccessKeysRequest.h b/ims/include/alibabacloud/ims/model/ListAccessKeysRequest.h new file mode 100644 index 000000000..f3b004016 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListAccessKeysRequest.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_IMS_MODEL_LISTACCESSKEYSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTACCESSKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListAccessKeysRequest : public RpcServiceRequest { +public: + ListAccessKeysRequest(); + ~ListAccessKeysRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTACCESSKEYSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListAccessKeysResult.h b/ims/include/alibabacloud/ims/model/ListAccessKeysResult.h new file mode 100644 index 000000000..9fb005bf3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListAccessKeysResult.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_IMS_MODEL_LISTACCESSKEYSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTACCESSKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListAccessKeysResult : public ServiceResult + { + public: + struct AccessKey + { + std::string status; + std::string updateDate; + 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_IMS_MODEL_LISTACCESSKEYSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListAppSecretIdsRequest.h b/ims/include/alibabacloud/ims/model/ListAppSecretIdsRequest.h new file mode 100644 index 000000000..90a376ac6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListAppSecretIdsRequest.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_IMS_MODEL_LISTAPPSECRETIDSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTAPPSECRETIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListAppSecretIdsRequest : public RpcServiceRequest { +public: + ListAppSecretIdsRequest(); + ~ListAppSecretIdsRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string akProxySuffix_; + std::string appId_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTAPPSECRETIDSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListAppSecretIdsResult.h b/ims/include/alibabacloud/ims/model/ListAppSecretIdsResult.h new file mode 100644 index 000000000..b406ada9b --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListAppSecretIdsResult.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_IMS_MODEL_LISTAPPSECRETIDSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTAPPSECRETIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListAppSecretIdsResult : public ServiceResult + { + public: + struct AppSecret + { + std::string appId; + std::string appSecretId; + std::string createDate; + }; + + + ListAppSecretIdsResult(); + explicit ListAppSecretIdsResult(const std::string &payload); + ~ListAppSecretIdsResult(); + std::vector getAppSecrets()const; + + protected: + void parse(const std::string &payload); + private: + std::vector appSecrets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTAPPSECRETIDSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListApplicationsRequest.h b/ims/include/alibabacloud/ims/model/ListApplicationsRequest.h new file mode 100644 index 000000000..f142a2ddf --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListApplicationsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_LISTAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListApplicationsRequest : public RpcServiceRequest { +public: + ListApplicationsRequest(); + ~ListApplicationsRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + +private: + std::string akProxySuffix_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTAPPLICATIONSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListApplicationsResult.h b/ims/include/alibabacloud/ims/model/ListApplicationsResult.h new file mode 100644 index 000000000..5e43e8020 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListApplicationsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_LISTAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListApplicationsResult : public ServiceResult + { + public: + struct Application + { + struct DelegatedScope + { + struct PredefinedScope + { + std::string description; + bool required; + std::string name; + }; + std::vector predefinedScopes; + }; + std::string accountId; + bool secretRequired; + bool isMultiTenant; + std::string createDate; + std::string appName; + DelegatedScope delegatedScope; + std::string updateDate; + std::string tenantId; + std::string appId; + std::string displayName; + int accessTokenValidity; + std::string appPrincipalName; + std::vector redirectUris; + int refreshTokenValidity; + std::string appType; + }; + + + ListApplicationsResult(); + explicit ListApplicationsResult(const std::string &payload); + ~ListApplicationsResult(); + std::vector getApplications()const; + + protected: + void parse(const std::string &payload); + private: + std::vector applications_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListGroupsForUserRequest.h b/ims/include/alibabacloud/ims/model/ListGroupsForUserRequest.h new file mode 100644 index 000000000..562ffa7f7 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListGroupsForUserRequest.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_IMS_MODEL_LISTGROUPSFORUSERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTGROUPSFORUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListGroupsForUserRequest : public RpcServiceRequest { +public: + ListGroupsForUserRequest(); + ~ListGroupsForUserRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTGROUPSFORUSERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListGroupsForUserResult.h b/ims/include/alibabacloud/ims/model/ListGroupsForUserResult.h new file mode 100644 index 000000000..0fd288b2c --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListGroupsForUserResult.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_IMS_MODEL_LISTGROUPSFORUSERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTGROUPSFORUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListGroupsForUserResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string groupPrincipalName; + std::string comments; + std::string displayName; + std::string joinDate; + std::string groupId; + }; + + + 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_IMS_MODEL_LISTGROUPSFORUSERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListGroupsRequest.h b/ims/include/alibabacloud/ims/model/ListGroupsRequest.h new file mode 100644 index 000000000..761821741 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListGroupsRequest.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_IMS_MODEL_LISTGROUPSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListGroupsRequest : public RpcServiceRequest { +public: + ListGroupsRequest(); + ~ListGroupsRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string akProxySuffix_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTGROUPSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListGroupsResult.h b/ims/include/alibabacloud/ims/model/ListGroupsResult.h new file mode 100644 index 000000000..c47cff5d4 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListGroupsResult.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_IMS_MODEL_LISTGROUPSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListGroupsResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string groupPrincipalName; + std::string comments; + std::string displayName; + std::string createDate; + std::string groupId; + }; + + + 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_IMS_MODEL_LISTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListOIDCProvidersRequest.h b/ims/include/alibabacloud/ims/model/ListOIDCProvidersRequest.h new file mode 100644 index 000000000..f89e27da1 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListOIDCProvidersRequest.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_IMS_MODEL_LISTOIDCPROVIDERSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTOIDCPROVIDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListOIDCProvidersRequest : public RpcServiceRequest { +public: + ListOIDCProvidersRequest(); + ~ListOIDCProvidersRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string akProxySuffix_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTOIDCPROVIDERSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListOIDCProvidersResult.h b/ims/include/alibabacloud/ims/model/ListOIDCProvidersResult.h new file mode 100644 index 000000000..1d94f9439 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListOIDCProvidersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_LISTOIDCPROVIDERSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTOIDCPROVIDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListOIDCProvidersResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + ListOIDCProvidersResult(); + explicit ListOIDCProvidersResult(const std::string &payload); + ~ListOIDCProvidersResult(); + std::vector getOIDCProviders()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector oIDCProviders_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTOIDCPROVIDERSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListPredefinedScopesRequest.h b/ims/include/alibabacloud/ims/model/ListPredefinedScopesRequest.h new file mode 100644 index 000000000..5e0ef7989 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListPredefinedScopesRequest.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_IMS_MODEL_LISTPREDEFINEDSCOPESREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTPREDEFINEDSCOPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListPredefinedScopesRequest : public RpcServiceRequest { +public: + ListPredefinedScopesRequest(); + ~ListPredefinedScopesRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAppType() const; + void setAppType(const std::string &appType); + +private: + std::string akProxySuffix_; + std::string appType_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTPREDEFINEDSCOPESREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListPredefinedScopesResult.h b/ims/include/alibabacloud/ims/model/ListPredefinedScopesResult.h new file mode 100644 index 000000000..c2becf345 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListPredefinedScopesResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_LISTPREDEFINEDSCOPESRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTPREDEFINEDSCOPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListPredefinedScopesResult : public ServiceResult + { + public: + struct PredefinedScope + { + std::string description; + std::string name; + }; + + + ListPredefinedScopesResult(); + explicit ListPredefinedScopesResult(const std::string &payload); + ~ListPredefinedScopesResult(); + std::vector getPredefinedScopes()const; + + protected: + void parse(const std::string &payload); + private: + std::vector predefinedScopes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTPREDEFINEDSCOPESRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListSAMLProvidersRequest.h b/ims/include/alibabacloud/ims/model/ListSAMLProvidersRequest.h new file mode 100644 index 000000000..8d77c384c --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListSAMLProvidersRequest.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_IMS_MODEL_LISTSAMLPROVIDERSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTSAMLPROVIDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListSAMLProvidersRequest : public RpcServiceRequest { +public: + ListSAMLProvidersRequest(); + ~ListSAMLProvidersRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string akProxySuffix_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTSAMLPROVIDERSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListSAMLProvidersResult.h b/ims/include/alibabacloud/ims/model/ListSAMLProvidersResult.h new file mode 100644 index 000000000..4497905f9 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListSAMLProvidersResult.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_IMS_MODEL_LISTSAMLPROVIDERSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTSAMLPROVIDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListSAMLProvidersResult : public ServiceResult + { + public: + struct SAMLProvider + { + std::string updateDate; + std::string description; + std::string sAMLProviderName; + std::string arn; + std::string createDate; + }; + + + ListSAMLProvidersResult(); + explicit ListSAMLProvidersResult(const std::string &payload); + ~ListSAMLProvidersResult(); + std::vector getSAMLProviders()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sAMLProviders_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTSAMLPROVIDERSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListTagResourcesRequest.h b/ims/include/alibabacloud/ims/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..56c0d9174 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListTagResourcesRequest.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_IMS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourcePrincipalName() const; + void setResourcePrincipalName(const std::vector &resourcePrincipalName); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string nextToken_; + int pageSize_; + std::vector tag_; + std::vector resourcePrincipalName_; + std::vector resourceId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListTagResourcesResult.h b/ims/include/alibabacloud/ims/model/ListTagResourcesResult.h new file mode 100644 index 000000000..e2652fc54 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListTagResourcesResult.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_IMS_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + bool getIsTruncated()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + bool isTruncated_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListUserBasicInfosRequest.h b/ims/include/alibabacloud/ims/model/ListUserBasicInfosRequest.h new file mode 100644 index 000000000..9adf14dd9 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListUserBasicInfosRequest.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_IMS_MODEL_LISTUSERBASICINFOSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERBASICINFOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListUserBasicInfosRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListUserBasicInfosRequest(); + ~ListUserBasicInfosRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string akProxySuffix_; + std::vector tag_; + std::string marker_; + int maxItems_; + std::string status_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTUSERBASICINFOSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListUserBasicInfosResult.h b/ims/include/alibabacloud/ims/model/ListUserBasicInfosResult.h new file mode 100644 index 000000000..f2f53e248 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListUserBasicInfosResult.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_IMS_MODEL_LISTUSERBASICINFOSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERBASICINFOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListUserBasicInfosResult : public ServiceResult + { + public: + struct UserBasicInfo + { + std::string status; + std::string userId; + std::string displayName; + std::string userPrincipalName; + }; + + + ListUserBasicInfosResult(); + explicit ListUserBasicInfosResult(const std::string &payload); + ~ListUserBasicInfosResult(); + std::vector getUserBasicInfos()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector userBasicInfos_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTUSERBASICINFOSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListUsersForGroupRequest.h b/ims/include/alibabacloud/ims/model/ListUsersForGroupRequest.h new file mode 100644 index 000000000..ee68abe5c --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_LISTUSERSFORGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERSFORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListUsersForGroupRequest : public RpcServiceRequest { +public: + ListUsersForGroupRequest(); + ~ListUsersForGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string groupName_; + std::string marker_; + int maxItems_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTUSERSFORGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListUsersForGroupResult.h b/ims/include/alibabacloud/ims/model/ListUsersForGroupResult.h new file mode 100644 index 000000000..92e392a56 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListUsersForGroupResult.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_IMS_MODEL_LISTUSERSFORGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERSFORGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListUsersForGroupResult : public ServiceResult + { + public: + struct User + { + std::string userId; + std::string displayName; + std::string userPrincipalName; + 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_IMS_MODEL_LISTUSERSFORGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListUsersRequest.h b/ims/include/alibabacloud/ims/model/ListUsersRequest.h new file mode 100644 index 000000000..0e133d944 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListUsersRequest.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_IMS_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListUsersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListUsersRequest(); + ~ListUsersRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string akProxySuffix_; + std::vector tag_; + std::string marker_; + int maxItems_; + std::string status_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTUSERSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListUsersResult.h b/ims/include/alibabacloud/ims/model/ListUsersResult.h new file mode 100644 index 000000000..3c3063ffc --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListUsersResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_LISTUSERSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListUsersResult : public ServiceResult + { + public: + struct User + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string updateDate; + std::string email; + std::string userId; + std::string comments; + std::string provisionType; + std::string displayName; + std::string lastLoginDate; + std::string userPrincipalName; + std::string createDate; + std::vector tags; + 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_IMS_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesRequest.h b/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesRequest.h new file mode 100644 index 000000000..e8729110f --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesRequest.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_IMS_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT ListVirtualMFADevicesRequest : public RpcServiceRequest { +public: + ListVirtualMFADevicesRequest(); + ~ListVirtualMFADevicesRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string akProxySuffix_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesResult.h b/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesResult.h new file mode 100644 index 000000000..cc77067c3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/ListVirtualMFADevicesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT ListVirtualMFADevicesResult : public ServiceResult + { + public: + struct VirtualMFADevice + { + struct User + { + std::string userId; + std::string displayName; + std::string userPrincipalName; + }; + User user; + std::string serialNumber; + std::string activateDate; + }; + + + ListVirtualMFADevicesResult(); + explicit ListVirtualMFADevicesResult(const std::string &payload); + ~ListVirtualMFADevicesResult(); + std::vector getVirtualMFADevices()const; + bool getIsTruncated()const; + std::string getMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector virtualMFADevices_; + bool isTruncated_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_LISTVIRTUALMFADEVICESRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderRequest.h new file mode 100644 index 000000000..d323fae45 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderRequest.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_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT RemoveClientIdFromOIDCProviderRequest : public RpcServiceRequest { +public: + RemoveClientIdFromOIDCProviderRequest(); + ~RemoveClientIdFromOIDCProviderRequest(); + std::string getClientId() const; + void setClientId(const std::string &clientId); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + +private: + std::string clientId_; + std::string akProxySuffix_; + std::string oIDCProviderName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderResult.h new file mode 100644 index 000000000..768bfa1c4 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/RemoveClientIdFromOIDCProviderResult.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_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT RemoveClientIdFromOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + RemoveClientIdFromOIDCProviderResult(); + explicit RemoveClientIdFromOIDCProviderResult(const std::string &payload); + ~RemoveClientIdFromOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVECLIENTIDFROMOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderRequest.h new file mode 100644 index 000000000..2c9ebb617 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderRequest.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_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT RemoveFingerprintFromOIDCProviderRequest : public RpcServiceRequest { +public: + RemoveFingerprintFromOIDCProviderRequest(); + ~RemoveFingerprintFromOIDCProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + std::string getFingerprint() const; + void setFingerprint(const std::string &fingerprint); + +private: + std::string akProxySuffix_; + std::string oIDCProviderName_; + std::string fingerprint_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderResult.h new file mode 100644 index 000000000..3f0617225 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/RemoveFingerprintFromOIDCProviderResult.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_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT RemoveFingerprintFromOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + RemoveFingerprintFromOIDCProviderResult(); + explicit RemoveFingerprintFromOIDCProviderResult(const std::string &payload); + ~RemoveFingerprintFromOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVEFINGERPRINTFROMOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/RemoveUserFromGroupRequest.h b/ims/include/alibabacloud/ims/model/RemoveUserFromGroupRequest.h new file mode 100644 index 000000000..21cb61f54 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT RemoveUserFromGroupRequest : public RpcServiceRequest { +public: + RemoveUserFromGroupRequest(); + ~RemoveUserFromGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string groupName_; + std::string userPrincipalName_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/RemoveUserFromGroupResult.h b/ims/include/alibabacloud/ims/model/RemoveUserFromGroupResult.h new file mode 100644 index 000000000..09b9d4c9d --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_REMOVEUSERFROMGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_REMOVEUSERFROMGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT RemoveUserFromGroupResult : public ServiceResult + { + public: + + + RemoveUserFromGroupResult(); + explicit RemoveUserFromGroupResult(const std::string &payload); + ~RemoveUserFromGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_REMOVEUSERFROMGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/SetDefaultDomainRequest.h b/ims/include/alibabacloud/ims/model/SetDefaultDomainRequest.h new file mode 100644 index 000000000..8fffff291 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetDefaultDomainRequest.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_IMS_MODEL_SETDEFAULTDOMAINREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_SETDEFAULTDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT SetDefaultDomainRequest : public RpcServiceRequest { +public: + SetDefaultDomainRequest(); + ~SetDefaultDomainRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getDefaultDomainName() const; + void setDefaultDomainName(const std::string &defaultDomainName); + +private: + std::string akProxySuffix_; + std::string defaultDomainName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_SETDEFAULTDOMAINREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/SetDefaultDomainResult.h b/ims/include/alibabacloud/ims/model/SetDefaultDomainResult.h new file mode 100644 index 000000000..6f2cb2ac6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetDefaultDomainResult.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_IMS_MODEL_SETDEFAULTDOMAINRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_SETDEFAULTDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT SetDefaultDomainResult : public ServiceResult + { + public: + + + SetDefaultDomainResult(); + explicit SetDefaultDomainResult(const std::string &payload); + ~SetDefaultDomainResult(); + std::string getDefaultDomainName()const; + + protected: + void parse(const std::string &payload); + private: + std::string defaultDomainName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_SETDEFAULTDOMAINRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/SetPasswordPolicyRequest.h b/ims/include/alibabacloud/ims/model/SetPasswordPolicyRequest.h new file mode 100644 index 000000000..a8490f367 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetPasswordPolicyRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_SETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_SETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT SetPasswordPolicyRequest : public RpcServiceRequest { +public: + SetPasswordPolicyRequest(); + ~SetPasswordPolicyRequest(); + int getPasswordReusePrevention() const; + void setPasswordReusePrevention(int passwordReusePrevention); + bool getRequireUppercaseCharacters() const; + void setRequireUppercaseCharacters(bool requireUppercaseCharacters); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + int getMinimumPasswordDifferentCharacter() const; + void setMinimumPasswordDifferentCharacter(int minimumPasswordDifferentCharacter); + int getMinimumPasswordLength() const; + void setMinimumPasswordLength(int minimumPasswordLength); + bool getRequireNumbers() const; + void setRequireNumbers(bool requireNumbers); + bool getPasswordNotContainUserName() const; + void setPasswordNotContainUserName(bool passwordNotContainUserName); + bool getRequireLowercaseCharacters() const; + void setRequireLowercaseCharacters(bool requireLowercaseCharacters); + int getMaxPasswordAge() const; + void setMaxPasswordAge(int maxPasswordAge); + bool getHardExpire() const; + void setHardExpire(bool hardExpire); + int getMaxLoginAttemps() const; + void setMaxLoginAttemps(int maxLoginAttemps); + bool getRequireSymbols() const; + void setRequireSymbols(bool requireSymbols); + +private: + int passwordReusePrevention_; + bool requireUppercaseCharacters_; + std::string akProxySuffix_; + int minimumPasswordDifferentCharacter_; + int minimumPasswordLength_; + bool requireNumbers_; + bool passwordNotContainUserName_; + bool requireLowercaseCharacters_; + int maxPasswordAge_; + bool hardExpire_; + int maxLoginAttemps_; + bool requireSymbols_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_SETPASSWORDPOLICYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/SetPasswordPolicyResult.h b/ims/include/alibabacloud/ims/model/SetPasswordPolicyResult.h new file mode 100644 index 000000000..fa9da5344 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetPasswordPolicyResult.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_IMS_MODEL_SETPASSWORDPOLICYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_SETPASSWORDPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT SetPasswordPolicyResult : public ServiceResult + { + public: + struct PasswordPolicy + { + int minimumPasswordLength; + bool requireLowercaseCharacters; + bool hardExpire; + bool requireNumbers; + int passwordReusePrevention; + bool passwordNotContainUserName; + int maxPasswordAge; + int maxLoginAttemps; + bool requireUppercaseCharacters; + int minimumPasswordDifferentCharacter; + 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_IMS_MODEL_SETPASSWORDPOLICYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/SetSecurityPreferenceRequest.h b/ims/include/alibabacloud/ims/model/SetSecurityPreferenceRequest.h new file mode 100644 index 000000000..6e6c27182 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetSecurityPreferenceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_SETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_SETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT SetSecurityPreferenceRequest : public RpcServiceRequest { +public: + SetSecurityPreferenceRequest(); + ~SetSecurityPreferenceRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + bool getEnableSaveMFATicket() const; + void setEnableSaveMFATicket(bool enableSaveMFATicket); + std::string getLoginNetworkMasks() const; + void setLoginNetworkMasks(const std::string &loginNetworkMasks); + bool getAllowUserToChangePassword() const; + void setAllowUserToChangePassword(bool allowUserToChangePassword); + bool getEnforceMFAForLogin() const; + void setEnforceMFAForLogin(bool enforceMFAForLogin); + int getLoginSessionDuration() const; + void setLoginSessionDuration(int loginSessionDuration); + std::vector getVerificationTypes() const; + void setVerificationTypes(const std::vector &verificationTypes); + bool getAllowUserLongTermLogin() const; + void setAllowUserLongTermLogin(bool allowUserLongTermLogin); + bool getAllowUserToManageAccessKeys() const; + void setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys); + bool getAllowUserToManageMFADevices() const; + void setAllowUserToManageMFADevices(bool allowUserToManageMFADevices); + std::string getOperationForRiskLogin() const; + void setOperationForRiskLogin(const std::string &operationForRiskLogin); + std::string getMFAOperationForLogin() const; + void setMFAOperationForLogin(const std::string &mFAOperationForLogin); + bool getAllowUserToManagePersonalDingTalk() const; + void setAllowUserToManagePersonalDingTalk(bool allowUserToManagePersonalDingTalk); + +private: + std::string akProxySuffix_; + bool enableSaveMFATicket_; + std::string loginNetworkMasks_; + bool allowUserToChangePassword_; + bool enforceMFAForLogin_; + int loginSessionDuration_; + std::vector verificationTypes_; + bool allowUserLongTermLogin_; + bool allowUserToManageAccessKeys_; + bool allowUserToManageMFADevices_; + std::string operationForRiskLogin_; + std::string mFAOperationForLogin_; + bool allowUserToManagePersonalDingTalk_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_SETSECURITYPREFERENCEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/SetSecurityPreferenceResult.h b/ims/include/alibabacloud/ims/model/SetSecurityPreferenceResult.h new file mode 100644 index 000000000..ea0e62ffe --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetSecurityPreferenceResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_SETSECURITYPREFERENCERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_SETSECURITYPREFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT SetSecurityPreferenceResult : public ServiceResult + { + public: + struct SecurityPreference + { + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct LoginProfilePreference + { + bool enforceMFAForLogin; + int loginSessionDuration; + std::string operationForRiskLogin; + std::string loginNetworkMasks; + bool allowUserToChangePassword; + bool enableSaveMFATicket; + std::string mFAOperationForLogin; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; + struct VerificationPreference + { + std::vector verificationTypes; + }; + struct PersonalInfoPreference + { + bool allowUserToManagePersonalDingTalk; + }; + struct ApplicationLoginPreference + { + bool allowUserLongTermLogin; + }; + LoginProfilePreference loginProfilePreference; + ApplicationLoginPreference applicationLoginPreference; + PersonalInfoPreference personalInfoPreference; + AccessKeyPreference accessKeyPreference; + VerificationPreference verificationPreference; + 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_IMS_MODEL_SETSECURITYPREFERENCERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/SetUserSsoSettingsRequest.h b/ims/include/alibabacloud/ims/model/SetUserSsoSettingsRequest.h new file mode 100644 index 000000000..23ccf7cc6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetUserSsoSettingsRequest.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_IMS_MODEL_SETUSERSSOSETTINGSREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_SETUSERSSOSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT SetUserSsoSettingsRequest : public RpcServiceRequest { +public: + SetUserSsoSettingsRequest(); + ~SetUserSsoSettingsRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getAuxiliaryDomain() const; + void setAuxiliaryDomain(const std::string &auxiliaryDomain); + std::string getMetadataDocument() const; + void setMetadataDocument(const std::string &metadataDocument); + bool getReserved() const; + void setReserved(bool reserved); + bool getSsoEnabled() const; + void setSsoEnabled(bool ssoEnabled); + +private: + std::string akProxySuffix_; + std::string auxiliaryDomain_; + std::string metadataDocument_; + bool reserved_; + bool ssoEnabled_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_SETUSERSSOSETTINGSREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/SetUserSsoSettingsResult.h b/ims/include/alibabacloud/ims/model/SetUserSsoSettingsResult.h new file mode 100644 index 000000000..1dced785f --- /dev/null +++ b/ims/include/alibabacloud/ims/model/SetUserSsoSettingsResult.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_IMS_MODEL_SETUSERSSOSETTINGSRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_SETUSERSSOSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT SetUserSsoSettingsResult : public ServiceResult + { + public: + struct UserSsoSettings + { + std::string metadataDocument; + bool ssoEnabled; + std::string auxiliaryDomain; + std::string name; + }; + + + SetUserSsoSettingsResult(); + explicit SetUserSsoSettingsResult(const std::string &payload); + ~SetUserSsoSettingsResult(); + UserSsoSettings getUserSsoSettings()const; + + protected: + void parse(const std::string &payload); + private: + UserSsoSettings userSsoSettings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_SETUSERSSOSETTINGSRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/TagResourcesRequest.h b/ims/include/alibabacloud/ims/model/TagResourcesRequest.h new file mode 100644 index 000000000..a45078292 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/TagResourcesRequest.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_IMS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourcePrincipalName() const; + void setResourcePrincipalName(const std::vector &resourcePrincipalName); + +private: + std::vector resourceId_; + std::string resourceType_; + std::vector tag_; + std::vector resourcePrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/TagResourcesResult.h b/ims/include/alibabacloud/ims/model/TagResourcesResult.h new file mode 100644 index 000000000..c5ce176e6 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/TagResourcesResult.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_IMS_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UnbindMFADeviceRequest.h b/ims/include/alibabacloud/ims/model/UnbindMFADeviceRequest.h new file mode 100644 index 000000000..1eb06c4fd --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UnbindMFADeviceRequest.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_IMS_MODEL_UNBINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UNBINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UnbindMFADeviceRequest : public RpcServiceRequest { +public: + UnbindMFADeviceRequest(); + ~UnbindMFADeviceRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + +private: + std::string akProxySuffix_; + std::string userPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UNBINDMFADEVICEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UnbindMFADeviceResult.h b/ims/include/alibabacloud/ims/model/UnbindMFADeviceResult.h new file mode 100644 index 000000000..fdc8eb63d --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_UNBINDMFADEVICERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UNBINDMFADEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_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_IMS_MODEL_UNBINDMFADEVICERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UntagResourcesRequest.h b/ims/include/alibabacloud/ims/model/UntagResourcesRequest.h new file mode 100644 index 000000000..e6b8fe633 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UntagResourcesRequest.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_IMS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + std::vector getResourcePrincipalName() const; + void setResourcePrincipalName(const std::vector &resourcePrincipalName); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + std::vector resourcePrincipalName_; + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UntagResourcesResult.h b/ims/include/alibabacloud/ims/model/UntagResourcesResult.h new file mode 100644 index 000000000..85e192980 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UntagResourcesResult.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_IMS_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateAccessKeyRequest.h b/ims/include/alibabacloud/ims/model/UpdateAccessKeyRequest.h new file mode 100644 index 000000000..c96f53221 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateAccessKeyRequest.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_IMS_MODEL_UPDATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateAccessKeyRequest : public RpcServiceRequest { +public: + UpdateAccessKeyRequest(); + ~UpdateAccessKeyRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string userAccessKeyId_; + std::string akProxySuffix_; + std::string userPrincipalName_; + std::string status_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEACCESSKEYREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateAccessKeyResult.h b/ims/include/alibabacloud/ims/model/UpdateAccessKeyResult.h new file mode 100644 index 000000000..165af6803 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_UPDATEACCESSKEYRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEACCESSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateAccessKeyResult : public ServiceResult + { + public: + + + UpdateAccessKeyResult(); + explicit UpdateAccessKeyResult(const std::string &payload); + ~UpdateAccessKeyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateApplicationRequest.h b/ims/include/alibabacloud/ims/model/UpdateApplicationRequest.h new file mode 100644 index 000000000..5a9049a13 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateApplicationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMS_MODEL_UPDATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateApplicationRequest : public RpcServiceRequest { +public: + UpdateApplicationRequest(); + ~UpdateApplicationRequest(); + bool getNewIsMultiTenant() const; + void setNewIsMultiTenant(bool newIsMultiTenant); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + int getNewRefreshTokenValidity() const; + void setNewRefreshTokenValidity(int newRefreshTokenValidity); + std::string getNewPredefinedScopes() const; + void setNewPredefinedScopes(const std::string &newPredefinedScopes); + bool getNewSecretRequired() const; + void setNewSecretRequired(bool newSecretRequired); + std::string getNewDisplayName() const; + void setNewDisplayName(const std::string &newDisplayName); + std::string getNewRequiredScopes() const; + void setNewRequiredScopes(const std::string &newRequiredScopes); + std::string getNewRedirectUris() const; + void setNewRedirectUris(const std::string &newRedirectUris); + std::string getAppId() const; + void setAppId(const std::string &appId); + int getNewAccessTokenValidity() const; + void setNewAccessTokenValidity(int newAccessTokenValidity); + +private: + bool newIsMultiTenant_; + std::string akProxySuffix_; + int newRefreshTokenValidity_; + std::string newPredefinedScopes_; + bool newSecretRequired_; + std::string newDisplayName_; + std::string newRequiredScopes_; + std::string newRedirectUris_; + std::string appId_; + int newAccessTokenValidity_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEAPPLICATIONREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateApplicationResult.h b/ims/include/alibabacloud/ims/model/UpdateApplicationResult.h new file mode 100644 index 000000000..8bf8e4d21 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateApplicationResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IMS_MODEL_UPDATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateApplicationResult : public ServiceResult + { + public: + struct Application + { + struct DelegatedScope + { + struct PredefinedScope + { + std::string description; + bool required; + std::string name; + }; + std::vector predefinedScopes; + }; + std::string accountId; + bool secretRequired; + bool isMultiTenant; + std::string createDate; + std::string appName; + DelegatedScope delegatedScope; + std::string updateDate; + std::string tenantId; + std::string appId; + std::string displayName; + int accessTokenValidity; + std::string appPrincipalName; + std::vector redirectUris; + int refreshTokenValidity; + std::string appType; + }; + + + UpdateApplicationResult(); + explicit UpdateApplicationResult(const std::string &payload); + ~UpdateApplicationResult(); + Application getApplication()const; + + protected: + void parse(const std::string &payload); + private: + Application application_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateGroupRequest.h b/ims/include/alibabacloud/ims/model/UpdateGroupRequest.h new file mode 100644 index 000000000..5286b6e11 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateGroupRequest.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_IMS_MODEL_UPDATEGROUPREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateGroupRequest : public RpcServiceRequest { +public: + UpdateGroupRequest(); + ~UpdateGroupRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getNewGroupPrincipalName() const; + void setNewGroupPrincipalName(const std::string &newGroupPrincipalName); + std::string getNewDisplayName() const; + void setNewDisplayName(const std::string &newDisplayName); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getNewGroupName() const; + void setNewGroupName(const std::string &newGroupName); + std::string getNewComments() const; + void setNewComments(const std::string &newComments); + std::string getGroupPrincipalName() const; + void setGroupPrincipalName(const std::string &groupPrincipalName); + +private: + std::string akProxySuffix_; + std::string newGroupPrincipalName_; + std::string newDisplayName_; + std::string groupName_; + std::string newGroupName_; + std::string newComments_; + std::string groupPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEGROUPREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateGroupResult.h b/ims/include/alibabacloud/ims/model/UpdateGroupResult.h new file mode 100644 index 000000000..7e93f6fe7 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateGroupResult.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_IMS_MODEL_UPDATEGROUPRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateGroupResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string updateDate; + std::string groupPrincipalName; + std::string comments; + std::string displayName; + std::string createDate; + std::string groupId; + }; + + + UpdateGroupResult(); + explicit UpdateGroupResult(const std::string &payload); + ~UpdateGroupResult(); + Group getGroup()const; + + protected: + void parse(const std::string &payload); + private: + Group group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEGROUPRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateLoginProfileRequest.h b/ims/include/alibabacloud/ims/model/UpdateLoginProfileRequest.h new file mode 100644 index 000000000..0ce9dc82d --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateLoginProfileRequest.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_IMS_MODEL_UPDATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateLoginProfileRequest : public RpcServiceRequest { +public: + UpdateLoginProfileRequest(); + ~UpdateLoginProfileRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getPassword() const; + void setPassword(const std::string &password); + bool getGenerateRandomPassword() const; + void setGenerateRandomPassword(bool generateRandomPassword); + bool getMFABindRequired() const; + void setMFABindRequired(bool mFABindRequired); + bool getPasswordResetRequired() const; + void setPasswordResetRequired(bool passwordResetRequired); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string akProxySuffix_; + std::string password_; + bool generateRandomPassword_; + bool mFABindRequired_; + bool passwordResetRequired_; + std::string userPrincipalName_; + std::string status_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATELOGINPROFILEREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateLoginProfileResult.h b/ims/include/alibabacloud/ims/model/UpdateLoginProfileResult.h new file mode 100644 index 000000000..40b673d48 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateLoginProfileResult.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_IMS_MODEL_UPDATELOGINPROFILERESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATELOGINPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateLoginProfileResult : public ServiceResult + { + public: + struct LoginProfile + { + std::string status; + std::string updateDate; + bool passwordResetRequired; + std::string userPrincipalName; + bool mFABindRequired; + std::string createDate; + std::string password; + }; + + + UpdateLoginProfileResult(); + explicit UpdateLoginProfileResult(const std::string &payload); + ~UpdateLoginProfileResult(); + LoginProfile getLoginProfile()const; + + protected: + void parse(const std::string &payload); + private: + LoginProfile loginProfile_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATELOGINPROFILERESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateOIDCProviderRequest.h b/ims/include/alibabacloud/ims/model/UpdateOIDCProviderRequest.h new file mode 100644 index 000000000..2e3d34e58 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateOIDCProviderRequest.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_IMS_MODEL_UPDATEOIDCPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEOIDCPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateOIDCProviderRequest : public RpcServiceRequest { +public: + UpdateOIDCProviderRequest(); + ~UpdateOIDCProviderRequest(); + long getIssuanceLimitTime() const; + void setIssuanceLimitTime(long issuanceLimitTime); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getOIDCProviderName() const; + void setOIDCProviderName(const std::string &oIDCProviderName); + std::string getClientIds() const; + void setClientIds(const std::string &clientIds); + std::string getNewDescription() const; + void setNewDescription(const std::string &newDescription); + +private: + long issuanceLimitTime_; + std::string akProxySuffix_; + std::string oIDCProviderName_; + std::string clientIds_; + std::string newDescription_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEOIDCPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateOIDCProviderResult.h b/ims/include/alibabacloud/ims/model/UpdateOIDCProviderResult.h new file mode 100644 index 000000000..62b64556f --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateOIDCProviderResult.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_IMS_MODEL_UPDATEOIDCPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEOIDCPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateOIDCProviderResult : public ServiceResult + { + public: + struct OIDCProvider + { + std::string updateDate; + std::string gmtCreate; + std::string description; + std::string oIDCProviderName; + std::string issuerUrl; + std::string fingerprints; + std::string gmtModified; + long issuanceLimitTime; + std::string arn; + std::string createDate; + std::string clientIds; + }; + + + UpdateOIDCProviderResult(); + explicit UpdateOIDCProviderResult(const std::string &payload); + ~UpdateOIDCProviderResult(); + OIDCProvider getOIDCProvider()const; + + protected: + void parse(const std::string &payload); + private: + OIDCProvider oIDCProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEOIDCPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateSAMLProviderRequest.h b/ims/include/alibabacloud/ims/model/UpdateSAMLProviderRequest.h new file mode 100644 index 000000000..2704f80cc --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateSAMLProviderRequest.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_IMS_MODEL_UPDATESAMLPROVIDERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATESAMLPROVIDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateSAMLProviderRequest : public RpcServiceRequest { +public: + UpdateSAMLProviderRequest(); + ~UpdateSAMLProviderRequest(); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getNewEncodedSAMLMetadataDocument() const; + void setNewEncodedSAMLMetadataDocument(const std::string &newEncodedSAMLMetadataDocument); + std::string getSAMLProviderName() const; + void setSAMLProviderName(const std::string &sAMLProviderName); + std::string getNewDescription() const; + void setNewDescription(const std::string &newDescription); + std::string getNewSAMLMetadataDocument() const; + void setNewSAMLMetadataDocument(const std::string &newSAMLMetadataDocument); + +private: + std::string akProxySuffix_; + std::string newEncodedSAMLMetadataDocument_; + std::string sAMLProviderName_; + std::string newDescription_; + std::string newSAMLMetadataDocument_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATESAMLPROVIDERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateSAMLProviderResult.h b/ims/include/alibabacloud/ims/model/UpdateSAMLProviderResult.h new file mode 100644 index 000000000..57090cfd3 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateSAMLProviderResult.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_IMS_MODEL_UPDATESAMLPROVIDERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATESAMLPROVIDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateSAMLProviderResult : public ServiceResult + { + public: + struct SAMLProvider + { + std::string updateDate; + std::string description; + std::string sAMLProviderName; + std::string arn; + std::string createDate; + }; + + + UpdateSAMLProviderResult(); + explicit UpdateSAMLProviderResult(const std::string &payload); + ~UpdateSAMLProviderResult(); + SAMLProvider getSAMLProvider()const; + + protected: + void parse(const std::string &payload); + private: + SAMLProvider sAMLProvider_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATESAMLPROVIDERRESULT_H_ \ No newline at end of file diff --git a/ims/include/alibabacloud/ims/model/UpdateUserRequest.h b/ims/include/alibabacloud/ims/model/UpdateUserRequest.h new file mode 100644 index 000000000..a3c48dce7 --- /dev/null +++ b/ims/include/alibabacloud/ims/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_IMS_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ims { +namespace Model { +class ALIBABACLOUD_IMS_EXPORT UpdateUserRequest : public RpcServiceRequest { +public: + UpdateUserRequest(); + ~UpdateUserRequest(); + std::string getNewMobilePhone() const; + void setNewMobilePhone(const std::string &newMobilePhone); + std::string getAkProxySuffix() const; + void setAkProxySuffix(const std::string &akProxySuffix); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getNewEmail() const; + void setNewEmail(const std::string &newEmail); + std::string getNewDisplayName() const; + void setNewDisplayName(const std::string &newDisplayName); + std::string getUserPrincipalName() const; + void setUserPrincipalName(const std::string &userPrincipalName); + std::string getNewComments() const; + void setNewComments(const std::string &newComments); + std::string getNewUserPrincipalName() const; + void setNewUserPrincipalName(const std::string &newUserPrincipalName); + +private: + std::string newMobilePhone_; + std::string akProxySuffix_; + std::string userId_; + std::string newEmail_; + std::string newDisplayName_; + std::string userPrincipalName_; + std::string newComments_; + std::string newUserPrincipalName_; +}; +} // namespace Model +} // namespace Ims +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMS_MODEL_UPDATEUSERREQUEST_H_ diff --git a/ims/include/alibabacloud/ims/model/UpdateUserResult.h b/ims/include/alibabacloud/ims/model/UpdateUserResult.h new file mode 100644 index 000000000..b90e2f9f0 --- /dev/null +++ b/ims/include/alibabacloud/ims/model/UpdateUserResult.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_IMS_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_IMS_MODEL_UPDATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ims + { + namespace Model + { + class ALIBABACLOUD_IMS_EXPORT UpdateUserResult : public ServiceResult + { + public: + struct User + { + std::string updateDate; + std::string email; + std::string userId; + std::string comments; + std::string provisionType; + std::string displayName; + std::string lastLoginDate; + std::string userPrincipalName; + 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_IMS_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/ims/src/ImsClient.cc b/ims/src/ImsClient.cc new file mode 100644 index 000000000..ec273f37a --- /dev/null +++ b/ims/src/ImsClient.cc @@ -0,0 +1,2681 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +namespace +{ + const std::string SERVICE_NAME = "Ims"; +} + +ImsClient::ImsClient(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, "ims"); +} + +ImsClient::ImsClient(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, "ims"); +} + +ImsClient::ImsClient(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, "ims"); +} + +ImsClient::~ImsClient() +{} + +ImsClient::AddClientIdToOIDCProviderOutcome ImsClient::addClientIdToOIDCProvider(const AddClientIdToOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddClientIdToOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddClientIdToOIDCProviderOutcome(AddClientIdToOIDCProviderResult(outcome.result())); + else + return AddClientIdToOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::addClientIdToOIDCProviderAsync(const AddClientIdToOIDCProviderRequest& request, const AddClientIdToOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addClientIdToOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::AddClientIdToOIDCProviderOutcomeCallable ImsClient::addClientIdToOIDCProviderCallable(const AddClientIdToOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addClientIdToOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::AddFingerprintToOIDCProviderOutcome ImsClient::addFingerprintToOIDCProvider(const AddFingerprintToOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddFingerprintToOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddFingerprintToOIDCProviderOutcome(AddFingerprintToOIDCProviderResult(outcome.result())); + else + return AddFingerprintToOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::addFingerprintToOIDCProviderAsync(const AddFingerprintToOIDCProviderRequest& request, const AddFingerprintToOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addFingerprintToOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::AddFingerprintToOIDCProviderOutcomeCallable ImsClient::addFingerprintToOIDCProviderCallable(const AddFingerprintToOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addFingerprintToOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::AddUserToGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::AddUserToGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::BindMFADeviceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::BindMFADeviceOutcomeCallable ImsClient::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(); +} + +ImsClient::ChangePasswordOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ChangePasswordOutcomeCallable ImsClient::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(); +} + +ImsClient::CreateAccessKeyOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::CreateAccessKeyOutcomeCallable ImsClient::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(); +} + +ImsClient::CreateAppSecretOutcome ImsClient::createAppSecret(const CreateAppSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppSecretOutcome(CreateAppSecretResult(outcome.result())); + else + return CreateAppSecretOutcome(outcome.error()); +} + +void ImsClient::createAppSecretAsync(const CreateAppSecretRequest& request, const CreateAppSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::CreateAppSecretOutcomeCallable ImsClient::createAppSecretCallable(const CreateAppSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::CreateApplicationOutcome ImsClient::createApplication(const CreateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationOutcome(CreateApplicationResult(outcome.result())); + else + return CreateApplicationOutcome(outcome.error()); +} + +void ImsClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::CreateApplicationOutcomeCallable ImsClient::createApplicationCallable(const CreateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::CreateGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::CreateGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::CreateLoginProfileOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::CreateLoginProfileOutcomeCallable ImsClient::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(); +} + +ImsClient::CreateOIDCProviderOutcome ImsClient::createOIDCProvider(const CreateOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOIDCProviderOutcome(CreateOIDCProviderResult(outcome.result())); + else + return CreateOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::createOIDCProviderAsync(const CreateOIDCProviderRequest& request, const CreateOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::CreateOIDCProviderOutcomeCallable ImsClient::createOIDCProviderCallable(const CreateOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::CreateSAMLProviderOutcome ImsClient::createSAMLProvider(const CreateSAMLProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSAMLProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSAMLProviderOutcome(CreateSAMLProviderResult(outcome.result())); + else + return CreateSAMLProviderOutcome(outcome.error()); +} + +void ImsClient::createSAMLProviderAsync(const CreateSAMLProviderRequest& request, const CreateSAMLProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSAMLProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::CreateSAMLProviderOutcomeCallable ImsClient::createSAMLProviderCallable(const CreateSAMLProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSAMLProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::CreateUserOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::CreateUserOutcomeCallable ImsClient::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(); +} + +ImsClient::CreateVirtualMFADeviceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::CreateVirtualMFADeviceOutcomeCallable ImsClient::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(); +} + +ImsClient::DeleteAccessKeyOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::DeleteAccessKeyOutcomeCallable ImsClient::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(); +} + +ImsClient::DeleteAppSecretOutcome ImsClient::deleteAppSecret(const DeleteAppSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppSecretOutcome(DeleteAppSecretResult(outcome.result())); + else + return DeleteAppSecretOutcome(outcome.error()); +} + +void ImsClient::deleteAppSecretAsync(const DeleteAppSecretRequest& request, const DeleteAppSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::DeleteAppSecretOutcomeCallable ImsClient::deleteAppSecretCallable(const DeleteAppSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::DeleteApplicationOutcome ImsClient::deleteApplication(const DeleteApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationOutcome(DeleteApplicationResult(outcome.result())); + else + return DeleteApplicationOutcome(outcome.error()); +} + +void ImsClient::deleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::DeleteApplicationOutcomeCallable ImsClient::deleteApplicationCallable(const DeleteApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::DeleteGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::DeleteGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::DeleteLoginProfileOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::DeleteLoginProfileOutcomeCallable ImsClient::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(); +} + +ImsClient::DeleteOIDCProviderOutcome ImsClient::deleteOIDCProvider(const DeleteOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOIDCProviderOutcome(DeleteOIDCProviderResult(outcome.result())); + else + return DeleteOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::deleteOIDCProviderAsync(const DeleteOIDCProviderRequest& request, const DeleteOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::DeleteOIDCProviderOutcomeCallable ImsClient::deleteOIDCProviderCallable(const DeleteOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::DeleteSAMLProviderOutcome ImsClient::deleteSAMLProvider(const DeleteSAMLProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSAMLProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSAMLProviderOutcome(DeleteSAMLProviderResult(outcome.result())); + else + return DeleteSAMLProviderOutcome(outcome.error()); +} + +void ImsClient::deleteSAMLProviderAsync(const DeleteSAMLProviderRequest& request, const DeleteSAMLProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSAMLProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::DeleteSAMLProviderOutcomeCallable ImsClient::deleteSAMLProviderCallable(const DeleteSAMLProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSAMLProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::DeleteUserOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::DeleteUserOutcomeCallable ImsClient::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(); +} + +ImsClient::DeleteVirtualMFADeviceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::DeleteVirtualMFADeviceOutcomeCallable ImsClient::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(); +} + +ImsClient::DisableVirtualMFAOutcome ImsClient::disableVirtualMFA(const DisableVirtualMFARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableVirtualMFAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableVirtualMFAOutcome(DisableVirtualMFAResult(outcome.result())); + else + return DisableVirtualMFAOutcome(outcome.error()); +} + +void ImsClient::disableVirtualMFAAsync(const DisableVirtualMFARequest& request, const DisableVirtualMFAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableVirtualMFA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::DisableVirtualMFAOutcomeCallable ImsClient::disableVirtualMFACallable(const DisableVirtualMFARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableVirtualMFA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GenerateCredentialReportOutcome ImsClient::generateCredentialReport(const GenerateCredentialReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateCredentialReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateCredentialReportOutcome(GenerateCredentialReportResult(outcome.result())); + else + return GenerateCredentialReportOutcome(outcome.error()); +} + +void ImsClient::generateCredentialReportAsync(const GenerateCredentialReportRequest& request, const GenerateCredentialReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateCredentialReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GenerateCredentialReportOutcomeCallable ImsClient::generateCredentialReportCallable(const GenerateCredentialReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateCredentialReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetAccessKeyLastUsedOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetAccessKeyLastUsedOutcomeCallable ImsClient::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(); +} + +ImsClient::GetAccountMFAInfoOutcome ImsClient::getAccountMFAInfo(const GetAccountMFAInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountMFAInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountMFAInfoOutcome(GetAccountMFAInfoResult(outcome.result())); + else + return GetAccountMFAInfoOutcome(outcome.error()); +} + +void ImsClient::getAccountMFAInfoAsync(const GetAccountMFAInfoRequest& request, const GetAccountMFAInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountMFAInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetAccountMFAInfoOutcomeCallable ImsClient::getAccountMFAInfoCallable(const GetAccountMFAInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountMFAInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetAccountSecurityPracticeReportOutcome ImsClient::getAccountSecurityPracticeReport(const GetAccountSecurityPracticeReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountSecurityPracticeReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountSecurityPracticeReportOutcome(GetAccountSecurityPracticeReportResult(outcome.result())); + else + return GetAccountSecurityPracticeReportOutcome(outcome.error()); +} + +void ImsClient::getAccountSecurityPracticeReportAsync(const GetAccountSecurityPracticeReportRequest& request, const GetAccountSecurityPracticeReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountSecurityPracticeReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetAccountSecurityPracticeReportOutcomeCallable ImsClient::getAccountSecurityPracticeReportCallable(const GetAccountSecurityPracticeReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountSecurityPracticeReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetAccountSummaryOutcome ImsClient::getAccountSummary(const GetAccountSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountSummaryOutcome(GetAccountSummaryResult(outcome.result())); + else + return GetAccountSummaryOutcome(outcome.error()); +} + +void ImsClient::getAccountSummaryAsync(const GetAccountSummaryRequest& request, const GetAccountSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetAccountSummaryOutcomeCallable ImsClient::getAccountSummaryCallable(const GetAccountSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetAppSecretOutcome ImsClient::getAppSecret(const GetAppSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAppSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAppSecretOutcome(GetAppSecretResult(outcome.result())); + else + return GetAppSecretOutcome(outcome.error()); +} + +void ImsClient::getAppSecretAsync(const GetAppSecretRequest& request, const GetAppSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAppSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetAppSecretOutcomeCallable ImsClient::getAppSecretCallable(const GetAppSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAppSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetApplicationOutcome ImsClient::getApplication(const GetApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApplicationOutcome(GetApplicationResult(outcome.result())); + else + return GetApplicationOutcome(outcome.error()); +} + +void ImsClient::getApplicationAsync(const GetApplicationRequest& request, const GetApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetApplicationOutcomeCallable ImsClient::getApplicationCallable(const GetApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetCredentialReportOutcome ImsClient::getCredentialReport(const GetCredentialReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCredentialReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCredentialReportOutcome(GetCredentialReportResult(outcome.result())); + else + return GetCredentialReportOutcome(outcome.error()); +} + +void ImsClient::getCredentialReportAsync(const GetCredentialReportRequest& request, const GetCredentialReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCredentialReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetCredentialReportOutcomeCallable ImsClient::getCredentialReportCallable(const GetCredentialReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCredentialReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetDefaultDomainOutcome ImsClient::getDefaultDomain(const GetDefaultDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDefaultDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDefaultDomainOutcome(GetDefaultDomainResult(outcome.result())); + else + return GetDefaultDomainOutcome(outcome.error()); +} + +void ImsClient::getDefaultDomainAsync(const GetDefaultDomainRequest& request, const GetDefaultDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDefaultDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetDefaultDomainOutcomeCallable ImsClient::getDefaultDomainCallable(const GetDefaultDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDefaultDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::GetLoginProfileOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetLoginProfileOutcomeCallable ImsClient::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(); +} + +ImsClient::GetOIDCProviderOutcome ImsClient::getOIDCProvider(const GetOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOIDCProviderOutcome(GetOIDCProviderResult(outcome.result())); + else + return GetOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::getOIDCProviderAsync(const GetOIDCProviderRequest& request, const GetOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetOIDCProviderOutcomeCallable ImsClient::getOIDCProviderCallable(const GetOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetPasswordPolicyOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetPasswordPolicyOutcomeCallable ImsClient::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(); +} + +ImsClient::GetSAMLProviderOutcome ImsClient::getSAMLProvider(const GetSAMLProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSAMLProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSAMLProviderOutcome(GetSAMLProviderResult(outcome.result())); + else + return GetSAMLProviderOutcome(outcome.error()); +} + +void ImsClient::getSAMLProviderAsync(const GetSAMLProviderRequest& request, const GetSAMLProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSAMLProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetSAMLProviderOutcomeCallable ImsClient::getSAMLProviderCallable(const GetSAMLProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSAMLProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetSecurityPreferenceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetSecurityPreferenceOutcomeCallable ImsClient::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(); +} + +ImsClient::GetUserOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetUserOutcomeCallable ImsClient::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(); +} + +ImsClient::GetUserMFAInfoOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::GetUserMFAInfoOutcomeCallable ImsClient::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(); +} + +ImsClient::GetUserSsoSettingsOutcome ImsClient::getUserSsoSettings(const GetUserSsoSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserSsoSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserSsoSettingsOutcome(GetUserSsoSettingsResult(outcome.result())); + else + return GetUserSsoSettingsOutcome(outcome.error()); +} + +void ImsClient::getUserSsoSettingsAsync(const GetUserSsoSettingsRequest& request, const GetUserSsoSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserSsoSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetUserSsoSettingsOutcomeCallable ImsClient::getUserSsoSettingsCallable(const GetUserSsoSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserSsoSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::GetVerificationInfoOutcome ImsClient::getVerificationInfo(const GetVerificationInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVerificationInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVerificationInfoOutcome(GetVerificationInfoResult(outcome.result())); + else + return GetVerificationInfoOutcome(outcome.error()); +} + +void ImsClient::getVerificationInfoAsync(const GetVerificationInfoRequest& request, const GetVerificationInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVerificationInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::GetVerificationInfoOutcomeCallable ImsClient::getVerificationInfoCallable(const GetVerificationInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVerificationInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListAccessKeysOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListAccessKeysOutcomeCallable ImsClient::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(); +} + +ImsClient::ListAppSecretIdsOutcome ImsClient::listAppSecretIds(const ListAppSecretIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppSecretIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppSecretIdsOutcome(ListAppSecretIdsResult(outcome.result())); + else + return ListAppSecretIdsOutcome(outcome.error()); +} + +void ImsClient::listAppSecretIdsAsync(const ListAppSecretIdsRequest& request, const ListAppSecretIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppSecretIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListAppSecretIdsOutcomeCallable ImsClient::listAppSecretIdsCallable(const ListAppSecretIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppSecretIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListApplicationsOutcome ImsClient::listApplications(const ListApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationsOutcome(ListApplicationsResult(outcome.result())); + else + return ListApplicationsOutcome(outcome.error()); +} + +void ImsClient::listApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListApplicationsOutcomeCallable ImsClient::listApplicationsCallable(const ListApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListGroupsOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListGroupsOutcomeCallable ImsClient::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(); +} + +ImsClient::ListGroupsForUserOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListGroupsForUserOutcomeCallable ImsClient::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(); +} + +ImsClient::ListOIDCProvidersOutcome ImsClient::listOIDCProviders(const ListOIDCProvidersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOIDCProvidersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOIDCProvidersOutcome(ListOIDCProvidersResult(outcome.result())); + else + return ListOIDCProvidersOutcome(outcome.error()); +} + +void ImsClient::listOIDCProvidersAsync(const ListOIDCProvidersRequest& request, const ListOIDCProvidersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOIDCProviders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListOIDCProvidersOutcomeCallable ImsClient::listOIDCProvidersCallable(const ListOIDCProvidersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOIDCProviders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListPredefinedScopesOutcome ImsClient::listPredefinedScopes(const ListPredefinedScopesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPredefinedScopesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPredefinedScopesOutcome(ListPredefinedScopesResult(outcome.result())); + else + return ListPredefinedScopesOutcome(outcome.error()); +} + +void ImsClient::listPredefinedScopesAsync(const ListPredefinedScopesRequest& request, const ListPredefinedScopesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPredefinedScopes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListPredefinedScopesOutcomeCallable ImsClient::listPredefinedScopesCallable(const ListPredefinedScopesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPredefinedScopes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListSAMLProvidersOutcome ImsClient::listSAMLProviders(const ListSAMLProvidersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSAMLProvidersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSAMLProvidersOutcome(ListSAMLProvidersResult(outcome.result())); + else + return ListSAMLProvidersOutcome(outcome.error()); +} + +void ImsClient::listSAMLProvidersAsync(const ListSAMLProvidersRequest& request, const ListSAMLProvidersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSAMLProviders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListSAMLProvidersOutcomeCallable ImsClient::listSAMLProvidersCallable(const ListSAMLProvidersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSAMLProviders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListTagResourcesOutcome ImsClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void ImsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListTagResourcesOutcomeCallable ImsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListUserBasicInfosOutcome ImsClient::listUserBasicInfos(const ListUserBasicInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserBasicInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserBasicInfosOutcome(ListUserBasicInfosResult(outcome.result())); + else + return ListUserBasicInfosOutcome(outcome.error()); +} + +void ImsClient::listUserBasicInfosAsync(const ListUserBasicInfosRequest& request, const ListUserBasicInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserBasicInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::ListUserBasicInfosOutcomeCallable ImsClient::listUserBasicInfosCallable(const ListUserBasicInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserBasicInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::ListUsersOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListUsersOutcomeCallable ImsClient::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(); +} + +ImsClient::ListUsersForGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListUsersForGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::ListVirtualMFADevicesOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::ListVirtualMFADevicesOutcomeCallable ImsClient::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(); +} + +ImsClient::RemoveClientIdFromOIDCProviderOutcome ImsClient::removeClientIdFromOIDCProvider(const RemoveClientIdFromOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveClientIdFromOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveClientIdFromOIDCProviderOutcome(RemoveClientIdFromOIDCProviderResult(outcome.result())); + else + return RemoveClientIdFromOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::removeClientIdFromOIDCProviderAsync(const RemoveClientIdFromOIDCProviderRequest& request, const RemoveClientIdFromOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeClientIdFromOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::RemoveClientIdFromOIDCProviderOutcomeCallable ImsClient::removeClientIdFromOIDCProviderCallable(const RemoveClientIdFromOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeClientIdFromOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::RemoveFingerprintFromOIDCProviderOutcome ImsClient::removeFingerprintFromOIDCProvider(const RemoveFingerprintFromOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveFingerprintFromOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveFingerprintFromOIDCProviderOutcome(RemoveFingerprintFromOIDCProviderResult(outcome.result())); + else + return RemoveFingerprintFromOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::removeFingerprintFromOIDCProviderAsync(const RemoveFingerprintFromOIDCProviderRequest& request, const RemoveFingerprintFromOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeFingerprintFromOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::RemoveFingerprintFromOIDCProviderOutcomeCallable ImsClient::removeFingerprintFromOIDCProviderCallable(const RemoveFingerprintFromOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeFingerprintFromOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::RemoveUserFromGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::RemoveUserFromGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::SetDefaultDomainOutcome ImsClient::setDefaultDomain(const SetDefaultDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDefaultDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDefaultDomainOutcome(SetDefaultDomainResult(outcome.result())); + else + return SetDefaultDomainOutcome(outcome.error()); +} + +void ImsClient::setDefaultDomainAsync(const SetDefaultDomainRequest& request, const SetDefaultDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDefaultDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::SetDefaultDomainOutcomeCallable ImsClient::setDefaultDomainCallable(const SetDefaultDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDefaultDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::SetPasswordPolicyOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::SetPasswordPolicyOutcomeCallable ImsClient::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(); +} + +ImsClient::SetSecurityPreferenceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::SetSecurityPreferenceOutcomeCallable ImsClient::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(); +} + +ImsClient::SetUserSsoSettingsOutcome ImsClient::setUserSsoSettings(const SetUserSsoSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetUserSsoSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetUserSsoSettingsOutcome(SetUserSsoSettingsResult(outcome.result())); + else + return SetUserSsoSettingsOutcome(outcome.error()); +} + +void ImsClient::setUserSsoSettingsAsync(const SetUserSsoSettingsRequest& request, const SetUserSsoSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setUserSsoSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::SetUserSsoSettingsOutcomeCallable ImsClient::setUserSsoSettingsCallable(const SetUserSsoSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setUserSsoSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::TagResourcesOutcome ImsClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void ImsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::TagResourcesOutcomeCallable ImsClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::UnbindMFADeviceOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::UnbindMFADeviceOutcomeCallable ImsClient::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(); +} + +ImsClient::UntagResourcesOutcome ImsClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void ImsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::UntagResourcesOutcomeCallable ImsClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::UpdateAccessKeyOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::UpdateAccessKeyOutcomeCallable ImsClient::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(); +} + +ImsClient::UpdateApplicationOutcome ImsClient::updateApplication(const UpdateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApplicationOutcome(UpdateApplicationResult(outcome.result())); + else + return UpdateApplicationOutcome(outcome.error()); +} + +void ImsClient::updateApplicationAsync(const UpdateApplicationRequest& request, const UpdateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::UpdateApplicationOutcomeCallable ImsClient::updateApplicationCallable(const UpdateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::UpdateGroupOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::UpdateGroupOutcomeCallable ImsClient::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(); +} + +ImsClient::UpdateLoginProfileOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::UpdateLoginProfileOutcomeCallable ImsClient::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(); +} + +ImsClient::UpdateOIDCProviderOutcome ImsClient::updateOIDCProvider(const UpdateOIDCProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOIDCProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOIDCProviderOutcome(UpdateOIDCProviderResult(outcome.result())); + else + return UpdateOIDCProviderOutcome(outcome.error()); +} + +void ImsClient::updateOIDCProviderAsync(const UpdateOIDCProviderRequest& request, const UpdateOIDCProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOIDCProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::UpdateOIDCProviderOutcomeCallable ImsClient::updateOIDCProviderCallable(const UpdateOIDCProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOIDCProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::UpdateSAMLProviderOutcome ImsClient::updateSAMLProvider(const UpdateSAMLProviderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSAMLProviderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSAMLProviderOutcome(UpdateSAMLProviderResult(outcome.result())); + else + return UpdateSAMLProviderOutcome(outcome.error()); +} + +void ImsClient::updateSAMLProviderAsync(const UpdateSAMLProviderRequest& request, const UpdateSAMLProviderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSAMLProvider(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImsClient::UpdateSAMLProviderOutcomeCallable ImsClient::updateSAMLProviderCallable(const UpdateSAMLProviderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSAMLProvider(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImsClient::UpdateUserOutcome ImsClient::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 ImsClient::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)); +} + +ImsClient::UpdateUserOutcomeCallable ImsClient::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(); +} + diff --git a/ims/src/model/AddClientIdToOIDCProviderRequest.cc b/ims/src/model/AddClientIdToOIDCProviderRequest.cc new file mode 100644 index 000000000..3af362552 --- /dev/null +++ b/ims/src/model/AddClientIdToOIDCProviderRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::AddClientIdToOIDCProviderRequest; + +AddClientIdToOIDCProviderRequest::AddClientIdToOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "AddClientIdToOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +AddClientIdToOIDCProviderRequest::~AddClientIdToOIDCProviderRequest() {} + +std::string AddClientIdToOIDCProviderRequest::getClientId() const { + return clientId_; +} + +void AddClientIdToOIDCProviderRequest::setClientId(const std::string &clientId) { + clientId_ = clientId; + setParameter(std::string("ClientId"), clientId); +} + +std::string AddClientIdToOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void AddClientIdToOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string AddClientIdToOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void AddClientIdToOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + diff --git a/ims/src/model/AddClientIdToOIDCProviderResult.cc b/ims/src/model/AddClientIdToOIDCProviderResult.cc new file mode 100644 index 000000000..f3a0c50c7 --- /dev/null +++ b/ims/src/model/AddClientIdToOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +AddClientIdToOIDCProviderResult::AddClientIdToOIDCProviderResult() : + ServiceResult() +{} + +AddClientIdToOIDCProviderResult::AddClientIdToOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddClientIdToOIDCProviderResult::~AddClientIdToOIDCProviderResult() +{} + +void AddClientIdToOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +AddClientIdToOIDCProviderResult::OIDCProvider AddClientIdToOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/AddFingerprintToOIDCProviderRequest.cc b/ims/src/model/AddFingerprintToOIDCProviderRequest.cc new file mode 100644 index 000000000..ec04644dc --- /dev/null +++ b/ims/src/model/AddFingerprintToOIDCProviderRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::AddFingerprintToOIDCProviderRequest; + +AddFingerprintToOIDCProviderRequest::AddFingerprintToOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "AddFingerprintToOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +AddFingerprintToOIDCProviderRequest::~AddFingerprintToOIDCProviderRequest() {} + +std::string AddFingerprintToOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void AddFingerprintToOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string AddFingerprintToOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void AddFingerprintToOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + +std::string AddFingerprintToOIDCProviderRequest::getFingerprint() const { + return fingerprint_; +} + +void AddFingerprintToOIDCProviderRequest::setFingerprint(const std::string &fingerprint) { + fingerprint_ = fingerprint; + setParameter(std::string("Fingerprint"), fingerprint); +} + diff --git a/ims/src/model/AddFingerprintToOIDCProviderResult.cc b/ims/src/model/AddFingerprintToOIDCProviderResult.cc new file mode 100644 index 000000000..91dcc6e37 --- /dev/null +++ b/ims/src/model/AddFingerprintToOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +AddFingerprintToOIDCProviderResult::AddFingerprintToOIDCProviderResult() : + ServiceResult() +{} + +AddFingerprintToOIDCProviderResult::AddFingerprintToOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddFingerprintToOIDCProviderResult::~AddFingerprintToOIDCProviderResult() +{} + +void AddFingerprintToOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +AddFingerprintToOIDCProviderResult::OIDCProvider AddFingerprintToOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/AddUserToGroupRequest.cc b/ims/src/model/AddUserToGroupRequest.cc new file mode 100644 index 000000000..5b4e2d65e --- /dev/null +++ b/ims/src/model/AddUserToGroupRequest.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 + +using AlibabaCloud::Ims::Model::AddUserToGroupRequest; + +AddUserToGroupRequest::AddUserToGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "AddUserToGroup") { + setMethod(HttpRequest::Method::Post); +} + +AddUserToGroupRequest::~AddUserToGroupRequest() {} + +std::string AddUserToGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void AddUserToGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string AddUserToGroupRequest::getGroupName() const { + return groupName_; +} + +void AddUserToGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string AddUserToGroupRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void AddUserToGroupRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string AddUserToGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void AddUserToGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/AddUserToGroupResult.cc b/ims/src/model/AddUserToGroupResult.cc new file mode 100644 index 000000000..940ee9ad8 --- /dev/null +++ b/ims/src/model/AddUserToGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/BindMFADeviceRequest.cc b/ims/src/model/BindMFADeviceRequest.cc new file mode 100644 index 000000000..a5db4d130 --- /dev/null +++ b/ims/src/model/BindMFADeviceRequest.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::Ims::Model::BindMFADeviceRequest; + +BindMFADeviceRequest::BindMFADeviceRequest() + : RpcServiceRequest("ims", "2019-08-15", "BindMFADevice") { + setMethod(HttpRequest::Method::Post); +} + +BindMFADeviceRequest::~BindMFADeviceRequest() {} + +std::string BindMFADeviceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void BindMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string BindMFADeviceRequest::getU2fAppId() const { + return u2fAppId_; +} + +void BindMFADeviceRequest::setU2fAppId(const std::string &u2fAppId) { + u2fAppId_ = u2fAppId; + setParameter(std::string("U2fAppId"), u2fAppId); +} + +std::string BindMFADeviceRequest::getAuthenticationCode2() const { + return authenticationCode2_; +} + +void BindMFADeviceRequest::setAuthenticationCode2(const std::string &authenticationCode2) { + authenticationCode2_ = authenticationCode2; + setParameter(std::string("AuthenticationCode2"), authenticationCode2); +} + +std::string BindMFADeviceRequest::getType() const { + return type_; +} + +void BindMFADeviceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string BindMFADeviceRequest::getAuthenticationCode1() const { + return authenticationCode1_; +} + +void BindMFADeviceRequest::setAuthenticationCode1(const std::string &authenticationCode1) { + authenticationCode1_ = authenticationCode1; + setParameter(std::string("AuthenticationCode1"), authenticationCode1); +} + +std::string BindMFADeviceRequest::getU2fPublicKey() const { + return u2fPublicKey_; +} + +void BindMFADeviceRequest::setU2fPublicKey(const std::string &u2fPublicKey) { + u2fPublicKey_ = u2fPublicKey; + setParameter(std::string("U2fPublicKey"), u2fPublicKey); +} + +std::string BindMFADeviceRequest::getU2fVersion() const { + return u2fVersion_; +} + +void BindMFADeviceRequest::setU2fVersion(const std::string &u2fVersion) { + u2fVersion_ = u2fVersion; + setParameter(std::string("U2fVersion"), u2fVersion); +} + +std::string BindMFADeviceRequest::getSerialNumber() const { + return serialNumber_; +} + +void BindMFADeviceRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); +} + +std::string BindMFADeviceRequest::getU2fKeyHandler() const { + return u2fKeyHandler_; +} + +void BindMFADeviceRequest::setU2fKeyHandler(const std::string &u2fKeyHandler) { + u2fKeyHandler_ = u2fKeyHandler; + setParameter(std::string("U2fKeyHandler"), u2fKeyHandler); +} + +std::string BindMFADeviceRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void BindMFADeviceRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string BindMFADeviceRequest::getU2fAttestationCert() const { + return u2fAttestationCert_; +} + +void BindMFADeviceRequest::setU2fAttestationCert(const std::string &u2fAttestationCert) { + u2fAttestationCert_ = u2fAttestationCert; + setParameter(std::string("U2fAttestationCert"), u2fAttestationCert); +} + diff --git a/ims/src/model/BindMFADeviceResult.cc b/ims/src/model/BindMFADeviceResult.cc new file mode 100644 index 000000000..475fc3b94 --- /dev/null +++ b/ims/src/model/BindMFADeviceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/ChangePasswordRequest.cc b/ims/src/model/ChangePasswordRequest.cc new file mode 100644 index 000000000..ec6f41835 --- /dev/null +++ b/ims/src/model/ChangePasswordRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ChangePasswordRequest; + +ChangePasswordRequest::ChangePasswordRequest() + : RpcServiceRequest("ims", "2019-08-15", "ChangePassword") { + setMethod(HttpRequest::Method::Post); +} + +ChangePasswordRequest::~ChangePasswordRequest() {} + +std::string ChangePasswordRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ChangePasswordRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ChangePasswordRequest::getOldPassword() const { + return oldPassword_; +} + +void ChangePasswordRequest::setOldPassword(const std::string &oldPassword) { + oldPassword_ = oldPassword; + setParameter(std::string("OldPassword"), oldPassword); +} + +std::string ChangePasswordRequest::getNewPassword() const { + return newPassword_; +} + +void ChangePasswordRequest::setNewPassword(const std::string &newPassword) { + newPassword_ = newPassword; + setParameter(std::string("NewPassword"), newPassword); +} + diff --git a/ims/src/model/ChangePasswordResult.cc b/ims/src/model/ChangePasswordResult.cc new file mode 100644 index 000000000..131231792 --- /dev/null +++ b/ims/src/model/ChangePasswordResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/CreateAccessKeyRequest.cc b/ims/src/model/CreateAccessKeyRequest.cc new file mode 100644 index 000000000..ab8165897 --- /dev/null +++ b/ims/src/model/CreateAccessKeyRequest.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 + +using AlibabaCloud::Ims::Model::CreateAccessKeyRequest; + +CreateAccessKeyRequest::CreateAccessKeyRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateAccessKey") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccessKeyRequest::~CreateAccessKeyRequest() {} + +std::string CreateAccessKeyRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateAccessKeyRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateAccessKeyRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void CreateAccessKeyRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/CreateAccessKeyResult.cc b/ims/src/model/CreateAccessKeyResult.cc new file mode 100644 index 000000000..9a3fe3748 --- /dev/null +++ b/ims/src/model/CreateAccessKeyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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["Status"].isNull()) + accessKey_.status = accessKeyNode["Status"].asString(); + if(!accessKeyNode["AccessKeySecret"].isNull()) + accessKey_.accessKeySecret = accessKeyNode["AccessKeySecret"].asString(); + if(!accessKeyNode["AccessKeyId"].isNull()) + accessKey_.accessKeyId = accessKeyNode["AccessKeyId"].asString(); + if(!accessKeyNode["CreateDate"].isNull()) + accessKey_.createDate = accessKeyNode["CreateDate"].asString(); + +} + +CreateAccessKeyResult::AccessKey CreateAccessKeyResult::getAccessKey()const +{ + return accessKey_; +} + diff --git a/ims/src/model/CreateAppSecretRequest.cc b/ims/src/model/CreateAppSecretRequest.cc new file mode 100644 index 000000000..81c486926 --- /dev/null +++ b/ims/src/model/CreateAppSecretRequest.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 + +using AlibabaCloud::Ims::Model::CreateAppSecretRequest; + +CreateAppSecretRequest::CreateAppSecretRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateAppSecret") { + setMethod(HttpRequest::Method::Post); +} + +CreateAppSecretRequest::~CreateAppSecretRequest() {} + +std::string CreateAppSecretRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateAppSecretRequest::getAppId() const { + return appId_; +} + +void CreateAppSecretRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/CreateAppSecretResult.cc b/ims/src/model/CreateAppSecretResult.cc new file mode 100644 index 000000000..54fc78560 --- /dev/null +++ b/ims/src/model/CreateAppSecretResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +CreateAppSecretResult::CreateAppSecretResult() : + ServiceResult() +{} + +CreateAppSecretResult::CreateAppSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppSecretResult::~CreateAppSecretResult() +{} + +void CreateAppSecretResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto appSecretNode = value["AppSecret"]; + if(!appSecretNode["AppSecretValue"].isNull()) + appSecret_.appSecretValue = appSecretNode["AppSecretValue"].asString(); + if(!appSecretNode["AppId"].isNull()) + appSecret_.appId = appSecretNode["AppId"].asString(); + if(!appSecretNode["AppSecretId"].isNull()) + appSecret_.appSecretId = appSecretNode["AppSecretId"].asString(); + if(!appSecretNode["CreateDate"].isNull()) + appSecret_.createDate = appSecretNode["CreateDate"].asString(); + +} + +CreateAppSecretResult::AppSecret CreateAppSecretResult::getAppSecret()const +{ + return appSecret_; +} + diff --git a/ims/src/model/CreateApplicationRequest.cc b/ims/src/model/CreateApplicationRequest.cc new file mode 100644 index 000000000..3991b3bfd --- /dev/null +++ b/ims/src/model/CreateApplicationRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::CreateApplicationRequest; + +CreateApplicationRequest::CreateApplicationRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateApplication") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationRequest::~CreateApplicationRequest() {} + +std::string CreateApplicationRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateApplicationRequest::getAppName() const { + return appName_; +} + +void CreateApplicationRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateApplicationRequest::getRequiredScopes() const { + return requiredScopes_; +} + +void CreateApplicationRequest::setRequiredScopes(const std::string &requiredScopes) { + requiredScopes_ = requiredScopes; + setParameter(std::string("RequiredScopes"), requiredScopes); +} + +int CreateApplicationRequest::getAccessTokenValidity() const { + return accessTokenValidity_; +} + +void CreateApplicationRequest::setAccessTokenValidity(int accessTokenValidity) { + accessTokenValidity_ = accessTokenValidity; + setParameter(std::string("AccessTokenValidity"), std::to_string(accessTokenValidity)); +} + +int CreateApplicationRequest::getRefreshTokenValidity() const { + return refreshTokenValidity_; +} + +void CreateApplicationRequest::setRefreshTokenValidity(int refreshTokenValidity) { + refreshTokenValidity_ = refreshTokenValidity; + setParameter(std::string("RefreshTokenValidity"), std::to_string(refreshTokenValidity)); +} + +std::string CreateApplicationRequest::getRedirectUris() const { + return redirectUris_; +} + +void CreateApplicationRequest::setRedirectUris(const std::string &redirectUris) { + redirectUris_ = redirectUris; + setParameter(std::string("RedirectUris"), redirectUris); +} + +bool CreateApplicationRequest::getSecretRequired() const { + return secretRequired_; +} + +void CreateApplicationRequest::setSecretRequired(bool secretRequired) { + secretRequired_ = secretRequired; + setParameter(std::string("SecretRequired"), secretRequired ? "true" : "false"); +} + +std::string CreateApplicationRequest::getAppType() const { + return appType_; +} + +void CreateApplicationRequest::setAppType(const std::string &appType) { + appType_ = appType; + setParameter(std::string("AppType"), appType); +} + +std::string CreateApplicationRequest::getAppPrincipalName() const { + return appPrincipalName_; +} + +void CreateApplicationRequest::setAppPrincipalName(const std::string &appPrincipalName) { + appPrincipalName_ = appPrincipalName; + setParameter(std::string("AppPrincipalName"), appPrincipalName); +} + +std::string CreateApplicationRequest::getDisplayName() const { + return displayName_; +} + +void CreateApplicationRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setParameter(std::string("DisplayName"), displayName); +} + +std::string CreateApplicationRequest::getPredefinedScopes() const { + return predefinedScopes_; +} + +void CreateApplicationRequest::setPredefinedScopes(const std::string &predefinedScopes) { + predefinedScopes_ = predefinedScopes; + setParameter(std::string("PredefinedScopes"), predefinedScopes); +} + +bool CreateApplicationRequest::getIsMultiTenant() const { + return isMultiTenant_; +} + +void CreateApplicationRequest::setIsMultiTenant(bool isMultiTenant) { + isMultiTenant_ = isMultiTenant; + setParameter(std::string("IsMultiTenant"), isMultiTenant ? "true" : "false"); +} + diff --git a/ims/src/model/CreateApplicationResult.cc b/ims/src/model/CreateApplicationResult.cc new file mode 100644 index 000000000..f162c9cad --- /dev/null +++ b/ims/src/model/CreateApplicationResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +CreateApplicationResult::CreateApplicationResult() : + ServiceResult() +{} + +CreateApplicationResult::CreateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationResult::~CreateApplicationResult() +{} + +void CreateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto applicationNode = value["Application"]; + if(!applicationNode["DisplayName"].isNull()) + application_.displayName = applicationNode["DisplayName"].asString(); + if(!applicationNode["AccessTokenValidity"].isNull()) + application_.accessTokenValidity = std::stoi(applicationNode["AccessTokenValidity"].asString()); + if(!applicationNode["SecretRequired"].isNull()) + application_.secretRequired = applicationNode["SecretRequired"].asString() == "true"; + if(!applicationNode["AccountId"].isNull()) + application_.accountId = applicationNode["AccountId"].asString(); + if(!applicationNode["CreateDate"].isNull()) + application_.createDate = applicationNode["CreateDate"].asString(); + if(!applicationNode["AppName"].isNull()) + application_.appName = applicationNode["AppName"].asString(); + if(!applicationNode["UpdateDate"].isNull()) + application_.updateDate = applicationNode["UpdateDate"].asString(); + if(!applicationNode["AppId"].isNull()) + application_.appId = applicationNode["AppId"].asString(); + if(!applicationNode["RefreshTokenValidity"].isNull()) + application_.refreshTokenValidity = std::stoi(applicationNode["RefreshTokenValidity"].asString()); + if(!applicationNode["AppPrincipalName"].isNull()) + application_.appPrincipalName = applicationNode["AppPrincipalName"].asString(); + if(!applicationNode["IsMultiTenant"].isNull()) + application_.isMultiTenant = applicationNode["IsMultiTenant"].asString() == "true"; + if(!applicationNode["AppType"].isNull()) + application_.appType = applicationNode["AppType"].asString(); + if(!applicationNode["TenantId"].isNull()) + application_.tenantId = applicationNode["TenantId"].asString(); + auto delegatedScopeNode = applicationNode["DelegatedScope"]; + auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"]; + for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode) + { + Application::DelegatedScope::PredefinedScope predefinedScopeObject; + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull()) + predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull()) + predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true"; + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull()) + predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString(); + application_.delegatedScope.predefinedScopes.push_back(predefinedScopeObject); + } + auto allRedirectUris = applicationNode["RedirectUris"]["RedirectUri"]; + for (auto value : allRedirectUris) + application_.redirectUris.push_back(value.asString()); + +} + +CreateApplicationResult::Application CreateApplicationResult::getApplication()const +{ + return application_; +} + diff --git a/ims/src/model/CreateGroupRequest.cc b/ims/src/model/CreateGroupRequest.cc new file mode 100644 index 000000000..20a4c2950 --- /dev/null +++ b/ims/src/model/CreateGroupRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::CreateGroupRequest; + +CreateGroupRequest::CreateGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateGroupRequest::~CreateGroupRequest() {} + +std::string CreateGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateGroupRequest::getComments() const { + return comments_; +} + +void CreateGroupRequest::setComments(const std::string &comments) { + comments_ = comments; + setParameter(std::string("Comments"), comments); +} + +std::string CreateGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string CreateGroupRequest::getDisplayName() const { + return displayName_; +} + +void CreateGroupRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setParameter(std::string("DisplayName"), displayName); +} + +std::string CreateGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void CreateGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/CreateGroupResult.cc b/ims/src/model/CreateGroupResult.cc new file mode 100644 index 000000000..e0acd7d2b --- /dev/null +++ b/ims/src/model/CreateGroupResult.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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + group_.displayName = groupNode["DisplayName"].asString(); + if(!groupNode["GroupPrincipalName"].isNull()) + group_.groupPrincipalName = groupNode["GroupPrincipalName"].asString(); + if(!groupNode["GroupId"].isNull()) + group_.groupId = groupNode["GroupId"].asString(); + if(!groupNode["UpdateDate"].isNull()) + group_.updateDate = groupNode["UpdateDate"].asString(); + 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/ims/src/model/CreateLoginProfileRequest.cc b/ims/src/model/CreateLoginProfileRequest.cc new file mode 100644 index 000000000..4b1bc2b49 --- /dev/null +++ b/ims/src/model/CreateLoginProfileRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::CreateLoginProfileRequest; + +CreateLoginProfileRequest::CreateLoginProfileRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateLoginProfile") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoginProfileRequest::~CreateLoginProfileRequest() {} + +std::string CreateLoginProfileRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateLoginProfileRequest::getPassword() const { + return password_; +} + +void CreateLoginProfileRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +bool CreateLoginProfileRequest::getGenerateRandomPassword() const { + return generateRandomPassword_; +} + +void CreateLoginProfileRequest::setGenerateRandomPassword(bool generateRandomPassword) { + generateRandomPassword_ = generateRandomPassword; + setParameter(std::string("GenerateRandomPassword"), generateRandomPassword ? "true" : "false"); +} + +bool CreateLoginProfileRequest::getMFABindRequired() const { + return mFABindRequired_; +} + +void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { + mFABindRequired_ = mFABindRequired; + setParameter(std::string("MFABindRequired"), mFABindRequired ? "true" : "false"); +} + +bool CreateLoginProfileRequest::getPasswordResetRequired() const { + return passwordResetRequired_; +} + +void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { + passwordResetRequired_ = passwordResetRequired; + setParameter(std::string("PasswordResetRequired"), passwordResetRequired ? "true" : "false"); +} + +std::string CreateLoginProfileRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void CreateLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string CreateLoginProfileRequest::getStatus() const { + return status_; +} + +void CreateLoginProfileRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/ims/src/model/CreateLoginProfileResult.cc b/ims/src/model/CreateLoginProfileResult.cc new file mode 100644 index 000000000..a85ee011a --- /dev/null +++ b/ims/src/model/CreateLoginProfileResult.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::Ims; +using namespace AlibabaCloud::Ims::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["UserPrincipalName"].isNull()) + loginProfile_.userPrincipalName = loginProfileNode["UserPrincipalName"].asString(); + if(!loginProfileNode["Status"].isNull()) + loginProfile_.status = loginProfileNode["Status"].asString(); + if(!loginProfileNode["Password"].isNull()) + loginProfile_.password = loginProfileNode["Password"].asString(); + if(!loginProfileNode["UpdateDate"].isNull()) + loginProfile_.updateDate = loginProfileNode["UpdateDate"].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/ims/src/model/CreateOIDCProviderRequest.cc b/ims/src/model/CreateOIDCProviderRequest.cc new file mode 100644 index 000000000..2c37af536 --- /dev/null +++ b/ims/src/model/CreateOIDCProviderRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::CreateOIDCProviderRequest; + +CreateOIDCProviderRequest::CreateOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +CreateOIDCProviderRequest::~CreateOIDCProviderRequest() {} + +long CreateOIDCProviderRequest::getIssuanceLimitTime() const { + return issuanceLimitTime_; +} + +void CreateOIDCProviderRequest::setIssuanceLimitTime(long issuanceLimitTime) { + issuanceLimitTime_ = issuanceLimitTime; + setParameter(std::string("IssuanceLimitTime"), std::to_string(issuanceLimitTime)); +} + +std::string CreateOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateOIDCProviderRequest::getIssuerUrl() const { + return issuerUrl_; +} + +void CreateOIDCProviderRequest::setIssuerUrl(const std::string &issuerUrl) { + issuerUrl_ = issuerUrl; + setParameter(std::string("IssuerUrl"), issuerUrl); +} + +std::string CreateOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void CreateOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + +std::string CreateOIDCProviderRequest::getDescription() const { + return description_; +} + +void CreateOIDCProviderRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateOIDCProviderRequest::getClientIds() const { + return clientIds_; +} + +void CreateOIDCProviderRequest::setClientIds(const std::string &clientIds) { + clientIds_ = clientIds; + setParameter(std::string("ClientIds"), clientIds); +} + +std::string CreateOIDCProviderRequest::getFingerprints() const { + return fingerprints_; +} + +void CreateOIDCProviderRequest::setFingerprints(const std::string &fingerprints) { + fingerprints_ = fingerprints; + setParameter(std::string("Fingerprints"), fingerprints); +} + diff --git a/ims/src/model/CreateOIDCProviderResult.cc b/ims/src/model/CreateOIDCProviderResult.cc new file mode 100644 index 000000000..cc9b6e216 --- /dev/null +++ b/ims/src/model/CreateOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +CreateOIDCProviderResult::CreateOIDCProviderResult() : + ServiceResult() +{} + +CreateOIDCProviderResult::CreateOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOIDCProviderResult::~CreateOIDCProviderResult() +{} + +void CreateOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +CreateOIDCProviderResult::OIDCProvider CreateOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/CreateSAMLProviderRequest.cc b/ims/src/model/CreateSAMLProviderRequest.cc new file mode 100644 index 000000000..11084d64e --- /dev/null +++ b/ims/src/model/CreateSAMLProviderRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::CreateSAMLProviderRequest; + +CreateSAMLProviderRequest::CreateSAMLProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateSAMLProvider") { + setMethod(HttpRequest::Method::Post); +} + +CreateSAMLProviderRequest::~CreateSAMLProviderRequest() {} + +std::string CreateSAMLProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateSAMLProviderRequest::getDescription() const { + return description_; +} + +void CreateSAMLProviderRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateSAMLProviderRequest::getSAMLMetadataDocument() const { + return sAMLMetadataDocument_; +} + +void CreateSAMLProviderRequest::setSAMLMetadataDocument(const std::string &sAMLMetadataDocument) { + sAMLMetadataDocument_ = sAMLMetadataDocument; + setParameter(std::string("SAMLMetadataDocument"), sAMLMetadataDocument); +} + +std::string CreateSAMLProviderRequest::getEncodedSAMLMetadataDocument() const { + return encodedSAMLMetadataDocument_; +} + +void CreateSAMLProviderRequest::setEncodedSAMLMetadataDocument(const std::string &encodedSAMLMetadataDocument) { + encodedSAMLMetadataDocument_ = encodedSAMLMetadataDocument; + setParameter(std::string("EncodedSAMLMetadataDocument"), encodedSAMLMetadataDocument); +} + +std::string CreateSAMLProviderRequest::getSAMLProviderName() const { + return sAMLProviderName_; +} + +void CreateSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) { + sAMLProviderName_ = sAMLProviderName; + setParameter(std::string("SAMLProviderName"), sAMLProviderName); +} + diff --git a/ims/src/model/CreateSAMLProviderResult.cc b/ims/src/model/CreateSAMLProviderResult.cc new file mode 100644 index 000000000..0f6ffefd4 --- /dev/null +++ b/ims/src/model/CreateSAMLProviderResult.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 +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +CreateSAMLProviderResult::CreateSAMLProviderResult() : + ServiceResult() +{} + +CreateSAMLProviderResult::CreateSAMLProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSAMLProviderResult::~CreateSAMLProviderResult() +{} + +void CreateSAMLProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sAMLProviderNode = value["SAMLProvider"]; + if(!sAMLProviderNode["UpdateDate"].isNull()) + sAMLProvider_.updateDate = sAMLProviderNode["UpdateDate"].asString(); + if(!sAMLProviderNode["Description"].isNull()) + sAMLProvider_.description = sAMLProviderNode["Description"].asString(); + if(!sAMLProviderNode["SAMLProviderName"].isNull()) + sAMLProvider_.sAMLProviderName = sAMLProviderNode["SAMLProviderName"].asString(); + if(!sAMLProviderNode["CreateDate"].isNull()) + sAMLProvider_.createDate = sAMLProviderNode["CreateDate"].asString(); + if(!sAMLProviderNode["Arn"].isNull()) + sAMLProvider_.arn = sAMLProviderNode["Arn"].asString(); + +} + +CreateSAMLProviderResult::SAMLProvider CreateSAMLProviderResult::getSAMLProvider()const +{ + return sAMLProvider_; +} + diff --git a/ims/src/model/CreateUserRequest.cc b/ims/src/model/CreateUserRequest.cc new file mode 100644 index 000000000..c4ee8d852 --- /dev/null +++ b/ims/src/model/CreateUserRequest.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::Ims::Model::CreateUserRequest; + +CreateUserRequest::CreateUserRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateUser") { + setMethod(HttpRequest::Method::Post); +} + +CreateUserRequest::~CreateUserRequest() {} + +std::string CreateUserRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateUserRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string CreateUserRequest::getExternalId() const { + return externalId_; +} + +void CreateUserRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string CreateUserRequest::getMobilePhone() const { + return mobilePhone_; +} + +void CreateUserRequest::setMobilePhone(const std::string &mobilePhone) { + mobilePhone_ = mobilePhone; + setParameter(std::string("MobilePhone"), mobilePhone); +} + +std::vector CreateUserRequest::getTag() const { + return tag_; +} + +void CreateUserRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateUserRequest::getEmail() const { + return email_; +} + +void CreateUserRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); +} + +std::string CreateUserRequest::getComments() const { + return comments_; +} + +void CreateUserRequest::setComments(const std::string &comments) { + comments_ = comments; + setParameter(std::string("Comments"), comments); +} + +std::string CreateUserRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void CreateUserRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string CreateUserRequest::getDisplayName() const { + return displayName_; +} + +void CreateUserRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setParameter(std::string("DisplayName"), displayName); +} + diff --git a/ims/src/model/CreateUserResult.cc b/ims/src/model/CreateUserResult.cc new file mode 100644 index 000000000..43fa35bbb --- /dev/null +++ b/ims/src/model/CreateUserResult.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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + user_.displayName = userNode["DisplayName"].asString(); + if(!userNode["UserPrincipalName"].isNull()) + user_.userPrincipalName = userNode["UserPrincipalName"].asString(); + if(!userNode["Email"].isNull()) + user_.email = userNode["Email"].asString(); + if(!userNode["UpdateDate"].isNull()) + user_.updateDate = userNode["UpdateDate"].asString(); + if(!userNode["MobilePhone"].isNull()) + user_.mobilePhone = userNode["MobilePhone"].asString(); + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["Comments"].isNull()) + user_.comments = userNode["Comments"].asString(); + if(!userNode["LastLoginDate"].isNull()) + user_.lastLoginDate = userNode["LastLoginDate"].asString(); + if(!userNode["CreateDate"].isNull()) + user_.createDate = userNode["CreateDate"].asString(); + if(!userNode["ProvisionType"].isNull()) + user_.provisionType = userNode["ProvisionType"].asString(); + if(!userNode["ExternalId"].isNull()) + user_.externalId = userNode["ExternalId"].asString(); + auto allTagsNode = userNode["Tags"]["Tag"]; + for (auto userNodeTagsTag : allTagsNode) + { + User::Tag tagObject; + if(!userNodeTagsTag["TagKey"].isNull()) + tagObject.tagKey = userNodeTagsTag["TagKey"].asString(); + if(!userNodeTagsTag["TagValue"].isNull()) + tagObject.tagValue = userNodeTagsTag["TagValue"].asString(); + user_.tags.push_back(tagObject); + } + +} + +CreateUserResult::User CreateUserResult::getUser()const +{ + return user_; +} + diff --git a/ims/src/model/CreateVirtualMFADeviceRequest.cc b/ims/src/model/CreateVirtualMFADeviceRequest.cc new file mode 100644 index 000000000..4ec01874e --- /dev/null +++ b/ims/src/model/CreateVirtualMFADeviceRequest.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 + +using AlibabaCloud::Ims::Model::CreateVirtualMFADeviceRequest; + +CreateVirtualMFADeviceRequest::CreateVirtualMFADeviceRequest() + : RpcServiceRequest("ims", "2019-08-15", "CreateVirtualMFADevice") { + setMethod(HttpRequest::Method::Post); +} + +CreateVirtualMFADeviceRequest::~CreateVirtualMFADeviceRequest() {} + +std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName() const { + return virtualMFADeviceName_; +} + +void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string &virtualMFADeviceName) { + virtualMFADeviceName_ = virtualMFADeviceName; + setParameter(std::string("VirtualMFADeviceName"), virtualMFADeviceName); +} + +std::string CreateVirtualMFADeviceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void CreateVirtualMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/CreateVirtualMFADeviceResult.cc b/ims/src/model/CreateVirtualMFADeviceResult.cc new file mode 100644 index 000000000..df576067e --- /dev/null +++ b/ims/src/model/CreateVirtualMFADeviceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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["QRCodePNG"].isNull()) + virtualMFADevice_.qRCodePNG = virtualMFADeviceNode["QRCodePNG"].asString(); + if(!virtualMFADeviceNode["Base32StringSeed"].isNull()) + virtualMFADevice_.base32StringSeed = virtualMFADeviceNode["Base32StringSeed"].asString(); + +} + +CreateVirtualMFADeviceResult::VirtualMFADevice CreateVirtualMFADeviceResult::getVirtualMFADevice()const +{ + return virtualMFADevice_; +} + diff --git a/ims/src/model/DeleteAccessKeyRequest.cc b/ims/src/model/DeleteAccessKeyRequest.cc new file mode 100644 index 000000000..2fb9d8284 --- /dev/null +++ b/ims/src/model/DeleteAccessKeyRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::DeleteAccessKeyRequest; + +DeleteAccessKeyRequest::DeleteAccessKeyRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteAccessKey") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccessKeyRequest::~DeleteAccessKeyRequest() {} + +std::string DeleteAccessKeyRequest::getUserAccessKeyId() const { + return userAccessKeyId_; +} + +void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); +} + +std::string DeleteAccessKeyRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteAccessKeyRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteAccessKeyRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void DeleteAccessKeyRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/DeleteAccessKeyResult.cc b/ims/src/model/DeleteAccessKeyResult.cc new file mode 100644 index 000000000..40cc74572 --- /dev/null +++ b/ims/src/model/DeleteAccessKeyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/DeleteAppSecretRequest.cc b/ims/src/model/DeleteAppSecretRequest.cc new file mode 100644 index 000000000..287dd4ff8 --- /dev/null +++ b/ims/src/model/DeleteAppSecretRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::DeleteAppSecretRequest; + +DeleteAppSecretRequest::DeleteAppSecretRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteAppSecret") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAppSecretRequest::~DeleteAppSecretRequest() {} + +std::string DeleteAppSecretRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteAppSecretRequest::getAppSecretId() const { + return appSecretId_; +} + +void DeleteAppSecretRequest::setAppSecretId(const std::string &appSecretId) { + appSecretId_ = appSecretId; + setParameter(std::string("AppSecretId"), appSecretId); +} + +std::string DeleteAppSecretRequest::getAppId() const { + return appId_; +} + +void DeleteAppSecretRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/DeleteAppSecretResult.cc b/ims/src/model/DeleteAppSecretResult.cc new file mode 100644 index 000000000..b24e93252 --- /dev/null +++ b/ims/src/model/DeleteAppSecretResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +DeleteAppSecretResult::DeleteAppSecretResult() : + ServiceResult() +{} + +DeleteAppSecretResult::DeleteAppSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppSecretResult::~DeleteAppSecretResult() +{} + +void DeleteAppSecretResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/DeleteApplicationRequest.cc b/ims/src/model/DeleteApplicationRequest.cc new file mode 100644 index 000000000..d137c78df --- /dev/null +++ b/ims/src/model/DeleteApplicationRequest.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 + +using AlibabaCloud::Ims::Model::DeleteApplicationRequest; + +DeleteApplicationRequest::DeleteApplicationRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteApplication") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApplicationRequest::~DeleteApplicationRequest() {} + +std::string DeleteApplicationRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteApplicationRequest::getAppId() const { + return appId_; +} + +void DeleteApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/DeleteApplicationResult.cc b/ims/src/model/DeleteApplicationResult.cc new file mode 100644 index 000000000..3c1c3ca79 --- /dev/null +++ b/ims/src/model/DeleteApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +DeleteApplicationResult::DeleteApplicationResult() : + ServiceResult() +{} + +DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationResult::~DeleteApplicationResult() +{} + +void DeleteApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/DeleteGroupRequest.cc b/ims/src/model/DeleteGroupRequest.cc new file mode 100644 index 000000000..89065e023 --- /dev/null +++ b/ims/src/model/DeleteGroupRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::DeleteGroupRequest; + +DeleteGroupRequest::DeleteGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGroupRequest::~DeleteGroupRequest() {} + +std::string DeleteGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteGroupRequest::getGroupName() const { + return groupName_; +} + +void DeleteGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string DeleteGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void DeleteGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/DeleteGroupResult.cc b/ims/src/model/DeleteGroupResult.cc new file mode 100644 index 000000000..52cbc4ba0 --- /dev/null +++ b/ims/src/model/DeleteGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/DeleteLoginProfileRequest.cc b/ims/src/model/DeleteLoginProfileRequest.cc new file mode 100644 index 000000000..d29808790 --- /dev/null +++ b/ims/src/model/DeleteLoginProfileRequest.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 + +using AlibabaCloud::Ims::Model::DeleteLoginProfileRequest; + +DeleteLoginProfileRequest::DeleteLoginProfileRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteLoginProfile") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLoginProfileRequest::~DeleteLoginProfileRequest() {} + +std::string DeleteLoginProfileRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteLoginProfileRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void DeleteLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/DeleteLoginProfileResult.cc b/ims/src/model/DeleteLoginProfileResult.cc new file mode 100644 index 000000000..4301dcc4c --- /dev/null +++ b/ims/src/model/DeleteLoginProfileResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/DeleteOIDCProviderRequest.cc b/ims/src/model/DeleteOIDCProviderRequest.cc new file mode 100644 index 000000000..9adf54127 --- /dev/null +++ b/ims/src/model/DeleteOIDCProviderRequest.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 + +using AlibabaCloud::Ims::Model::DeleteOIDCProviderRequest; + +DeleteOIDCProviderRequest::DeleteOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +DeleteOIDCProviderRequest::~DeleteOIDCProviderRequest() {} + +std::string DeleteOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void DeleteOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + diff --git a/ims/src/model/DeleteOIDCProviderResult.cc b/ims/src/model/DeleteOIDCProviderResult.cc new file mode 100644 index 000000000..a7f54510e --- /dev/null +++ b/ims/src/model/DeleteOIDCProviderResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +DeleteOIDCProviderResult::DeleteOIDCProviderResult() : + ServiceResult() +{} + +DeleteOIDCProviderResult::DeleteOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOIDCProviderResult::~DeleteOIDCProviderResult() +{} + +void DeleteOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/DeleteSAMLProviderRequest.cc b/ims/src/model/DeleteSAMLProviderRequest.cc new file mode 100644 index 000000000..870b495f4 --- /dev/null +++ b/ims/src/model/DeleteSAMLProviderRequest.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 + +using AlibabaCloud::Ims::Model::DeleteSAMLProviderRequest; + +DeleteSAMLProviderRequest::DeleteSAMLProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteSAMLProvider") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSAMLProviderRequest::~DeleteSAMLProviderRequest() {} + +std::string DeleteSAMLProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteSAMLProviderRequest::getSAMLProviderName() const { + return sAMLProviderName_; +} + +void DeleteSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) { + sAMLProviderName_ = sAMLProviderName; + setParameter(std::string("SAMLProviderName"), sAMLProviderName); +} + diff --git a/ims/src/model/DeleteSAMLProviderResult.cc b/ims/src/model/DeleteSAMLProviderResult.cc new file mode 100644 index 000000000..6d2a084a6 --- /dev/null +++ b/ims/src/model/DeleteSAMLProviderResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +DeleteSAMLProviderResult::DeleteSAMLProviderResult() : + ServiceResult() +{} + +DeleteSAMLProviderResult::DeleteSAMLProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSAMLProviderResult::~DeleteSAMLProviderResult() +{} + +void DeleteSAMLProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/DeleteUserRequest.cc b/ims/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..3bcd5190a --- /dev/null +++ b/ims/src/model/DeleteUserRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteUser") { + setMethod(HttpRequest::Method::Post); +} + +DeleteUserRequest::~DeleteUserRequest() {} + +std::string DeleteUserRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteUserRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DeleteUserRequest::getUserId() const { + return userId_; +} + +void DeleteUserRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string DeleteUserRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void DeleteUserRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/DeleteUserResult.cc b/ims/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..68aa2e6f8 --- /dev/null +++ b/ims/src/model/DeleteUserResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/DeleteVirtualMFADeviceRequest.cc b/ims/src/model/DeleteVirtualMFADeviceRequest.cc new file mode 100644 index 000000000..21c865003 --- /dev/null +++ b/ims/src/model/DeleteVirtualMFADeviceRequest.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 + +using AlibabaCloud::Ims::Model::DeleteVirtualMFADeviceRequest; + +DeleteVirtualMFADeviceRequest::DeleteVirtualMFADeviceRequest() + : RpcServiceRequest("ims", "2019-08-15", "DeleteVirtualMFADevice") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVirtualMFADeviceRequest::~DeleteVirtualMFADeviceRequest() {} + +std::string DeleteVirtualMFADeviceRequest::getSerialNumber() const { + return serialNumber_; +} + +void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); +} + +std::string DeleteVirtualMFADeviceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DeleteVirtualMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/DeleteVirtualMFADeviceResult.cc b/ims/src/model/DeleteVirtualMFADeviceResult.cc new file mode 100644 index 000000000..bf70fee0f --- /dev/null +++ b/ims/src/model/DeleteVirtualMFADeviceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/DisableVirtualMFARequest.cc b/ims/src/model/DisableVirtualMFARequest.cc new file mode 100644 index 000000000..1a29a4d6c --- /dev/null +++ b/ims/src/model/DisableVirtualMFARequest.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 + +using AlibabaCloud::Ims::Model::DisableVirtualMFARequest; + +DisableVirtualMFARequest::DisableVirtualMFARequest() + : RpcServiceRequest("ims", "2019-08-15", "DisableVirtualMFA") { + setMethod(HttpRequest::Method::Post); +} + +DisableVirtualMFARequest::~DisableVirtualMFARequest() {} + +std::string DisableVirtualMFARequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void DisableVirtualMFARequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string DisableVirtualMFARequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void DisableVirtualMFARequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/DisableVirtualMFAResult.cc b/ims/src/model/DisableVirtualMFAResult.cc new file mode 100644 index 000000000..802d99752 --- /dev/null +++ b/ims/src/model/DisableVirtualMFAResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +DisableVirtualMFAResult::DisableVirtualMFAResult() : + ServiceResult() +{} + +DisableVirtualMFAResult::DisableVirtualMFAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableVirtualMFAResult::~DisableVirtualMFAResult() +{} + +void DisableVirtualMFAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/GenerateCredentialReportRequest.cc b/ims/src/model/GenerateCredentialReportRequest.cc new file mode 100644 index 000000000..05e80f56f --- /dev/null +++ b/ims/src/model/GenerateCredentialReportRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GenerateCredentialReportRequest; + +GenerateCredentialReportRequest::GenerateCredentialReportRequest() + : RpcServiceRequest("ims", "2019-08-15", "GenerateCredentialReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateCredentialReportRequest::~GenerateCredentialReportRequest() {} + +std::string GenerateCredentialReportRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GenerateCredentialReportRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GenerateCredentialReportResult.cc b/ims/src/model/GenerateCredentialReportResult.cc new file mode 100644 index 000000000..3187fe037 --- /dev/null +++ b/ims/src/model/GenerateCredentialReportResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GenerateCredentialReportResult::GenerateCredentialReportResult() : + ServiceResult() +{} + +GenerateCredentialReportResult::GenerateCredentialReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateCredentialReportResult::~GenerateCredentialReportResult() +{} + +void GenerateCredentialReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string GenerateCredentialReportResult::getState()const +{ + return state_; +} + diff --git a/ims/src/model/GetAccessKeyLastUsedRequest.cc b/ims/src/model/GetAccessKeyLastUsedRequest.cc new file mode 100644 index 000000000..5506ed816 --- /dev/null +++ b/ims/src/model/GetAccessKeyLastUsedRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::GetAccessKeyLastUsedRequest; + +GetAccessKeyLastUsedRequest::GetAccessKeyLastUsedRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetAccessKeyLastUsed") { + setMethod(HttpRequest::Method::Post); +} + +GetAccessKeyLastUsedRequest::~GetAccessKeyLastUsedRequest() {} + +std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId() const { + return userAccessKeyId_; +} + +void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); +} + +std::string GetAccessKeyLastUsedRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetAccessKeyLastUsedRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetAccessKeyLastUsedRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void GetAccessKeyLastUsedRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/GetAccessKeyLastUsedResult.cc b/ims/src/model/GetAccessKeyLastUsedResult.cc new file mode 100644 index 000000000..59325d972 --- /dev/null +++ b/ims/src/model/GetAccessKeyLastUsedResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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(); + if(!accessKeyLastUsedNode["ServiceName"].isNull()) + accessKeyLastUsed_.serviceName = accessKeyLastUsedNode["ServiceName"].asString(); + +} + +GetAccessKeyLastUsedResult::AccessKeyLastUsed GetAccessKeyLastUsedResult::getAccessKeyLastUsed()const +{ + return accessKeyLastUsed_; +} + diff --git a/ims/src/model/GetAccountMFAInfoRequest.cc b/ims/src/model/GetAccountMFAInfoRequest.cc new file mode 100644 index 000000000..b2b42dd0c --- /dev/null +++ b/ims/src/model/GetAccountMFAInfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetAccountMFAInfoRequest; + +GetAccountMFAInfoRequest::GetAccountMFAInfoRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetAccountMFAInfo") { + setMethod(HttpRequest::Method::Post); +} + +GetAccountMFAInfoRequest::~GetAccountMFAInfoRequest() {} + +std::string GetAccountMFAInfoRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetAccountMFAInfoRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetAccountMFAInfoResult.cc b/ims/src/model/GetAccountMFAInfoResult.cc new file mode 100644 index 000000000..e01773cb9 --- /dev/null +++ b/ims/src/model/GetAccountMFAInfoResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetAccountMFAInfoResult::GetAccountMFAInfoResult() : + ServiceResult() +{} + +GetAccountMFAInfoResult::GetAccountMFAInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountMFAInfoResult::~GetAccountMFAInfoResult() +{} + +void GetAccountMFAInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["IsMFAEnable"].isNull()) + isMFAEnable_ = value["IsMFAEnable"].asString() == "true"; + +} + +bool GetAccountMFAInfoResult::getIsMFAEnable()const +{ + return isMFAEnable_; +} + diff --git a/ims/src/model/GetAccountSecurityPracticeReportRequest.cc b/ims/src/model/GetAccountSecurityPracticeReportRequest.cc new file mode 100644 index 000000000..9e64ea3be --- /dev/null +++ b/ims/src/model/GetAccountSecurityPracticeReportRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetAccountSecurityPracticeReportRequest; + +GetAccountSecurityPracticeReportRequest::GetAccountSecurityPracticeReportRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetAccountSecurityPracticeReport") { + setMethod(HttpRequest::Method::Post); +} + +GetAccountSecurityPracticeReportRequest::~GetAccountSecurityPracticeReportRequest() {} + +std::string GetAccountSecurityPracticeReportRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetAccountSecurityPracticeReportRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetAccountSecurityPracticeReportResult.cc b/ims/src/model/GetAccountSecurityPracticeReportResult.cc new file mode 100644 index 000000000..ef3608975 --- /dev/null +++ b/ims/src/model/GetAccountSecurityPracticeReportResult.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 +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetAccountSecurityPracticeReportResult::GetAccountSecurityPracticeReportResult() : + ServiceResult() +{} + +GetAccountSecurityPracticeReportResult::GetAccountSecurityPracticeReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountSecurityPracticeReportResult::~GetAccountSecurityPracticeReportResult() +{} + +void GetAccountSecurityPracticeReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountSecurityPracticeInfoNode = value["AccountSecurityPracticeInfo"]; + if(!accountSecurityPracticeInfoNode["Score"].isNull()) + accountSecurityPracticeInfo_.score = std::stoi(accountSecurityPracticeInfoNode["Score"].asString()); + auto accountSecurityPracticeUserInfoNode = accountSecurityPracticeInfoNode["AccountSecurityPracticeUserInfo"]; + if(!accountSecurityPracticeUserInfoNode["UnusedAkNum"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.unusedAkNum = std::stoi(accountSecurityPracticeUserInfoNode["UnusedAkNum"].asString()); + if(!accountSecurityPracticeUserInfoNode["SubUserWithUnusedAccessKey"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserWithUnusedAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["SubUserWithUnusedAccessKey"].asString()); + if(!accountSecurityPracticeUserInfoNode["RootWithAccessKey"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.rootWithAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["RootWithAccessKey"].asString()); + if(!accountSecurityPracticeUserInfoNode["SubUser"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUser = std::stoi(accountSecurityPracticeUserInfoNode["SubUser"].asString()); + if(!accountSecurityPracticeUserInfoNode["BindMfa"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.bindMfa = accountSecurityPracticeUserInfoNode["BindMfa"].asString() == "true"; + if(!accountSecurityPracticeUserInfoNode["OldAkNum"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.oldAkNum = std::stoi(accountSecurityPracticeUserInfoNode["OldAkNum"].asString()); + if(!accountSecurityPracticeUserInfoNode["SubUserPwdLevel"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserPwdLevel = accountSecurityPracticeUserInfoNode["SubUserPwdLevel"].asString(); + if(!accountSecurityPracticeUserInfoNode["SubUserWithOldAccessKey"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserWithOldAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["SubUserWithOldAccessKey"].asString()); + if(!accountSecurityPracticeUserInfoNode["SubUserBindMfa"].isNull()) + accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserBindMfa = std::stoi(accountSecurityPracticeUserInfoNode["SubUserBindMfa"].asString()); + +} + +GetAccountSecurityPracticeReportResult::AccountSecurityPracticeInfo GetAccountSecurityPracticeReportResult::getAccountSecurityPracticeInfo()const +{ + return accountSecurityPracticeInfo_; +} + diff --git a/ims/src/model/GetAccountSummaryRequest.cc b/ims/src/model/GetAccountSummaryRequest.cc new file mode 100644 index 000000000..96086b7b7 --- /dev/null +++ b/ims/src/model/GetAccountSummaryRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetAccountSummaryRequest; + +GetAccountSummaryRequest::GetAccountSummaryRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetAccountSummary") { + setMethod(HttpRequest::Method::Post); +} + +GetAccountSummaryRequest::~GetAccountSummaryRequest() {} + +std::string GetAccountSummaryRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetAccountSummaryRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetAccountSummaryResult.cc b/ims/src/model/GetAccountSummaryResult.cc new file mode 100644 index 000000000..45f16adf8 --- /dev/null +++ b/ims/src/model/GetAccountSummaryResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetAccountSummaryResult::GetAccountSummaryResult() : + ServiceResult() +{} + +GetAccountSummaryResult::GetAccountSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountSummaryResult::~GetAccountSummaryResult() +{} + +void GetAccountSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto summaryMapNode = value["SummaryMap"]; + if(!summaryMapNode["MFADevices"].isNull()) + summaryMap_.mFADevices = std::stoi(summaryMapNode["MFADevices"].asString()); + if(!summaryMapNode["AccessKeysPerUserQuota"].isNull()) + summaryMap_.accessKeysPerUserQuota = std::stoi(summaryMapNode["AccessKeysPerUserQuota"].asString()); + if(!summaryMapNode["AttachedPoliciesPerGroupQuota"].isNull()) + summaryMap_.attachedPoliciesPerGroupQuota = std::stoi(summaryMapNode["AttachedPoliciesPerGroupQuota"].asString()); + if(!summaryMapNode["AttachedSystemPoliciesPerRoleQuota"].isNull()) + summaryMap_.attachedSystemPoliciesPerRoleQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerRoleQuota"].asString()); + if(!summaryMapNode["AttachedPoliciesPerRoleQuota"].isNull()) + summaryMap_.attachedPoliciesPerRoleQuota = std::stoi(summaryMapNode["AttachedPoliciesPerRoleQuota"].asString()); + if(!summaryMapNode["GroupsPerUserQuota"].isNull()) + summaryMap_.groupsPerUserQuota = std::stoi(summaryMapNode["GroupsPerUserQuota"].asString()); + if(!summaryMapNode["Roles"].isNull()) + summaryMap_.roles = std::stoi(summaryMapNode["Roles"].asString()); + if(!summaryMapNode["PolicySizeQuota"].isNull()) + summaryMap_.policySizeQuota = std::stoi(summaryMapNode["PolicySizeQuota"].asString()); + if(!summaryMapNode["AttachedSystemPoliciesPerGroupQuota"].isNull()) + summaryMap_.attachedSystemPoliciesPerGroupQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerGroupQuota"].asString()); + if(!summaryMapNode["AttachedSystemPoliciesPerUserQuota"].isNull()) + summaryMap_.attachedSystemPoliciesPerUserQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerUserQuota"].asString()); + if(!summaryMapNode["AttachedPoliciesPerUserQuota"].isNull()) + summaryMap_.attachedPoliciesPerUserQuota = std::stoi(summaryMapNode["AttachedPoliciesPerUserQuota"].asString()); + if(!summaryMapNode["GroupsQuota"].isNull()) + summaryMap_.groupsQuota = std::stoi(summaryMapNode["GroupsQuota"].asString()); + if(!summaryMapNode["Groups"].isNull()) + summaryMap_.groups = std::stoi(summaryMapNode["Groups"].asString()); + if(!summaryMapNode["PoliciesQuota"].isNull()) + summaryMap_.policiesQuota = std::stoi(summaryMapNode["PoliciesQuota"].asString()); + if(!summaryMapNode["VirtualMFADevicesQuota"].isNull()) + summaryMap_.virtualMFADevicesQuota = std::stoi(summaryMapNode["VirtualMFADevicesQuota"].asString()); + if(!summaryMapNode["VersionsPerPolicyQuota"].isNull()) + summaryMap_.versionsPerPolicyQuota = std::stoi(summaryMapNode["VersionsPerPolicyQuota"].asString()); + if(!summaryMapNode["RolesQuota"].isNull()) + summaryMap_.rolesQuota = std::stoi(summaryMapNode["RolesQuota"].asString()); + if(!summaryMapNode["UsersQuota"].isNull()) + summaryMap_.usersQuota = std::stoi(summaryMapNode["UsersQuota"].asString()); + if(!summaryMapNode["Policies"].isNull()) + summaryMap_.policies = std::stoi(summaryMapNode["Policies"].asString()); + if(!summaryMapNode["Users"].isNull()) + summaryMap_.users = std::stoi(summaryMapNode["Users"].asString()); + if(!summaryMapNode["MFADevicesInUse"].isNull()) + summaryMap_.mFADevicesInUse = std::stoi(summaryMapNode["MFADevicesInUse"].asString()); + +} + +GetAccountSummaryResult::SummaryMap GetAccountSummaryResult::getSummaryMap()const +{ + return summaryMap_; +} + diff --git a/ims/src/model/GetAppSecretRequest.cc b/ims/src/model/GetAppSecretRequest.cc new file mode 100644 index 000000000..79c9becb2 --- /dev/null +++ b/ims/src/model/GetAppSecretRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::GetAppSecretRequest; + +GetAppSecretRequest::GetAppSecretRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetAppSecret") { + setMethod(HttpRequest::Method::Post); +} + +GetAppSecretRequest::~GetAppSecretRequest() {} + +std::string GetAppSecretRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetAppSecretRequest::getAppSecretId() const { + return appSecretId_; +} + +void GetAppSecretRequest::setAppSecretId(const std::string &appSecretId) { + appSecretId_ = appSecretId; + setParameter(std::string("AppSecretId"), appSecretId); +} + +std::string GetAppSecretRequest::getAppId() const { + return appId_; +} + +void GetAppSecretRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/GetAppSecretResult.cc b/ims/src/model/GetAppSecretResult.cc new file mode 100644 index 000000000..c77287b80 --- /dev/null +++ b/ims/src/model/GetAppSecretResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetAppSecretResult::GetAppSecretResult() : + ServiceResult() +{} + +GetAppSecretResult::GetAppSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAppSecretResult::~GetAppSecretResult() +{} + +void GetAppSecretResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto appSecretNode = value["AppSecret"]; + if(!appSecretNode["AppSecretValue"].isNull()) + appSecret_.appSecretValue = appSecretNode["AppSecretValue"].asString(); + if(!appSecretNode["AppId"].isNull()) + appSecret_.appId = appSecretNode["AppId"].asString(); + if(!appSecretNode["AppSecretId"].isNull()) + appSecret_.appSecretId = appSecretNode["AppSecretId"].asString(); + if(!appSecretNode["CreateDate"].isNull()) + appSecret_.createDate = appSecretNode["CreateDate"].asString(); + +} + +GetAppSecretResult::AppSecret GetAppSecretResult::getAppSecret()const +{ + return appSecret_; +} + diff --git a/ims/src/model/GetApplicationRequest.cc b/ims/src/model/GetApplicationRequest.cc new file mode 100644 index 000000000..bf4c58636 --- /dev/null +++ b/ims/src/model/GetApplicationRequest.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 + +using AlibabaCloud::Ims::Model::GetApplicationRequest; + +GetApplicationRequest::GetApplicationRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetApplication") { + setMethod(HttpRequest::Method::Post); +} + +GetApplicationRequest::~GetApplicationRequest() {} + +std::string GetApplicationRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetApplicationRequest::getAppId() const { + return appId_; +} + +void GetApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/GetApplicationResult.cc b/ims/src/model/GetApplicationResult.cc new file mode 100644 index 000000000..d85458c9e --- /dev/null +++ b/ims/src/model/GetApplicationResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetApplicationResult::GetApplicationResult() : + ServiceResult() +{} + +GetApplicationResult::GetApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApplicationResult::~GetApplicationResult() +{} + +void GetApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto applicationNode = value["Application"]; + if(!applicationNode["DisplayName"].isNull()) + application_.displayName = applicationNode["DisplayName"].asString(); + if(!applicationNode["AccessTokenValidity"].isNull()) + application_.accessTokenValidity = std::stoi(applicationNode["AccessTokenValidity"].asString()); + if(!applicationNode["SecretRequired"].isNull()) + application_.secretRequired = applicationNode["SecretRequired"].asString() == "true"; + if(!applicationNode["AccountId"].isNull()) + application_.accountId = applicationNode["AccountId"].asString(); + if(!applicationNode["CreateDate"].isNull()) + application_.createDate = applicationNode["CreateDate"].asString(); + if(!applicationNode["AppName"].isNull()) + application_.appName = applicationNode["AppName"].asString(); + if(!applicationNode["UpdateDate"].isNull()) + application_.updateDate = applicationNode["UpdateDate"].asString(); + if(!applicationNode["AppId"].isNull()) + application_.appId = applicationNode["AppId"].asString(); + if(!applicationNode["RefreshTokenValidity"].isNull()) + application_.refreshTokenValidity = std::stoi(applicationNode["RefreshTokenValidity"].asString()); + if(!applicationNode["AppPrincipalName"].isNull()) + application_.appPrincipalName = applicationNode["AppPrincipalName"].asString(); + if(!applicationNode["IsMultiTenant"].isNull()) + application_.isMultiTenant = applicationNode["IsMultiTenant"].asString() == "true"; + if(!applicationNode["AppType"].isNull()) + application_.appType = applicationNode["AppType"].asString(); + if(!applicationNode["TenantId"].isNull()) + application_.tenantId = applicationNode["TenantId"].asString(); + auto delegatedScopeNode = applicationNode["DelegatedScope"]; + auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"]; + for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode) + { + Application::DelegatedScope::PredefinedScope predefinedScopeObject; + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull()) + predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull()) + predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull()) + predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true"; + application_.delegatedScope.predefinedScopes.push_back(predefinedScopeObject); + } + auto allRedirectUris = applicationNode["RedirectUris"]["RedirectUri"]; + for (auto value : allRedirectUris) + application_.redirectUris.push_back(value.asString()); + +} + +GetApplicationResult::Application GetApplicationResult::getApplication()const +{ + return application_; +} + diff --git a/ims/src/model/GetCredentialReportRequest.cc b/ims/src/model/GetCredentialReportRequest.cc new file mode 100644 index 000000000..75ebb147d --- /dev/null +++ b/ims/src/model/GetCredentialReportRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::GetCredentialReportRequest; + +GetCredentialReportRequest::GetCredentialReportRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetCredentialReport") { + setMethod(HttpRequest::Method::Post); +} + +GetCredentialReportRequest::~GetCredentialReportRequest() {} + +std::string GetCredentialReportRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetCredentialReportRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetCredentialReportRequest::getNextToken() const { + return nextToken_; +} + +void GetCredentialReportRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetCredentialReportRequest::getMaxItems() const { + return maxItems_; +} + +void GetCredentialReportRequest::setMaxItems(const std::string &maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), maxItems); +} + diff --git a/ims/src/model/GetCredentialReportResult.cc b/ims/src/model/GetCredentialReportResult.cc new file mode 100644 index 000000000..c830194d1 --- /dev/null +++ b/ims/src/model/GetCredentialReportResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetCredentialReportResult::GetCredentialReportResult() : + ServiceResult() +{} + +GetCredentialReportResult::GetCredentialReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCredentialReportResult::~GetCredentialReportResult() +{} + +void GetCredentialReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["GeneratedTime"].isNull()) + generatedTime_ = value["GeneratedTime"].asString(); + if(!value["Content"].isNull()) + content_ = value["Content"].asString(); + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string GetCredentialReportResult::getGeneratedTime()const +{ + return generatedTime_; +} + +std::string GetCredentialReportResult::getNextToken()const +{ + return nextToken_; +} + +std::string GetCredentialReportResult::getContent()const +{ + return content_; +} + +std::string GetCredentialReportResult::getIsTruncated()const +{ + return isTruncated_; +} + diff --git a/ims/src/model/GetDefaultDomainRequest.cc b/ims/src/model/GetDefaultDomainRequest.cc new file mode 100644 index 000000000..f3921c4ba --- /dev/null +++ b/ims/src/model/GetDefaultDomainRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetDefaultDomainRequest; + +GetDefaultDomainRequest::GetDefaultDomainRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetDefaultDomain") { + setMethod(HttpRequest::Method::Post); +} + +GetDefaultDomainRequest::~GetDefaultDomainRequest() {} + +std::string GetDefaultDomainRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetDefaultDomainRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetDefaultDomainResult.cc b/ims/src/model/GetDefaultDomainResult.cc new file mode 100644 index 000000000..dce437399 --- /dev/null +++ b/ims/src/model/GetDefaultDomainResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetDefaultDomainResult::GetDefaultDomainResult() : + ServiceResult() +{} + +GetDefaultDomainResult::GetDefaultDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDefaultDomainResult::~GetDefaultDomainResult() +{} + +void GetDefaultDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DefaultDomainName"].isNull()) + defaultDomainName_ = value["DefaultDomainName"].asString(); + +} + +std::string GetDefaultDomainResult::getDefaultDomainName()const +{ + return defaultDomainName_; +} + diff --git a/ims/src/model/GetGroupRequest.cc b/ims/src/model/GetGroupRequest.cc new file mode 100644 index 000000000..0d6109c58 --- /dev/null +++ b/ims/src/model/GetGroupRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::GetGroupRequest; + +GetGroupRequest::GetGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetGroup") { + setMethod(HttpRequest::Method::Post); +} + +GetGroupRequest::~GetGroupRequest() {} + +std::string GetGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetGroupRequest::getGroupName() const { + return groupName_; +} + +void GetGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string GetGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void GetGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/GetGroupResult.cc b/ims/src/model/GetGroupResult.cc new file mode 100644 index 000000000..0620e3cd4 --- /dev/null +++ b/ims/src/model/GetGroupResult.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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + group_.displayName = groupNode["DisplayName"].asString(); + if(!groupNode["GroupPrincipalName"].isNull()) + group_.groupPrincipalName = groupNode["GroupPrincipalName"].asString(); + if(!groupNode["GroupId"].isNull()) + group_.groupId = groupNode["GroupId"].asString(); + if(!groupNode["UpdateDate"].isNull()) + group_.updateDate = groupNode["UpdateDate"].asString(); + 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(); + +} + +GetGroupResult::Group GetGroupResult::getGroup()const +{ + return group_; +} + diff --git a/ims/src/model/GetLoginProfileRequest.cc b/ims/src/model/GetLoginProfileRequest.cc new file mode 100644 index 000000000..efa8f1f5b --- /dev/null +++ b/ims/src/model/GetLoginProfileRequest.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 + +using AlibabaCloud::Ims::Model::GetLoginProfileRequest; + +GetLoginProfileRequest::GetLoginProfileRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetLoginProfile") { + setMethod(HttpRequest::Method::Post); +} + +GetLoginProfileRequest::~GetLoginProfileRequest() {} + +std::string GetLoginProfileRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetLoginProfileRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void GetLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/GetLoginProfileResult.cc b/ims/src/model/GetLoginProfileResult.cc new file mode 100644 index 000000000..aeee76daf --- /dev/null +++ b/ims/src/model/GetLoginProfileResult.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::Ims; +using namespace AlibabaCloud::Ims::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["Status"].isNull()) + loginProfile_.status = loginProfileNode["Status"].asString(); + if(!loginProfileNode["UserPrincipalName"].isNull()) + loginProfile_.userPrincipalName = loginProfileNode["UserPrincipalName"].asString(); + if(!loginProfileNode["UpdateDate"].isNull()) + loginProfile_.updateDate = loginProfileNode["UpdateDate"].asString(); + if(!loginProfileNode["LastLoginTime"].isNull()) + loginProfile_.lastLoginTime = loginProfileNode["LastLoginTime"].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/ims/src/model/GetOIDCProviderRequest.cc b/ims/src/model/GetOIDCProviderRequest.cc new file mode 100644 index 000000000..0ed0d6d8e --- /dev/null +++ b/ims/src/model/GetOIDCProviderRequest.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 + +using AlibabaCloud::Ims::Model::GetOIDCProviderRequest; + +GetOIDCProviderRequest::GetOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +GetOIDCProviderRequest::~GetOIDCProviderRequest() {} + +std::string GetOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void GetOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + diff --git a/ims/src/model/GetOIDCProviderResult.cc b/ims/src/model/GetOIDCProviderResult.cc new file mode 100644 index 000000000..691297541 --- /dev/null +++ b/ims/src/model/GetOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetOIDCProviderResult::GetOIDCProviderResult() : + ServiceResult() +{} + +GetOIDCProviderResult::GetOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOIDCProviderResult::~GetOIDCProviderResult() +{} + +void GetOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +GetOIDCProviderResult::OIDCProvider GetOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/GetPasswordPolicyRequest.cc b/ims/src/model/GetPasswordPolicyRequest.cc new file mode 100644 index 000000000..174059ce5 --- /dev/null +++ b/ims/src/model/GetPasswordPolicyRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetPasswordPolicyRequest; + +GetPasswordPolicyRequest::GetPasswordPolicyRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetPasswordPolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetPasswordPolicyRequest::~GetPasswordPolicyRequest() {} + +std::string GetPasswordPolicyRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetPasswordPolicyRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetPasswordPolicyResult.cc b/ims/src/model/GetPasswordPolicyResult.cc new file mode 100644 index 000000000..7f042b23d --- /dev/null +++ b/ims/src/model/GetPasswordPolicyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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["RequireNumbers"].isNull()) + passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true"; + if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) + passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; + if(!passwordPolicyNode["PasswordReusePrevention"].isNull()) + passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString()); + if(!passwordPolicyNode["RequireSymbols"].isNull()) + passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["PasswordNotContainUserName"].isNull()) + passwordPolicy_.passwordNotContainUserName = passwordPolicyNode["PasswordNotContainUserName"].asString() == "true"; + if(!passwordPolicyNode["MinimumPasswordDifferentCharacter"].isNull()) + passwordPolicy_.minimumPasswordDifferentCharacter = std::stoi(passwordPolicyNode["MinimumPasswordDifferentCharacter"].asString()); + if(!passwordPolicyNode["MaxPasswordAge"].isNull()) + passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); + if(!passwordPolicyNode["HardExpire"].isNull()) + passwordPolicy_.hardExpire = passwordPolicyNode["HardExpire"].asString() == "true"; + if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) + passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString()); + if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull()) + passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true"; + if(!passwordPolicyNode["MaxLoginAttemps"].isNull()) + passwordPolicy_.maxLoginAttemps = std::stoi(passwordPolicyNode["MaxLoginAttemps"].asString()); + +} + +GetPasswordPolicyResult::PasswordPolicy GetPasswordPolicyResult::getPasswordPolicy()const +{ + return passwordPolicy_; +} + diff --git a/ims/src/model/GetSAMLProviderRequest.cc b/ims/src/model/GetSAMLProviderRequest.cc new file mode 100644 index 000000000..fad9efb34 --- /dev/null +++ b/ims/src/model/GetSAMLProviderRequest.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 + +using AlibabaCloud::Ims::Model::GetSAMLProviderRequest; + +GetSAMLProviderRequest::GetSAMLProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetSAMLProvider") { + setMethod(HttpRequest::Method::Post); +} + +GetSAMLProviderRequest::~GetSAMLProviderRequest() {} + +std::string GetSAMLProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetSAMLProviderRequest::getSAMLProviderName() const { + return sAMLProviderName_; +} + +void GetSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) { + sAMLProviderName_ = sAMLProviderName; + setParameter(std::string("SAMLProviderName"), sAMLProviderName); +} + diff --git a/ims/src/model/GetSAMLProviderResult.cc b/ims/src/model/GetSAMLProviderResult.cc new file mode 100644 index 000000000..f0a0c7384 --- /dev/null +++ b/ims/src/model/GetSAMLProviderResult.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::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetSAMLProviderResult::GetSAMLProviderResult() : + ServiceResult() +{} + +GetSAMLProviderResult::GetSAMLProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSAMLProviderResult::~GetSAMLProviderResult() +{} + +void GetSAMLProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sAMLProviderNode = value["SAMLProvider"]; + if(!sAMLProviderNode["SAMLMetadataDocument"].isNull()) + sAMLProvider_.sAMLMetadataDocument = sAMLProviderNode["SAMLMetadataDocument"].asString(); + if(!sAMLProviderNode["Description"].isNull()) + sAMLProvider_.description = sAMLProviderNode["Description"].asString(); + if(!sAMLProviderNode["UpdateDate"].isNull()) + sAMLProvider_.updateDate = sAMLProviderNode["UpdateDate"].asString(); + if(!sAMLProviderNode["SAMLProviderName"].isNull()) + sAMLProvider_.sAMLProviderName = sAMLProviderNode["SAMLProviderName"].asString(); + if(!sAMLProviderNode["CreateDate"].isNull()) + sAMLProvider_.createDate = sAMLProviderNode["CreateDate"].asString(); + if(!sAMLProviderNode["EncodedSAMLMetadataDocument"].isNull()) + sAMLProvider_.encodedSAMLMetadataDocument = sAMLProviderNode["EncodedSAMLMetadataDocument"].asString(); + if(!sAMLProviderNode["Arn"].isNull()) + sAMLProvider_.arn = sAMLProviderNode["Arn"].asString(); + +} + +GetSAMLProviderResult::SAMLProvider GetSAMLProviderResult::getSAMLProvider()const +{ + return sAMLProvider_; +} + diff --git a/ims/src/model/GetSecurityPreferenceRequest.cc b/ims/src/model/GetSecurityPreferenceRequest.cc new file mode 100644 index 000000000..04d9c58be --- /dev/null +++ b/ims/src/model/GetSecurityPreferenceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetSecurityPreferenceRequest; + +GetSecurityPreferenceRequest::GetSecurityPreferenceRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetSecurityPreference") { + setMethod(HttpRequest::Method::Post); +} + +GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest() {} + +std::string GetSecurityPreferenceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetSecurityPreferenceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetSecurityPreferenceResult.cc b/ims/src/model/GetSecurityPreferenceResult.cc new file mode 100644 index 000000000..967cbf165 --- /dev/null +++ b/ims/src/model/GetSecurityPreferenceResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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 accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"]; + if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull()) + securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true"; + auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; + if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull()) + securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true"; + if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull()) + securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString()); + if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull()) + securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString(); + if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) + securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; + if(!loginProfilePreferenceNode["EnforceMFAForLogin"].isNull()) + securityPreference_.loginProfilePreference.enforceMFAForLogin = loginProfilePreferenceNode["EnforceMFAForLogin"].asString() == "true"; + if(!loginProfilePreferenceNode["OperationForRiskLogin"].isNull()) + securityPreference_.loginProfilePreference.operationForRiskLogin = loginProfilePreferenceNode["OperationForRiskLogin"].asString(); + if(!loginProfilePreferenceNode["MFAOperationForLogin"].isNull()) + securityPreference_.loginProfilePreference.mFAOperationForLogin = loginProfilePreferenceNode["MFAOperationForLogin"].asString(); + auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; + if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) + securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; + auto verificationPreferenceNode = securityPreferenceNode["VerificationPreference"]; + auto allVerificationTypes = verificationPreferenceNode["VerificationTypes"]["VerificationType"]; + for (auto value : allVerificationTypes) + securityPreference_.verificationPreference.verificationTypes.push_back(value.asString()); + auto personalInfoPreferenceNode = securityPreferenceNode["PersonalInfoPreference"]; + if(!personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].isNull()) + securityPreference_.personalInfoPreference.allowUserToManagePersonalDingTalk = personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].asString() == "true"; + auto applicationLoginPreferenceNode = securityPreferenceNode["ApplicationLoginPreference"]; + if(!applicationLoginPreferenceNode["AllowUserLongTermLogin"].isNull()) + securityPreference_.applicationLoginPreference.allowUserLongTermLogin = applicationLoginPreferenceNode["AllowUserLongTermLogin"].asString() == "true"; + +} + +GetSecurityPreferenceResult::SecurityPreference GetSecurityPreferenceResult::getSecurityPreference()const +{ + return securityPreference_; +} + diff --git a/ims/src/model/GetUserMFAInfoRequest.cc b/ims/src/model/GetUserMFAInfoRequest.cc new file mode 100644 index 000000000..52fd9c86b --- /dev/null +++ b/ims/src/model/GetUserMFAInfoRequest.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 + +using AlibabaCloud::Ims::Model::GetUserMFAInfoRequest; + +GetUserMFAInfoRequest::GetUserMFAInfoRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetUserMFAInfo") { + setMethod(HttpRequest::Method::Post); +} + +GetUserMFAInfoRequest::~GetUserMFAInfoRequest() {} + +std::string GetUserMFAInfoRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetUserMFAInfoRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetUserMFAInfoRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void GetUserMFAInfoRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/GetUserMFAInfoResult.cc b/ims/src/model/GetUserMFAInfoResult.cc new file mode 100644 index 000000000..b02586a79 --- /dev/null +++ b/ims/src/model/GetUserMFAInfoResult.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::Ims; +using namespace AlibabaCloud::Ims::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(); + if(!mFADeviceNode["Type"].isNull()) + mFADevice_.type = mFADeviceNode["Type"].asString(); + if(!value["IsMFAEnable"].isNull()) + isMFAEnable_ = value["IsMFAEnable"].asString() == "true"; + +} + +GetUserMFAInfoResult::MFADevice GetUserMFAInfoResult::getMFADevice()const +{ + return mFADevice_; +} + +bool GetUserMFAInfoResult::getIsMFAEnable()const +{ + return isMFAEnable_; +} + diff --git a/ims/src/model/GetUserRequest.cc b/ims/src/model/GetUserRequest.cc new file mode 100644 index 000000000..bf2f23bd5 --- /dev/null +++ b/ims/src/model/GetUserRequest.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 + +using AlibabaCloud::Ims::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetUser") { + setMethod(HttpRequest::Method::Post); +} + +GetUserRequest::~GetUserRequest() {} + +std::string GetUserRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetUserRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string GetUserRequest::getUserId() const { + return userId_; +} + +void GetUserRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string GetUserRequest::getUserAccessKeyId() const { + return userAccessKeyId_; +} + +void GetUserRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); +} + +std::string GetUserRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void GetUserRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/GetUserResult.cc b/ims/src/model/GetUserResult.cc new file mode 100644 index 000000000..7eb9edbd5 --- /dev/null +++ b/ims/src/model/GetUserResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + user_.displayName = userNode["DisplayName"].asString(); + if(!userNode["UserPrincipalName"].isNull()) + user_.userPrincipalName = userNode["UserPrincipalName"].asString(); + if(!userNode["Email"].isNull()) + user_.email = userNode["Email"].asString(); + if(!userNode["UpdateDate"].isNull()) + user_.updateDate = userNode["UpdateDate"].asString(); + if(!userNode["MobilePhone"].isNull()) + user_.mobilePhone = userNode["MobilePhone"].asString(); + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["Comments"].isNull()) + user_.comments = userNode["Comments"].asString(); + if(!userNode["LastLoginDate"].isNull()) + user_.lastLoginDate = userNode["LastLoginDate"].asString(); + if(!userNode["CreateDate"].isNull()) + user_.createDate = userNode["CreateDate"].asString(); + if(!userNode["ProvisionType"].isNull()) + user_.provisionType = userNode["ProvisionType"].asString(); + auto allTagsNode = userNode["Tags"]["Tag"]; + for (auto userNodeTagsTag : allTagsNode) + { + User::Tag tagObject; + if(!userNodeTagsTag["TagKey"].isNull()) + tagObject.tagKey = userNodeTagsTag["TagKey"].asString(); + if(!userNodeTagsTag["TagValue"].isNull()) + tagObject.tagValue = userNodeTagsTag["TagValue"].asString(); + user_.tags.push_back(tagObject); + } + +} + +GetUserResult::User GetUserResult::getUser()const +{ + return user_; +} + diff --git a/ims/src/model/GetUserSsoSettingsRequest.cc b/ims/src/model/GetUserSsoSettingsRequest.cc new file mode 100644 index 000000000..51fc9f240 --- /dev/null +++ b/ims/src/model/GetUserSsoSettingsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetUserSsoSettingsRequest; + +GetUserSsoSettingsRequest::GetUserSsoSettingsRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetUserSsoSettings") { + setMethod(HttpRequest::Method::Post); +} + +GetUserSsoSettingsRequest::~GetUserSsoSettingsRequest() {} + +std::string GetUserSsoSettingsRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void GetUserSsoSettingsRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/GetUserSsoSettingsResult.cc b/ims/src/model/GetUserSsoSettingsResult.cc new file mode 100644 index 000000000..9dcdb0bfb --- /dev/null +++ b/ims/src/model/GetUserSsoSettingsResult.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 +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetUserSsoSettingsResult::GetUserSsoSettingsResult() : + ServiceResult() +{} + +GetUserSsoSettingsResult::GetUserSsoSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserSsoSettingsResult::~GetUserSsoSettingsResult() +{} + +void GetUserSsoSettingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto userSsoSettingsNode = value["UserSsoSettings"]; + if(!userSsoSettingsNode["AuxiliaryDomain"].isNull()) + userSsoSettings_.auxiliaryDomain = userSsoSettingsNode["AuxiliaryDomain"].asString(); + if(!userSsoSettingsNode["MetadataDocument"].isNull()) + userSsoSettings_.metadataDocument = userSsoSettingsNode["MetadataDocument"].asString(); + if(!userSsoSettingsNode["SsoEnabled"].isNull()) + userSsoSettings_.ssoEnabled = userSsoSettingsNode["SsoEnabled"].asString() == "true"; + if(!userSsoSettingsNode["UseTenantSpecificSp"].isNull()) + userSsoSettings_.useTenantSpecificSp = userSsoSettingsNode["UseTenantSpecificSp"].asString() == "true"; + if(!userSsoSettingsNode["Name"].isNull()) + userSsoSettings_.name = userSsoSettingsNode["Name"].asString(); + +} + +GetUserSsoSettingsResult::UserSsoSettings GetUserSsoSettingsResult::getUserSsoSettings()const +{ + return userSsoSettings_; +} + diff --git a/ims/src/model/GetVerificationInfoRequest.cc b/ims/src/model/GetVerificationInfoRequest.cc new file mode 100644 index 000000000..f3cf043c6 --- /dev/null +++ b/ims/src/model/GetVerificationInfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::GetVerificationInfoRequest; + +GetVerificationInfoRequest::GetVerificationInfoRequest() + : RpcServiceRequest("ims", "2019-08-15", "GetVerificationInfo") { + setMethod(HttpRequest::Method::Post); +} + +GetVerificationInfoRequest::~GetVerificationInfoRequest() {} + +std::string GetVerificationInfoRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void GetVerificationInfoRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/GetVerificationInfoResult.cc b/ims/src/model/GetVerificationInfoResult.cc new file mode 100644 index 000000000..f141e6e05 --- /dev/null +++ b/ims/src/model/GetVerificationInfoResult.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::Ims; +using namespace AlibabaCloud::Ims::Model; + +GetVerificationInfoResult::GetVerificationInfoResult() : + ServiceResult() +{} + +GetVerificationInfoResult::GetVerificationInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVerificationInfoResult::~GetVerificationInfoResult() +{} + +void GetVerificationInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto securityPhoneDeviceNode = value["SecurityPhoneDevice"]; + if(!securityPhoneDeviceNode["AreaCode"].isNull()) + securityPhoneDevice_.areaCode = securityPhoneDeviceNode["AreaCode"].asString(); + if(!securityPhoneDeviceNode["PhoneNumber"].isNull()) + securityPhoneDevice_.phoneNumber = securityPhoneDeviceNode["PhoneNumber"].asString(); + if(!securityPhoneDeviceNode["Status"].isNull()) + securityPhoneDevice_.status = securityPhoneDeviceNode["Status"].asString(); + auto securityEmailDeviceNode = value["SecurityEmailDevice"]; + if(!securityEmailDeviceNode["Email"].isNull()) + securityEmailDevice_.email = securityEmailDeviceNode["Email"].asString(); + if(!securityEmailDeviceNode["Status"].isNull()) + securityEmailDevice_.status = securityEmailDeviceNode["Status"].asString(); + +} + +GetVerificationInfoResult::SecurityEmailDevice GetVerificationInfoResult::getSecurityEmailDevice()const +{ + return securityEmailDevice_; +} + +GetVerificationInfoResult::SecurityPhoneDevice GetVerificationInfoResult::getSecurityPhoneDevice()const +{ + return securityPhoneDevice_; +} + diff --git a/ims/src/model/ListAccessKeysRequest.cc b/ims/src/model/ListAccessKeysRequest.cc new file mode 100644 index 000000000..f7a32243e --- /dev/null +++ b/ims/src/model/ListAccessKeysRequest.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 + +using AlibabaCloud::Ims::Model::ListAccessKeysRequest; + +ListAccessKeysRequest::ListAccessKeysRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListAccessKeys") { + setMethod(HttpRequest::Method::Post); +} + +ListAccessKeysRequest::~ListAccessKeysRequest() {} + +std::string ListAccessKeysRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListAccessKeysRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListAccessKeysRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void ListAccessKeysRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/ListAccessKeysResult.cc b/ims/src/model/ListAccessKeysResult.cc new file mode 100644 index 000000000..feab37a2b --- /dev/null +++ b/ims/src/model/ListAccessKeysResult.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::Ims; +using namespace AlibabaCloud::Ims::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 allAccessKeysNode = value["AccessKeys"]["AccessKey"]; + for (auto valueAccessKeysAccessKey : allAccessKeysNode) + { + AccessKey accessKeysObject; + if(!valueAccessKeysAccessKey["Status"].isNull()) + accessKeysObject.status = valueAccessKeysAccessKey["Status"].asString(); + if(!valueAccessKeysAccessKey["UpdateDate"].isNull()) + accessKeysObject.updateDate = valueAccessKeysAccessKey["UpdateDate"].asString(); + if(!valueAccessKeysAccessKey["AccessKeyId"].isNull()) + accessKeysObject.accessKeyId = valueAccessKeysAccessKey["AccessKeyId"].asString(); + if(!valueAccessKeysAccessKey["CreateDate"].isNull()) + accessKeysObject.createDate = valueAccessKeysAccessKey["CreateDate"].asString(); + accessKeys_.push_back(accessKeysObject); + } + +} + +std::vector ListAccessKeysResult::getAccessKeys()const +{ + return accessKeys_; +} + diff --git a/ims/src/model/ListAppSecretIdsRequest.cc b/ims/src/model/ListAppSecretIdsRequest.cc new file mode 100644 index 000000000..f9eb057a9 --- /dev/null +++ b/ims/src/model/ListAppSecretIdsRequest.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 + +using AlibabaCloud::Ims::Model::ListAppSecretIdsRequest; + +ListAppSecretIdsRequest::ListAppSecretIdsRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListAppSecretIds") { + setMethod(HttpRequest::Method::Post); +} + +ListAppSecretIdsRequest::~ListAppSecretIdsRequest() {} + +std::string ListAppSecretIdsRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListAppSecretIdsRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListAppSecretIdsRequest::getAppId() const { + return appId_; +} + +void ListAppSecretIdsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ims/src/model/ListAppSecretIdsResult.cc b/ims/src/model/ListAppSecretIdsResult.cc new file mode 100644 index 000000000..a84cbfe08 --- /dev/null +++ b/ims/src/model/ListAppSecretIdsResult.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::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListAppSecretIdsResult::ListAppSecretIdsResult() : + ServiceResult() +{} + +ListAppSecretIdsResult::ListAppSecretIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppSecretIdsResult::~ListAppSecretIdsResult() +{} + +void ListAppSecretIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAppSecretsNode = value["AppSecrets"]["AppSecret"]; + for (auto valueAppSecretsAppSecret : allAppSecretsNode) + { + AppSecret appSecretsObject; + if(!valueAppSecretsAppSecret["AppId"].isNull()) + appSecretsObject.appId = valueAppSecretsAppSecret["AppId"].asString(); + if(!valueAppSecretsAppSecret["AppSecretId"].isNull()) + appSecretsObject.appSecretId = valueAppSecretsAppSecret["AppSecretId"].asString(); + if(!valueAppSecretsAppSecret["CreateDate"].isNull()) + appSecretsObject.createDate = valueAppSecretsAppSecret["CreateDate"].asString(); + appSecrets_.push_back(appSecretsObject); + } + +} + +std::vector ListAppSecretIdsResult::getAppSecrets()const +{ + return appSecrets_; +} + diff --git a/ims/src/model/ListApplicationsRequest.cc b/ims/src/model/ListApplicationsRequest.cc new file mode 100644 index 000000000..29c629f3e --- /dev/null +++ b/ims/src/model/ListApplicationsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::ListApplicationsRequest; + +ListApplicationsRequest::ListApplicationsRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListApplications") { + setMethod(HttpRequest::Method::Post); +} + +ListApplicationsRequest::~ListApplicationsRequest() {} + +std::string ListApplicationsRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListApplicationsRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + diff --git a/ims/src/model/ListApplicationsResult.cc b/ims/src/model/ListApplicationsResult.cc new file mode 100644 index 000000000..1eebdc280 --- /dev/null +++ b/ims/src/model/ListApplicationsResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListApplicationsResult::ListApplicationsResult() : + ServiceResult() +{} + +ListApplicationsResult::ListApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationsResult::~ListApplicationsResult() +{} + +void ListApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationsNode = value["Applications"]["Application"]; + for (auto valueApplicationsApplication : allApplicationsNode) + { + Application applicationsObject; + if(!valueApplicationsApplication["DisplayName"].isNull()) + applicationsObject.displayName = valueApplicationsApplication["DisplayName"].asString(); + if(!valueApplicationsApplication["AccessTokenValidity"].isNull()) + applicationsObject.accessTokenValidity = std::stoi(valueApplicationsApplication["AccessTokenValidity"].asString()); + if(!valueApplicationsApplication["SecretRequired"].isNull()) + applicationsObject.secretRequired = valueApplicationsApplication["SecretRequired"].asString() == "true"; + if(!valueApplicationsApplication["AccountId"].isNull()) + applicationsObject.accountId = valueApplicationsApplication["AccountId"].asString(); + if(!valueApplicationsApplication["CreateDate"].isNull()) + applicationsObject.createDate = valueApplicationsApplication["CreateDate"].asString(); + if(!valueApplicationsApplication["AppName"].isNull()) + applicationsObject.appName = valueApplicationsApplication["AppName"].asString(); + if(!valueApplicationsApplication["UpdateDate"].isNull()) + applicationsObject.updateDate = valueApplicationsApplication["UpdateDate"].asString(); + if(!valueApplicationsApplication["AppId"].isNull()) + applicationsObject.appId = valueApplicationsApplication["AppId"].asString(); + if(!valueApplicationsApplication["RefreshTokenValidity"].isNull()) + applicationsObject.refreshTokenValidity = std::stoi(valueApplicationsApplication["RefreshTokenValidity"].asString()); + if(!valueApplicationsApplication["AppPrincipalName"].isNull()) + applicationsObject.appPrincipalName = valueApplicationsApplication["AppPrincipalName"].asString(); + if(!valueApplicationsApplication["IsMultiTenant"].isNull()) + applicationsObject.isMultiTenant = valueApplicationsApplication["IsMultiTenant"].asString() == "true"; + if(!valueApplicationsApplication["AppType"].isNull()) + applicationsObject.appType = valueApplicationsApplication["AppType"].asString(); + if(!valueApplicationsApplication["TenantId"].isNull()) + applicationsObject.tenantId = valueApplicationsApplication["TenantId"].asString(); + auto delegatedScopeNode = value["DelegatedScope"]; + auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"]; + for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode) + { + Application::DelegatedScope::PredefinedScope predefinedScopeObject; + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull()) + predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull()) + predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull()) + predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true"; + applicationsObject.delegatedScope.predefinedScopes.push_back(predefinedScopeObject); + } + auto allRedirectUris = value["RedirectUris"]["RedirectUri"]; + for (auto value : allRedirectUris) + applicationsObject.redirectUris.push_back(value.asString()); + applications_.push_back(applicationsObject); + } + +} + +std::vector ListApplicationsResult::getApplications()const +{ + return applications_; +} + diff --git a/ims/src/model/ListGroupsForUserRequest.cc b/ims/src/model/ListGroupsForUserRequest.cc new file mode 100644 index 000000000..b6c07e732 --- /dev/null +++ b/ims/src/model/ListGroupsForUserRequest.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 + +using AlibabaCloud::Ims::Model::ListGroupsForUserRequest; + +ListGroupsForUserRequest::ListGroupsForUserRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListGroupsForUser") { + setMethod(HttpRequest::Method::Post); +} + +ListGroupsForUserRequest::~ListGroupsForUserRequest() {} + +std::string ListGroupsForUserRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListGroupsForUserRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListGroupsForUserRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void ListGroupsForUserRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/ListGroupsForUserResult.cc b/ims/src/model/ListGroupsForUserResult.cc new file mode 100644 index 000000000..82a9baed5 --- /dev/null +++ b/ims/src/model/ListGroupsForUserResult.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::Ims; +using namespace AlibabaCloud::Ims::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 allGroupsNode = value["Groups"]["Group"]; + for (auto valueGroupsGroup : allGroupsNode) + { + Group groupsObject; + if(!valueGroupsGroup["DisplayName"].isNull()) + groupsObject.displayName = valueGroupsGroup["DisplayName"].asString(); + if(!valueGroupsGroup["GroupPrincipalName"].isNull()) + groupsObject.groupPrincipalName = valueGroupsGroup["GroupPrincipalName"].asString(); + if(!valueGroupsGroup["GroupName"].isNull()) + groupsObject.groupName = valueGroupsGroup["GroupName"].asString(); + if(!valueGroupsGroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsGroup["GroupId"].asString(); + if(!valueGroupsGroup["Comments"].isNull()) + groupsObject.comments = valueGroupsGroup["Comments"].asString(); + if(!valueGroupsGroup["JoinDate"].isNull()) + groupsObject.joinDate = valueGroupsGroup["JoinDate"].asString(); + groups_.push_back(groupsObject); + } + +} + +std::vector ListGroupsForUserResult::getGroups()const +{ + return groups_; +} + diff --git a/ims/src/model/ListGroupsRequest.cc b/ims/src/model/ListGroupsRequest.cc new file mode 100644 index 000000000..7485d4b55 --- /dev/null +++ b/ims/src/model/ListGroupsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ListGroupsRequest; + +ListGroupsRequest::ListGroupsRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListGroupsRequest::~ListGroupsRequest() {} + +std::string ListGroupsRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListGroupsRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListGroupsRequest::getMarker() const { + return marker_; +} + +void ListGroupsRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListGroupsRequest::getMaxItems() const { + return maxItems_; +} + +void ListGroupsRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + diff --git a/ims/src/model/ListGroupsResult.cc b/ims/src/model/ListGroupsResult.cc new file mode 100644 index 000000000..413a6fe5c --- /dev/null +++ b/ims/src/model/ListGroupsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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 allGroupsNode = value["Groups"]["Group"]; + for (auto valueGroupsGroup : allGroupsNode) + { + Group groupsObject; + if(!valueGroupsGroup["DisplayName"].isNull()) + groupsObject.displayName = valueGroupsGroup["DisplayName"].asString(); + if(!valueGroupsGroup["GroupPrincipalName"].isNull()) + groupsObject.groupPrincipalName = valueGroupsGroup["GroupPrincipalName"].asString(); + if(!valueGroupsGroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsGroup["GroupId"].asString(); + if(!valueGroupsGroup["UpdateDate"].isNull()) + groupsObject.updateDate = valueGroupsGroup["UpdateDate"].asString(); + if(!valueGroupsGroup["GroupName"].isNull()) + groupsObject.groupName = valueGroupsGroup["GroupName"].asString(); + if(!valueGroupsGroup["Comments"].isNull()) + groupsObject.comments = valueGroupsGroup["Comments"].asString(); + if(!valueGroupsGroup["CreateDate"].isNull()) + groupsObject.createDate = valueGroupsGroup["CreateDate"].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/ims/src/model/ListOIDCProvidersRequest.cc b/ims/src/model/ListOIDCProvidersRequest.cc new file mode 100644 index 000000000..19bc35f46 --- /dev/null +++ b/ims/src/model/ListOIDCProvidersRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ListOIDCProvidersRequest; + +ListOIDCProvidersRequest::ListOIDCProvidersRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListOIDCProviders") { + setMethod(HttpRequest::Method::Post); +} + +ListOIDCProvidersRequest::~ListOIDCProvidersRequest() {} + +std::string ListOIDCProvidersRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListOIDCProvidersRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListOIDCProvidersRequest::getMarker() const { + return marker_; +} + +void ListOIDCProvidersRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListOIDCProvidersRequest::getMaxItems() const { + return maxItems_; +} + +void ListOIDCProvidersRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + diff --git a/ims/src/model/ListOIDCProvidersResult.cc b/ims/src/model/ListOIDCProvidersResult.cc new file mode 100644 index 000000000..5be031b91 --- /dev/null +++ b/ims/src/model/ListOIDCProvidersResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListOIDCProvidersResult::ListOIDCProvidersResult() : + ServiceResult() +{} + +ListOIDCProvidersResult::ListOIDCProvidersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOIDCProvidersResult::~ListOIDCProvidersResult() +{} + +void ListOIDCProvidersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOIDCProvidersNode = value["OIDCProviders"]["OIDCProvider"]; + for (auto valueOIDCProvidersOIDCProvider : allOIDCProvidersNode) + { + OIDCProvider oIDCProvidersObject; + if(!valueOIDCProvidersOIDCProvider["UpdateDate"].isNull()) + oIDCProvidersObject.updateDate = valueOIDCProvidersOIDCProvider["UpdateDate"].asString(); + if(!valueOIDCProvidersOIDCProvider["Description"].isNull()) + oIDCProvidersObject.description = valueOIDCProvidersOIDCProvider["Description"].asString(); + if(!valueOIDCProvidersOIDCProvider["OIDCProviderName"].isNull()) + oIDCProvidersObject.oIDCProviderName = valueOIDCProvidersOIDCProvider["OIDCProviderName"].asString(); + if(!valueOIDCProvidersOIDCProvider["CreateDate"].isNull()) + oIDCProvidersObject.createDate = valueOIDCProvidersOIDCProvider["CreateDate"].asString(); + if(!valueOIDCProvidersOIDCProvider["Arn"].isNull()) + oIDCProvidersObject.arn = valueOIDCProvidersOIDCProvider["Arn"].asString(); + if(!valueOIDCProvidersOIDCProvider["IssuerUrl"].isNull()) + oIDCProvidersObject.issuerUrl = valueOIDCProvidersOIDCProvider["IssuerUrl"].asString(); + if(!valueOIDCProvidersOIDCProvider["Fingerprints"].isNull()) + oIDCProvidersObject.fingerprints = valueOIDCProvidersOIDCProvider["Fingerprints"].asString(); + if(!valueOIDCProvidersOIDCProvider["ClientIds"].isNull()) + oIDCProvidersObject.clientIds = valueOIDCProvidersOIDCProvider["ClientIds"].asString(); + if(!valueOIDCProvidersOIDCProvider["GmtCreate"].isNull()) + oIDCProvidersObject.gmtCreate = valueOIDCProvidersOIDCProvider["GmtCreate"].asString(); + if(!valueOIDCProvidersOIDCProvider["GmtModified"].isNull()) + oIDCProvidersObject.gmtModified = valueOIDCProvidersOIDCProvider["GmtModified"].asString(); + if(!valueOIDCProvidersOIDCProvider["IssuanceLimitTime"].isNull()) + oIDCProvidersObject.issuanceLimitTime = std::stol(valueOIDCProvidersOIDCProvider["IssuanceLimitTime"].asString()); + oIDCProviders_.push_back(oIDCProvidersObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +std::vector ListOIDCProvidersResult::getOIDCProviders()const +{ + return oIDCProviders_; +} + +bool ListOIDCProvidersResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListOIDCProvidersResult::getMarker()const +{ + return marker_; +} + diff --git a/ims/src/model/ListPredefinedScopesRequest.cc b/ims/src/model/ListPredefinedScopesRequest.cc new file mode 100644 index 000000000..3dd2842af --- /dev/null +++ b/ims/src/model/ListPredefinedScopesRequest.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 + +using AlibabaCloud::Ims::Model::ListPredefinedScopesRequest; + +ListPredefinedScopesRequest::ListPredefinedScopesRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListPredefinedScopes") { + setMethod(HttpRequest::Method::Post); +} + +ListPredefinedScopesRequest::~ListPredefinedScopesRequest() {} + +std::string ListPredefinedScopesRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListPredefinedScopesRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListPredefinedScopesRequest::getAppType() const { + return appType_; +} + +void ListPredefinedScopesRequest::setAppType(const std::string &appType) { + appType_ = appType; + setParameter(std::string("AppType"), appType); +} + diff --git a/ims/src/model/ListPredefinedScopesResult.cc b/ims/src/model/ListPredefinedScopesResult.cc new file mode 100644 index 000000000..ff157e699 --- /dev/null +++ b/ims/src/model/ListPredefinedScopesResult.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::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListPredefinedScopesResult::ListPredefinedScopesResult() : + ServiceResult() +{} + +ListPredefinedScopesResult::ListPredefinedScopesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPredefinedScopesResult::~ListPredefinedScopesResult() +{} + +void ListPredefinedScopesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPredefinedScopesNode = value["PredefinedScopes"]["PredefinedScope"]; + for (auto valuePredefinedScopesPredefinedScope : allPredefinedScopesNode) + { + PredefinedScope predefinedScopesObject; + if(!valuePredefinedScopesPredefinedScope["Description"].isNull()) + predefinedScopesObject.description = valuePredefinedScopesPredefinedScope["Description"].asString(); + if(!valuePredefinedScopesPredefinedScope["Name"].isNull()) + predefinedScopesObject.name = valuePredefinedScopesPredefinedScope["Name"].asString(); + predefinedScopes_.push_back(predefinedScopesObject); + } + +} + +std::vector ListPredefinedScopesResult::getPredefinedScopes()const +{ + return predefinedScopes_; +} + diff --git a/ims/src/model/ListSAMLProvidersRequest.cc b/ims/src/model/ListSAMLProvidersRequest.cc new file mode 100644 index 000000000..c0d16c2bf --- /dev/null +++ b/ims/src/model/ListSAMLProvidersRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ListSAMLProvidersRequest; + +ListSAMLProvidersRequest::ListSAMLProvidersRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListSAMLProviders") { + setMethod(HttpRequest::Method::Post); +} + +ListSAMLProvidersRequest::~ListSAMLProvidersRequest() {} + +std::string ListSAMLProvidersRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListSAMLProvidersRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListSAMLProvidersRequest::getMarker() const { + return marker_; +} + +void ListSAMLProvidersRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListSAMLProvidersRequest::getMaxItems() const { + return maxItems_; +} + +void ListSAMLProvidersRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + diff --git a/ims/src/model/ListSAMLProvidersResult.cc b/ims/src/model/ListSAMLProvidersResult.cc new file mode 100644 index 000000000..c09625676 --- /dev/null +++ b/ims/src/model/ListSAMLProvidersResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListSAMLProvidersResult::ListSAMLProvidersResult() : + ServiceResult() +{} + +ListSAMLProvidersResult::ListSAMLProvidersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSAMLProvidersResult::~ListSAMLProvidersResult() +{} + +void ListSAMLProvidersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSAMLProvidersNode = value["SAMLProviders"]["SAMLProvider"]; + for (auto valueSAMLProvidersSAMLProvider : allSAMLProvidersNode) + { + SAMLProvider sAMLProvidersObject; + if(!valueSAMLProvidersSAMLProvider["UpdateDate"].isNull()) + sAMLProvidersObject.updateDate = valueSAMLProvidersSAMLProvider["UpdateDate"].asString(); + if(!valueSAMLProvidersSAMLProvider["Description"].isNull()) + sAMLProvidersObject.description = valueSAMLProvidersSAMLProvider["Description"].asString(); + if(!valueSAMLProvidersSAMLProvider["SAMLProviderName"].isNull()) + sAMLProvidersObject.sAMLProviderName = valueSAMLProvidersSAMLProvider["SAMLProviderName"].asString(); + if(!valueSAMLProvidersSAMLProvider["CreateDate"].isNull()) + sAMLProvidersObject.createDate = valueSAMLProvidersSAMLProvider["CreateDate"].asString(); + if(!valueSAMLProvidersSAMLProvider["Arn"].isNull()) + sAMLProvidersObject.arn = valueSAMLProvidersSAMLProvider["Arn"].asString(); + sAMLProviders_.push_back(sAMLProvidersObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +std::vector ListSAMLProvidersResult::getSAMLProviders()const +{ + return sAMLProviders_; +} + +bool ListSAMLProvidersResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListSAMLProvidersResult::getMarker()const +{ + return marker_; +} + diff --git a/ims/src/model/ListTagResourcesRequest.cc b/ims/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..988859b1e --- /dev/null +++ b/ims/src/model/ListTagResourcesRequest.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 + +using AlibabaCloud::Ims::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListTagResourcesRequest::getPageSize() const { + return pageSize_; +} + +void ListTagResourcesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector ListTagResourcesRequest::getResourcePrincipalName() const { + return resourcePrincipalName_; +} + +void ListTagResourcesRequest::setResourcePrincipalName(const std::vector &resourcePrincipalName) { + resourcePrincipalName_ = resourcePrincipalName; +} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ims/src/model/ListTagResourcesResult.cc b/ims/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..1c4e3b080 --- /dev/null +++ b/ims/src/model/ListTagResourcesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + +bool ListTagResourcesResult::getIsTruncated()const +{ + return isTruncated_; +} + diff --git a/ims/src/model/ListUserBasicInfosRequest.cc b/ims/src/model/ListUserBasicInfosRequest.cc new file mode 100644 index 000000000..f19832490 --- /dev/null +++ b/ims/src/model/ListUserBasicInfosRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ims::Model::ListUserBasicInfosRequest; + +ListUserBasicInfosRequest::ListUserBasicInfosRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListUserBasicInfos") { + setMethod(HttpRequest::Method::Post); +} + +ListUserBasicInfosRequest::~ListUserBasicInfosRequest() {} + +std::string ListUserBasicInfosRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListUserBasicInfosRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::vector ListUserBasicInfosRequest::getTag() const { + return tag_; +} + +void ListUserBasicInfosRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string ListUserBasicInfosRequest::getMarker() const { + return marker_; +} + +void ListUserBasicInfosRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListUserBasicInfosRequest::getMaxItems() const { + return maxItems_; +} + +void ListUserBasicInfosRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + +std::string ListUserBasicInfosRequest::getStatus() const { + return status_; +} + +void ListUserBasicInfosRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/ims/src/model/ListUserBasicInfosResult.cc b/ims/src/model/ListUserBasicInfosResult.cc new file mode 100644 index 000000000..486c03151 --- /dev/null +++ b/ims/src/model/ListUserBasicInfosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListUserBasicInfosResult::ListUserBasicInfosResult() : + ServiceResult() +{} + +ListUserBasicInfosResult::ListUserBasicInfosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserBasicInfosResult::~ListUserBasicInfosResult() +{} + +void ListUserBasicInfosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserBasicInfosNode = value["UserBasicInfos"]["UserBasicInfo"]; + for (auto valueUserBasicInfosUserBasicInfo : allUserBasicInfosNode) + { + UserBasicInfo userBasicInfosObject; + if(!valueUserBasicInfosUserBasicInfo["UserPrincipalName"].isNull()) + userBasicInfosObject.userPrincipalName = valueUserBasicInfosUserBasicInfo["UserPrincipalName"].asString(); + if(!valueUserBasicInfosUserBasicInfo["DisplayName"].isNull()) + userBasicInfosObject.displayName = valueUserBasicInfosUserBasicInfo["DisplayName"].asString(); + if(!valueUserBasicInfosUserBasicInfo["UserId"].isNull()) + userBasicInfosObject.userId = valueUserBasicInfosUserBasicInfo["UserId"].asString(); + if(!valueUserBasicInfosUserBasicInfo["Status"].isNull()) + userBasicInfosObject.status = valueUserBasicInfosUserBasicInfo["Status"].asString(); + userBasicInfos_.push_back(userBasicInfosObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +std::vector ListUserBasicInfosResult::getUserBasicInfos()const +{ + return userBasicInfos_; +} + +bool ListUserBasicInfosResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListUserBasicInfosResult::getMarker()const +{ + return marker_; +} + diff --git a/ims/src/model/ListUsersForGroupRequest.cc b/ims/src/model/ListUsersForGroupRequest.cc new file mode 100644 index 000000000..1938a2ae6 --- /dev/null +++ b/ims/src/model/ListUsersForGroupRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ListUsersForGroupRequest; + +ListUsersForGroupRequest::ListUsersForGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListUsersForGroup") { + setMethod(HttpRequest::Method::Post); +} + +ListUsersForGroupRequest::~ListUsersForGroupRequest() {} + +std::string ListUsersForGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListUsersForGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListUsersForGroupRequest::getGroupName() const { + return groupName_; +} + +void ListUsersForGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string ListUsersForGroupRequest::getMarker() const { + return marker_; +} + +void ListUsersForGroupRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListUsersForGroupRequest::getMaxItems() const { + return maxItems_; +} + +void ListUsersForGroupRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + +std::string ListUsersForGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void ListUsersForGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/ListUsersForGroupResult.cc b/ims/src/model/ListUsersForGroupResult.cc new file mode 100644 index 000000000..60a0fe203 --- /dev/null +++ b/ims/src/model/ListUsersForGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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 allUsersNode = value["Users"]["User"]; + for (auto valueUsersUser : allUsersNode) + { + User usersObject; + if(!valueUsersUser["UserPrincipalName"].isNull()) + usersObject.userPrincipalName = valueUsersUser["UserPrincipalName"].asString(); + if(!valueUsersUser["DisplayName"].isNull()) + usersObject.displayName = valueUsersUser["DisplayName"].asString(); + if(!valueUsersUser["UserId"].isNull()) + usersObject.userId = valueUsersUser["UserId"].asString(); + if(!valueUsersUser["JoinDate"].isNull()) + usersObject.joinDate = valueUsersUser["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/ims/src/model/ListUsersRequest.cc b/ims/src/model/ListUsersRequest.cc new file mode 100644 index 000000000..9ae268383 --- /dev/null +++ b/ims/src/model/ListUsersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ims::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListUsers") { + setMethod(HttpRequest::Method::Post); +} + +ListUsersRequest::~ListUsersRequest() {} + +std::string ListUsersRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListUsersRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::vector ListUsersRequest::getTag() const { + return tag_; +} + +void ListUsersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string ListUsersRequest::getMarker() const { + return marker_; +} + +void ListUsersRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListUsersRequest::getMaxItems() const { + return maxItems_; +} + +void ListUsersRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + +std::string ListUsersRequest::getStatus() const { + return status_; +} + +void ListUsersRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/ims/src/model/ListUsersResult.cc b/ims/src/model/ListUsersResult.cc new file mode 100644 index 000000000..9e8bc2ce9 --- /dev/null +++ b/ims/src/model/ListUsersResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +ListUsersResult::ListUsersResult() : + ServiceResult() +{} + +ListUsersResult::ListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersResult::~ListUsersResult() +{} + +void ListUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUsersNode = value["Users"]["User"]; + for (auto valueUsersUser : allUsersNode) + { + User usersObject; + if(!valueUsersUser["DisplayName"].isNull()) + usersObject.displayName = valueUsersUser["DisplayName"].asString(); + if(!valueUsersUser["UserPrincipalName"].isNull()) + usersObject.userPrincipalName = valueUsersUser["UserPrincipalName"].asString(); + if(!valueUsersUser["Email"].isNull()) + usersObject.email = valueUsersUser["Email"].asString(); + if(!valueUsersUser["UpdateDate"].isNull()) + usersObject.updateDate = valueUsersUser["UpdateDate"].asString(); + if(!valueUsersUser["MobilePhone"].isNull()) + usersObject.mobilePhone = valueUsersUser["MobilePhone"].asString(); + if(!valueUsersUser["UserId"].isNull()) + usersObject.userId = valueUsersUser["UserId"].asString(); + if(!valueUsersUser["Comments"].isNull()) + usersObject.comments = valueUsersUser["Comments"].asString(); + if(!valueUsersUser["LastLoginDate"].isNull()) + usersObject.lastLoginDate = valueUsersUser["LastLoginDate"].asString(); + if(!valueUsersUser["CreateDate"].isNull()) + usersObject.createDate = valueUsersUser["CreateDate"].asString(); + if(!valueUsersUser["ProvisionType"].isNull()) + usersObject.provisionType = valueUsersUser["ProvisionType"].asString(); + if(!valueUsersUser["Status"].isNull()) + usersObject.status = valueUsersUser["Status"].asString(); + auto allTagsNode = valueUsersUser["Tags"]["Tag"]; + for (auto valueUsersUserTagsTag : allTagsNode) + { + User::Tag tagsObject; + if(!valueUsersUserTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueUsersUserTagsTag["TagKey"].asString(); + if(!valueUsersUserTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueUsersUserTagsTag["TagValue"].asString(); + usersObject.tags.push_back(tagsObject); + } + 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/ims/src/model/ListVirtualMFADevicesRequest.cc b/ims/src/model/ListVirtualMFADevicesRequest.cc new file mode 100644 index 000000000..369fafa13 --- /dev/null +++ b/ims/src/model/ListVirtualMFADevicesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::ListVirtualMFADevicesRequest; + +ListVirtualMFADevicesRequest::ListVirtualMFADevicesRequest() + : RpcServiceRequest("ims", "2019-08-15", "ListVirtualMFADevices") { + setMethod(HttpRequest::Method::Post); +} + +ListVirtualMFADevicesRequest::~ListVirtualMFADevicesRequest() {} + +std::string ListVirtualMFADevicesRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void ListVirtualMFADevicesRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string ListVirtualMFADevicesRequest::getMarker() const { + return marker_; +} + +void ListVirtualMFADevicesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListVirtualMFADevicesRequest::getMaxItems() const { + return maxItems_; +} + +void ListVirtualMFADevicesRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + diff --git a/ims/src/model/ListVirtualMFADevicesResult.cc b/ims/src/model/ListVirtualMFADevicesResult.cc new file mode 100644 index 000000000..f2a2c5420 --- /dev/null +++ b/ims/src/model/ListVirtualMFADevicesResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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 allVirtualMFADevicesNode = value["VirtualMFADevices"]["VirtualMFADevice"]; + for (auto valueVirtualMFADevicesVirtualMFADevice : allVirtualMFADevicesNode) + { + VirtualMFADevice virtualMFADevicesObject; + if(!valueVirtualMFADevicesVirtualMFADevice["SerialNumber"].isNull()) + virtualMFADevicesObject.serialNumber = valueVirtualMFADevicesVirtualMFADevice["SerialNumber"].asString(); + if(!valueVirtualMFADevicesVirtualMFADevice["ActivateDate"].isNull()) + virtualMFADevicesObject.activateDate = valueVirtualMFADevicesVirtualMFADevice["ActivateDate"].asString(); + auto userNode = value["User"]; + if(!userNode["UserPrincipalName"].isNull()) + virtualMFADevicesObject.user.userPrincipalName = userNode["UserPrincipalName"].asString(); + if(!userNode["DisplayName"].isNull()) + virtualMFADevicesObject.user.displayName = userNode["DisplayName"].asString(); + if(!userNode["UserId"].isNull()) + virtualMFADevicesObject.user.userId = userNode["UserId"].asString(); + virtualMFADevices_.push_back(virtualMFADevicesObject); + } + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + +} + +std::vector ListVirtualMFADevicesResult::getVirtualMFADevices()const +{ + return virtualMFADevices_; +} + +bool ListVirtualMFADevicesResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListVirtualMFADevicesResult::getMarker()const +{ + return marker_; +} + diff --git a/ims/src/model/RemoveClientIdFromOIDCProviderRequest.cc b/ims/src/model/RemoveClientIdFromOIDCProviderRequest.cc new file mode 100644 index 000000000..c79bd582d --- /dev/null +++ b/ims/src/model/RemoveClientIdFromOIDCProviderRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::RemoveClientIdFromOIDCProviderRequest; + +RemoveClientIdFromOIDCProviderRequest::RemoveClientIdFromOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "RemoveClientIdFromOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +RemoveClientIdFromOIDCProviderRequest::~RemoveClientIdFromOIDCProviderRequest() {} + +std::string RemoveClientIdFromOIDCProviderRequest::getClientId() const { + return clientId_; +} + +void RemoveClientIdFromOIDCProviderRequest::setClientId(const std::string &clientId) { + clientId_ = clientId; + setParameter(std::string("ClientId"), clientId); +} + +std::string RemoveClientIdFromOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void RemoveClientIdFromOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string RemoveClientIdFromOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void RemoveClientIdFromOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + diff --git a/ims/src/model/RemoveClientIdFromOIDCProviderResult.cc b/ims/src/model/RemoveClientIdFromOIDCProviderResult.cc new file mode 100644 index 000000000..02ea9093e --- /dev/null +++ b/ims/src/model/RemoveClientIdFromOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +RemoveClientIdFromOIDCProviderResult::RemoveClientIdFromOIDCProviderResult() : + ServiceResult() +{} + +RemoveClientIdFromOIDCProviderResult::RemoveClientIdFromOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveClientIdFromOIDCProviderResult::~RemoveClientIdFromOIDCProviderResult() +{} + +void RemoveClientIdFromOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +RemoveClientIdFromOIDCProviderResult::OIDCProvider RemoveClientIdFromOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/RemoveFingerprintFromOIDCProviderRequest.cc b/ims/src/model/RemoveFingerprintFromOIDCProviderRequest.cc new file mode 100644 index 000000000..ed785c9d2 --- /dev/null +++ b/ims/src/model/RemoveFingerprintFromOIDCProviderRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::RemoveFingerprintFromOIDCProviderRequest; + +RemoveFingerprintFromOIDCProviderRequest::RemoveFingerprintFromOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "RemoveFingerprintFromOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +RemoveFingerprintFromOIDCProviderRequest::~RemoveFingerprintFromOIDCProviderRequest() {} + +std::string RemoveFingerprintFromOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void RemoveFingerprintFromOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string RemoveFingerprintFromOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void RemoveFingerprintFromOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + +std::string RemoveFingerprintFromOIDCProviderRequest::getFingerprint() const { + return fingerprint_; +} + +void RemoveFingerprintFromOIDCProviderRequest::setFingerprint(const std::string &fingerprint) { + fingerprint_ = fingerprint; + setParameter(std::string("Fingerprint"), fingerprint); +} + diff --git a/ims/src/model/RemoveFingerprintFromOIDCProviderResult.cc b/ims/src/model/RemoveFingerprintFromOIDCProviderResult.cc new file mode 100644 index 000000000..41a489a33 --- /dev/null +++ b/ims/src/model/RemoveFingerprintFromOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +RemoveFingerprintFromOIDCProviderResult::RemoveFingerprintFromOIDCProviderResult() : + ServiceResult() +{} + +RemoveFingerprintFromOIDCProviderResult::RemoveFingerprintFromOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveFingerprintFromOIDCProviderResult::~RemoveFingerprintFromOIDCProviderResult() +{} + +void RemoveFingerprintFromOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +RemoveFingerprintFromOIDCProviderResult::OIDCProvider RemoveFingerprintFromOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/RemoveUserFromGroupRequest.cc b/ims/src/model/RemoveUserFromGroupRequest.cc new file mode 100644 index 000000000..7500a1e2b --- /dev/null +++ b/ims/src/model/RemoveUserFromGroupRequest.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 + +using AlibabaCloud::Ims::Model::RemoveUserFromGroupRequest; + +RemoveUserFromGroupRequest::RemoveUserFromGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "RemoveUserFromGroup") { + setMethod(HttpRequest::Method::Post); +} + +RemoveUserFromGroupRequest::~RemoveUserFromGroupRequest() {} + +std::string RemoveUserFromGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void RemoveUserFromGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string RemoveUserFromGroupRequest::getGroupName() const { + return groupName_; +} + +void RemoveUserFromGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string RemoveUserFromGroupRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void RemoveUserFromGroupRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string RemoveUserFromGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void RemoveUserFromGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/RemoveUserFromGroupResult.cc b/ims/src/model/RemoveUserFromGroupResult.cc new file mode 100644 index 000000000..e3611a7a3 --- /dev/null +++ b/ims/src/model/RemoveUserFromGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/SetDefaultDomainRequest.cc b/ims/src/model/SetDefaultDomainRequest.cc new file mode 100644 index 000000000..e091f1670 --- /dev/null +++ b/ims/src/model/SetDefaultDomainRequest.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 + +using AlibabaCloud::Ims::Model::SetDefaultDomainRequest; + +SetDefaultDomainRequest::SetDefaultDomainRequest() + : RpcServiceRequest("ims", "2019-08-15", "SetDefaultDomain") { + setMethod(HttpRequest::Method::Post); +} + +SetDefaultDomainRequest::~SetDefaultDomainRequest() {} + +std::string SetDefaultDomainRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void SetDefaultDomainRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string SetDefaultDomainRequest::getDefaultDomainName() const { + return defaultDomainName_; +} + +void SetDefaultDomainRequest::setDefaultDomainName(const std::string &defaultDomainName) { + defaultDomainName_ = defaultDomainName; + setParameter(std::string("DefaultDomainName"), defaultDomainName); +} + diff --git a/ims/src/model/SetDefaultDomainResult.cc b/ims/src/model/SetDefaultDomainResult.cc new file mode 100644 index 000000000..f8c5c1657 --- /dev/null +++ b/ims/src/model/SetDefaultDomainResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +SetDefaultDomainResult::SetDefaultDomainResult() : + ServiceResult() +{} + +SetDefaultDomainResult::SetDefaultDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDefaultDomainResult::~SetDefaultDomainResult() +{} + +void SetDefaultDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DefaultDomainName"].isNull()) + defaultDomainName_ = value["DefaultDomainName"].asString(); + +} + +std::string SetDefaultDomainResult::getDefaultDomainName()const +{ + return defaultDomainName_; +} + diff --git a/ims/src/model/SetPasswordPolicyRequest.cc b/ims/src/model/SetPasswordPolicyRequest.cc new file mode 100644 index 000000000..f3d48577d --- /dev/null +++ b/ims/src/model/SetPasswordPolicyRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::SetPasswordPolicyRequest; + +SetPasswordPolicyRequest::SetPasswordPolicyRequest() + : RpcServiceRequest("ims", "2019-08-15", "SetPasswordPolicy") { + setMethod(HttpRequest::Method::Post); +} + +SetPasswordPolicyRequest::~SetPasswordPolicyRequest() {} + +int SetPasswordPolicyRequest::getPasswordReusePrevention() const { + return passwordReusePrevention_; +} + +void SetPasswordPolicyRequest::setPasswordReusePrevention(int passwordReusePrevention) { + passwordReusePrevention_ = passwordReusePrevention; + setParameter(std::string("PasswordReusePrevention"), std::to_string(passwordReusePrevention)); +} + +bool SetPasswordPolicyRequest::getRequireUppercaseCharacters() const { + return requireUppercaseCharacters_; +} + +void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUppercaseCharacters) { + requireUppercaseCharacters_ = requireUppercaseCharacters; + setParameter(std::string("RequireUppercaseCharacters"), requireUppercaseCharacters ? "true" : "false"); +} + +std::string SetPasswordPolicyRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void SetPasswordPolicyRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +int SetPasswordPolicyRequest::getMinimumPasswordDifferentCharacter() const { + return minimumPasswordDifferentCharacter_; +} + +void SetPasswordPolicyRequest::setMinimumPasswordDifferentCharacter(int minimumPasswordDifferentCharacter) { + minimumPasswordDifferentCharacter_ = minimumPasswordDifferentCharacter; + setParameter(std::string("MinimumPasswordDifferentCharacter"), std::to_string(minimumPasswordDifferentCharacter)); +} + +int SetPasswordPolicyRequest::getMinimumPasswordLength() const { + return minimumPasswordLength_; +} + +void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength) { + minimumPasswordLength_ = minimumPasswordLength; + setParameter(std::string("MinimumPasswordLength"), std::to_string(minimumPasswordLength)); +} + +bool SetPasswordPolicyRequest::getRequireNumbers() const { + return requireNumbers_; +} + +void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers) { + requireNumbers_ = requireNumbers; + setParameter(std::string("RequireNumbers"), requireNumbers ? "true" : "false"); +} + +bool SetPasswordPolicyRequest::getPasswordNotContainUserName() const { + return passwordNotContainUserName_; +} + +void SetPasswordPolicyRequest::setPasswordNotContainUserName(bool passwordNotContainUserName) { + passwordNotContainUserName_ = passwordNotContainUserName; + setParameter(std::string("PasswordNotContainUserName"), passwordNotContainUserName ? "true" : "false"); +} + +bool SetPasswordPolicyRequest::getRequireLowercaseCharacters() const { + return requireLowercaseCharacters_; +} + +void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters) { + requireLowercaseCharacters_ = requireLowercaseCharacters; + setParameter(std::string("RequireLowercaseCharacters"), requireLowercaseCharacters ? "true" : "false"); +} + +int SetPasswordPolicyRequest::getMaxPasswordAge() const { + return maxPasswordAge_; +} + +void SetPasswordPolicyRequest::setMaxPasswordAge(int maxPasswordAge) { + maxPasswordAge_ = maxPasswordAge; + setParameter(std::string("MaxPasswordAge"), std::to_string(maxPasswordAge)); +} + +bool SetPasswordPolicyRequest::getHardExpire() const { + return hardExpire_; +} + +void SetPasswordPolicyRequest::setHardExpire(bool hardExpire) { + hardExpire_ = hardExpire; + setParameter(std::string("HardExpire"), hardExpire ? "true" : "false"); +} + +int SetPasswordPolicyRequest::getMaxLoginAttemps() const { + return maxLoginAttemps_; +} + +void SetPasswordPolicyRequest::setMaxLoginAttemps(int maxLoginAttemps) { + maxLoginAttemps_ = maxLoginAttemps; + setParameter(std::string("MaxLoginAttemps"), std::to_string(maxLoginAttemps)); +} + +bool SetPasswordPolicyRequest::getRequireSymbols() const { + return requireSymbols_; +} + +void SetPasswordPolicyRequest::setRequireSymbols(bool requireSymbols) { + requireSymbols_ = requireSymbols; + setParameter(std::string("RequireSymbols"), requireSymbols ? "true" : "false"); +} + diff --git a/ims/src/model/SetPasswordPolicyResult.cc b/ims/src/model/SetPasswordPolicyResult.cc new file mode 100644 index 000000000..fe0c0239f --- /dev/null +++ b/ims/src/model/SetPasswordPolicyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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["RequireNumbers"].isNull()) + passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true"; + if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) + passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; + if(!passwordPolicyNode["PasswordReusePrevention"].isNull()) + passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString()); + if(!passwordPolicyNode["RequireSymbols"].isNull()) + passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["PasswordNotContainUserName"].isNull()) + passwordPolicy_.passwordNotContainUserName = passwordPolicyNode["PasswordNotContainUserName"].asString() == "true"; + if(!passwordPolicyNode["MinimumPasswordDifferentCharacter"].isNull()) + passwordPolicy_.minimumPasswordDifferentCharacter = std::stoi(passwordPolicyNode["MinimumPasswordDifferentCharacter"].asString()); + if(!passwordPolicyNode["MaxPasswordAge"].isNull()) + passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); + if(!passwordPolicyNode["HardExpire"].isNull()) + passwordPolicy_.hardExpire = passwordPolicyNode["HardExpire"].asString() == "true"; + if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) + passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString()); + if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull()) + passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true"; + if(!passwordPolicyNode["MaxLoginAttemps"].isNull()) + passwordPolicy_.maxLoginAttemps = std::stoi(passwordPolicyNode["MaxLoginAttemps"].asString()); + +} + +SetPasswordPolicyResult::PasswordPolicy SetPasswordPolicyResult::getPasswordPolicy()const +{ + return passwordPolicy_; +} + diff --git a/ims/src/model/SetSecurityPreferenceRequest.cc b/ims/src/model/SetSecurityPreferenceRequest.cc new file mode 100644 index 000000000..1fd42b26f --- /dev/null +++ b/ims/src/model/SetSecurityPreferenceRequest.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::SetSecurityPreferenceRequest; + +SetSecurityPreferenceRequest::SetSecurityPreferenceRequest() + : RpcServiceRequest("ims", "2019-08-15", "SetSecurityPreference") { + setMethod(HttpRequest::Method::Post); +} + +SetSecurityPreferenceRequest::~SetSecurityPreferenceRequest() {} + +std::string SetSecurityPreferenceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void SetSecurityPreferenceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +bool SetSecurityPreferenceRequest::getEnableSaveMFATicket() const { + return enableSaveMFATicket_; +} + +void SetSecurityPreferenceRequest::setEnableSaveMFATicket(bool enableSaveMFATicket) { + enableSaveMFATicket_ = enableSaveMFATicket; + setParameter(std::string("EnableSaveMFATicket"), enableSaveMFATicket ? "true" : "false"); +} + +std::string SetSecurityPreferenceRequest::getLoginNetworkMasks() const { + return loginNetworkMasks_; +} + +void SetSecurityPreferenceRequest::setLoginNetworkMasks(const std::string &loginNetworkMasks) { + loginNetworkMasks_ = loginNetworkMasks; + setParameter(std::string("LoginNetworkMasks"), loginNetworkMasks); +} + +bool SetSecurityPreferenceRequest::getAllowUserToChangePassword() const { + return allowUserToChangePassword_; +} + +void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserToChangePassword) { + allowUserToChangePassword_ = allowUserToChangePassword; + setParameter(std::string("AllowUserToChangePassword"), allowUserToChangePassword ? "true" : "false"); +} + +bool SetSecurityPreferenceRequest::getEnforceMFAForLogin() const { + return enforceMFAForLogin_; +} + +void SetSecurityPreferenceRequest::setEnforceMFAForLogin(bool enforceMFAForLogin) { + enforceMFAForLogin_ = enforceMFAForLogin; + setParameter(std::string("EnforceMFAForLogin"), enforceMFAForLogin ? "true" : "false"); +} + +int SetSecurityPreferenceRequest::getLoginSessionDuration() const { + return loginSessionDuration_; +} + +void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDuration) { + loginSessionDuration_ = loginSessionDuration; + setParameter(std::string("LoginSessionDuration"), std::to_string(loginSessionDuration)); +} + +std::vector SetSecurityPreferenceRequest::getVerificationTypes() const { + return verificationTypes_; +} + +void SetSecurityPreferenceRequest::setVerificationTypes(const std::vector &verificationTypes) { + verificationTypes_ = verificationTypes; + for(int dep1 = 0; dep1 != verificationTypes.size(); dep1++) { + setParameter(std::string("VerificationTypes") + "." + std::to_string(dep1 + 1), verificationTypes[dep1]); + } +} + +bool SetSecurityPreferenceRequest::getAllowUserLongTermLogin() const { + return allowUserLongTermLogin_; +} + +void SetSecurityPreferenceRequest::setAllowUserLongTermLogin(bool allowUserLongTermLogin) { + allowUserLongTermLogin_ = allowUserLongTermLogin; + setParameter(std::string("AllowUserLongTermLogin"), allowUserLongTermLogin ? "true" : "false"); +} + +bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys() const { + return allowUserToManageAccessKeys_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys) { + allowUserToManageAccessKeys_ = allowUserToManageAccessKeys; + setParameter(std::string("AllowUserToManageAccessKeys"), allowUserToManageAccessKeys ? "true" : "false"); +} + +bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices() const { + return allowUserToManageMFADevices_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices) { + allowUserToManageMFADevices_ = allowUserToManageMFADevices; + setParameter(std::string("AllowUserToManageMFADevices"), allowUserToManageMFADevices ? "true" : "false"); +} + +std::string SetSecurityPreferenceRequest::getOperationForRiskLogin() const { + return operationForRiskLogin_; +} + +void SetSecurityPreferenceRequest::setOperationForRiskLogin(const std::string &operationForRiskLogin) { + operationForRiskLogin_ = operationForRiskLogin; + setParameter(std::string("OperationForRiskLogin"), operationForRiskLogin); +} + +std::string SetSecurityPreferenceRequest::getMFAOperationForLogin() const { + return mFAOperationForLogin_; +} + +void SetSecurityPreferenceRequest::setMFAOperationForLogin(const std::string &mFAOperationForLogin) { + mFAOperationForLogin_ = mFAOperationForLogin; + setParameter(std::string("MFAOperationForLogin"), mFAOperationForLogin); +} + +bool SetSecurityPreferenceRequest::getAllowUserToManagePersonalDingTalk() const { + return allowUserToManagePersonalDingTalk_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManagePersonalDingTalk(bool allowUserToManagePersonalDingTalk) { + allowUserToManagePersonalDingTalk_ = allowUserToManagePersonalDingTalk; + setParameter(std::string("AllowUserToManagePersonalDingTalk"), allowUserToManagePersonalDingTalk ? "true" : "false"); +} + diff --git a/ims/src/model/SetSecurityPreferenceResult.cc b/ims/src/model/SetSecurityPreferenceResult.cc new file mode 100644 index 000000000..28ee39455 --- /dev/null +++ b/ims/src/model/SetSecurityPreferenceResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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 accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"]; + if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull()) + securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true"; + auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; + if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull()) + securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true"; + if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull()) + securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString()); + if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull()) + securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString(); + if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) + securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; + if(!loginProfilePreferenceNode["EnforceMFAForLogin"].isNull()) + securityPreference_.loginProfilePreference.enforceMFAForLogin = loginProfilePreferenceNode["EnforceMFAForLogin"].asString() == "true"; + if(!loginProfilePreferenceNode["OperationForRiskLogin"].isNull()) + securityPreference_.loginProfilePreference.operationForRiskLogin = loginProfilePreferenceNode["OperationForRiskLogin"].asString(); + if(!loginProfilePreferenceNode["MFAOperationForLogin"].isNull()) + securityPreference_.loginProfilePreference.mFAOperationForLogin = loginProfilePreferenceNode["MFAOperationForLogin"].asString(); + auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; + if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) + securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; + auto verificationPreferenceNode = securityPreferenceNode["VerificationPreference"]; + auto allVerificationTypes = verificationPreferenceNode["VerificationTypes"]["VerificationType"]; + for (auto value : allVerificationTypes) + securityPreference_.verificationPreference.verificationTypes.push_back(value.asString()); + auto personalInfoPreferenceNode = securityPreferenceNode["PersonalInfoPreference"]; + if(!personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].isNull()) + securityPreference_.personalInfoPreference.allowUserToManagePersonalDingTalk = personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].asString() == "true"; + auto applicationLoginPreferenceNode = securityPreferenceNode["ApplicationLoginPreference"]; + if(!applicationLoginPreferenceNode["AllowUserLongTermLogin"].isNull()) + securityPreference_.applicationLoginPreference.allowUserLongTermLogin = applicationLoginPreferenceNode["AllowUserLongTermLogin"].asString() == "true"; + +} + +SetSecurityPreferenceResult::SecurityPreference SetSecurityPreferenceResult::getSecurityPreference()const +{ + return securityPreference_; +} + diff --git a/ims/src/model/SetUserSsoSettingsRequest.cc b/ims/src/model/SetUserSsoSettingsRequest.cc new file mode 100644 index 000000000..d13ac0445 --- /dev/null +++ b/ims/src/model/SetUserSsoSettingsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::SetUserSsoSettingsRequest; + +SetUserSsoSettingsRequest::SetUserSsoSettingsRequest() + : RpcServiceRequest("ims", "2019-08-15", "SetUserSsoSettings") { + setMethod(HttpRequest::Method::Post); +} + +SetUserSsoSettingsRequest::~SetUserSsoSettingsRequest() {} + +std::string SetUserSsoSettingsRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void SetUserSsoSettingsRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string SetUserSsoSettingsRequest::getAuxiliaryDomain() const { + return auxiliaryDomain_; +} + +void SetUserSsoSettingsRequest::setAuxiliaryDomain(const std::string &auxiliaryDomain) { + auxiliaryDomain_ = auxiliaryDomain; + setParameter(std::string("AuxiliaryDomain"), auxiliaryDomain); +} + +std::string SetUserSsoSettingsRequest::getMetadataDocument() const { + return metadataDocument_; +} + +void SetUserSsoSettingsRequest::setMetadataDocument(const std::string &metadataDocument) { + metadataDocument_ = metadataDocument; + setParameter(std::string("MetadataDocument"), metadataDocument); +} + +bool SetUserSsoSettingsRequest::getReserved() const { + return reserved_; +} + +void SetUserSsoSettingsRequest::setReserved(bool reserved) { + reserved_ = reserved; + setParameter(std::string("Reserved"), reserved ? "true" : "false"); +} + +bool SetUserSsoSettingsRequest::getSsoEnabled() const { + return ssoEnabled_; +} + +void SetUserSsoSettingsRequest::setSsoEnabled(bool ssoEnabled) { + ssoEnabled_ = ssoEnabled; + setParameter(std::string("SsoEnabled"), ssoEnabled ? "true" : "false"); +} + diff --git a/ims/src/model/SetUserSsoSettingsResult.cc b/ims/src/model/SetUserSsoSettingsResult.cc new file mode 100644 index 000000000..cde00af02 --- /dev/null +++ b/ims/src/model/SetUserSsoSettingsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +SetUserSsoSettingsResult::SetUserSsoSettingsResult() : + ServiceResult() +{} + +SetUserSsoSettingsResult::SetUserSsoSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetUserSsoSettingsResult::~SetUserSsoSettingsResult() +{} + +void SetUserSsoSettingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto userSsoSettingsNode = value["UserSsoSettings"]; + if(!userSsoSettingsNode["AuxiliaryDomain"].isNull()) + userSsoSettings_.auxiliaryDomain = userSsoSettingsNode["AuxiliaryDomain"].asString(); + if(!userSsoSettingsNode["MetadataDocument"].isNull()) + userSsoSettings_.metadataDocument = userSsoSettingsNode["MetadataDocument"].asString(); + if(!userSsoSettingsNode["SsoEnabled"].isNull()) + userSsoSettings_.ssoEnabled = userSsoSettingsNode["SsoEnabled"].asString() == "true"; + if(!userSsoSettingsNode["Name"].isNull()) + userSsoSettings_.name = userSsoSettingsNode["Name"].asString(); + +} + +SetUserSsoSettingsResult::UserSsoSettings SetUserSsoSettingsResult::getUserSsoSettings()const +{ + return userSsoSettings_; +} + diff --git a/ims/src/model/TagResourcesRequest.cc b/ims/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..580cee2be --- /dev/null +++ b/ims/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Ims::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ims", "2019-08-15", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector TagResourcesRequest::getResourcePrincipalName() const { + return resourcePrincipalName_; +} + +void TagResourcesRequest::setResourcePrincipalName(const std::vector &resourcePrincipalName) { + resourcePrincipalName_ = resourcePrincipalName; +} + diff --git a/ims/src/model/TagResourcesResult.cc b/ims/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..582737b34 --- /dev/null +++ b/ims/src/model/TagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/UnbindMFADeviceRequest.cc b/ims/src/model/UnbindMFADeviceRequest.cc new file mode 100644 index 000000000..5999bda20 --- /dev/null +++ b/ims/src/model/UnbindMFADeviceRequest.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 + +using AlibabaCloud::Ims::Model::UnbindMFADeviceRequest; + +UnbindMFADeviceRequest::UnbindMFADeviceRequest() + : RpcServiceRequest("ims", "2019-08-15", "UnbindMFADevice") { + setMethod(HttpRequest::Method::Post); +} + +UnbindMFADeviceRequest::~UnbindMFADeviceRequest() {} + +std::string UnbindMFADeviceRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UnbindMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UnbindMFADeviceRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void UnbindMFADeviceRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + diff --git a/ims/src/model/UnbindMFADeviceResult.cc b/ims/src/model/UnbindMFADeviceResult.cc new file mode 100644 index 000000000..9c9e871b5 --- /dev/null +++ b/ims/src/model/UnbindMFADeviceResult.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::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/UntagResourcesRequest.cc b/ims/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..1dba0d979 --- /dev/null +++ b/ims/src/model/UntagResourcesRequest.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 + +using AlibabaCloud::Ims::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ims", "2019-08-15", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +std::vector UntagResourcesRequest::getResourcePrincipalName() const { + return resourcePrincipalName_; +} + +void UntagResourcesRequest::setResourcePrincipalName(const std::vector &resourcePrincipalName) { + resourcePrincipalName_ = resourcePrincipalName; +} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/ims/src/model/UntagResourcesResult.cc b/ims/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..3ca42ac78 --- /dev/null +++ b/ims/src/model/UntagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ims/src/model/UpdateAccessKeyRequest.cc b/ims/src/model/UpdateAccessKeyRequest.cc new file mode 100644 index 000000000..b813624f9 --- /dev/null +++ b/ims/src/model/UpdateAccessKeyRequest.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 + +using AlibabaCloud::Ims::Model::UpdateAccessKeyRequest; + +UpdateAccessKeyRequest::UpdateAccessKeyRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateAccessKey") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAccessKeyRequest::~UpdateAccessKeyRequest() {} + +std::string UpdateAccessKeyRequest::getUserAccessKeyId() const { + return userAccessKeyId_; +} + +void UpdateAccessKeyRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); +} + +std::string UpdateAccessKeyRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateAccessKeyRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateAccessKeyRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void UpdateAccessKeyRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string UpdateAccessKeyRequest::getStatus() const { + return status_; +} + +void UpdateAccessKeyRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/ims/src/model/UpdateAccessKeyResult.cc b/ims/src/model/UpdateAccessKeyResult.cc new file mode 100644 index 000000000..2299c6220 --- /dev/null +++ b/ims/src/model/UpdateAccessKeyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::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/ims/src/model/UpdateApplicationRequest.cc b/ims/src/model/UpdateApplicationRequest.cc new file mode 100644 index 000000000..d6e489a7a --- /dev/null +++ b/ims/src/model/UpdateApplicationRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::UpdateApplicationRequest; + +UpdateApplicationRequest::UpdateApplicationRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateApplication") { + setMethod(HttpRequest::Method::Post); +} + +UpdateApplicationRequest::~UpdateApplicationRequest() {} + +bool UpdateApplicationRequest::getNewIsMultiTenant() const { + return newIsMultiTenant_; +} + +void UpdateApplicationRequest::setNewIsMultiTenant(bool newIsMultiTenant) { + newIsMultiTenant_ = newIsMultiTenant; + setParameter(std::string("NewIsMultiTenant"), newIsMultiTenant ? "true" : "false"); +} + +std::string UpdateApplicationRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +int UpdateApplicationRequest::getNewRefreshTokenValidity() const { + return newRefreshTokenValidity_; +} + +void UpdateApplicationRequest::setNewRefreshTokenValidity(int newRefreshTokenValidity) { + newRefreshTokenValidity_ = newRefreshTokenValidity; + setParameter(std::string("NewRefreshTokenValidity"), std::to_string(newRefreshTokenValidity)); +} + +std::string UpdateApplicationRequest::getNewPredefinedScopes() const { + return newPredefinedScopes_; +} + +void UpdateApplicationRequest::setNewPredefinedScopes(const std::string &newPredefinedScopes) { + newPredefinedScopes_ = newPredefinedScopes; + setParameter(std::string("NewPredefinedScopes"), newPredefinedScopes); +} + +bool UpdateApplicationRequest::getNewSecretRequired() const { + return newSecretRequired_; +} + +void UpdateApplicationRequest::setNewSecretRequired(bool newSecretRequired) { + newSecretRequired_ = newSecretRequired; + setParameter(std::string("NewSecretRequired"), newSecretRequired ? "true" : "false"); +} + +std::string UpdateApplicationRequest::getNewDisplayName() const { + return newDisplayName_; +} + +void UpdateApplicationRequest::setNewDisplayName(const std::string &newDisplayName) { + newDisplayName_ = newDisplayName; + setParameter(std::string("NewDisplayName"), newDisplayName); +} + +std::string UpdateApplicationRequest::getNewRequiredScopes() const { + return newRequiredScopes_; +} + +void UpdateApplicationRequest::setNewRequiredScopes(const std::string &newRequiredScopes) { + newRequiredScopes_ = newRequiredScopes; + setParameter(std::string("NewRequiredScopes"), newRequiredScopes); +} + +std::string UpdateApplicationRequest::getNewRedirectUris() const { + return newRedirectUris_; +} + +void UpdateApplicationRequest::setNewRedirectUris(const std::string &newRedirectUris) { + newRedirectUris_ = newRedirectUris; + setParameter(std::string("NewRedirectUris"), newRedirectUris); +} + +std::string UpdateApplicationRequest::getAppId() const { + return appId_; +} + +void UpdateApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +int UpdateApplicationRequest::getNewAccessTokenValidity() const { + return newAccessTokenValidity_; +} + +void UpdateApplicationRequest::setNewAccessTokenValidity(int newAccessTokenValidity) { + newAccessTokenValidity_ = newAccessTokenValidity; + setParameter(std::string("NewAccessTokenValidity"), std::to_string(newAccessTokenValidity)); +} + diff --git a/ims/src/model/UpdateApplicationResult.cc b/ims/src/model/UpdateApplicationResult.cc new file mode 100644 index 000000000..66773a27c --- /dev/null +++ b/ims/src/model/UpdateApplicationResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::Model; + +UpdateApplicationResult::UpdateApplicationResult() : + ServiceResult() +{} + +UpdateApplicationResult::UpdateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApplicationResult::~UpdateApplicationResult() +{} + +void UpdateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto applicationNode = value["Application"]; + if(!applicationNode["DisplayName"].isNull()) + application_.displayName = applicationNode["DisplayName"].asString(); + if(!applicationNode["AccessTokenValidity"].isNull()) + application_.accessTokenValidity = std::stoi(applicationNode["AccessTokenValidity"].asString()); + if(!applicationNode["SecretRequired"].isNull()) + application_.secretRequired = applicationNode["SecretRequired"].asString() == "true"; + if(!applicationNode["AccountId"].isNull()) + application_.accountId = applicationNode["AccountId"].asString(); + if(!applicationNode["CreateDate"].isNull()) + application_.createDate = applicationNode["CreateDate"].asString(); + if(!applicationNode["AppName"].isNull()) + application_.appName = applicationNode["AppName"].asString(); + if(!applicationNode["UpdateDate"].isNull()) + application_.updateDate = applicationNode["UpdateDate"].asString(); + if(!applicationNode["AppId"].isNull()) + application_.appId = applicationNode["AppId"].asString(); + if(!applicationNode["RefreshTokenValidity"].isNull()) + application_.refreshTokenValidity = std::stoi(applicationNode["RefreshTokenValidity"].asString()); + if(!applicationNode["AppPrincipalName"].isNull()) + application_.appPrincipalName = applicationNode["AppPrincipalName"].asString(); + if(!applicationNode["IsMultiTenant"].isNull()) + application_.isMultiTenant = applicationNode["IsMultiTenant"].asString() == "true"; + if(!applicationNode["AppType"].isNull()) + application_.appType = applicationNode["AppType"].asString(); + if(!applicationNode["TenantId"].isNull()) + application_.tenantId = applicationNode["TenantId"].asString(); + auto delegatedScopeNode = applicationNode["DelegatedScope"]; + auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"]; + for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode) + { + Application::DelegatedScope::PredefinedScope predefinedScopeObject; + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull()) + predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull()) + predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString(); + if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull()) + predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true"; + application_.delegatedScope.predefinedScopes.push_back(predefinedScopeObject); + } + auto allRedirectUris = applicationNode["RedirectUris"]["RedirectUri"]; + for (auto value : allRedirectUris) + application_.redirectUris.push_back(value.asString()); + +} + +UpdateApplicationResult::Application UpdateApplicationResult::getApplication()const +{ + return application_; +} + diff --git a/ims/src/model/UpdateGroupRequest.cc b/ims/src/model/UpdateGroupRequest.cc new file mode 100644 index 000000000..7414117cd --- /dev/null +++ b/ims/src/model/UpdateGroupRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::UpdateGroupRequest; + +UpdateGroupRequest::UpdateGroupRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateGroup") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGroupRequest::~UpdateGroupRequest() {} + +std::string UpdateGroupRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateGroupRequest::getNewGroupPrincipalName() const { + return newGroupPrincipalName_; +} + +void UpdateGroupRequest::setNewGroupPrincipalName(const std::string &newGroupPrincipalName) { + newGroupPrincipalName_ = newGroupPrincipalName; + setParameter(std::string("NewGroupPrincipalName"), newGroupPrincipalName); +} + +std::string UpdateGroupRequest::getNewDisplayName() const { + return newDisplayName_; +} + +void UpdateGroupRequest::setNewDisplayName(const std::string &newDisplayName) { + newDisplayName_ = newDisplayName; + setParameter(std::string("NewDisplayName"), newDisplayName); +} + +std::string UpdateGroupRequest::getGroupName() const { + return groupName_; +} + +void UpdateGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string UpdateGroupRequest::getNewGroupName() const { + return newGroupName_; +} + +void UpdateGroupRequest::setNewGroupName(const std::string &newGroupName) { + newGroupName_ = newGroupName; + setParameter(std::string("NewGroupName"), newGroupName); +} + +std::string UpdateGroupRequest::getNewComments() const { + return newComments_; +} + +void UpdateGroupRequest::setNewComments(const std::string &newComments) { + newComments_ = newComments; + setParameter(std::string("NewComments"), newComments); +} + +std::string UpdateGroupRequest::getGroupPrincipalName() const { + return groupPrincipalName_; +} + +void UpdateGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) { + groupPrincipalName_ = groupPrincipalName; + setParameter(std::string("GroupPrincipalName"), groupPrincipalName); +} + diff --git a/ims/src/model/UpdateGroupResult.cc b/ims/src/model/UpdateGroupResult.cc new file mode 100644 index 000000000..ca754fc57 --- /dev/null +++ b/ims/src/model/UpdateGroupResult.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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + group_.displayName = groupNode["DisplayName"].asString(); + if(!groupNode["GroupPrincipalName"].isNull()) + group_.groupPrincipalName = groupNode["GroupPrincipalName"].asString(); + if(!groupNode["GroupId"].isNull()) + group_.groupId = groupNode["GroupId"].asString(); + if(!groupNode["UpdateDate"].isNull()) + group_.updateDate = groupNode["UpdateDate"].asString(); + 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(); + +} + +UpdateGroupResult::Group UpdateGroupResult::getGroup()const +{ + return group_; +} + diff --git a/ims/src/model/UpdateLoginProfileRequest.cc b/ims/src/model/UpdateLoginProfileRequest.cc new file mode 100644 index 000000000..eb942a82b --- /dev/null +++ b/ims/src/model/UpdateLoginProfileRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::UpdateLoginProfileRequest; + +UpdateLoginProfileRequest::UpdateLoginProfileRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateLoginProfile") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoginProfileRequest::~UpdateLoginProfileRequest() {} + +std::string UpdateLoginProfileRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateLoginProfileRequest::getPassword() const { + return password_; +} + +void UpdateLoginProfileRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +bool UpdateLoginProfileRequest::getGenerateRandomPassword() const { + return generateRandomPassword_; +} + +void UpdateLoginProfileRequest::setGenerateRandomPassword(bool generateRandomPassword) { + generateRandomPassword_ = generateRandomPassword; + setParameter(std::string("GenerateRandomPassword"), generateRandomPassword ? "true" : "false"); +} + +bool UpdateLoginProfileRequest::getMFABindRequired() const { + return mFABindRequired_; +} + +void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { + mFABindRequired_ = mFABindRequired; + setParameter(std::string("MFABindRequired"), mFABindRequired ? "true" : "false"); +} + +bool UpdateLoginProfileRequest::getPasswordResetRequired() const { + return passwordResetRequired_; +} + +void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { + passwordResetRequired_ = passwordResetRequired; + setParameter(std::string("PasswordResetRequired"), passwordResetRequired ? "true" : "false"); +} + +std::string UpdateLoginProfileRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void UpdateLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string UpdateLoginProfileRequest::getStatus() const { + return status_; +} + +void UpdateLoginProfileRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/ims/src/model/UpdateLoginProfileResult.cc b/ims/src/model/UpdateLoginProfileResult.cc new file mode 100644 index 000000000..e4cd7ebe5 --- /dev/null +++ b/ims/src/model/UpdateLoginProfileResult.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::Ims; +using namespace AlibabaCloud::Ims::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()); + auto loginProfileNode = value["LoginProfile"]; + if(!loginProfileNode["UserPrincipalName"].isNull()) + loginProfile_.userPrincipalName = loginProfileNode["UserPrincipalName"].asString(); + if(!loginProfileNode["Status"].isNull()) + loginProfile_.status = loginProfileNode["Status"].asString(); + if(!loginProfileNode["Password"].isNull()) + loginProfile_.password = loginProfileNode["Password"].asString(); + if(!loginProfileNode["UpdateDate"].isNull()) + loginProfile_.updateDate = loginProfileNode["UpdateDate"].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(); + +} + +UpdateLoginProfileResult::LoginProfile UpdateLoginProfileResult::getLoginProfile()const +{ + return loginProfile_; +} + diff --git a/ims/src/model/UpdateOIDCProviderRequest.cc b/ims/src/model/UpdateOIDCProviderRequest.cc new file mode 100644 index 000000000..368b5769a --- /dev/null +++ b/ims/src/model/UpdateOIDCProviderRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::UpdateOIDCProviderRequest; + +UpdateOIDCProviderRequest::UpdateOIDCProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateOIDCProvider") { + setMethod(HttpRequest::Method::Post); +} + +UpdateOIDCProviderRequest::~UpdateOIDCProviderRequest() {} + +long UpdateOIDCProviderRequest::getIssuanceLimitTime() const { + return issuanceLimitTime_; +} + +void UpdateOIDCProviderRequest::setIssuanceLimitTime(long issuanceLimitTime) { + issuanceLimitTime_ = issuanceLimitTime; + setParameter(std::string("IssuanceLimitTime"), std::to_string(issuanceLimitTime)); +} + +std::string UpdateOIDCProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateOIDCProviderRequest::getOIDCProviderName() const { + return oIDCProviderName_; +} + +void UpdateOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) { + oIDCProviderName_ = oIDCProviderName; + setParameter(std::string("OIDCProviderName"), oIDCProviderName); +} + +std::string UpdateOIDCProviderRequest::getClientIds() const { + return clientIds_; +} + +void UpdateOIDCProviderRequest::setClientIds(const std::string &clientIds) { + clientIds_ = clientIds; + setParameter(std::string("ClientIds"), clientIds); +} + +std::string UpdateOIDCProviderRequest::getNewDescription() const { + return newDescription_; +} + +void UpdateOIDCProviderRequest::setNewDescription(const std::string &newDescription) { + newDescription_ = newDescription; + setParameter(std::string("NewDescription"), newDescription); +} + diff --git a/ims/src/model/UpdateOIDCProviderResult.cc b/ims/src/model/UpdateOIDCProviderResult.cc new file mode 100644 index 000000000..9ce6ddfcf --- /dev/null +++ b/ims/src/model/UpdateOIDCProviderResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +UpdateOIDCProviderResult::UpdateOIDCProviderResult() : + ServiceResult() +{} + +UpdateOIDCProviderResult::UpdateOIDCProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateOIDCProviderResult::~UpdateOIDCProviderResult() +{} + +void UpdateOIDCProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto oIDCProviderNode = value["OIDCProvider"]; + if(!oIDCProviderNode["UpdateDate"].isNull()) + oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString(); + if(!oIDCProviderNode["Description"].isNull()) + oIDCProvider_.description = oIDCProviderNode["Description"].asString(); + if(!oIDCProviderNode["OIDCProviderName"].isNull()) + oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString(); + if(!oIDCProviderNode["CreateDate"].isNull()) + oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString(); + if(!oIDCProviderNode["Arn"].isNull()) + oIDCProvider_.arn = oIDCProviderNode["Arn"].asString(); + if(!oIDCProviderNode["IssuerUrl"].isNull()) + oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString(); + if(!oIDCProviderNode["Fingerprints"].isNull()) + oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString(); + if(!oIDCProviderNode["ClientIds"].isNull()) + oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString(); + if(!oIDCProviderNode["GmtCreate"].isNull()) + oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString(); + if(!oIDCProviderNode["GmtModified"].isNull()) + oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString(); + if(!oIDCProviderNode["IssuanceLimitTime"].isNull()) + oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString()); + +} + +UpdateOIDCProviderResult::OIDCProvider UpdateOIDCProviderResult::getOIDCProvider()const +{ + return oIDCProvider_; +} + diff --git a/ims/src/model/UpdateSAMLProviderRequest.cc b/ims/src/model/UpdateSAMLProviderRequest.cc new file mode 100644 index 000000000..a4d0ef20a --- /dev/null +++ b/ims/src/model/UpdateSAMLProviderRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ims::Model::UpdateSAMLProviderRequest; + +UpdateSAMLProviderRequest::UpdateSAMLProviderRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateSAMLProvider") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSAMLProviderRequest::~UpdateSAMLProviderRequest() {} + +std::string UpdateSAMLProviderRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateSAMLProviderRequest::getNewEncodedSAMLMetadataDocument() const { + return newEncodedSAMLMetadataDocument_; +} + +void UpdateSAMLProviderRequest::setNewEncodedSAMLMetadataDocument(const std::string &newEncodedSAMLMetadataDocument) { + newEncodedSAMLMetadataDocument_ = newEncodedSAMLMetadataDocument; + setParameter(std::string("NewEncodedSAMLMetadataDocument"), newEncodedSAMLMetadataDocument); +} + +std::string UpdateSAMLProviderRequest::getSAMLProviderName() const { + return sAMLProviderName_; +} + +void UpdateSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) { + sAMLProviderName_ = sAMLProviderName; + setParameter(std::string("SAMLProviderName"), sAMLProviderName); +} + +std::string UpdateSAMLProviderRequest::getNewDescription() const { + return newDescription_; +} + +void UpdateSAMLProviderRequest::setNewDescription(const std::string &newDescription) { + newDescription_ = newDescription; + setParameter(std::string("NewDescription"), newDescription); +} + +std::string UpdateSAMLProviderRequest::getNewSAMLMetadataDocument() const { + return newSAMLMetadataDocument_; +} + +void UpdateSAMLProviderRequest::setNewSAMLMetadataDocument(const std::string &newSAMLMetadataDocument) { + newSAMLMetadataDocument_ = newSAMLMetadataDocument; + setParameter(std::string("NewSAMLMetadataDocument"), newSAMLMetadataDocument); +} + diff --git a/ims/src/model/UpdateSAMLProviderResult.cc b/ims/src/model/UpdateSAMLProviderResult.cc new file mode 100644 index 000000000..dd32eb2b7 --- /dev/null +++ b/ims/src/model/UpdateSAMLProviderResult.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 +#include + +using namespace AlibabaCloud::Ims; +using namespace AlibabaCloud::Ims::Model; + +UpdateSAMLProviderResult::UpdateSAMLProviderResult() : + ServiceResult() +{} + +UpdateSAMLProviderResult::UpdateSAMLProviderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSAMLProviderResult::~UpdateSAMLProviderResult() +{} + +void UpdateSAMLProviderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sAMLProviderNode = value["SAMLProvider"]; + if(!sAMLProviderNode["UpdateDate"].isNull()) + sAMLProvider_.updateDate = sAMLProviderNode["UpdateDate"].asString(); + if(!sAMLProviderNode["Description"].isNull()) + sAMLProvider_.description = sAMLProviderNode["Description"].asString(); + if(!sAMLProviderNode["SAMLProviderName"].isNull()) + sAMLProvider_.sAMLProviderName = sAMLProviderNode["SAMLProviderName"].asString(); + if(!sAMLProviderNode["CreateDate"].isNull()) + sAMLProvider_.createDate = sAMLProviderNode["CreateDate"].asString(); + if(!sAMLProviderNode["Arn"].isNull()) + sAMLProvider_.arn = sAMLProviderNode["Arn"].asString(); + +} + +UpdateSAMLProviderResult::SAMLProvider UpdateSAMLProviderResult::getSAMLProvider()const +{ + return sAMLProvider_; +} + diff --git a/ims/src/model/UpdateUserRequest.cc b/ims/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..1cf34003f --- /dev/null +++ b/ims/src/model/UpdateUserRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() + : RpcServiceRequest("ims", "2019-08-15", "UpdateUser") { + setMethod(HttpRequest::Method::Post); +} + +UpdateUserRequest::~UpdateUserRequest() {} + +std::string UpdateUserRequest::getNewMobilePhone() const { + return newMobilePhone_; +} + +void UpdateUserRequest::setNewMobilePhone(const std::string &newMobilePhone) { + newMobilePhone_ = newMobilePhone; + setParameter(std::string("NewMobilePhone"), newMobilePhone); +} + +std::string UpdateUserRequest::getAkProxySuffix() const { + return akProxySuffix_; +} + +void UpdateUserRequest::setAkProxySuffix(const std::string &akProxySuffix) { + akProxySuffix_ = akProxySuffix; + setParameter(std::string("AkProxySuffix"), akProxySuffix); +} + +std::string UpdateUserRequest::getUserId() const { + return userId_; +} + +void UpdateUserRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string UpdateUserRequest::getNewEmail() const { + return newEmail_; +} + +void UpdateUserRequest::setNewEmail(const std::string &newEmail) { + newEmail_ = newEmail; + setParameter(std::string("NewEmail"), newEmail); +} + +std::string UpdateUserRequest::getNewDisplayName() const { + return newDisplayName_; +} + +void UpdateUserRequest::setNewDisplayName(const std::string &newDisplayName) { + newDisplayName_ = newDisplayName; + setParameter(std::string("NewDisplayName"), newDisplayName); +} + +std::string UpdateUserRequest::getUserPrincipalName() const { + return userPrincipalName_; +} + +void UpdateUserRequest::setUserPrincipalName(const std::string &userPrincipalName) { + userPrincipalName_ = userPrincipalName; + setParameter(std::string("UserPrincipalName"), userPrincipalName); +} + +std::string UpdateUserRequest::getNewComments() const { + return newComments_; +} + +void UpdateUserRequest::setNewComments(const std::string &newComments) { + newComments_ = newComments; + setParameter(std::string("NewComments"), newComments); +} + +std::string UpdateUserRequest::getNewUserPrincipalName() const { + return newUserPrincipalName_; +} + +void UpdateUserRequest::setNewUserPrincipalName(const std::string &newUserPrincipalName) { + newUserPrincipalName_ = newUserPrincipalName; + setParameter(std::string("NewUserPrincipalName"), newUserPrincipalName); +} + diff --git a/ims/src/model/UpdateUserResult.cc b/ims/src/model/UpdateUserResult.cc new file mode 100644 index 000000000..92a23b335 --- /dev/null +++ b/ims/src/model/UpdateUserResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ims; +using namespace AlibabaCloud::Ims::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["DisplayName"].isNull()) + user_.displayName = userNode["DisplayName"].asString(); + if(!userNode["UserPrincipalName"].isNull()) + user_.userPrincipalName = userNode["UserPrincipalName"].asString(); + if(!userNode["Email"].isNull()) + user_.email = userNode["Email"].asString(); + if(!userNode["UpdateDate"].isNull()) + user_.updateDate = userNode["UpdateDate"].asString(); + if(!userNode["MobilePhone"].isNull()) + user_.mobilePhone = userNode["MobilePhone"].asString(); + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["Comments"].isNull()) + user_.comments = userNode["Comments"].asString(); + if(!userNode["LastLoginDate"].isNull()) + user_.lastLoginDate = userNode["LastLoginDate"].asString(); + if(!userNode["CreateDate"].isNull()) + user_.createDate = userNode["CreateDate"].asString(); + if(!userNode["ProvisionType"].isNull()) + user_.provisionType = userNode["ProvisionType"].asString(); + +} + +UpdateUserResult::User UpdateUserResult::getUser()const +{ + return user_; +} +