diff --git a/VERSION b/VERSION index 1f305e183..bc577dc5a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2077 \ No newline at end of file +1.36.2078 \ No newline at end of file diff --git a/ram/CMakeLists.txt b/ram/CMakeLists.txt index cec8e64bf..7228f5c42 100644 --- a/ram/CMakeLists.txt +++ b/ram/CMakeLists.txt @@ -51,6 +51,8 @@ set(ram_public_header_model include/alibabacloud/ram/model/CreateUserResult.h include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h + include/alibabacloud/ram/model/DecodeDiagnosticMessageRequest.h + include/alibabacloud/ram/model/DecodeDiagnosticMessageResult.h include/alibabacloud/ram/model/DeleteAccessKeyRequest.h include/alibabacloud/ram/model/DeleteAccessKeyResult.h include/alibabacloud/ram/model/DeleteGroupRequest.h @@ -61,8 +63,6 @@ set(ram_public_header_model include/alibabacloud/ram/model/DeletePolicyResult.h include/alibabacloud/ram/model/DeletePolicyVersionRequest.h include/alibabacloud/ram/model/DeletePolicyVersionResult.h - include/alibabacloud/ram/model/DeletePublicKeyRequest.h - include/alibabacloud/ram/model/DeletePublicKeyResult.h include/alibabacloud/ram/model/DeleteRoleRequest.h include/alibabacloud/ram/model/DeleteRoleResult.h include/alibabacloud/ram/model/DeleteUserRequest.h @@ -89,8 +89,6 @@ set(ram_public_header_model include/alibabacloud/ram/model/GetPolicyResult.h include/alibabacloud/ram/model/GetPolicyVersionRequest.h include/alibabacloud/ram/model/GetPolicyVersionResult.h - include/alibabacloud/ram/model/GetPublicKeyRequest.h - include/alibabacloud/ram/model/GetPublicKeyResult.h include/alibabacloud/ram/model/GetRoleRequest.h include/alibabacloud/ram/model/GetRoleResult.h include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h @@ -117,10 +115,10 @@ set(ram_public_header_model include/alibabacloud/ram/model/ListPoliciesForUserResult.h include/alibabacloud/ram/model/ListPolicyVersionsRequest.h include/alibabacloud/ram/model/ListPolicyVersionsResult.h - include/alibabacloud/ram/model/ListPublicKeysRequest.h - include/alibabacloud/ram/model/ListPublicKeysResult.h include/alibabacloud/ram/model/ListRolesRequest.h include/alibabacloud/ram/model/ListRolesResult.h + include/alibabacloud/ram/model/ListTagResourcesRequest.h + include/alibabacloud/ram/model/ListTagResourcesResult.h include/alibabacloud/ram/model/ListUsersRequest.h include/alibabacloud/ram/model/ListUsersResult.h include/alibabacloud/ram/model/ListUsersForGroupRequest.h @@ -137,22 +135,24 @@ set(ram_public_header_model include/alibabacloud/ram/model/SetPasswordPolicyResult.h include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h include/alibabacloud/ram/model/SetSecurityPreferenceResult.h + include/alibabacloud/ram/model/TagResourcesRequest.h + include/alibabacloud/ram/model/TagResourcesResult.h include/alibabacloud/ram/model/UnbindMFADeviceRequest.h include/alibabacloud/ram/model/UnbindMFADeviceResult.h + include/alibabacloud/ram/model/UntagResourcesRequest.h + include/alibabacloud/ram/model/UntagResourcesResult.h include/alibabacloud/ram/model/UpdateAccessKeyRequest.h include/alibabacloud/ram/model/UpdateAccessKeyResult.h include/alibabacloud/ram/model/UpdateGroupRequest.h include/alibabacloud/ram/model/UpdateGroupResult.h include/alibabacloud/ram/model/UpdateLoginProfileRequest.h include/alibabacloud/ram/model/UpdateLoginProfileResult.h - include/alibabacloud/ram/model/UpdatePublicKeyRequest.h - include/alibabacloud/ram/model/UpdatePublicKeyResult.h + include/alibabacloud/ram/model/UpdatePolicyDescriptionRequest.h + include/alibabacloud/ram/model/UpdatePolicyDescriptionResult.h include/alibabacloud/ram/model/UpdateRoleRequest.h include/alibabacloud/ram/model/UpdateRoleResult.h include/alibabacloud/ram/model/UpdateUserRequest.h - include/alibabacloud/ram/model/UpdateUserResult.h - include/alibabacloud/ram/model/UploadPublicKeyRequest.h - include/alibabacloud/ram/model/UploadPublicKeyResult.h ) + include/alibabacloud/ram/model/UpdateUserResult.h ) set(ram_src src/RamClient.cc @@ -186,6 +186,8 @@ set(ram_src src/model/CreateUserResult.cc src/model/CreateVirtualMFADeviceRequest.cc src/model/CreateVirtualMFADeviceResult.cc + src/model/DecodeDiagnosticMessageRequest.cc + src/model/DecodeDiagnosticMessageResult.cc src/model/DeleteAccessKeyRequest.cc src/model/DeleteAccessKeyResult.cc src/model/DeleteGroupRequest.cc @@ -196,8 +198,6 @@ set(ram_src src/model/DeletePolicyResult.cc src/model/DeletePolicyVersionRequest.cc src/model/DeletePolicyVersionResult.cc - src/model/DeletePublicKeyRequest.cc - src/model/DeletePublicKeyResult.cc src/model/DeleteRoleRequest.cc src/model/DeleteRoleResult.cc src/model/DeleteUserRequest.cc @@ -224,8 +224,6 @@ set(ram_src src/model/GetPolicyResult.cc src/model/GetPolicyVersionRequest.cc src/model/GetPolicyVersionResult.cc - src/model/GetPublicKeyRequest.cc - src/model/GetPublicKeyResult.cc src/model/GetRoleRequest.cc src/model/GetRoleResult.cc src/model/GetSecurityPreferenceRequest.cc @@ -252,10 +250,10 @@ set(ram_src src/model/ListPoliciesForUserResult.cc src/model/ListPolicyVersionsRequest.cc src/model/ListPolicyVersionsResult.cc - src/model/ListPublicKeysRequest.cc - src/model/ListPublicKeysResult.cc src/model/ListRolesRequest.cc src/model/ListRolesResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc src/model/ListUsersForGroupRequest.cc @@ -272,22 +270,24 @@ set(ram_src src/model/SetPasswordPolicyResult.cc src/model/SetSecurityPreferenceRequest.cc src/model/SetSecurityPreferenceResult.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/UpdateGroupRequest.cc src/model/UpdateGroupResult.cc src/model/UpdateLoginProfileRequest.cc src/model/UpdateLoginProfileResult.cc - src/model/UpdatePublicKeyRequest.cc - src/model/UpdatePublicKeyResult.cc + src/model/UpdatePolicyDescriptionRequest.cc + src/model/UpdatePolicyDescriptionResult.cc src/model/UpdateRoleRequest.cc src/model/UpdateRoleResult.cc src/model/UpdateUserRequest.cc - src/model/UpdateUserResult.cc - src/model/UploadPublicKeyRequest.cc - src/model/UploadPublicKeyResult.cc ) + src/model/UpdateUserResult.cc ) add_library(ram ${LIB_TYPE} ${ram_public_header} diff --git a/ram/include/alibabacloud/ram/RamClient.h b/ram/include/alibabacloud/ram/RamClient.h index 3d5ef3cab..836120044 100644 --- a/ram/include/alibabacloud/ram/RamClient.h +++ b/ram/include/alibabacloud/ram/RamClient.h @@ -52,6 +52,8 @@ #include "model/CreateUserResult.h" #include "model/CreateVirtualMFADeviceRequest.h" #include "model/CreateVirtualMFADeviceResult.h" +#include "model/DecodeDiagnosticMessageRequest.h" +#include "model/DecodeDiagnosticMessageResult.h" #include "model/DeleteAccessKeyRequest.h" #include "model/DeleteAccessKeyResult.h" #include "model/DeleteGroupRequest.h" @@ -62,8 +64,6 @@ #include "model/DeletePolicyResult.h" #include "model/DeletePolicyVersionRequest.h" #include "model/DeletePolicyVersionResult.h" -#include "model/DeletePublicKeyRequest.h" -#include "model/DeletePublicKeyResult.h" #include "model/DeleteRoleRequest.h" #include "model/DeleteRoleResult.h" #include "model/DeleteUserRequest.h" @@ -90,8 +90,6 @@ #include "model/GetPolicyResult.h" #include "model/GetPolicyVersionRequest.h" #include "model/GetPolicyVersionResult.h" -#include "model/GetPublicKeyRequest.h" -#include "model/GetPublicKeyResult.h" #include "model/GetRoleRequest.h" #include "model/GetRoleResult.h" #include "model/GetSecurityPreferenceRequest.h" @@ -118,10 +116,10 @@ #include "model/ListPoliciesForUserResult.h" #include "model/ListPolicyVersionsRequest.h" #include "model/ListPolicyVersionsResult.h" -#include "model/ListPublicKeysRequest.h" -#include "model/ListPublicKeysResult.h" #include "model/ListRolesRequest.h" #include "model/ListRolesResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" #include "model/ListUsersForGroupRequest.h" @@ -138,22 +136,24 @@ #include "model/SetPasswordPolicyResult.h" #include "model/SetSecurityPreferenceRequest.h" #include "model/SetSecurityPreferenceResult.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/UpdateGroupRequest.h" #include "model/UpdateGroupResult.h" #include "model/UpdateLoginProfileRequest.h" #include "model/UpdateLoginProfileResult.h" -#include "model/UpdatePublicKeyRequest.h" -#include "model/UpdatePublicKeyResult.h" +#include "model/UpdatePolicyDescriptionRequest.h" +#include "model/UpdatePolicyDescriptionResult.h" #include "model/UpdateRoleRequest.h" #include "model/UpdateRoleResult.h" #include "model/UpdateUserRequest.h" #include "model/UpdateUserResult.h" -#include "model/UploadPublicKeyRequest.h" -#include "model/UploadPublicKeyResult.h" namespace AlibabaCloud @@ -208,6 +208,9 @@ namespace AlibabaCloud typedef Outcome CreateVirtualMFADeviceOutcome; typedef std::future CreateVirtualMFADeviceOutcomeCallable; typedef std::function&)> CreateVirtualMFADeviceAsyncHandler; + typedef Outcome DecodeDiagnosticMessageOutcome; + typedef std::future DecodeDiagnosticMessageOutcomeCallable; + typedef std::function&)> DecodeDiagnosticMessageAsyncHandler; typedef Outcome DeleteAccessKeyOutcome; typedef std::future DeleteAccessKeyOutcomeCallable; typedef std::function&)> DeleteAccessKeyAsyncHandler; @@ -223,9 +226,6 @@ namespace AlibabaCloud typedef Outcome DeletePolicyVersionOutcome; typedef std::future DeletePolicyVersionOutcomeCallable; typedef std::function&)> DeletePolicyVersionAsyncHandler; - typedef Outcome DeletePublicKeyOutcome; - typedef std::future DeletePublicKeyOutcomeCallable; - typedef std::function&)> DeletePublicKeyAsyncHandler; typedef Outcome DeleteRoleOutcome; typedef std::future DeleteRoleOutcomeCallable; typedef std::function&)> DeleteRoleAsyncHandler; @@ -265,9 +265,6 @@ namespace AlibabaCloud typedef Outcome GetPolicyVersionOutcome; typedef std::future GetPolicyVersionOutcomeCallable; typedef std::function&)> GetPolicyVersionAsyncHandler; - typedef Outcome GetPublicKeyOutcome; - typedef std::future GetPublicKeyOutcomeCallable; - typedef std::function&)> GetPublicKeyAsyncHandler; typedef Outcome GetRoleOutcome; typedef std::future GetRoleOutcomeCallable; typedef std::function&)> GetRoleAsyncHandler; @@ -307,12 +304,12 @@ namespace AlibabaCloud typedef Outcome ListPolicyVersionsOutcome; typedef std::future ListPolicyVersionsOutcomeCallable; typedef std::function&)> ListPolicyVersionsAsyncHandler; - typedef Outcome ListPublicKeysOutcome; - typedef std::future ListPublicKeysOutcomeCallable; - typedef std::function&)> ListPublicKeysAsyncHandler; typedef Outcome ListRolesOutcome; typedef std::future ListRolesOutcomeCallable; typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; @@ -337,9 +334,15 @@ namespace AlibabaCloud typedef Outcome SetSecurityPreferenceOutcome; typedef std::future SetSecurityPreferenceOutcomeCallable; typedef std::function&)> SetSecurityPreferenceAsyncHandler; + 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; @@ -349,18 +352,15 @@ namespace AlibabaCloud typedef Outcome UpdateLoginProfileOutcome; typedef std::future UpdateLoginProfileOutcomeCallable; typedef std::function&)> UpdateLoginProfileAsyncHandler; - typedef Outcome UpdatePublicKeyOutcome; - typedef std::future UpdatePublicKeyOutcomeCallable; - typedef std::function&)> UpdatePublicKeyAsyncHandler; + typedef Outcome UpdatePolicyDescriptionOutcome; + typedef std::future UpdatePolicyDescriptionOutcomeCallable; + typedef std::function&)> UpdatePolicyDescriptionAsyncHandler; typedef Outcome UpdateRoleOutcome; typedef std::future UpdateRoleOutcomeCallable; typedef std::function&)> UpdateRoleAsyncHandler; typedef Outcome UpdateUserOutcome; typedef std::future UpdateUserOutcomeCallable; typedef std::function&)> UpdateUserAsyncHandler; - typedef Outcome UploadPublicKeyOutcome; - typedef std::future UploadPublicKeyOutcomeCallable; - typedef std::function&)> UploadPublicKeyAsyncHandler; RamClient(const Credentials &credentials, const ClientConfiguration &configuration); RamClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -411,6 +411,9 @@ namespace AlibabaCloud 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; + DecodeDiagnosticMessageOutcome decodeDiagnosticMessage(const Model::DecodeDiagnosticMessageRequest &request)const; + void decodeDiagnosticMessageAsync(const Model::DecodeDiagnosticMessageRequest& request, const DecodeDiagnosticMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DecodeDiagnosticMessageOutcomeCallable decodeDiagnosticMessageCallable(const Model::DecodeDiagnosticMessageRequest& 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; @@ -426,9 +429,6 @@ namespace AlibabaCloud DeletePolicyVersionOutcome deletePolicyVersion(const Model::DeletePolicyVersionRequest &request)const; void deletePolicyVersionAsync(const Model::DeletePolicyVersionRequest& request, const DeletePolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePolicyVersionOutcomeCallable deletePolicyVersionCallable(const Model::DeletePolicyVersionRequest& request) const; - DeletePublicKeyOutcome deletePublicKey(const Model::DeletePublicKeyRequest &request)const; - void deletePublicKeyAsync(const Model::DeletePublicKeyRequest& request, const DeletePublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePublicKeyOutcomeCallable deletePublicKeyCallable(const Model::DeletePublicKeyRequest& request) const; DeleteRoleOutcome deleteRole(const Model::DeleteRoleRequest &request)const; void deleteRoleAsync(const Model::DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRoleOutcomeCallable deleteRoleCallable(const Model::DeleteRoleRequest& request) const; @@ -468,9 +468,6 @@ namespace AlibabaCloud GetPolicyVersionOutcome getPolicyVersion(const Model::GetPolicyVersionRequest &request)const; void getPolicyVersionAsync(const Model::GetPolicyVersionRequest& request, const GetPolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPolicyVersionOutcomeCallable getPolicyVersionCallable(const Model::GetPolicyVersionRequest& request) const; - GetPublicKeyOutcome getPublicKey(const Model::GetPublicKeyRequest &request)const; - void getPublicKeyAsync(const Model::GetPublicKeyRequest& request, const GetPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPublicKeyOutcomeCallable getPublicKeyCallable(const Model::GetPublicKeyRequest& request) const; GetRoleOutcome getRole(const Model::GetRoleRequest &request)const; void getRoleAsync(const Model::GetRoleRequest& request, const GetRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRoleOutcomeCallable getRoleCallable(const Model::GetRoleRequest& request) const; @@ -510,12 +507,12 @@ namespace AlibabaCloud ListPolicyVersionsOutcome listPolicyVersions(const Model::ListPolicyVersionsRequest &request)const; void listPolicyVersionsAsync(const Model::ListPolicyVersionsRequest& request, const ListPolicyVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPolicyVersionsOutcomeCallable listPolicyVersionsCallable(const Model::ListPolicyVersionsRequest& request) const; - ListPublicKeysOutcome listPublicKeys(const Model::ListPublicKeysRequest &request)const; - void listPublicKeysAsync(const Model::ListPublicKeysRequest& request, const ListPublicKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPublicKeysOutcomeCallable listPublicKeysCallable(const Model::ListPublicKeysRequest& request) const; ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + 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; 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; @@ -540,9 +537,15 @@ namespace AlibabaCloud 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; + 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; @@ -552,18 +555,15 @@ namespace AlibabaCloud 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; - UpdatePublicKeyOutcome updatePublicKey(const Model::UpdatePublicKeyRequest &request)const; - void updatePublicKeyAsync(const Model::UpdatePublicKeyRequest& request, const UpdatePublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdatePublicKeyOutcomeCallable updatePublicKeyCallable(const Model::UpdatePublicKeyRequest& request) const; + UpdatePolicyDescriptionOutcome updatePolicyDescription(const Model::UpdatePolicyDescriptionRequest &request)const; + void updatePolicyDescriptionAsync(const Model::UpdatePolicyDescriptionRequest& request, const UpdatePolicyDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePolicyDescriptionOutcomeCallable updatePolicyDescriptionCallable(const Model::UpdatePolicyDescriptionRequest& request) const; UpdateRoleOutcome updateRole(const Model::UpdateRoleRequest &request)const; void updateRoleAsync(const Model::UpdateRoleRequest& request, const UpdateRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateRoleOutcomeCallable updateRoleCallable(const Model::UpdateRoleRequest& request) const; 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; - UploadPublicKeyOutcome uploadPublicKey(const Model::UploadPublicKeyRequest &request)const; - void uploadPublicKeyAsync(const Model::UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadPublicKeyOutcomeCallable uploadPublicKeyCallable(const Model::UploadPublicKeyRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h b/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h index 9f01adbc3..b0337def5 100644 --- a/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/AddUserToGroupRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT AddUserToGroupRequest : public RpcServiceRequest - { - - public: - AddUserToGroupRequest(); - ~AddUserToGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string groupName_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT AddUserToGroupRequest : public RpcServiceRequest { +public: + AddUserToGroupRequest(); + ~AddUserToGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string groupName_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_ADDUSERTOGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h index 2470f083b..14d243359 100644 --- a/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToGroupRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT AttachPolicyToGroupRequest : public RpcServiceRequest - { - - public: - AttachPolicyToGroupRequest(); - ~AttachPolicyToGroupRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string groupName_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT AttachPolicyToGroupRequest : public RpcServiceRequest { +public: + AttachPolicyToGroupRequest(); + ~AttachPolicyToGroupRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string groupName_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h index 099f0168d..7a4b65a33 100644 --- a/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT AttachPolicyToRoleRequest : public RpcServiceRequest - { - - public: - AttachPolicyToRoleRequest(); - ~AttachPolicyToRoleRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string roleName_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT AttachPolicyToRoleRequest : public RpcServiceRequest { +public: + AttachPolicyToRoleRequest(); + ~AttachPolicyToRoleRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string roleName_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h b/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h index 35ce54be7..17c7ca913 100644 --- a/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h +++ b/ram/include/alibabacloud/ram/model/AttachPolicyToUserRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT AttachPolicyToUserRequest : public RpcServiceRequest - { - - public: - AttachPolicyToUserRequest(); - ~AttachPolicyToUserRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string policyType_; - std::string policyName_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT AttachPolicyToUserRequest : public RpcServiceRequest { +public: + AttachPolicyToUserRequest(); + ~AttachPolicyToUserRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string policyType_; + std::string policyName_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_ATTACHPOLICYTOUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h index d8541fb82..c6cb06ec4 100644 --- a/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h +++ b/ram/include/alibabacloud/ram/model/BindMFADeviceRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT BindMFADeviceRequest : public RpcServiceRequest - { - - public: - BindMFADeviceRequest(); - ~BindMFADeviceRequest(); - - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getAuthenticationCode2()const; - void setAuthenticationCode2(const std::string& authenticationCode2); - std::string getAuthenticationCode1()const; - void setAuthenticationCode1(const std::string& authenticationCode1); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string serialNumber_; - std::string authenticationCode2_; - std::string authenticationCode1_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT BindMFADeviceRequest : public RpcServiceRequest { +public: + BindMFADeviceRequest(); + ~BindMFADeviceRequest(); + std::string getAuthenticationCode2() const; + void setAuthenticationCode2(const std::string &authenticationCode2); + std::string getAuthenticationCode1() const; + void setAuthenticationCode1(const std::string &authenticationCode1); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string authenticationCode2_; + std::string authenticationCode1_; + std::string serialNumber_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_BINDMFADEVICEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h b/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h index 4d8a7d236..59a7fb0ce 100644 --- a/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h +++ b/ram/include/alibabacloud/ram/model/ChangePasswordRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ChangePasswordRequest : public RpcServiceRequest - { - - public: - ChangePasswordRequest(); - ~ChangePasswordRequest(); - - std::string getOldPassword()const; - void setOldPassword(const std::string& oldPassword); - std::string getNewPassword()const; - void setNewPassword(const std::string& newPassword); - - private: - std::string oldPassword_; - std::string newPassword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ChangePasswordRequest : public RpcServiceRequest { +public: + ChangePasswordRequest(); + ~ChangePasswordRequest(); + std::string getOldPassword() const; + void setOldPassword(const std::string &oldPassword); + std::string getNewPassword() const; + void setNewPassword(const std::string &newPassword); + +private: + std::string oldPassword_; + std::string newPassword_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CHANGEPASSWORDREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h index 31627433b..d2f02246c 100644 --- a/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h +++ b/ram/include/alibabacloud/ram/model/ClearAccountAliasRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ClearAccountAliasRequest : public RpcServiceRequest - { - - public: - ClearAccountAliasRequest(); - ~ClearAccountAliasRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ClearAccountAliasRequest : public RpcServiceRequest { +public: + ClearAccountAliasRequest(); + ~ClearAccountAliasRequest(); + +private: +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CLEARACCOUNTALIASREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h index 159244460..cce911645 100644 --- a/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateAccessKeyRequest.h @@ -1,48 +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_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateAccessKeyRequest : public RpcServiceRequest - { - - public: - CreateAccessKeyRequest(); - ~CreateAccessKeyRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateAccessKeyRequest : public RpcServiceRequest { +public: + CreateAccessKeyRequest(); + ~CreateAccessKeyRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEACCESSKEYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateGroupRequest.h b/ram/include/alibabacloud/ram/model/CreateGroupRequest.h index bd49f3c6f..e186f74f5 100644 --- a/ram/include/alibabacloud/ram/model/CreateGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateGroupRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateGroupRequest : public RpcServiceRequest - { - - public: - CreateGroupRequest(); - ~CreateGroupRequest(); - - std::string getComments()const; - void setComments(const std::string& comments); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - - private: - std::string comments_; - std::string groupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateGroupRequest : public RpcServiceRequest { +public: + CreateGroupRequest(); + ~CreateGroupRequest(); + std::string getComments() const; + void setComments(const std::string &comments); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + std::string comments_; + std::string groupName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateGroupResult.h b/ram/include/alibabacloud/ram/model/CreateGroupResult.h index c490169a2..b4b5886ca 100644 --- a/ram/include/alibabacloud/ram/model/CreateGroupResult.h +++ b/ram/include/alibabacloud/ram/model/CreateGroupResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string groupName; std::string comments; std::string createDate; + std::string groupId; }; diff --git a/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h index a6c510b57..1dee0f7c4 100644 --- a/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateLoginProfileRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateLoginProfileRequest : public RpcServiceRequest - { - - public: - CreateLoginProfileRequest(); - ~CreateLoginProfileRequest(); - - bool getPasswordResetRequired()const; - void setPasswordResetRequired(bool passwordResetRequired); - std::string getPassword()const; - void setPassword(const std::string& password); - bool getMFABindRequired()const; - void setMFABindRequired(bool mFABindRequired); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - bool passwordResetRequired_; - std::string password_; - bool mFABindRequired_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateLoginProfileRequest : public RpcServiceRequest { +public: + CreateLoginProfileRequest(); + ~CreateLoginProfileRequest(); + std::string getPassword() const; + void setPassword(const std::string &password); + bool getMFABindRequired() const; + void setMFABindRequired(bool mFABindRequired); + bool getPasswordResetRequired() const; + void setPasswordResetRequired(bool passwordResetRequired); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string password_; + bool mFABindRequired_; + bool passwordResetRequired_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATELOGINPROFILEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h b/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h index 620652514..2707ed817 100644 --- a/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/CreatePolicyRequest.h @@ -1,54 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreatePolicyRequest : public RpcServiceRequest - { - - public: - CreatePolicyRequest(); - ~CreatePolicyRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - std::string getPolicyDocument()const; - void setPolicyDocument(const std::string& policyDocument); - - private: - std::string description_; - std::string policyName_; - std::string policyDocument_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreatePolicyRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreatePolicyRequest(); + ~CreatePolicyRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + std::string getPolicyDocument() const; + void setPolicyDocument(const std::string &policyDocument); + +private: + std::string description_; + std::vector tag_; + std::string policyName_; + std::string policyDocument_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyResult.h b/ram/include/alibabacloud/ram/model/CreatePolicyResult.h index a07c647be..8d1d1c088 100644 --- a/ram/include/alibabacloud/ram/model/CreatePolicyResult.h +++ b/ram/include/alibabacloud/ram/model/CreatePolicyResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string policyType; std::string description; - std::string policyName; std::string defaultVersion; + std::string policyName; std::string createDate; }; diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h index d695bde88..119a19aef 100644 --- a/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h +++ b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreatePolicyVersionRequest : public RpcServiceRequest - { - - public: - CreatePolicyVersionRequest(); - ~CreatePolicyVersionRequest(); - - bool getSetAsDefault()const; - void setSetAsDefault(bool setAsDefault); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - std::string getPolicyDocument()const; - void setPolicyDocument(const std::string& policyDocument); - std::string getRotateStrategy()const; - void setRotateStrategy(const std::string& rotateStrategy); - - private: - bool setAsDefault_; - std::string policyName_; - std::string policyDocument_; - std::string rotateStrategy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreatePolicyVersionRequest : public RpcServiceRequest { +public: + CreatePolicyVersionRequest(); + ~CreatePolicyVersionRequest(); + bool getSetAsDefault() const; + void setSetAsDefault(bool setAsDefault); + std::string getRotateStrategy() const; + void setRotateStrategy(const std::string &rotateStrategy); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + std::string getPolicyDocument() const; + void setPolicyDocument(const std::string &policyDocument); + +private: + bool setAsDefault_; + std::string rotateStrategy_; + std::string policyName_; + std::string policyDocument_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEPOLICYVERSIONREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateRoleRequest.h b/ram/include/alibabacloud/ram/model/CreateRoleRequest.h index e746212e1..c54e069ac 100644 --- a/ram/include/alibabacloud/ram/model/CreateRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateRoleRequest.h @@ -1,57 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateRoleRequest : public RpcServiceRequest - { - - public: - CreateRoleRequest(); - ~CreateRoleRequest(); - - long getMaxSessionDuration()const; - void setMaxSessionDuration(long maxSessionDuration); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAssumeRolePolicyDocument()const; - void setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument); - - private: - long maxSessionDuration_; - std::string roleName_; - std::string description_; - std::string assumeRolePolicyDocument_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateRoleRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateRoleRequest(); + ~CreateRoleRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAssumeRolePolicyDocument() const; + void setAssumeRolePolicyDocument(const std::string &assumeRolePolicyDocument); + std::vector getTag() const; + void setTag(const std::vector &tag); + long getMaxSessionDuration() const; + void setMaxSessionDuration(long maxSessionDuration); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + +private: + std::string description_; + std::string assumeRolePolicyDocument_; + std::vector tag_; + long maxSessionDuration_; + std::string roleName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateRoleResult.h b/ram/include/alibabacloud/ram/model/CreateRoleResult.h index 5def1903f..0c7f9f82f 100644 --- a/ram/include/alibabacloud/ram/model/CreateRoleResult.h +++ b/ram/include/alibabacloud/ram/model/CreateRoleResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string description; std::string assumeRolePolicyDocument; std::string arn; - std::string roleId; std::string createDate; + std::string roleId; }; diff --git a/ram/include/alibabacloud/ram/model/CreateUserRequest.h b/ram/include/alibabacloud/ram/model/CreateUserRequest.h index 35658cb0c..e5fa53c81 100644 --- a/ram/include/alibabacloud/ram/model/CreateUserRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateUserRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateUserRequest : public RpcServiceRequest - { - - public: - CreateUserRequest(); - ~CreateUserRequest(); - - std::string getMobilePhone()const; - void setMobilePhone(const std::string& mobilePhone); - std::string getEmail()const; - void setEmail(const std::string& email); - std::string getComments()const; - void setComments(const std::string& comments); - std::string getDisplayName()const; - void setDisplayName(const std::string& displayName); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string mobilePhone_; - std::string email_; - std::string comments_; - std::string displayName_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateUserRequest : public RpcServiceRequest { +public: + CreateUserRequest(); + ~CreateUserRequest(); + std::string getMobilePhone() const; + void setMobilePhone(const std::string &mobilePhone); + std::string getEmail() const; + void setEmail(const std::string &email); + std::string getComments() const; + void setComments(const std::string &comments); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string mobilePhone_; + std::string email_; + std::string comments_; + std::string displayName_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/CreateUserResult.h b/ram/include/alibabacloud/ram/model/CreateUserResult.h index 8cc3ccc53..7f4c6c0c2 100644 --- a/ram/include/alibabacloud/ram/model/CreateUserResult.h +++ b/ram/include/alibabacloud/ram/model/CreateUserResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct User { - std::string userName; std::string email; + std::string userName; std::string userId; std::string comments; std::string displayName; diff --git a/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h index e688e8ca3..ebcd83236 100644 --- a/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h +++ b/ram/include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h @@ -1,48 +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_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT CreateVirtualMFADeviceRequest : public RpcServiceRequest - { - - public: - CreateVirtualMFADeviceRequest(); - ~CreateVirtualMFADeviceRequest(); - - std::string getVirtualMFADeviceName()const; - void setVirtualMFADeviceName(const std::string& virtualMFADeviceName); - - private: - std::string virtualMFADeviceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT CreateVirtualMFADeviceRequest : public RpcServiceRequest { +public: + CreateVirtualMFADeviceRequest(); + ~CreateVirtualMFADeviceRequest(); + std::string getVirtualMFADeviceName() const; + void setVirtualMFADeviceName(const std::string &virtualMFADeviceName); + +private: + std::string virtualMFADeviceName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_CREATEVIRTUALMFADEVICEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h b/ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageRequest.h similarity index 50% rename from ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h rename to ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageRequest.h index f6f22e184..e2eea705a 100644 --- a/ram/include/alibabacloud/ram/model/DeletePublicKeyRequest.h +++ b/ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageRequest.h @@ -1,51 +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_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeletePublicKeyRequest : public RpcServiceRequest - { - - public: - DeletePublicKeyRequest(); - ~DeletePublicKeyRequest(); - - std::string getUserPublicKeyId()const; - void setUserPublicKeyId(const std::string& userPublicKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userPublicKeyId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DecodeDiagnosticMessageRequest : public RpcServiceRequest { +public: + DecodeDiagnosticMessageRequest(); + ~DecodeDiagnosticMessageRequest(); + std::string getEncodedDiagnosticMessage() const; + void setEncodedDiagnosticMessage(const std::string &encodedDiagnosticMessage); + +private: + std::string encodedDiagnosticMessage_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageResult.h b/ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageResult.h new file mode 100644 index 000000000..70dc31417 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/DecodeDiagnosticMessageResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGERESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ram + { + namespace Model + { + class ALIBABACLOUD_RAM_EXPORT DecodeDiagnosticMessageResult : public ServiceResult + { + public: + struct DecodedDiagnosticMessage + { + struct AuthPrincipal + { + std::string authPrincipalOwnerId; + std::string authPrincipalType; + std::string authPrincipalDisplayName; + }; + struct AuthConditionsItem + { + std::vector conditionValues; + std::string conditionKey; + }; + struct MatchedPoliciesItem + { + std::string policyVersion; + std::string policyType; + std::string attachedScope; + std::string policyIdentifier; + std::string attachedEntityType; + std::string effect; + }; + std::string noPermissionPolicyType; + bool explicitDeny; + AuthPrincipal authPrincipal; + std::string authResource; + std::vector authConditions; + std::vector matchedPolicies; + std::string authAction; + }; + + + DecodeDiagnosticMessageResult(); + explicit DecodeDiagnosticMessageResult(const std::string &payload); + ~DecodeDiagnosticMessageResult(); + DecodedDiagnosticMessage getDecodedDiagnosticMessage()const; + + protected: + void parse(const std::string &payload); + private: + DecodedDiagnosticMessage decodedDiagnosticMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RAM_MODEL_DECODEDIAGNOSTICMESSAGERESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h index 5485ba190..c7cbb7667 100644 --- a/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteAccessKeyRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteAccessKeyRequest : public RpcServiceRequest - { - - public: - DeleteAccessKeyRequest(); - ~DeleteAccessKeyRequest(); - - std::string getUserAccessKeyId()const; - void setUserAccessKeyId(const std::string& userAccessKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userAccessKeyId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteAccessKeyRequest : public RpcServiceRequest { +public: + DeleteAccessKeyRequest(); + ~DeleteAccessKeyRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userAccessKeyId_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEACCESSKEYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h b/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h index c7b67a53f..a354b4de4 100644 --- a/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteGroupRequest.h @@ -1,48 +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_RAM_MODEL_DELETEGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteGroupRequest : public RpcServiceRequest - { - - public: - DeleteGroupRequest(); - ~DeleteGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - - private: - std::string groupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteGroupRequest : public RpcServiceRequest { +public: + DeleteGroupRequest(); + ~DeleteGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + std::string groupName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h index 23e4ef05c..5951d7b3d 100644 --- a/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteLoginProfileRequest.h @@ -1,48 +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_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteLoginProfileRequest : public RpcServiceRequest - { - - public: - DeleteLoginProfileRequest(); - ~DeleteLoginProfileRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteLoginProfileRequest : public RpcServiceRequest { +public: + DeleteLoginProfileRequest(); + ~DeleteLoginProfileRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETELOGINPROFILEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h b/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h index c4cce4c88..283be4b52 100644 --- a/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/DeletePolicyRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeletePolicyRequest : public RpcServiceRequest - { - - public: - DeletePolicyRequest(); - ~DeletePolicyRequest(); - - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeletePolicyRequest : public RpcServiceRequest { +public: + DeletePolicyRequest(); + ~DeletePolicyRequest(); + bool getCascadingDelete() const; + void setCascadingDelete(bool cascadingDelete); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + bool cascadingDelete_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h index 230dae18f..71cba2668 100644 --- a/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h +++ b/ram/include/alibabacloud/ram/model/DeletePolicyVersionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeletePolicyVersionRequest : public RpcServiceRequest - { - - public: - DeletePolicyVersionRequest(); - ~DeletePolicyVersionRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string versionId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeletePolicyVersionRequest : public RpcServiceRequest { +public: + DeletePolicyVersionRequest(); + ~DeletePolicyVersionRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string versionId_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPOLICYVERSIONREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h b/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h index a80dfa218..85904cd3d 100644 --- a/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteRoleRequest.h @@ -1,48 +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_RAM_MODEL_DELETEROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteRoleRequest : public RpcServiceRequest - { - - public: - DeleteRoleRequest(); - ~DeleteRoleRequest(); - - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - - private: - std::string roleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteRoleRequest : public RpcServiceRequest { +public: + DeleteRoleRequest(); + ~DeleteRoleRequest(); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + +private: + std::string roleName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeleteUserRequest.h b/ram/include/alibabacloud/ram/model/DeleteUserRequest.h index 737f4fe16..20ee121e6 100644 --- a/ram/include/alibabacloud/ram/model/DeleteUserRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteUserRequest.h @@ -1,48 +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_RAM_MODEL_DELETEUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteUserRequest : public RpcServiceRequest - { - - public: - DeleteUserRequest(); - ~DeleteUserRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteUserRequest : public RpcServiceRequest { +public: + DeleteUserRequest(); + ~DeleteUserRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h index 4412d950a..ebcf50625 100644 --- a/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h +++ b/ram/include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h @@ -1,48 +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_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DeleteVirtualMFADeviceRequest : public RpcServiceRequest - { - - public: - DeleteVirtualMFADeviceRequest(); - ~DeleteVirtualMFADeviceRequest(); - - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - - private: - std::string serialNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DeleteVirtualMFADeviceRequest : public RpcServiceRequest { +public: + DeleteVirtualMFADeviceRequest(); + ~DeleteVirtualMFADeviceRequest(); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + +private: + std::string serialNumber_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DELETEVIRTUALMFADEVICEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h index 9ad857520..0be60bfca 100644 --- a/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromGroupRequest : public RpcServiceRequest - { - - public: - DetachPolicyFromGroupRequest(); - ~DetachPolicyFromGroupRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string groupName_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromGroupRequest : public RpcServiceRequest { +public: + DetachPolicyFromGroupRequest(); + ~DetachPolicyFromGroupRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string groupName_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h index 720c70201..4789fbeff 100644 --- a/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromRoleRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromRoleRequest : public RpcServiceRequest - { - - public: - DetachPolicyFromRoleRequest(); - ~DetachPolicyFromRoleRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string roleName_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromRoleRequest : public RpcServiceRequest { +public: + DetachPolicyFromRoleRequest(); + ~DetachPolicyFromRoleRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string roleName_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h index b82edb7b2..66a0ddc63 100644 --- a/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h +++ b/ram/include/alibabacloud/ram/model/DetachPolicyFromUserRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromUserRequest : public RpcServiceRequest - { - - public: - DetachPolicyFromUserRequest(); - ~DetachPolicyFromUserRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string policyType_; - std::string policyName_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT DetachPolicyFromUserRequest : public RpcServiceRequest { +public: + DetachPolicyFromUserRequest(); + ~DetachPolicyFromUserRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string policyType_; + std::string policyName_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_DETACHPOLICYFROMUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h index dc6c0441c..4c8985cc1 100644 --- a/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h +++ b/ram/include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetAccessKeyLastUsedRequest : public RpcServiceRequest - { - - public: - GetAccessKeyLastUsedRequest(); - ~GetAccessKeyLastUsedRequest(); - - std::string getUserAccessKeyId()const; - void setUserAccessKeyId(const std::string& userAccessKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userAccessKeyId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetAccessKeyLastUsedRequest : public RpcServiceRequest { +public: + GetAccessKeyLastUsedRequest(); + ~GetAccessKeyLastUsedRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userAccessKeyId_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCESSKEYLASTUSEDREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h index 04ad0c9db..d2bb60fb3 100644 --- a/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h +++ b/ram/include/alibabacloud/ram/model/GetAccountAliasRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetAccountAliasRequest : public RpcServiceRequest - { - - public: - GetAccountAliasRequest(); - ~GetAccountAliasRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetAccountAliasRequest : public RpcServiceRequest { +public: + GetAccountAliasRequest(); + ~GetAccountAliasRequest(); + +private: +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETACCOUNTALIASREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetGroupRequest.h b/ram/include/alibabacloud/ram/model/GetGroupRequest.h index 3a245d038..279dbb5c8 100644 --- a/ram/include/alibabacloud/ram/model/GetGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/GetGroupRequest.h @@ -1,48 +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_RAM_MODEL_GETGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetGroupRequest : public RpcServiceRequest - { - - public: - GetGroupRequest(); - ~GetGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - - private: - std::string groupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetGroupRequest : public RpcServiceRequest { +public: + GetGroupRequest(); + ~GetGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + std::string groupName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetGroupResult.h b/ram/include/alibabacloud/ram/model/GetGroupResult.h index 266166592..c8430f1c7 100644 --- a/ram/include/alibabacloud/ram/model/GetGroupResult.h +++ b/ram/include/alibabacloud/ram/model/GetGroupResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string updateDate; std::string comments; std::string createDate; + std::string groupId; }; diff --git a/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h index ab51d2937..b3dca96bd 100644 --- a/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h +++ b/ram/include/alibabacloud/ram/model/GetLoginProfileRequest.h @@ -1,48 +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_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetLoginProfileRequest : public RpcServiceRequest - { - - public: - GetLoginProfileRequest(); - ~GetLoginProfileRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetLoginProfileRequest : public RpcServiceRequest { +public: + GetLoginProfileRequest(); + ~GetLoginProfileRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETLOGINPROFILEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h b/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h index 051c7ee4d..b1e07ccd7 100644 --- a/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/GetPasswordPolicyRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetPasswordPolicyRequest : public RpcServiceRequest - { - - public: - GetPasswordPolicyRequest(); - ~GetPasswordPolicyRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetPasswordPolicyRequest : public RpcServiceRequest { +public: + GetPasswordPolicyRequest(); + ~GetPasswordPolicyRequest(); + +private: +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETPASSWORDPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h b/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h index a69d05571..56a190e6a 100644 --- a/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h +++ b/ram/include/alibabacloud/ram/model/GetPasswordPolicyResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int minimumPasswordLength; bool requireLowercaseCharacters; bool requireNumbers; - int maxPasswordAge; int passwordReusePrevention; + int maxPasswordAge; int maxLoginAttemps; bool hardExpiry; bool requireUppercaseCharacters; diff --git a/ram/include/alibabacloud/ram/model/GetPolicyRequest.h b/ram/include/alibabacloud/ram/model/GetPolicyRequest.h index d9266eca9..f3cdb64ae 100644 --- a/ram/include/alibabacloud/ram/model/GetPolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/GetPolicyRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetPolicyRequest : public RpcServiceRequest - { - - public: - GetPolicyRequest(); - ~GetPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetPolicyRequest : public RpcServiceRequest { +public: + GetPolicyRequest(); + ~GetPolicyRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetPolicyResult.h b/ram/include/alibabacloud/ram/model/GetPolicyResult.h index 230aeab04..680e60655 100644 --- a/ram/include/alibabacloud/ram/model/GetPolicyResult.h +++ b/ram/include/alibabacloud/ram/model/GetPolicyResult.h @@ -34,12 +34,12 @@ namespace AlibabaCloud public: struct Policy { - std::string policyType; std::string updateDate; + std::string policyType; std::string description; int attachmentCount; - std::string policyName; std::string defaultVersion; + std::string policyName; std::string policyDocument; std::string createDate; }; diff --git a/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h index 94a36305e..2d29c053e 100644 --- a/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h +++ b/ram/include/alibabacloud/ram/model/GetPolicyVersionRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetPolicyVersionRequest : public RpcServiceRequest - { - - public: - GetPolicyVersionRequest(); - ~GetPolicyVersionRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string versionId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetPolicyVersionRequest : public RpcServiceRequest { +public: + GetPolicyVersionRequest(); + ~GetPolicyVersionRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string versionId_; + std::string policyType_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETPOLICYVERSIONREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h b/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h deleted file mode 100644 index 746bc420d..000000000 --- a/ram/include/alibabacloud/ram/model/GetPublicKeyRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetPublicKeyRequest : public RpcServiceRequest - { - - public: - GetPublicKeyRequest(); - ~GetPublicKeyRequest(); - - std::string getUserPublicKeyId()const; - void setUserPublicKeyId(const std::string& userPublicKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userPublicKeyId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h b/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h deleted file mode 100644 index 06386dc9c..000000000 --- a/ram/include/alibabacloud/ram/model/GetPublicKeyResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ -#define ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetPublicKeyResult : public ServiceResult - { - public: - struct PublicKey - { - std::string status; - std::string publicKeyId; - std::string publicKeySpec; - std::string createDate; - }; - - - GetPublicKeyResult(); - explicit GetPublicKeyResult(const std::string &payload); - ~GetPublicKeyResult(); - PublicKey getPublicKey()const; - - protected: - void parse(const std::string &payload); - private: - PublicKey publicKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETPUBLICKEYRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/GetRoleRequest.h b/ram/include/alibabacloud/ram/model/GetRoleRequest.h index fe4f69009..6e0cd0681 100644 --- a/ram/include/alibabacloud/ram/model/GetRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/GetRoleRequest.h @@ -1,48 +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_RAM_MODEL_GETROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetRoleRequest : public RpcServiceRequest - { - - public: - GetRoleRequest(); - ~GetRoleRequest(); - - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - - private: - std::string roleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetRoleRequest : public RpcServiceRequest { +public: + GetRoleRequest(); + ~GetRoleRequest(); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + +private: + std::string roleName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetRoleResult.h b/ram/include/alibabacloud/ram/model/GetRoleResult.h index 0c335467e..44659a7bc 100644 --- a/ram/include/alibabacloud/ram/model/GetRoleResult.h +++ b/ram/include/alibabacloud/ram/model/GetRoleResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string description; std::string assumeRolePolicyDocument; std::string arn; - std::string roleId; std::string createDate; + std::string roleId; }; diff --git a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h index 566add0e5..ce734a007 100644 --- a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h +++ b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetSecurityPreferenceRequest : public RpcServiceRequest - { - - public: - GetSecurityPreferenceRequest(); - ~GetSecurityPreferenceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetSecurityPreferenceRequest : public RpcServiceRequest { +public: + GetSecurityPreferenceRequest(); + ~GetSecurityPreferenceRequest(); + +private: +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETSECURITYPREFERENCEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h index 28b7c550d..40a290da6 100644 --- a/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h +++ b/ram/include/alibabacloud/ram/model/GetSecurityPreferenceResult.h @@ -34,6 +34,14 @@ namespace AlibabaCloud public: struct SecurityPreference { + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; struct LoginProfilePreference { int loginSessionDuration; @@ -41,18 +49,10 @@ namespace AlibabaCloud bool allowUserToChangePassword; bool enableSaveMFATicket; }; - struct AccessKeyPreference - { - bool allowUserToManageAccessKeys; - }; struct PublicKeyPreference { bool allowUserToManagePublicKeys; }; - struct MFAPreference - { - bool allowUserToManageMFADevices; - }; LoginProfilePreference loginProfilePreference; AccessKeyPreference accessKeyPreference; PublicKeyPreference publicKeyPreference; diff --git a/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h b/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h index f87b6a1dd..acccadf6d 100644 --- a/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h +++ b/ram/include/alibabacloud/ram/model/GetUserMFAInfoRequest.h @@ -1,48 +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_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetUserMFAInfoRequest : public RpcServiceRequest - { - - public: - GetUserMFAInfoRequest(); - ~GetUserMFAInfoRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetUserMFAInfoRequest : public RpcServiceRequest { +public: + GetUserMFAInfoRequest(); + ~GetUserMFAInfoRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERMFAINFOREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h b/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h index 1a82732b1..25b79fd65 100644 --- a/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h +++ b/ram/include/alibabacloud/ram/model/GetUserMFAInfoResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct MFADevice { + std::string type; std::string serialNumber; }; diff --git a/ram/include/alibabacloud/ram/model/GetUserRequest.h b/ram/include/alibabacloud/ram/model/GetUserRequest.h index d44a015fb..09b387b3b 100644 --- a/ram/include/alibabacloud/ram/model/GetUserRequest.h +++ b/ram/include/alibabacloud/ram/model/GetUserRequest.h @@ -1,48 +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_RAM_MODEL_GETUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT GetUserRequest : public RpcServiceRequest - { - - public: - GetUserRequest(); - ~GetUserRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT GetUserRequest : public RpcServiceRequest { +public: + GetUserRequest(); + ~GetUserRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_GETUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/GetUserResult.h b/ram/include/alibabacloud/ram/model/GetUserResult.h index acea19434..8b6e80e8b 100644 --- a/ram/include/alibabacloud/ram/model/GetUserResult.h +++ b/ram/include/alibabacloud/ram/model/GetUserResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct User { std::string updateDate; - std::string userName; std::string email; + std::string userName; std::string userId; std::string comments; std::string displayName; diff --git a/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h b/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h index c2c07fa89..06ca2487b 100644 --- a/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h +++ b/ram/include/alibabacloud/ram/model/ListAccessKeysRequest.h @@ -1,48 +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_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListAccessKeysRequest : public RpcServiceRequest - { - - public: - ListAccessKeysRequest(); - ~ListAccessKeysRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListAccessKeysRequest : public RpcServiceRequest { +public: + ListAccessKeysRequest(); + ~ListAccessKeysRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTACCESSKEYSREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h index 997000547..c83f99e4e 100644 --- a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListEntitiesForPolicyRequest : public RpcServiceRequest - { - - public: - ListEntitiesForPolicyRequest(); - ~ListEntitiesForPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListEntitiesForPolicyRequest : public RpcServiceRequest { +public: + ListEntitiesForPolicyRequest(); + ~ListEntitiesForPolicyRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTENTITIESFORPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h index 8fa6b0c5a..f2d9d8c72 100644 --- a/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h +++ b/ram/include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h @@ -38,13 +38,6 @@ namespace AlibabaCloud std::string attachDate; std::string comments; }; - struct User - { - std::string userName; - std::string attachDate; - std::string userId; - std::string displayName; - }; struct Role { std::string roleName; @@ -53,6 +46,13 @@ namespace AlibabaCloud std::string arn; std::string roleId; }; + struct User + { + std::string userName; + std::string attachDate; + std::string userId; + std::string displayName; + }; ListEntitiesForPolicyResult(); diff --git a/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h b/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h index 938034ca8..faa95ff23 100644 --- a/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h +++ b/ram/include/alibabacloud/ram/model/ListGroupsForUserRequest.h @@ -1,48 +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_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListGroupsForUserRequest : public RpcServiceRequest - { - - public: - ListGroupsForUserRequest(); - ~ListGroupsForUserRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListGroupsForUserRequest : public RpcServiceRequest { +public: + ListGroupsForUserRequest(); + ~ListGroupsForUserRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSFORUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h b/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h index 05da5a5b3..d788f6bf1 100644 --- a/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h +++ b/ram/include/alibabacloud/ram/model/ListGroupsForUserResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string groupName; std::string comments; std::string joinDate; + std::string groupId; }; diff --git a/ram/include/alibabacloud/ram/model/ListGroupsRequest.h b/ram/include/alibabacloud/ram/model/ListGroupsRequest.h index c27691e1b..54cbf9c04 100644 --- a/ram/include/alibabacloud/ram/model/ListGroupsRequest.h +++ b/ram/include/alibabacloud/ram/model/ListGroupsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListGroupsRequest : public RpcServiceRequest - { - - public: - ListGroupsRequest(); - ~ListGroupsRequest(); - - std::string getMarker()const; - void setMarker(const std::string& marker); - int getMaxItems()const; - void setMaxItems(int maxItems); - - private: - std::string marker_; - int maxItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListGroupsRequest : public RpcServiceRequest { +public: + ListGroupsRequest(); + ~ListGroupsRequest(); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTGROUPSREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListGroupsResult.h b/ram/include/alibabacloud/ram/model/ListGroupsResult.h index 45cac30ba..ade1783cc 100644 --- a/ram/include/alibabacloud/ram/model/ListGroupsResult.h +++ b/ram/include/alibabacloud/ram/model/ListGroupsResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string updateDate; std::string comments; std::string createDate; + std::string groupId; }; diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h index 0b3103e93..d4e54a709 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupRequest.h @@ -1,48 +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_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPoliciesForGroupRequest : public RpcServiceRequest - { - - public: - ListPoliciesForGroupRequest(); - ~ListPoliciesForGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - - private: - std::string groupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListPoliciesForGroupRequest : public RpcServiceRequest { +public: + ListPoliciesForGroupRequest(); + ~ListPoliciesForGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + std::string groupName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h index 51c57032f..478bfe114 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForGroupResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string policyType; std::string description; std::string attachDate; - std::string policyName; std::string defaultVersion; + std::string policyName; }; diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h index 9f4fecfe6..0a4a42661 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleRequest.h @@ -1,48 +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_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPoliciesForRoleRequest : public RpcServiceRequest - { - - public: - ListPoliciesForRoleRequest(); - ~ListPoliciesForRoleRequest(); - - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - - private: - std::string roleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListPoliciesForRoleRequest : public RpcServiceRequest { +public: + ListPoliciesForRoleRequest(); + ~ListPoliciesForRoleRequest(); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + +private: + std::string roleName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h index 3c9f34164..cbdb6dd05 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForRoleResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string policyType; std::string description; std::string attachDate; - std::string policyName; std::string defaultVersion; + std::string policyName; }; diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h index 4668db759..eefebc1ff 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForUserRequest.h @@ -1,48 +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_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPoliciesForUserRequest : public RpcServiceRequest - { - - public: - ListPoliciesForUserRequest(); - ~ListPoliciesForUserRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListPoliciesForUserRequest : public RpcServiceRequest { +public: + ListPoliciesForUserRequest(); + ~ListPoliciesForUserRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESFORUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h index 6e9f4dc54..0cd867d09 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesForUserResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string policyType; std::string description; std::string attachDate; - std::string policyName; std::string defaultVersion; + std::string policyName; }; diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h b/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h index 51e89face..a60896696 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesRequest.h @@ -1,54 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPoliciesRequest : public RpcServiceRequest - { - - public: - ListPoliciesRequest(); - ~ListPoliciesRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getMarker()const; - void setMarker(const std::string& marker); - int getMaxItems()const; - void setMaxItems(int maxItems); - - private: - std::string policyType_; - std::string marker_; - int maxItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListPoliciesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListPoliciesRequest(); + ~ListPoliciesRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string language_; + std::vector tag_; + std::string policyType_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICIESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPoliciesResult.h b/ram/include/alibabacloud/ram/model/ListPoliciesResult.h index c397839de..d93389ccc 100644 --- a/ram/include/alibabacloud/ram/model/ListPoliciesResult.h +++ b/ram/include/alibabacloud/ram/model/ListPoliciesResult.h @@ -34,13 +34,19 @@ namespace AlibabaCloud public: struct Policy { - std::string policyType; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string updateDate; + std::string policyType; std::string description; int attachmentCount; - std::string policyName; std::string defaultVersion; + std::string policyName; std::string createDate; + std::vector tags; }; diff --git a/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h b/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h index a71db4284..047f8229b 100644 --- a/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h +++ b/ram/include/alibabacloud/ram/model/ListPolicyVersionsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPolicyVersionsRequest : public RpcServiceRequest - { - - public: - ListPolicyVersionsRequest(); - ~ListPolicyVersionsRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string policyType_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListPolicyVersionsRequest : public RpcServiceRequest { +public: + ListPolicyVersionsRequest(); + ~ListPolicyVersionsRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyType_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTPOLICYVERSIONSREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h b/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h deleted file mode 100644 index de0fc4395..000000000 --- a/ram/include/alibabacloud/ram/model/ListPublicKeysRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListPublicKeysRequest : public RpcServiceRequest - { - - public: - ListPublicKeysRequest(); - ~ListPublicKeysRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListRolesRequest.h b/ram/include/alibabacloud/ram/model/ListRolesRequest.h index df9e60566..50980a092 100644 --- a/ram/include/alibabacloud/ram/model/ListRolesRequest.h +++ b/ram/include/alibabacloud/ram/model/ListRolesRequest.h @@ -1,51 +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. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListRolesRequest : public RpcServiceRequest - { - - public: - ListRolesRequest(); - ~ListRolesRequest(); - - std::string getMarker()const; - void setMarker(const std::string& marker); - int getMaxItems()const; - void setMaxItems(int maxItems); - - private: - std::string marker_; - int maxItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListRolesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListRolesRequest(); + ~ListRolesRequest(); + 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); + +private: + std::vector tag_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTROLESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListRolesResult.h b/ram/include/alibabacloud/ram/model/ListRolesResult.h index 97974aa99..2a38ad4e9 100644 --- a/ram/include/alibabacloud/ram/model/ListRolesResult.h +++ b/ram/include/alibabacloud/ram/model/ListRolesResult.h @@ -34,13 +34,19 @@ namespace AlibabaCloud public: struct Role { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string updateDate; long maxSessionDuration; std::string roleName; std::string description; std::string arn; - std::string roleId; std::string createDate; + std::string roleId; + std::vector tags; }; diff --git a/ram/include/alibabacloud/ram/model/ListTagResourcesRequest.h b/ram/include/alibabacloud/ram/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..f0c024842 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/ListTagResourcesRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceNames() const; + void setResourceNames(const std::vector &resourceNames); + 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::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector resourceNames_; + std::string nextToken_; + int pageSize_; + std::vector tag_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h b/ram/include/alibabacloud/ram/model/ListTagResourcesResult.h similarity index 57% rename from ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h rename to ram/include/alibabacloud/ram/model/ListTagResourcesResult.h index 12d0bc684..2fb16bf58 100644 --- a/ram/include/alibabacloud/ram/model/UploadPublicKeyResult.h +++ b/ram/include/alibabacloud/ram/model/ListTagResourcesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ -#define ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ +#ifndef ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESRESULT_H_ #include #include @@ -29,30 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RAM_EXPORT UploadPublicKeyResult : public ServiceResult + class ALIBABACLOUD_RAM_EXPORT ListTagResourcesResult : public ServiceResult { public: - struct PublicKey + struct TagResourcesItem { - std::string status; - std::string publicKeyId; - std::string publicKeySpec; - std::string createDate; + std::string resourceName; + std::string tagKey; + std::string resourceType; + std::string tagValue; }; - UploadPublicKeyResult(); - explicit UploadPublicKeyResult(const std::string &payload); - ~UploadPublicKeyResult(); - PublicKey getPublicKey()const; + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; protected: void parse(const std::string &payload); private: - PublicKey publicKey_; + std::string nextToken_; + std::vector tagResources_; }; } } } -#endif // !ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RAM_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h b/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h index ceab06a1d..6f8064023 100644 --- a/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/ListUsersForGroupRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListUsersForGroupRequest : public RpcServiceRequest - { - - public: - ListUsersForGroupRequest(); - ~ListUsersForGroupRequest(); - - std::string 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); - - private: - std::string groupName_; - std::string marker_; - int maxItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListUsersForGroupRequest : public RpcServiceRequest { +public: + ListUsersForGroupRequest(); + ~ListUsersForGroupRequest(); + 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); + +private: + std::string groupName_; + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSFORGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListUsersRequest.h b/ram/include/alibabacloud/ram/model/ListUsersRequest.h index 4f941b69b..5740cf15c 100644 --- a/ram/include/alibabacloud/ram/model/ListUsersRequest.h +++ b/ram/include/alibabacloud/ram/model/ListUsersRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListUsersRequest : public RpcServiceRequest - { - - public: - ListUsersRequest(); - ~ListUsersRequest(); - - std::string getMarker()const; - void setMarker(const std::string& marker); - int getMaxItems()const; - void setMaxItems(int maxItems); - - private: - std::string marker_; - int maxItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListUsersRequest : public RpcServiceRequest { +public: + ListUsersRequest(); + ~ListUsersRequest(); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string marker_; + int maxItems_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTUSERSREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListUsersResult.h b/ram/include/alibabacloud/ram/model/ListUsersResult.h index 67088477d..9b9c526be 100644 --- a/ram/include/alibabacloud/ram/model/ListUsersResult.h +++ b/ram/include/alibabacloud/ram/model/ListUsersResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct User { std::string updateDate; - std::string userName; std::string email; + std::string userName; std::string userId; std::string comments; std::string displayName; diff --git a/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h index e5eb1c801..bb5698d56 100644 --- a/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h +++ b/ram/include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT ListVirtualMFADevicesRequest : public RpcServiceRequest - { - - public: - ListVirtualMFADevicesRequest(); - ~ListVirtualMFADevicesRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT ListVirtualMFADevicesRequest : public RpcServiceRequest { +public: + ListVirtualMFADevicesRequest(); + ~ListVirtualMFADevicesRequest(); + +private: +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_LISTVIRTUALMFADEVICESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h index 095c17cdb..aafd5bc69 100644 --- a/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT RemoveUserFromGroupRequest : public RpcServiceRequest - { - - public: - RemoveUserFromGroupRequest(); - ~RemoveUserFromGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string groupName_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT RemoveUserFromGroupRequest : public RpcServiceRequest { +public: + RemoveUserFromGroupRequest(); + ~RemoveUserFromGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string groupName_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_REMOVEUSERFROMGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h b/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h index 5cc7fb98f..556415dc6 100644 --- a/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h +++ b/ram/include/alibabacloud/ram/model/SetAccountAliasRequest.h @@ -1,48 +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_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT SetAccountAliasRequest : public RpcServiceRequest - { - - public: - SetAccountAliasRequest(); - ~SetAccountAliasRequest(); - - std::string getAccountAlias()const; - void setAccountAlias(const std::string& accountAlias); - - private: - std::string accountAlias_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT SetAccountAliasRequest : public RpcServiceRequest { +public: + SetAccountAliasRequest(); + ~SetAccountAliasRequest(); + std::string getAccountAlias() const; + void setAccountAlias(const std::string &accountAlias); + +private: + std::string accountAlias_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_SETACCOUNTALIASREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h index 211aae79b..3b9793243 100644 --- a/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h +++ b/ram/include/alibabacloud/ram/model/SetDefaultPolicyVersionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT SetDefaultPolicyVersionRequest : public RpcServiceRequest - { - - public: - SetDefaultPolicyVersionRequest(); - ~SetDefaultPolicyVersionRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string versionId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT SetDefaultPolicyVersionRequest : public RpcServiceRequest { +public: + SetDefaultPolicyVersionRequest(); + ~SetDefaultPolicyVersionRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string versionId_; + std::string policyName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_SETDEFAULTPOLICYVERSIONREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h b/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h index 23dece3cf..2328e7f8e 100644 --- a/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h +++ b/ram/include/alibabacloud/ram/model/SetPasswordPolicyRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT SetPasswordPolicyRequest : public RpcServiceRequest - { - - public: - SetPasswordPolicyRequest(); - ~SetPasswordPolicyRequest(); - - int getPasswordReusePrevention()const; - void setPasswordReusePrevention(int passwordReusePrevention); - bool getRequireUppercaseCharacters()const; - void setRequireUppercaseCharacters(bool requireUppercaseCharacters); - int getMinimumPasswordLength()const; - void setMinimumPasswordLength(int minimumPasswordLength); - bool getRequireNumbers()const; - void setRequireNumbers(bool requireNumbers); - bool getRequireLowercaseCharacters()const; - void setRequireLowercaseCharacters(bool requireLowercaseCharacters); - int getMaxPasswordAge()const; - void setMaxPasswordAge(int maxPasswordAge); - int getMaxLoginAttemps()const; - void setMaxLoginAttemps(int maxLoginAttemps); - bool getHardExpiry()const; - void setHardExpiry(bool hardExpiry); - bool getRequireSymbols()const; - void setRequireSymbols(bool requireSymbols); - - private: - int passwordReusePrevention_; - bool requireUppercaseCharacters_; - int minimumPasswordLength_; - bool requireNumbers_; - bool requireLowercaseCharacters_; - int maxPasswordAge_; - int maxLoginAttemps_; - bool hardExpiry_; - bool requireSymbols_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT SetPasswordPolicyRequest : public RpcServiceRequest { +public: + SetPasswordPolicyRequest(); + ~SetPasswordPolicyRequest(); + int getPasswordReusePrevention() const; + void setPasswordReusePrevention(int passwordReusePrevention); + bool getRequireUppercaseCharacters() const; + void setRequireUppercaseCharacters(bool requireUppercaseCharacters); + int getMinimumPasswordLength() const; + void setMinimumPasswordLength(int minimumPasswordLength); + bool getRequireNumbers() const; + void setRequireNumbers(bool requireNumbers); + bool getRequireLowercaseCharacters() const; + void setRequireLowercaseCharacters(bool requireLowercaseCharacters); + int getMaxPasswordAge() const; + void setMaxPasswordAge(int maxPasswordAge); + int getMaxLoginAttemps() const; + void setMaxLoginAttemps(int maxLoginAttemps); + bool getHardExpiry() const; + void setHardExpiry(bool hardExpiry); + bool getRequireSymbols() const; + void setRequireSymbols(bool requireSymbols); + +private: + int passwordReusePrevention_; + bool requireUppercaseCharacters_; + int minimumPasswordLength_; + bool requireNumbers_; + bool requireLowercaseCharacters_; + int maxPasswordAge_; + int maxLoginAttemps_; + bool hardExpiry_; + bool requireSymbols_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_SETPASSWORDPOLICYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h b/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h index fbeeb346b..5410e14c0 100644 --- a/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h +++ b/ram/include/alibabacloud/ram/model/SetPasswordPolicyResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int minimumPasswordLength; bool requireLowercaseCharacters; bool requireNumbers; - int maxPasswordAge; int passwordReusePrevention; + int maxPasswordAge; int maxLoginAttemps; bool hardExpiry; bool requireUppercaseCharacters; diff --git a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h index 76836d77d..58699468d 100644 --- a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h +++ b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT SetSecurityPreferenceRequest : public RpcServiceRequest - { - - public: - SetSecurityPreferenceRequest(); - ~SetSecurityPreferenceRequest(); - - bool getEnableSaveMFATicket()const; - void setEnableSaveMFATicket(bool enableSaveMFATicket); - std::string getLoginNetworkMasks()const; - void setLoginNetworkMasks(const std::string& loginNetworkMasks); - bool getAllowUserToChangePassword()const; - void setAllowUserToChangePassword(bool allowUserToChangePassword); - bool getAllowUserToManagePublicKeys()const; - void setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys); - int getLoginSessionDuration()const; - void setLoginSessionDuration(int loginSessionDuration); - bool getAllowUserToManageAccessKeys()const; - void setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys); - bool getAllowUserToManageMFADevices()const; - void setAllowUserToManageMFADevices(bool allowUserToManageMFADevices); - - private: - bool enableSaveMFATicket_; - std::string loginNetworkMasks_; - bool allowUserToChangePassword_; - bool allowUserToManagePublicKeys_; - int loginSessionDuration_; - bool allowUserToManageAccessKeys_; - bool allowUserToManageMFADevices_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT SetSecurityPreferenceRequest : public RpcServiceRequest { +public: + SetSecurityPreferenceRequest(); + ~SetSecurityPreferenceRequest(); + 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 getAllowUserToManagePublicKeys() const; + void setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys); + int getLoginSessionDuration() const; + void setLoginSessionDuration(int loginSessionDuration); + bool getAllowUserToManageAccessKeys() const; + void setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys); + bool getAllowUserToManageMFADevices() const; + void setAllowUserToManageMFADevices(bool allowUserToManageMFADevices); + +private: + bool enableSaveMFATicket_; + std::string loginNetworkMasks_; + bool allowUserToChangePassword_; + bool allowUserToManagePublicKeys_; + int loginSessionDuration_; + bool allowUserToManageAccessKeys_; + bool allowUserToManageMFADevices_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_SETSECURITYPREFERENCEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h index 23a9d8f0b..00c4b54e3 100644 --- a/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h +++ b/ram/include/alibabacloud/ram/model/SetSecurityPreferenceResult.h @@ -34,6 +34,14 @@ namespace AlibabaCloud public: struct SecurityPreference { + struct AccessKeyPreference + { + bool allowUserToManageAccessKeys; + }; + struct MFAPreference + { + bool allowUserToManageMFADevices; + }; struct LoginProfilePreference { int loginSessionDuration; @@ -41,18 +49,10 @@ namespace AlibabaCloud bool allowUserToChangePassword; bool enableSaveMFATicket; }; - struct AccessKeyPreference - { - bool allowUserToManageAccessKeys; - }; struct PublicKeyPreference { bool allowUserToManagePublicKeys; }; - struct MFAPreference - { - bool allowUserToManageMFADevices; - }; LoginProfilePreference loginProfilePreference; AccessKeyPreference accessKeyPreference; PublicKeyPreference publicKeyPreference; diff --git a/ram/include/alibabacloud/ram/model/TagResourcesRequest.h b/ram/include/alibabacloud/ram/model/TagResourcesRequest.h new file mode 100644 index 000000000..d5d55d468 --- /dev/null +++ b/ram/include/alibabacloud/ram/model/TagResourcesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceNames() const; + void setResourceNames(const std::vector &resourceNames); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector resourceNames_; + std::vector tag_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h b/ram/include/alibabacloud/ram/model/TagResourcesResult.h similarity index 71% rename from ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h rename to ram/include/alibabacloud/ram/model/TagResourcesResult.h index ad2629680..dbf7424f2 100644 --- a/ram/include/alibabacloud/ram/model/UpdatePublicKeyResult.h +++ b/ram/include/alibabacloud/ram/model/TagResourcesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ +#ifndef ALIBABACLOUD_RAM_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_TAGRESOURCESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RAM_EXPORT UpdatePublicKeyResult : public ServiceResult + class ALIBABACLOUD_RAM_EXPORT TagResourcesResult : public ServiceResult { public: - UpdatePublicKeyResult(); - explicit UpdatePublicKeyResult(const std::string &payload); - ~UpdatePublicKeyResult(); + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RAM_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h b/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h index 9a6290380..dc5b210a3 100644 --- a/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h +++ b/ram/include/alibabacloud/ram/model/UnbindMFADeviceRequest.h @@ -1,48 +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_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UnbindMFADeviceRequest : public RpcServiceRequest - { - - public: - UnbindMFADeviceRequest(); - ~UnbindMFADeviceRequest(); - - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UnbindMFADeviceRequest : public RpcServiceRequest { +public: + UnbindMFADeviceRequest(); + ~UnbindMFADeviceRequest(); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UNBINDMFADEVICEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UntagResourcesRequest.h b/ram/include/alibabacloud/ram/model/UntagResourcesRequest.h new file mode 100644 index 000000000..0e089473b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UntagResourcesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + std::vector getResourceNames() const; + void setResourceNames(const std::vector &resourceNames); + bool getAll() const; + void setAll(bool all); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKeys() const; + void setTagKeys(const std::vector &tagKeys); + +private: + std::vector resourceNames_; + bool all_; + std::string resourceType_; + std::vector tagKeys_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h b/ram/include/alibabacloud/ram/model/UntagResourcesResult.h similarity index 71% rename from ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h rename to ram/include/alibabacloud/ram/model/UntagResourcesResult.h index d8b0edeed..5c374762a 100644 --- a/ram/include/alibabacloud/ram/model/DeletePublicKeyResult.h +++ b/ram/include/alibabacloud/ram/model/UntagResourcesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ -#define ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ +#ifndef ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RAM_EXPORT DeletePublicKeyResult : public ServiceResult + class ALIBABACLOUD_RAM_EXPORT UntagResourcesResult : public ServiceResult { public: - DeletePublicKeyResult(); - explicit DeletePublicKeyResult(const std::string &payload); - ~DeletePublicKeyResult(); + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RAM_MODEL_DELETEPUBLICKEYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RAM_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h b/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h index 90d8333ff..e38cbf80a 100644 --- a/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h +++ b/ram/include/alibabacloud/ram/model/UpdateAccessKeyRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdateAccessKeyRequest : public RpcServiceRequest - { - - public: - UpdateAccessKeyRequest(); - ~UpdateAccessKeyRequest(); - - std::string getUserAccessKeyId()const; - void setUserAccessKeyId(const std::string& userAccessKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string userAccessKeyId_; - std::string userName_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdateAccessKeyRequest : public RpcServiceRequest { +public: + UpdateAccessKeyRequest(); + ~UpdateAccessKeyRequest(); + std::string getUserAccessKeyId() const; + void setUserAccessKeyId(const std::string &userAccessKeyId); + std::string getUserName() const; + void setUserName(const std::string &userName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string userAccessKeyId_; + std::string userName_; + std::string status_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEACCESSKEYREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h b/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h index 1f8e37ff4..208818ecb 100644 --- a/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h +++ b/ram/include/alibabacloud/ram/model/UpdateGroupRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdateGroupRequest : public RpcServiceRequest - { - - public: - UpdateGroupRequest(); - ~UpdateGroupRequest(); - - std::string 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); - - private: - std::string groupName_; - std::string newGroupName_; - std::string newComments_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdateGroupRequest : public RpcServiceRequest { +public: + UpdateGroupRequest(); + ~UpdateGroupRequest(); + 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); + +private: + std::string groupName_; + std::string newGroupName_; + std::string newComments_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEGROUPREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdateGroupResult.h b/ram/include/alibabacloud/ram/model/UpdateGroupResult.h index 08de9cc3f..df22520a1 100644 --- a/ram/include/alibabacloud/ram/model/UpdateGroupResult.h +++ b/ram/include/alibabacloud/ram/model/UpdateGroupResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string updateDate; std::string comments; std::string createDate; + std::string groupId; }; diff --git a/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h b/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h index a436d54d9..d942fd1ac 100644 --- a/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h +++ b/ram/include/alibabacloud/ram/model/UpdateLoginProfileRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdateLoginProfileRequest : public RpcServiceRequest - { - - public: - UpdateLoginProfileRequest(); - ~UpdateLoginProfileRequest(); - - bool getPasswordResetRequired()const; - void setPasswordResetRequired(bool passwordResetRequired); - std::string getPassword()const; - void setPassword(const std::string& password); - bool getMFABindRequired()const; - void setMFABindRequired(bool mFABindRequired); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - bool passwordResetRequired_; - std::string password_; - bool mFABindRequired_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdateLoginProfileRequest : public RpcServiceRequest { +public: + UpdateLoginProfileRequest(); + ~UpdateLoginProfileRequest(); + std::string getPassword() const; + void setPassword(const std::string &password); + bool getMFABindRequired() const; + void setMFABindRequired(bool mFABindRequired); + bool getPasswordResetRequired() const; + void setPasswordResetRequired(bool passwordResetRequired); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string password_; + bool mFABindRequired_; + bool passwordResetRequired_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATELOGINPROFILEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionRequest.h b/ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionRequest.h new file mode 100644 index 000000000..27d33504b --- /dev/null +++ b/ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdatePolicyDescriptionRequest : public RpcServiceRequest { +public: + UpdatePolicyDescriptionRequest(); + ~UpdatePolicyDescriptionRequest(); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + std::string getNewDescription() const; + void setNewDescription(const std::string &newDescription); + +private: + std::string policyName_; + std::string newDescription_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/ListPublicKeysResult.h b/ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionResult.h similarity index 60% rename from ram/include/alibabacloud/ram/model/ListPublicKeysResult.h rename to ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionResult.h index 27f0a0567..7164d9545 100644 --- a/ram/include/alibabacloud/ram/model/ListPublicKeysResult.h +++ b/ram/include/alibabacloud/ram/model/UpdatePolicyDescriptionResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ -#define ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONRESULT_H_ #include #include @@ -29,29 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RAM_EXPORT ListPublicKeysResult : public ServiceResult + class ALIBABACLOUD_RAM_EXPORT UpdatePolicyDescriptionResult : public ServiceResult { public: - struct PublicKey + struct Policy { - std::string status; - std::string publicKeyId; + std::string policyType; + std::string updateDate; + std::string description; + std::string policyName; + std::string defaultVersion; std::string createDate; }; - ListPublicKeysResult(); - explicit ListPublicKeysResult(const std::string &payload); - ~ListPublicKeysResult(); - std::vector getPublicKeys()const; + UpdatePolicyDescriptionResult(); + explicit UpdatePolicyDescriptionResult(const std::string &payload); + ~UpdatePolicyDescriptionResult(); + Policy getPolicy()const; protected: void parse(const std::string &payload); private: - std::vector publicKeys_; + Policy policy_; }; } } } -#endif // !ALIBABACLOUD_RAM_MODEL_LISTPUBLICKEYSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPOLICYDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h b/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h deleted file mode 100644 index f163d4dd6..000000000 --- a/ram/include/alibabacloud/ram/model/UpdatePublicKeyRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdatePublicKeyRequest : public RpcServiceRequest - { - - public: - UpdatePublicKeyRequest(); - ~UpdatePublicKeyRequest(); - - std::string getUserPublicKeyId()const; - void setUserPublicKeyId(const std::string& userPublicKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string userPublicKeyId_; - std::string userName_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h b/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h index 386f05092..5710c87a1 100644 --- a/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h +++ b/ram/include/alibabacloud/ram/model/UpdateRoleRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdateRoleRequest : public RpcServiceRequest - { - - public: - UpdateRoleRequest(); - ~UpdateRoleRequest(); - - std::string getNewAssumeRolePolicyDocument()const; - void setNewAssumeRolePolicyDocument(const std::string& newAssumeRolePolicyDocument); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - long getNewMaxSessionDuration()const; - void setNewMaxSessionDuration(long newMaxSessionDuration); - - private: - std::string newAssumeRolePolicyDocument_; - std::string roleName_; - long newMaxSessionDuration_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdateRoleRequest : public RpcServiceRequest { +public: + UpdateRoleRequest(); + ~UpdateRoleRequest(); + long getNewMaxSessionDuration() const; + void setNewMaxSessionDuration(long newMaxSessionDuration); + std::string getNewDescription() const; + void setNewDescription(const std::string &newDescription); + std::string getNewAssumeRolePolicyDocument() const; + void setNewAssumeRolePolicyDocument(const std::string &newAssumeRolePolicyDocument); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + +private: + long newMaxSessionDuration_; + std::string newDescription_; + std::string newAssumeRolePolicyDocument_; + std::string roleName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEROLEREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdateRoleResult.h b/ram/include/alibabacloud/ram/model/UpdateRoleResult.h index 61b2c8739..b81d5d3fb 100644 --- a/ram/include/alibabacloud/ram/model/UpdateRoleResult.h +++ b/ram/include/alibabacloud/ram/model/UpdateRoleResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string description; std::string assumeRolePolicyDocument; std::string arn; - std::string roleId; std::string createDate; + std::string roleId; }; diff --git a/ram/include/alibabacloud/ram/model/UpdateUserRequest.h b/ram/include/alibabacloud/ram/model/UpdateUserRequest.h index 5b137fc33..a2b84ba62 100644 --- a/ram/include/alibabacloud/ram/model/UpdateUserRequest.h +++ b/ram/include/alibabacloud/ram/model/UpdateUserRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UpdateUserRequest : public RpcServiceRequest - { - - public: - UpdateUserRequest(); - ~UpdateUserRequest(); - - std::string getNewUserName()const; - void setNewUserName(const std::string& newUserName); - std::string getNewMobilePhone()const; - void setNewMobilePhone(const std::string& newMobilePhone); - std::string getNewEmail()const; - void setNewEmail(const std::string& newEmail); - std::string getNewDisplayName()const; - void setNewDisplayName(const std::string& newDisplayName); - std::string getNewComments()const; - void setNewComments(const std::string& newComments); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string newUserName_; - std::string newMobilePhone_; - std::string newEmail_; - std::string newDisplayName_; - std::string newComments_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ram { +namespace Model { +class ALIBABACLOUD_RAM_EXPORT UpdateUserRequest : public RpcServiceRequest { +public: + UpdateUserRequest(); + ~UpdateUserRequest(); + std::string getNewUserName() const; + void setNewUserName(const std::string &newUserName); + std::string getNewMobilePhone() const; + void setNewMobilePhone(const std::string &newMobilePhone); + std::string getNewEmail() const; + void setNewEmail(const std::string &newEmail); + std::string getNewDisplayName() const; + void setNewDisplayName(const std::string &newDisplayName); + std::string getNewComments() const; + void setNewComments(const std::string &newComments); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string newUserName_; + std::string newMobilePhone_; + std::string newEmail_; + std::string newDisplayName_; + std::string newComments_; + std::string userName_; +}; +} // namespace Model +} // namespace Ram +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RAM_MODEL_UPDATEUSERREQUEST_H_ diff --git a/ram/include/alibabacloud/ram/model/UpdateUserResult.h b/ram/include/alibabacloud/ram/model/UpdateUserResult.h index 08c437b7f..7cbd7fde4 100644 --- a/ram/include/alibabacloud/ram/model/UpdateUserResult.h +++ b/ram/include/alibabacloud/ram/model/UpdateUserResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct User { std::string updateDate; - std::string userName; std::string email; + std::string userName; std::string userId; std::string comments; std::string displayName; diff --git a/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h b/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h deleted file mode 100644 index f846bc887..000000000 --- a/ram/include/alibabacloud/ram/model/UploadPublicKeyRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ -#define ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ram - { - namespace Model - { - class ALIBABACLOUD_RAM_EXPORT UploadPublicKeyRequest : public RpcServiceRequest - { - - public: - UploadPublicKeyRequest(); - ~UploadPublicKeyRequest(); - - std::string getPublicKeySpec()const; - void setPublicKeySpec(const std::string& publicKeySpec); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string publicKeySpec_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RAM_MODEL_UPLOADPUBLICKEYREQUEST_H_ \ No newline at end of file diff --git a/ram/src/RamClient.cc b/ram/src/RamClient.cc index c92d759cd..38032f41b 100644 --- a/ram/src/RamClient.cc +++ b/ram/src/RamClient.cc @@ -591,6 +591,42 @@ RamClient::CreateVirtualMFADeviceOutcomeCallable RamClient::createVirtualMFADevi return task->get_future(); } +RamClient::DecodeDiagnosticMessageOutcome RamClient::decodeDiagnosticMessage(const DecodeDiagnosticMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DecodeDiagnosticMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DecodeDiagnosticMessageOutcome(DecodeDiagnosticMessageResult(outcome.result())); + else + return DecodeDiagnosticMessageOutcome(outcome.error()); +} + +void RamClient::decodeDiagnosticMessageAsync(const DecodeDiagnosticMessageRequest& request, const DecodeDiagnosticMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, decodeDiagnosticMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DecodeDiagnosticMessageOutcomeCallable RamClient::decodeDiagnosticMessageCallable(const DecodeDiagnosticMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->decodeDiagnosticMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::DeleteAccessKeyOutcome RamClient::deleteAccessKey(const DeleteAccessKeyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,42 +807,6 @@ RamClient::DeletePolicyVersionOutcomeCallable RamClient::deletePolicyVersionCall return task->get_future(); } -RamClient::DeletePublicKeyOutcome RamClient::deletePublicKey(const DeletePublicKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePublicKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePublicKeyOutcome(DeletePublicKeyResult(outcome.result())); - else - return DeletePublicKeyOutcome(outcome.error()); -} - -void RamClient::deletePublicKeyAsync(const DeletePublicKeyRequest& request, const DeletePublicKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePublicKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::DeletePublicKeyOutcomeCallable RamClient::deletePublicKeyCallable(const DeletePublicKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePublicKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::DeleteRoleOutcome RamClient::deleteRole(const DeleteRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,42 +1275,6 @@ RamClient::GetPolicyVersionOutcomeCallable RamClient::getPolicyVersionCallable(c return task->get_future(); } -RamClient::GetPublicKeyOutcome RamClient::getPublicKey(const GetPublicKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPublicKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPublicKeyOutcome(GetPublicKeyResult(outcome.result())); - else - return GetPublicKeyOutcome(outcome.error()); -} - -void RamClient::getPublicKeyAsync(const GetPublicKeyRequest& request, const GetPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPublicKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::GetPublicKeyOutcomeCallable RamClient::getPublicKeyCallable(const GetPublicKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPublicKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::GetRoleOutcome RamClient::getRole(const GetRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,42 +1743,6 @@ RamClient::ListPolicyVersionsOutcomeCallable RamClient::listPolicyVersionsCallab return task->get_future(); } -RamClient::ListPublicKeysOutcome RamClient::listPublicKeys(const ListPublicKeysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPublicKeysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPublicKeysOutcome(ListPublicKeysResult(outcome.result())); - else - return ListPublicKeysOutcome(outcome.error()); -} - -void RamClient::listPublicKeysAsync(const ListPublicKeysRequest& request, const ListPublicKeysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPublicKeys(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::ListPublicKeysOutcomeCallable RamClient::listPublicKeysCallable(const ListPublicKeysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPublicKeys(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::ListRolesOutcome RamClient::listRoles(const ListRolesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,6 +1779,42 @@ RamClient::ListRolesOutcomeCallable RamClient::listRolesCallable(const ListRoles return task->get_future(); } +RamClient::ListTagResourcesOutcome RamClient::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 RamClient::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)); +} + +RamClient::ListTagResourcesOutcomeCallable RamClient::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(); +} + RamClient::ListUsersOutcome RamClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2103,42 @@ RamClient::SetSecurityPreferenceOutcomeCallable RamClient::setSecurityPreference return task->get_future(); } +RamClient::TagResourcesOutcome RamClient::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 RamClient::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)); +} + +RamClient::TagResourcesOutcomeCallable RamClient::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(); +} + RamClient::UnbindMFADeviceOutcome RamClient::unbindMFADevice(const UnbindMFADeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2175,42 @@ RamClient::UnbindMFADeviceOutcomeCallable RamClient::unbindMFADeviceCallable(con return task->get_future(); } +RamClient::UntagResourcesOutcome RamClient::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 RamClient::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)); +} + +RamClient::UntagResourcesOutcomeCallable RamClient::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(); +} + RamClient::UpdateAccessKeyOutcome RamClient::updateAccessKey(const UpdateAccessKeyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,36 +2319,36 @@ RamClient::UpdateLoginProfileOutcomeCallable RamClient::updateLoginProfileCallab return task->get_future(); } -RamClient::UpdatePublicKeyOutcome RamClient::updatePublicKey(const UpdatePublicKeyRequest &request) const +RamClient::UpdatePolicyDescriptionOutcome RamClient::updatePolicyDescription(const UpdatePolicyDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdatePublicKeyOutcome(endpointOutcome.error()); + return UpdatePolicyDescriptionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdatePublicKeyOutcome(UpdatePublicKeyResult(outcome.result())); + return UpdatePolicyDescriptionOutcome(UpdatePolicyDescriptionResult(outcome.result())); else - return UpdatePublicKeyOutcome(outcome.error()); + return UpdatePolicyDescriptionOutcome(outcome.error()); } -void RamClient::updatePublicKeyAsync(const UpdatePublicKeyRequest& request, const UpdatePublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +void RamClient::updatePolicyDescriptionAsync(const UpdatePolicyDescriptionRequest& request, const UpdatePolicyDescriptionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updatePublicKey(request), context); + handler(this, request, updatePolicyDescription(request), context); }; asyncExecute(new Runnable(fn)); } -RamClient::UpdatePublicKeyOutcomeCallable RamClient::updatePublicKeyCallable(const UpdatePublicKeyRequest &request) const +RamClient::UpdatePolicyDescriptionOutcomeCallable RamClient::updatePolicyDescriptionCallable(const UpdatePolicyDescriptionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updatePublicKey(request); + return this->updatePolicyDescription(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2391,39 +2427,3 @@ RamClient::UpdateUserOutcomeCallable RamClient::updateUserCallable(const UpdateU return task->get_future(); } -RamClient::UploadPublicKeyOutcome RamClient::uploadPublicKey(const UploadPublicKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadPublicKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadPublicKeyOutcome(UploadPublicKeyResult(outcome.result())); - else - return UploadPublicKeyOutcome(outcome.error()); -} - -void RamClient::uploadPublicKeyAsync(const UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadPublicKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::UploadPublicKeyOutcomeCallable RamClient::uploadPublicKeyCallable(const UploadPublicKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadPublicKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/ram/src/model/AddUserToGroupRequest.cc b/ram/src/model/AddUserToGroupRequest.cc index 17b6a6123..b0dc04644 100644 --- a/ram/src/model/AddUserToGroupRequest.cc +++ b/ram/src/model/AddUserToGroupRequest.cc @@ -1,51 +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::Ram::Model::AddUserToGroupRequest; - -AddUserToGroupRequest::AddUserToGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "AddUserToGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AddUserToGroupRequest::~AddUserToGroupRequest() -{} - -std::string AddUserToGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::AddUserToGroupRequest; + +AddUserToGroupRequest::AddUserToGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "AddUserToGroup") { + setMethod(HttpRequest::Method::Post); } -void AddUserToGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +AddUserToGroupRequest::~AddUserToGroupRequest() {} + +std::string AddUserToGroupRequest::getGroupName() const { + return groupName_; } -std::string AddUserToGroupRequest::getUserName()const -{ - return userName_; +void AddUserToGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void AddUserToGroupRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string AddUserToGroupRequest::getUserName() const { + return userName_; +} + +void AddUserToGroupRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/AttachPolicyToGroupRequest.cc b/ram/src/model/AttachPolicyToGroupRequest.cc index 5f7ca5e3e..5ed2fa5ec 100644 --- a/ram/src/model/AttachPolicyToGroupRequest.cc +++ b/ram/src/model/AttachPolicyToGroupRequest.cc @@ -1,62 +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::Ram::Model::AttachPolicyToGroupRequest; - -AttachPolicyToGroupRequest::AttachPolicyToGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachPolicyToGroupRequest::~AttachPolicyToGroupRequest() -{} - -std::string AttachPolicyToGroupRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::AttachPolicyToGroupRequest; + +AttachPolicyToGroupRequest::AttachPolicyToGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToGroup") { + setMethod(HttpRequest::Method::Post); } -void AttachPolicyToGroupRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +AttachPolicyToGroupRequest::~AttachPolicyToGroupRequest() {} + +std::string AttachPolicyToGroupRequest::getPolicyType() const { + return policyType_; } -std::string AttachPolicyToGroupRequest::getGroupName()const -{ - return groupName_; +void AttachPolicyToGroupRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void AttachPolicyToGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string AttachPolicyToGroupRequest::getGroupName() const { + return groupName_; } -std::string AttachPolicyToGroupRequest::getPolicyName()const -{ - return policyName_; +void AttachPolicyToGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void AttachPolicyToGroupRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string AttachPolicyToGroupRequest::getPolicyName() const { + return policyName_; +} + +void AttachPolicyToGroupRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/AttachPolicyToRoleRequest.cc b/ram/src/model/AttachPolicyToRoleRequest.cc index ffc111dbe..4019b1270 100644 --- a/ram/src/model/AttachPolicyToRoleRequest.cc +++ b/ram/src/model/AttachPolicyToRoleRequest.cc @@ -1,62 +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::Ram::Model::AttachPolicyToRoleRequest; - -AttachPolicyToRoleRequest::AttachPolicyToRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToRole") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachPolicyToRoleRequest::~AttachPolicyToRoleRequest() -{} - -std::string AttachPolicyToRoleRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::AttachPolicyToRoleRequest; + +AttachPolicyToRoleRequest::AttachPolicyToRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToRole") { + setMethod(HttpRequest::Method::Post); } -void AttachPolicyToRoleRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +AttachPolicyToRoleRequest::~AttachPolicyToRoleRequest() {} + +std::string AttachPolicyToRoleRequest::getPolicyType() const { + return policyType_; } -std::string AttachPolicyToRoleRequest::getRoleName()const -{ - return roleName_; +void AttachPolicyToRoleRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void AttachPolicyToRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string AttachPolicyToRoleRequest::getRoleName() const { + return roleName_; } -std::string AttachPolicyToRoleRequest::getPolicyName()const -{ - return policyName_; +void AttachPolicyToRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void AttachPolicyToRoleRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string AttachPolicyToRoleRequest::getPolicyName() const { + return policyName_; +} + +void AttachPolicyToRoleRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/AttachPolicyToUserRequest.cc b/ram/src/model/AttachPolicyToUserRequest.cc index d6ad46576..8dd00ca15 100644 --- a/ram/src/model/AttachPolicyToUserRequest.cc +++ b/ram/src/model/AttachPolicyToUserRequest.cc @@ -1,62 +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::Ram::Model::AttachPolicyToUserRequest; - -AttachPolicyToUserRequest::AttachPolicyToUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToUser") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachPolicyToUserRequest::~AttachPolicyToUserRequest() -{} - -std::string AttachPolicyToUserRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::AttachPolicyToUserRequest; + +AttachPolicyToUserRequest::AttachPolicyToUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "AttachPolicyToUser") { + setMethod(HttpRequest::Method::Post); } -void AttachPolicyToUserRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +AttachPolicyToUserRequest::~AttachPolicyToUserRequest() {} + +std::string AttachPolicyToUserRequest::getPolicyType() const { + return policyType_; } -std::string AttachPolicyToUserRequest::getPolicyName()const -{ - return policyName_; +void AttachPolicyToUserRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void AttachPolicyToUserRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string AttachPolicyToUserRequest::getPolicyName() const { + return policyName_; } -std::string AttachPolicyToUserRequest::getUserName()const -{ - return userName_; +void AttachPolicyToUserRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } -void AttachPolicyToUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string AttachPolicyToUserRequest::getUserName() const { + return userName_; +} + +void AttachPolicyToUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/BindMFADeviceRequest.cc b/ram/src/model/BindMFADeviceRequest.cc index 3be4d8bc6..ffbacd2ae 100644 --- a/ram/src/model/BindMFADeviceRequest.cc +++ b/ram/src/model/BindMFADeviceRequest.cc @@ -1,73 +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::Ram::Model::BindMFADeviceRequest; - -BindMFADeviceRequest::BindMFADeviceRequest() : - RpcServiceRequest("ram", "2015-05-01", "BindMFADevice") -{ - setMethod(HttpRequest::Method::Post); -} - -BindMFADeviceRequest::~BindMFADeviceRequest() -{} - -std::string BindMFADeviceRequest::getSerialNumber()const -{ - return serialNumber_; + */ + +#include + +using AlibabaCloud::Ram::Model::BindMFADeviceRequest; + +BindMFADeviceRequest::BindMFADeviceRequest() + : RpcServiceRequest("ram", "2015-05-01", "BindMFADevice") { + setMethod(HttpRequest::Method::Post); } -void BindMFADeviceRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +BindMFADeviceRequest::~BindMFADeviceRequest() {} + +std::string BindMFADeviceRequest::getAuthenticationCode2() const { + return authenticationCode2_; } -std::string BindMFADeviceRequest::getAuthenticationCode2()const -{ - return authenticationCode2_; +void BindMFADeviceRequest::setAuthenticationCode2(const std::string &authenticationCode2) { + authenticationCode2_ = authenticationCode2; + setParameter(std::string("AuthenticationCode2"), authenticationCode2); } -void BindMFADeviceRequest::setAuthenticationCode2(const std::string& authenticationCode2) -{ - authenticationCode2_ = authenticationCode2; - setParameter("AuthenticationCode2", authenticationCode2); +std::string BindMFADeviceRequest::getAuthenticationCode1() const { + return authenticationCode1_; } -std::string BindMFADeviceRequest::getAuthenticationCode1()const -{ - return authenticationCode1_; +void BindMFADeviceRequest::setAuthenticationCode1(const std::string &authenticationCode1) { + authenticationCode1_ = authenticationCode1; + setParameter(std::string("AuthenticationCode1"), authenticationCode1); } -void BindMFADeviceRequest::setAuthenticationCode1(const std::string& authenticationCode1) -{ - authenticationCode1_ = authenticationCode1; - setParameter("AuthenticationCode1", authenticationCode1); +std::string BindMFADeviceRequest::getSerialNumber() const { + return serialNumber_; } -std::string BindMFADeviceRequest::getUserName()const -{ - return userName_; +void BindMFADeviceRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void BindMFADeviceRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string BindMFADeviceRequest::getUserName() const { + return userName_; +} + +void BindMFADeviceRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/ChangePasswordRequest.cc b/ram/src/model/ChangePasswordRequest.cc index b9f3d5428..7cf3297c2 100644 --- a/ram/src/model/ChangePasswordRequest.cc +++ b/ram/src/model/ChangePasswordRequest.cc @@ -1,51 +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::Ram::Model::ChangePasswordRequest; - -ChangePasswordRequest::ChangePasswordRequest() : - RpcServiceRequest("ram", "2015-05-01", "ChangePassword") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangePasswordRequest::~ChangePasswordRequest() -{} - -std::string ChangePasswordRequest::getOldPassword()const -{ - return oldPassword_; + */ + +#include + +using AlibabaCloud::Ram::Model::ChangePasswordRequest; + +ChangePasswordRequest::ChangePasswordRequest() + : RpcServiceRequest("ram", "2015-05-01", "ChangePassword") { + setMethod(HttpRequest::Method::Post); } -void ChangePasswordRequest::setOldPassword(const std::string& oldPassword) -{ - oldPassword_ = oldPassword; - setParameter("OldPassword", oldPassword); +ChangePasswordRequest::~ChangePasswordRequest() {} + +std::string ChangePasswordRequest::getOldPassword() const { + return oldPassword_; } -std::string ChangePasswordRequest::getNewPassword()const -{ - return newPassword_; +void ChangePasswordRequest::setOldPassword(const std::string &oldPassword) { + oldPassword_ = oldPassword; + setParameter(std::string("OldPassword"), oldPassword); } -void ChangePasswordRequest::setNewPassword(const std::string& newPassword) -{ - newPassword_ = newPassword; - setParameter("NewPassword", newPassword); +std::string ChangePasswordRequest::getNewPassword() const { + return newPassword_; +} + +void ChangePasswordRequest::setNewPassword(const std::string &newPassword) { + newPassword_ = newPassword; + setParameter(std::string("NewPassword"), newPassword); } diff --git a/ram/src/model/ClearAccountAliasRequest.cc b/ram/src/model/ClearAccountAliasRequest.cc index c09f19343..2a68d085d 100644 --- a/ram/src/model/ClearAccountAliasRequest.cc +++ b/ram/src/model/ClearAccountAliasRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::ClearAccountAliasRequest; - -ClearAccountAliasRequest::ClearAccountAliasRequest() : - RpcServiceRequest("ram", "2015-05-01", "ClearAccountAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -ClearAccountAliasRequest::~ClearAccountAliasRequest() -{} - + */ + +#include + +using AlibabaCloud::Ram::Model::ClearAccountAliasRequest; + +ClearAccountAliasRequest::ClearAccountAliasRequest() + : RpcServiceRequest("ram", "2015-05-01", "ClearAccountAlias") { + setMethod(HttpRequest::Method::Post); +} + +ClearAccountAliasRequest::~ClearAccountAliasRequest() {} + diff --git a/ram/src/model/CreateAccessKeyRequest.cc b/ram/src/model/CreateAccessKeyRequest.cc index b6a653097..ef7f5f179 100644 --- a/ram/src/model/CreateAccessKeyRequest.cc +++ b/ram/src/model/CreateAccessKeyRequest.cc @@ -1,40 +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::Ram::Model::CreateAccessKeyRequest; - -CreateAccessKeyRequest::CreateAccessKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateAccessKey") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAccessKeyRequest::~CreateAccessKeyRequest() -{} - -std::string CreateAccessKeyRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateAccessKeyRequest; + +CreateAccessKeyRequest::CreateAccessKeyRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateAccessKey") { + setMethod(HttpRequest::Method::Post); } -void CreateAccessKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +CreateAccessKeyRequest::~CreateAccessKeyRequest() {} + +std::string CreateAccessKeyRequest::getUserName() const { + return userName_; +} + +void CreateAccessKeyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/CreateAccessKeyResult.cc b/ram/src/model/CreateAccessKeyResult.cc index 9ecad12e6..f882c307f 100644 --- a/ram/src/model/CreateAccessKeyResult.cc +++ b/ram/src/model/CreateAccessKeyResult.cc @@ -40,14 +40,14 @@ void CreateAccessKeyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto accessKeyNode = value["AccessKey"]; - if(!accessKeyNode["AccessKeyId"].isNull()) - accessKey_.accessKeyId = accessKeyNode["AccessKeyId"].asString(); - if(!accessKeyNode["AccessKeySecret"].isNull()) - accessKey_.accessKeySecret = accessKeyNode["AccessKeySecret"].asString(); if(!accessKeyNode["Status"].isNull()) accessKey_.status = accessKeyNode["Status"].asString(); + if(!accessKeyNode["AccessKeySecret"].isNull()) + accessKey_.accessKeySecret = accessKeyNode["AccessKeySecret"].asString(); if(!accessKeyNode["CreateDate"].isNull()) accessKey_.createDate = accessKeyNode["CreateDate"].asString(); + if(!accessKeyNode["AccessKeyId"].isNull()) + accessKey_.accessKeyId = accessKeyNode["AccessKeyId"].asString(); } diff --git a/ram/src/model/CreateGroupRequest.cc b/ram/src/model/CreateGroupRequest.cc index c03d800c7..2bed07254 100644 --- a/ram/src/model/CreateGroupRequest.cc +++ b/ram/src/model/CreateGroupRequest.cc @@ -1,51 +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::Ram::Model::CreateGroupRequest; - -CreateGroupRequest::CreateGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGroupRequest::~CreateGroupRequest() -{} - -std::string CreateGroupRequest::getComments()const -{ - return comments_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateGroupRequest; + +CreateGroupRequest::CreateGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateGroupRequest::setComments(const std::string& comments) -{ - comments_ = comments; - setParameter("Comments", comments); +CreateGroupRequest::~CreateGroupRequest() {} + +std::string CreateGroupRequest::getComments() const { + return comments_; } -std::string CreateGroupRequest::getGroupName()const -{ - return groupName_; +void CreateGroupRequest::setComments(const std::string &comments) { + comments_ = comments; + setParameter(std::string("Comments"), comments); } -void CreateGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string CreateGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } diff --git a/ram/src/model/CreateGroupResult.cc b/ram/src/model/CreateGroupResult.cc index 17af32a37..2883dab69 100644 --- a/ram/src/model/CreateGroupResult.cc +++ b/ram/src/model/CreateGroupResult.cc @@ -40,6 +40,8 @@ void CreateGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; + if(!groupNode["GroupId"].isNull()) + group_.groupId = groupNode["GroupId"].asString(); if(!groupNode["GroupName"].isNull()) group_.groupName = groupNode["GroupName"].asString(); if(!groupNode["Comments"].isNull()) diff --git a/ram/src/model/CreateLoginProfileRequest.cc b/ram/src/model/CreateLoginProfileRequest.cc index e9c8ec622..72b0d9d3f 100644 --- a/ram/src/model/CreateLoginProfileRequest.cc +++ b/ram/src/model/CreateLoginProfileRequest.cc @@ -1,73 +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::Ram::Model::CreateLoginProfileRequest; - -CreateLoginProfileRequest::CreateLoginProfileRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateLoginProfile") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateLoginProfileRequest::~CreateLoginProfileRequest() -{} - -bool CreateLoginProfileRequest::getPasswordResetRequired()const -{ - return passwordResetRequired_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateLoginProfileRequest; + +CreateLoginProfileRequest::CreateLoginProfileRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateLoginProfile") { + setMethod(HttpRequest::Method::Post); } -void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) -{ - passwordResetRequired_ = passwordResetRequired; - setParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false"); +CreateLoginProfileRequest::~CreateLoginProfileRequest() {} + +std::string CreateLoginProfileRequest::getPassword() const { + return password_; } -std::string CreateLoginProfileRequest::getPassword()const -{ - return password_; +void CreateLoginProfileRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void CreateLoginProfileRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +bool CreateLoginProfileRequest::getMFABindRequired() const { + return mFABindRequired_; } -bool CreateLoginProfileRequest::getMFABindRequired()const -{ - return mFABindRequired_; +void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { + mFABindRequired_ = mFABindRequired; + setParameter(std::string("MFABindRequired"), mFABindRequired ? "true" : "false"); } -void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) -{ - mFABindRequired_ = mFABindRequired; - setParameter("MFABindRequired", mFABindRequired ? "true" : "false"); +bool CreateLoginProfileRequest::getPasswordResetRequired() const { + return passwordResetRequired_; } -std::string CreateLoginProfileRequest::getUserName()const -{ - return userName_; +void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { + passwordResetRequired_ = passwordResetRequired; + setParameter(std::string("PasswordResetRequired"), passwordResetRequired ? "true" : "false"); } -void CreateLoginProfileRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string CreateLoginProfileRequest::getUserName() const { + return userName_; +} + +void CreateLoginProfileRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/CreateLoginProfileResult.cc b/ram/src/model/CreateLoginProfileResult.cc index 9bdaaae83..5399f355c 100644 --- a/ram/src/model/CreateLoginProfileResult.cc +++ b/ram/src/model/CreateLoginProfileResult.cc @@ -40,14 +40,14 @@ void CreateLoginProfileResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto loginProfileNode = value["LoginProfile"]; - if(!loginProfileNode["UserName"].isNull()) - loginProfile_.userName = loginProfileNode["UserName"].asString(); if(!loginProfileNode["PasswordResetRequired"].isNull()) loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true"; - if(!loginProfileNode["MFABindRequired"].isNull()) - loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true"; if(!loginProfileNode["CreateDate"].isNull()) loginProfile_.createDate = loginProfileNode["CreateDate"].asString(); + if(!loginProfileNode["UserName"].isNull()) + loginProfile_.userName = loginProfileNode["UserName"].asString(); + if(!loginProfileNode["MFABindRequired"].isNull()) + loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true"; } diff --git a/ram/src/model/CreatePolicyRequest.cc b/ram/src/model/CreatePolicyRequest.cc index 2ce29314c..b7aa0dbfc 100644 --- a/ram/src/model/CreatePolicyRequest.cc +++ b/ram/src/model/CreatePolicyRequest.cc @@ -1,62 +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::Ram::Model::CreatePolicyRequest; - -CreatePolicyRequest::CreatePolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreatePolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePolicyRequest::~CreatePolicyRequest() -{} - -std::string CreatePolicyRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreatePolicyRequest; + +CreatePolicyRequest::CreatePolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreatePolicy") { + setMethod(HttpRequest::Method::Post); } -void CreatePolicyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +CreatePolicyRequest::~CreatePolicyRequest() {} + +std::string CreatePolicyRequest::getDescription() const { + return description_; } -std::string CreatePolicyRequest::getPolicyName()const -{ - return policyName_; +void CreatePolicyRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreatePolicyRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::vector CreatePolicyRequest::getTag() const { + return tag_; } -std::string CreatePolicyRequest::getPolicyDocument()const -{ - return policyDocument_; +void CreatePolicyRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } } -void CreatePolicyRequest::setPolicyDocument(const std::string& policyDocument) -{ - policyDocument_ = policyDocument; - setParameter("PolicyDocument", policyDocument); +std::string CreatePolicyRequest::getPolicyName() const { + return policyName_; +} + +void CreatePolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); +} + +std::string CreatePolicyRequest::getPolicyDocument() const { + return policyDocument_; +} + +void CreatePolicyRequest::setPolicyDocument(const std::string &policyDocument) { + policyDocument_ = policyDocument; + setParameter(std::string("PolicyDocument"), policyDocument); } diff --git a/ram/src/model/CreatePolicyResult.cc b/ram/src/model/CreatePolicyResult.cc index 69807e643..466aac805 100644 --- a/ram/src/model/CreatePolicyResult.cc +++ b/ram/src/model/CreatePolicyResult.cc @@ -40,16 +40,16 @@ void CreatePolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto policyNode = value["Policy"]; - if(!policyNode["PolicyName"].isNull()) - policy_.policyName = policyNode["PolicyName"].asString(); - if(!policyNode["PolicyType"].isNull()) - policy_.policyType = policyNode["PolicyType"].asString(); - if(!policyNode["Description"].isNull()) - policy_.description = policyNode["Description"].asString(); if(!policyNode["DefaultVersion"].isNull()) policy_.defaultVersion = policyNode["DefaultVersion"].asString(); + if(!policyNode["Description"].isNull()) + policy_.description = policyNode["Description"].asString(); + if(!policyNode["PolicyName"].isNull()) + policy_.policyName = policyNode["PolicyName"].asString(); if(!policyNode["CreateDate"].isNull()) policy_.createDate = policyNode["CreateDate"].asString(); + if(!policyNode["PolicyType"].isNull()) + policy_.policyType = policyNode["PolicyType"].asString(); } diff --git a/ram/src/model/CreatePolicyVersionRequest.cc b/ram/src/model/CreatePolicyVersionRequest.cc index a2ce1646a..1c0710094 100644 --- a/ram/src/model/CreatePolicyVersionRequest.cc +++ b/ram/src/model/CreatePolicyVersionRequest.cc @@ -1,73 +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::Ram::Model::CreatePolicyVersionRequest; - -CreatePolicyVersionRequest::CreatePolicyVersionRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreatePolicyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePolicyVersionRequest::~CreatePolicyVersionRequest() -{} - -bool CreatePolicyVersionRequest::getSetAsDefault()const -{ - return setAsDefault_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreatePolicyVersionRequest; + +CreatePolicyVersionRequest::CreatePolicyVersionRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreatePolicyVersion") { + setMethod(HttpRequest::Method::Post); } -void CreatePolicyVersionRequest::setSetAsDefault(bool setAsDefault) -{ - setAsDefault_ = setAsDefault; - setParameter("SetAsDefault", setAsDefault ? "true" : "false"); +CreatePolicyVersionRequest::~CreatePolicyVersionRequest() {} + +bool CreatePolicyVersionRequest::getSetAsDefault() const { + return setAsDefault_; } -std::string CreatePolicyVersionRequest::getPolicyName()const -{ - return policyName_; +void CreatePolicyVersionRequest::setSetAsDefault(bool setAsDefault) { + setAsDefault_ = setAsDefault; + setParameter(std::string("SetAsDefault"), setAsDefault ? "true" : "false"); } -void CreatePolicyVersionRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string CreatePolicyVersionRequest::getRotateStrategy() const { + return rotateStrategy_; } -std::string CreatePolicyVersionRequest::getPolicyDocument()const -{ - return policyDocument_; +void CreatePolicyVersionRequest::setRotateStrategy(const std::string &rotateStrategy) { + rotateStrategy_ = rotateStrategy; + setParameter(std::string("RotateStrategy"), rotateStrategy); } -void CreatePolicyVersionRequest::setPolicyDocument(const std::string& policyDocument) -{ - policyDocument_ = policyDocument; - setParameter("PolicyDocument", policyDocument); +std::string CreatePolicyVersionRequest::getPolicyName() const { + return policyName_; } -std::string CreatePolicyVersionRequest::getRotateStrategy()const -{ - return rotateStrategy_; +void CreatePolicyVersionRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } -void CreatePolicyVersionRequest::setRotateStrategy(const std::string& rotateStrategy) -{ - rotateStrategy_ = rotateStrategy; - setParameter("RotateStrategy", rotateStrategy); +std::string CreatePolicyVersionRequest::getPolicyDocument() const { + return policyDocument_; +} + +void CreatePolicyVersionRequest::setPolicyDocument(const std::string &policyDocument) { + policyDocument_ = policyDocument; + setParameter(std::string("PolicyDocument"), policyDocument); } diff --git a/ram/src/model/CreatePolicyVersionResult.cc b/ram/src/model/CreatePolicyVersionResult.cc index 70458d2a0..fce581b45 100644 --- a/ram/src/model/CreatePolicyVersionResult.cc +++ b/ram/src/model/CreatePolicyVersionResult.cc @@ -40,12 +40,12 @@ void CreatePolicyVersionResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto policyVersionNode = value["PolicyVersion"]; - if(!policyVersionNode["VersionId"].isNull()) - policyVersion_.versionId = policyVersionNode["VersionId"].asString(); if(!policyVersionNode["IsDefaultVersion"].isNull()) policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true"; if(!policyVersionNode["PolicyDocument"].isNull()) policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString(); + if(!policyVersionNode["VersionId"].isNull()) + policyVersion_.versionId = policyVersionNode["VersionId"].asString(); if(!policyVersionNode["CreateDate"].isNull()) policyVersion_.createDate = policyVersionNode["CreateDate"].asString(); diff --git a/ram/src/model/CreateRoleRequest.cc b/ram/src/model/CreateRoleRequest.cc index ac11d2a35..953cbabe5 100644 --- a/ram/src/model/CreateRoleRequest.cc +++ b/ram/src/model/CreateRoleRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Ram::Model::CreateRoleRequest; - -CreateRoleRequest::CreateRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateRole") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRoleRequest::~CreateRoleRequest() -{} - -long CreateRoleRequest::getMaxSessionDuration()const -{ - return maxSessionDuration_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateRoleRequest; + +CreateRoleRequest::CreateRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateRole") { + setMethod(HttpRequest::Method::Post); } -void CreateRoleRequest::setMaxSessionDuration(long maxSessionDuration) -{ - maxSessionDuration_ = maxSessionDuration; - setParameter("MaxSessionDuration", std::to_string(maxSessionDuration)); +CreateRoleRequest::~CreateRoleRequest() {} + +std::string CreateRoleRequest::getDescription() const { + return description_; } -std::string CreateRoleRequest::getRoleName()const -{ - return roleName_; +void CreateRoleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string CreateRoleRequest::getAssumeRolePolicyDocument() const { + return assumeRolePolicyDocument_; } -std::string CreateRoleRequest::getDescription()const -{ - return description_; +void CreateRoleRequest::setAssumeRolePolicyDocument(const std::string &assumeRolePolicyDocument) { + assumeRolePolicyDocument_ = assumeRolePolicyDocument; + setParameter(std::string("AssumeRolePolicyDocument"), assumeRolePolicyDocument); } -void CreateRoleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::vector CreateRoleRequest::getTag() const { + return tag_; } -std::string CreateRoleRequest::getAssumeRolePolicyDocument()const -{ - return assumeRolePolicyDocument_; +void CreateRoleRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } } -void CreateRoleRequest::setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument) -{ - assumeRolePolicyDocument_ = assumeRolePolicyDocument; - setParameter("AssumeRolePolicyDocument", assumeRolePolicyDocument); +long CreateRoleRequest::getMaxSessionDuration() const { + return maxSessionDuration_; +} + +void CreateRoleRequest::setMaxSessionDuration(long maxSessionDuration) { + maxSessionDuration_ = maxSessionDuration; + setParameter(std::string("MaxSessionDuration"), std::to_string(maxSessionDuration)); +} + +std::string CreateRoleRequest::getRoleName() const { + return roleName_; +} + +void CreateRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } diff --git a/ram/src/model/CreateRoleResult.cc b/ram/src/model/CreateRoleResult.cc index 5214abadb..c6ce3beb6 100644 --- a/ram/src/model/CreateRoleResult.cc +++ b/ram/src/model/CreateRoleResult.cc @@ -40,20 +40,20 @@ void CreateRoleResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; - if(!roleNode["RoleId"].isNull()) - role_.roleId = roleNode["RoleId"].asString(); - if(!roleNode["RoleName"].isNull()) - role_.roleName = roleNode["RoleName"].asString(); - if(!roleNode["Arn"].isNull()) - role_.arn = roleNode["Arn"].asString(); - if(!roleNode["Description"].isNull()) - role_.description = roleNode["Description"].asString(); if(!roleNode["AssumeRolePolicyDocument"].isNull()) role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString(); - if(!roleNode["CreateDate"].isNull()) - role_.createDate = roleNode["CreateDate"].asString(); + if(!roleNode["Description"].isNull()) + role_.description = roleNode["Description"].asString(); if(!roleNode["MaxSessionDuration"].isNull()) role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString()); + if(!roleNode["RoleName"].isNull()) + role_.roleName = roleNode["RoleName"].asString(); + if(!roleNode["CreateDate"].isNull()) + role_.createDate = roleNode["CreateDate"].asString(); + if(!roleNode["RoleId"].isNull()) + role_.roleId = roleNode["RoleId"].asString(); + if(!roleNode["Arn"].isNull()) + role_.arn = roleNode["Arn"].asString(); } diff --git a/ram/src/model/CreateUserRequest.cc b/ram/src/model/CreateUserRequest.cc index 1311c20e5..6c8545ab7 100644 --- a/ram/src/model/CreateUserRequest.cc +++ b/ram/src/model/CreateUserRequest.cc @@ -1,84 +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::Ram::Model::CreateUserRequest; - -CreateUserRequest::CreateUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateUser") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateUserRequest::~CreateUserRequest() -{} - -std::string CreateUserRequest::getMobilePhone()const -{ - return mobilePhone_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateUserRequest; + +CreateUserRequest::CreateUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateUser") { + setMethod(HttpRequest::Method::Post); } -void CreateUserRequest::setMobilePhone(const std::string& mobilePhone) -{ - mobilePhone_ = mobilePhone; - setParameter("MobilePhone", mobilePhone); +CreateUserRequest::~CreateUserRequest() {} + +std::string CreateUserRequest::getMobilePhone() const { + return mobilePhone_; } -std::string CreateUserRequest::getEmail()const -{ - return email_; +void CreateUserRequest::setMobilePhone(const std::string &mobilePhone) { + mobilePhone_ = mobilePhone; + setParameter(std::string("MobilePhone"), mobilePhone); } -void CreateUserRequest::setEmail(const std::string& email) -{ - email_ = email; - setParameter("Email", email); +std::string CreateUserRequest::getEmail() const { + return email_; } -std::string CreateUserRequest::getComments()const -{ - return comments_; +void CreateUserRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); } -void CreateUserRequest::setComments(const std::string& comments) -{ - comments_ = comments; - setParameter("Comments", comments); +std::string CreateUserRequest::getComments() const { + return comments_; } -std::string CreateUserRequest::getDisplayName()const -{ - return displayName_; +void CreateUserRequest::setComments(const std::string &comments) { + comments_ = comments; + setParameter(std::string("Comments"), comments); } -void CreateUserRequest::setDisplayName(const std::string& displayName) -{ - displayName_ = displayName; - setParameter("DisplayName", displayName); +std::string CreateUserRequest::getDisplayName() const { + return displayName_; } -std::string CreateUserRequest::getUserName()const -{ - return userName_; +void CreateUserRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setParameter(std::string("DisplayName"), displayName); } -void CreateUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string CreateUserRequest::getUserName() const { + return userName_; +} + +void CreateUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/CreateUserResult.cc b/ram/src/model/CreateUserResult.cc index d3d2c6bf6..7f8c1b17e 100644 --- a/ram/src/model/CreateUserResult.cc +++ b/ram/src/model/CreateUserResult.cc @@ -40,20 +40,20 @@ void CreateUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; - if(!userNode["UserId"].isNull()) - user_.userId = userNode["UserId"].asString(); - if(!userNode["UserName"].isNull()) - user_.userName = userNode["UserName"].asString(); if(!userNode["DisplayName"].isNull()) user_.displayName = userNode["DisplayName"].asString(); - if(!userNode["MobilePhone"].isNull()) - user_.mobilePhone = userNode["MobilePhone"].asString(); if(!userNode["Email"].isNull()) user_.email = userNode["Email"].asString(); + if(!userNode["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["CreateDate"].isNull()) user_.createDate = userNode["CreateDate"].asString(); + if(!userNode["UserName"].isNull()) + user_.userName = userNode["UserName"].asString(); } diff --git a/ram/src/model/CreateVirtualMFADeviceRequest.cc b/ram/src/model/CreateVirtualMFADeviceRequest.cc index 1cae40721..414a8b831 100644 --- a/ram/src/model/CreateVirtualMFADeviceRequest.cc +++ b/ram/src/model/CreateVirtualMFADeviceRequest.cc @@ -1,40 +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::Ram::Model::CreateVirtualMFADeviceRequest; - -CreateVirtualMFADeviceRequest::CreateVirtualMFADeviceRequest() : - RpcServiceRequest("ram", "2015-05-01", "CreateVirtualMFADevice") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVirtualMFADeviceRequest::~CreateVirtualMFADeviceRequest() -{} - -std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName()const -{ - return virtualMFADeviceName_; + */ + +#include + +using AlibabaCloud::Ram::Model::CreateVirtualMFADeviceRequest; + +CreateVirtualMFADeviceRequest::CreateVirtualMFADeviceRequest() + : RpcServiceRequest("ram", "2015-05-01", "CreateVirtualMFADevice") { + setMethod(HttpRequest::Method::Post); } -void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string& virtualMFADeviceName) -{ - virtualMFADeviceName_ = virtualMFADeviceName; - setParameter("VirtualMFADeviceName", virtualMFADeviceName); +CreateVirtualMFADeviceRequest::~CreateVirtualMFADeviceRequest() {} + +std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName() const { + return virtualMFADeviceName_; +} + +void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string &virtualMFADeviceName) { + virtualMFADeviceName_ = virtualMFADeviceName; + setParameter(std::string("VirtualMFADeviceName"), virtualMFADeviceName); } diff --git a/ram/src/model/CreateVirtualMFADeviceResult.cc b/ram/src/model/CreateVirtualMFADeviceResult.cc index e37cdaca6..bfaccf9c9 100644 --- a/ram/src/model/CreateVirtualMFADeviceResult.cc +++ b/ram/src/model/CreateVirtualMFADeviceResult.cc @@ -42,10 +42,10 @@ void CreateVirtualMFADeviceResult::parse(const std::string &payload) auto virtualMFADeviceNode = value["VirtualMFADevice"]; if(!virtualMFADeviceNode["SerialNumber"].isNull()) virtualMFADevice_.serialNumber = virtualMFADeviceNode["SerialNumber"].asString(); - if(!virtualMFADeviceNode["Base32StringSeed"].isNull()) - virtualMFADevice_.base32StringSeed = virtualMFADeviceNode["Base32StringSeed"].asString(); if(!virtualMFADeviceNode["QRCodePNG"].isNull()) virtualMFADevice_.qRCodePNG = virtualMFADeviceNode["QRCodePNG"].asString(); + if(!virtualMFADeviceNode["Base32StringSeed"].isNull()) + virtualMFADevice_.base32StringSeed = virtualMFADeviceNode["Base32StringSeed"].asString(); } diff --git a/ram/src/model/DecodeDiagnosticMessageRequest.cc b/ram/src/model/DecodeDiagnosticMessageRequest.cc new file mode 100644 index 000000000..f2ef2a590 --- /dev/null +++ b/ram/src/model/DecodeDiagnosticMessageRequest.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::Ram::Model::DecodeDiagnosticMessageRequest; + +DecodeDiagnosticMessageRequest::DecodeDiagnosticMessageRequest() + : RpcServiceRequest("ram", "2015-05-01", "DecodeDiagnosticMessage") { + setMethod(HttpRequest::Method::Post); +} + +DecodeDiagnosticMessageRequest::~DecodeDiagnosticMessageRequest() {} + +std::string DecodeDiagnosticMessageRequest::getEncodedDiagnosticMessage() const { + return encodedDiagnosticMessage_; +} + +void DecodeDiagnosticMessageRequest::setEncodedDiagnosticMessage(const std::string &encodedDiagnosticMessage) { + encodedDiagnosticMessage_ = encodedDiagnosticMessage; + setParameter(std::string("EncodedDiagnosticMessage"), encodedDiagnosticMessage); +} + diff --git a/ram/src/model/DecodeDiagnosticMessageResult.cc b/ram/src/model/DecodeDiagnosticMessageResult.cc new file mode 100644 index 000000000..5c02d8a1f --- /dev/null +++ b/ram/src/model/DecodeDiagnosticMessageResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +DecodeDiagnosticMessageResult::DecodeDiagnosticMessageResult() : + ServiceResult() +{} + +DecodeDiagnosticMessageResult::DecodeDiagnosticMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DecodeDiagnosticMessageResult::~DecodeDiagnosticMessageResult() +{} + +void DecodeDiagnosticMessageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto decodedDiagnosticMessageNode = value["DecodedDiagnosticMessage"]; + if(!decodedDiagnosticMessageNode["ExplicitDeny"].isNull()) + decodedDiagnosticMessage_.explicitDeny = decodedDiagnosticMessageNode["ExplicitDeny"].asString() == "true"; + if(!decodedDiagnosticMessageNode["NoPermissionPolicyType"].isNull()) + decodedDiagnosticMessage_.noPermissionPolicyType = decodedDiagnosticMessageNode["NoPermissionPolicyType"].asString(); + if(!decodedDiagnosticMessageNode["AuthAction"].isNull()) + decodedDiagnosticMessage_.authAction = decodedDiagnosticMessageNode["AuthAction"].asString(); + if(!decodedDiagnosticMessageNode["AuthResource"].isNull()) + decodedDiagnosticMessage_.authResource = decodedDiagnosticMessageNode["AuthResource"].asString(); + auto allAuthConditionsNode = decodedDiagnosticMessageNode["AuthConditions"]["authConditionsItem"]; + for (auto decodedDiagnosticMessageNodeAuthConditionsauthConditionsItem : allAuthConditionsNode) + { + DecodedDiagnosticMessage::AuthConditionsItem authConditionsItemObject; + if(!decodedDiagnosticMessageNodeAuthConditionsauthConditionsItem["ConditionKey"].isNull()) + authConditionsItemObject.conditionKey = decodedDiagnosticMessageNodeAuthConditionsauthConditionsItem["ConditionKey"].asString(); + auto allConditionValues = value["ConditionValues"]["conditionValues"]; + for (auto value : allConditionValues) + authConditionsItemObject.conditionValues.push_back(value.asString()); + decodedDiagnosticMessage_.authConditions.push_back(authConditionsItemObject); + } + auto allMatchedPoliciesNode = decodedDiagnosticMessageNode["MatchedPolicies"]["matchedPoliciesItem"]; + for (auto decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem : allMatchedPoliciesNode) + { + DecodedDiagnosticMessage::MatchedPoliciesItem matchedPoliciesItemObject; + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["Effect"].isNull()) + matchedPoliciesItemObject.effect = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["Effect"].asString(); + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyIdentifier"].isNull()) + matchedPoliciesItemObject.policyIdentifier = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyIdentifier"].asString(); + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyType"].isNull()) + matchedPoliciesItemObject.policyType = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyType"].asString(); + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyVersion"].isNull()) + matchedPoliciesItemObject.policyVersion = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["PolicyVersion"].asString(); + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["AttachedEntityType"].isNull()) + matchedPoliciesItemObject.attachedEntityType = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["AttachedEntityType"].asString(); + if(!decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["AttachedScope"].isNull()) + matchedPoliciesItemObject.attachedScope = decodedDiagnosticMessageNodeMatchedPoliciesmatchedPoliciesItem["AttachedScope"].asString(); + decodedDiagnosticMessage_.matchedPolicies.push_back(matchedPoliciesItemObject); + } + auto authPrincipalNode = decodedDiagnosticMessageNode["AuthPrincipal"]; + if(!authPrincipalNode["AuthPrincipalType"].isNull()) + decodedDiagnosticMessage_.authPrincipal.authPrincipalType = authPrincipalNode["AuthPrincipalType"].asString(); + if(!authPrincipalNode["AuthPrincipalOwnerId"].isNull()) + decodedDiagnosticMessage_.authPrincipal.authPrincipalOwnerId = authPrincipalNode["AuthPrincipalOwnerId"].asString(); + if(!authPrincipalNode["AuthPrincipalDisplayName"].isNull()) + decodedDiagnosticMessage_.authPrincipal.authPrincipalDisplayName = authPrincipalNode["AuthPrincipalDisplayName"].asString(); + +} + +DecodeDiagnosticMessageResult::DecodedDiagnosticMessage DecodeDiagnosticMessageResult::getDecodedDiagnosticMessage()const +{ + return decodedDiagnosticMessage_; +} + diff --git a/ram/src/model/DeleteAccessKeyRequest.cc b/ram/src/model/DeleteAccessKeyRequest.cc index 0fcf90fba..46712a598 100644 --- a/ram/src/model/DeleteAccessKeyRequest.cc +++ b/ram/src/model/DeleteAccessKeyRequest.cc @@ -1,51 +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::Ram::Model::DeleteAccessKeyRequest; - -DeleteAccessKeyRequest::DeleteAccessKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteAccessKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAccessKeyRequest::~DeleteAccessKeyRequest() -{} - -std::string DeleteAccessKeyRequest::getUserAccessKeyId()const -{ - return userAccessKeyId_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteAccessKeyRequest; + +DeleteAccessKeyRequest::DeleteAccessKeyRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteAccessKey") { + setMethod(HttpRequest::Method::Post); } -void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId) -{ - userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); +DeleteAccessKeyRequest::~DeleteAccessKeyRequest() {} + +std::string DeleteAccessKeyRequest::getUserAccessKeyId() const { + return userAccessKeyId_; } -std::string DeleteAccessKeyRequest::getUserName()const -{ - return userName_; +void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); } -void DeleteAccessKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string DeleteAccessKeyRequest::getUserName() const { + return userName_; +} + +void DeleteAccessKeyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/DeleteGroupRequest.cc b/ram/src/model/DeleteGroupRequest.cc index 927abe21f..a189e0177 100644 --- a/ram/src/model/DeleteGroupRequest.cc +++ b/ram/src/model/DeleteGroupRequest.cc @@ -1,40 +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::Ram::Model::DeleteGroupRequest; - -DeleteGroupRequest::DeleteGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGroupRequest::~DeleteGroupRequest() -{} - -std::string DeleteGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteGroupRequest; + +DeleteGroupRequest::DeleteGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +DeleteGroupRequest::~DeleteGroupRequest() {} + +std::string DeleteGroupRequest::getGroupName() const { + return groupName_; +} + +void DeleteGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } diff --git a/ram/src/model/DeleteLoginProfileRequest.cc b/ram/src/model/DeleteLoginProfileRequest.cc index c1a08d93e..de8e745f7 100644 --- a/ram/src/model/DeleteLoginProfileRequest.cc +++ b/ram/src/model/DeleteLoginProfileRequest.cc @@ -1,40 +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::Ram::Model::DeleteLoginProfileRequest; - -DeleteLoginProfileRequest::DeleteLoginProfileRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteLoginProfile") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteLoginProfileRequest::~DeleteLoginProfileRequest() -{} - -std::string DeleteLoginProfileRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteLoginProfileRequest; + +DeleteLoginProfileRequest::DeleteLoginProfileRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteLoginProfile") { + setMethod(HttpRequest::Method::Post); } -void DeleteLoginProfileRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +DeleteLoginProfileRequest::~DeleteLoginProfileRequest() {} + +std::string DeleteLoginProfileRequest::getUserName() const { + return userName_; +} + +void DeleteLoginProfileRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/DeletePolicyRequest.cc b/ram/src/model/DeletePolicyRequest.cc index 1331a2622..c29c39a4b 100644 --- a/ram/src/model/DeletePolicyRequest.cc +++ b/ram/src/model/DeletePolicyRequest.cc @@ -1,40 +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::Ram::Model::DeletePolicyRequest; - -DeletePolicyRequest::DeletePolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeletePolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePolicyRequest::~DeletePolicyRequest() -{} - -std::string DeletePolicyRequest::getPolicyName()const -{ - return policyName_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeletePolicyRequest; + +DeletePolicyRequest::DeletePolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeletePolicy") { + setMethod(HttpRequest::Method::Post); } -void DeletePolicyRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +DeletePolicyRequest::~DeletePolicyRequest() {} + +bool DeletePolicyRequest::getCascadingDelete() const { + return cascadingDelete_; +} + +void DeletePolicyRequest::setCascadingDelete(bool cascadingDelete) { + cascadingDelete_ = cascadingDelete; + setParameter(std::string("CascadingDelete"), cascadingDelete ? "true" : "false"); +} + +std::string DeletePolicyRequest::getPolicyName() const { + return policyName_; +} + +void DeletePolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/DeletePolicyVersionRequest.cc b/ram/src/model/DeletePolicyVersionRequest.cc index 5d896a1f9..a3ab35217 100644 --- a/ram/src/model/DeletePolicyVersionRequest.cc +++ b/ram/src/model/DeletePolicyVersionRequest.cc @@ -1,51 +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::Ram::Model::DeletePolicyVersionRequest; - -DeletePolicyVersionRequest::DeletePolicyVersionRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeletePolicyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePolicyVersionRequest::~DeletePolicyVersionRequest() -{} - -std::string DeletePolicyVersionRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeletePolicyVersionRequest; + +DeletePolicyVersionRequest::DeletePolicyVersionRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeletePolicyVersion") { + setMethod(HttpRequest::Method::Post); } -void DeletePolicyVersionRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +DeletePolicyVersionRequest::~DeletePolicyVersionRequest() {} + +std::string DeletePolicyVersionRequest::getVersionId() const { + return versionId_; } -std::string DeletePolicyVersionRequest::getPolicyName()const -{ - return policyName_; +void DeletePolicyVersionRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void DeletePolicyVersionRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string DeletePolicyVersionRequest::getPolicyName() const { + return policyName_; +} + +void DeletePolicyVersionRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/DeletePublicKeyRequest.cc b/ram/src/model/DeletePublicKeyRequest.cc deleted file mode 100644 index 6c4e42213..000000000 --- a/ram/src/model/DeletePublicKeyRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::DeletePublicKeyRequest; - -DeletePublicKeyRequest::DeletePublicKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeletePublicKey") -{} - -DeletePublicKeyRequest::~DeletePublicKeyRequest() -{} - -std::string DeletePublicKeyRequest::getUserPublicKeyId()const -{ - return userPublicKeyId_; -} - -void DeletePublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId) -{ - userPublicKeyId_ = userPublicKeyId; - setParameter("UserPublicKeyId", userPublicKeyId); -} - -std::string DeletePublicKeyRequest::getUserName()const -{ - return userName_; -} - -void DeletePublicKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ram/src/model/DeleteRoleRequest.cc b/ram/src/model/DeleteRoleRequest.cc index b01a6a403..ca5277ffb 100644 --- a/ram/src/model/DeleteRoleRequest.cc +++ b/ram/src/model/DeleteRoleRequest.cc @@ -1,40 +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::Ram::Model::DeleteRoleRequest; - -DeleteRoleRequest::DeleteRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteRole") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRoleRequest::~DeleteRoleRequest() -{} - -std::string DeleteRoleRequest::getRoleName()const -{ - return roleName_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteRoleRequest; + +DeleteRoleRequest::DeleteRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteRole") { + setMethod(HttpRequest::Method::Post); } -void DeleteRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +DeleteRoleRequest::~DeleteRoleRequest() {} + +std::string DeleteRoleRequest::getRoleName() const { + return roleName_; +} + +void DeleteRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } diff --git a/ram/src/model/DeleteUserRequest.cc b/ram/src/model/DeleteUserRequest.cc index 5d29a5335..a876eb517 100644 --- a/ram/src/model/DeleteUserRequest.cc +++ b/ram/src/model/DeleteUserRequest.cc @@ -1,40 +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::Ram::Model::DeleteUserRequest; - -DeleteUserRequest::DeleteUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteUserRequest::~DeleteUserRequest() -{} - -std::string DeleteUserRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteUser") { + setMethod(HttpRequest::Method::Post); } -void DeleteUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +DeleteUserRequest::~DeleteUserRequest() {} + +std::string DeleteUserRequest::getUserName() const { + return userName_; +} + +void DeleteUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/DeleteVirtualMFADeviceRequest.cc b/ram/src/model/DeleteVirtualMFADeviceRequest.cc index a36477931..dbaa920c3 100644 --- a/ram/src/model/DeleteVirtualMFADeviceRequest.cc +++ b/ram/src/model/DeleteVirtualMFADeviceRequest.cc @@ -1,40 +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::Ram::Model::DeleteVirtualMFADeviceRequest; - -DeleteVirtualMFADeviceRequest::DeleteVirtualMFADeviceRequest() : - RpcServiceRequest("ram", "2015-05-01", "DeleteVirtualMFADevice") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVirtualMFADeviceRequest::~DeleteVirtualMFADeviceRequest() -{} - -std::string DeleteVirtualMFADeviceRequest::getSerialNumber()const -{ - return serialNumber_; + */ + +#include + +using AlibabaCloud::Ram::Model::DeleteVirtualMFADeviceRequest; + +DeleteVirtualMFADeviceRequest::DeleteVirtualMFADeviceRequest() + : RpcServiceRequest("ram", "2015-05-01", "DeleteVirtualMFADevice") { + setMethod(HttpRequest::Method::Post); } -void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +DeleteVirtualMFADeviceRequest::~DeleteVirtualMFADeviceRequest() {} + +std::string DeleteVirtualMFADeviceRequest::getSerialNumber() const { + return serialNumber_; +} + +void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } diff --git a/ram/src/model/DetachPolicyFromGroupRequest.cc b/ram/src/model/DetachPolicyFromGroupRequest.cc index 9e5d678fb..fa87c4243 100644 --- a/ram/src/model/DetachPolicyFromGroupRequest.cc +++ b/ram/src/model/DetachPolicyFromGroupRequest.cc @@ -1,62 +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::Ram::Model::DetachPolicyFromGroupRequest; - -DetachPolicyFromGroupRequest::DetachPolicyFromGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachPolicyFromGroupRequest::~DetachPolicyFromGroupRequest() -{} - -std::string DetachPolicyFromGroupRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::DetachPolicyFromGroupRequest; + +DetachPolicyFromGroupRequest::DetachPolicyFromGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromGroup") { + setMethod(HttpRequest::Method::Post); } -void DetachPolicyFromGroupRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +DetachPolicyFromGroupRequest::~DetachPolicyFromGroupRequest() {} + +std::string DetachPolicyFromGroupRequest::getPolicyType() const { + return policyType_; } -std::string DetachPolicyFromGroupRequest::getGroupName()const -{ - return groupName_; +void DetachPolicyFromGroupRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void DetachPolicyFromGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string DetachPolicyFromGroupRequest::getGroupName() const { + return groupName_; } -std::string DetachPolicyFromGroupRequest::getPolicyName()const -{ - return policyName_; +void DetachPolicyFromGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void DetachPolicyFromGroupRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string DetachPolicyFromGroupRequest::getPolicyName() const { + return policyName_; +} + +void DetachPolicyFromGroupRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/DetachPolicyFromRoleRequest.cc b/ram/src/model/DetachPolicyFromRoleRequest.cc index 302ac6a4e..308fc641e 100644 --- a/ram/src/model/DetachPolicyFromRoleRequest.cc +++ b/ram/src/model/DetachPolicyFromRoleRequest.cc @@ -1,62 +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::Ram::Model::DetachPolicyFromRoleRequest; - -DetachPolicyFromRoleRequest::DetachPolicyFromRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromRole") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachPolicyFromRoleRequest::~DetachPolicyFromRoleRequest() -{} - -std::string DetachPolicyFromRoleRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::DetachPolicyFromRoleRequest; + +DetachPolicyFromRoleRequest::DetachPolicyFromRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromRole") { + setMethod(HttpRequest::Method::Post); } -void DetachPolicyFromRoleRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +DetachPolicyFromRoleRequest::~DetachPolicyFromRoleRequest() {} + +std::string DetachPolicyFromRoleRequest::getPolicyType() const { + return policyType_; } -std::string DetachPolicyFromRoleRequest::getRoleName()const -{ - return roleName_; +void DetachPolicyFromRoleRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void DetachPolicyFromRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string DetachPolicyFromRoleRequest::getRoleName() const { + return roleName_; } -std::string DetachPolicyFromRoleRequest::getPolicyName()const -{ - return policyName_; +void DetachPolicyFromRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void DetachPolicyFromRoleRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string DetachPolicyFromRoleRequest::getPolicyName() const { + return policyName_; +} + +void DetachPolicyFromRoleRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/DetachPolicyFromUserRequest.cc b/ram/src/model/DetachPolicyFromUserRequest.cc index 1aa4dc59e..4d4f9e18d 100644 --- a/ram/src/model/DetachPolicyFromUserRequest.cc +++ b/ram/src/model/DetachPolicyFromUserRequest.cc @@ -1,62 +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::Ram::Model::DetachPolicyFromUserRequest; - -DetachPolicyFromUserRequest::DetachPolicyFromUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachPolicyFromUserRequest::~DetachPolicyFromUserRequest() -{} - -std::string DetachPolicyFromUserRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::DetachPolicyFromUserRequest; + +DetachPolicyFromUserRequest::DetachPolicyFromUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "DetachPolicyFromUser") { + setMethod(HttpRequest::Method::Post); } -void DetachPolicyFromUserRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +DetachPolicyFromUserRequest::~DetachPolicyFromUserRequest() {} + +std::string DetachPolicyFromUserRequest::getPolicyType() const { + return policyType_; } -std::string DetachPolicyFromUserRequest::getPolicyName()const -{ - return policyName_; +void DetachPolicyFromUserRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void DetachPolicyFromUserRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string DetachPolicyFromUserRequest::getPolicyName() const { + return policyName_; } -std::string DetachPolicyFromUserRequest::getUserName()const -{ - return userName_; +void DetachPolicyFromUserRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } -void DetachPolicyFromUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string DetachPolicyFromUserRequest::getUserName() const { + return userName_; +} + +void DetachPolicyFromUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/GetAccessKeyLastUsedRequest.cc b/ram/src/model/GetAccessKeyLastUsedRequest.cc index 47b5e5da4..bc4c1a408 100644 --- a/ram/src/model/GetAccessKeyLastUsedRequest.cc +++ b/ram/src/model/GetAccessKeyLastUsedRequest.cc @@ -1,51 +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::Ram::Model::GetAccessKeyLastUsedRequest; - -GetAccessKeyLastUsedRequest::GetAccessKeyLastUsedRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetAccessKeyLastUsed") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAccessKeyLastUsedRequest::~GetAccessKeyLastUsedRequest() -{} - -std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId()const -{ - return userAccessKeyId_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetAccessKeyLastUsedRequest; + +GetAccessKeyLastUsedRequest::GetAccessKeyLastUsedRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetAccessKeyLastUsed") { + setMethod(HttpRequest::Method::Post); } -void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string& userAccessKeyId) -{ - userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); +GetAccessKeyLastUsedRequest::~GetAccessKeyLastUsedRequest() {} + +std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId() const { + return userAccessKeyId_; } -std::string GetAccessKeyLastUsedRequest::getUserName()const -{ - return userName_; +void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); } -void GetAccessKeyLastUsedRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string GetAccessKeyLastUsedRequest::getUserName() const { + return userName_; +} + +void GetAccessKeyLastUsedRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/GetAccountAliasRequest.cc b/ram/src/model/GetAccountAliasRequest.cc index cb14a50b1..1a3fae314 100644 --- a/ram/src/model/GetAccountAliasRequest.cc +++ b/ram/src/model/GetAccountAliasRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::GetAccountAliasRequest; - -GetAccountAliasRequest::GetAccountAliasRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetAccountAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAccountAliasRequest::~GetAccountAliasRequest() -{} - + */ + +#include + +using AlibabaCloud::Ram::Model::GetAccountAliasRequest; + +GetAccountAliasRequest::GetAccountAliasRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetAccountAlias") { + setMethod(HttpRequest::Method::Post); +} + +GetAccountAliasRequest::~GetAccountAliasRequest() {} + diff --git a/ram/src/model/GetGroupRequest.cc b/ram/src/model/GetGroupRequest.cc index a76f6e3ca..d45e3f405 100644 --- a/ram/src/model/GetGroupRequest.cc +++ b/ram/src/model/GetGroupRequest.cc @@ -1,40 +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::Ram::Model::GetGroupRequest; - -GetGroupRequest::GetGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -GetGroupRequest::~GetGroupRequest() -{} - -std::string GetGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetGroupRequest; + +GetGroupRequest::GetGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetGroup") { + setMethod(HttpRequest::Method::Post); } -void GetGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +GetGroupRequest::~GetGroupRequest() {} + +std::string GetGroupRequest::getGroupName() const { + return groupName_; +} + +void GetGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } diff --git a/ram/src/model/GetGroupResult.cc b/ram/src/model/GetGroupResult.cc index 492625102..ddb45b0f9 100644 --- a/ram/src/model/GetGroupResult.cc +++ b/ram/src/model/GetGroupResult.cc @@ -40,14 +40,16 @@ void GetGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; + 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(); - if(!groupNode["UpdateDate"].isNull()) - group_.updateDate = groupNode["UpdateDate"].asString(); } diff --git a/ram/src/model/GetLoginProfileRequest.cc b/ram/src/model/GetLoginProfileRequest.cc index a3dc81ab8..0e17e71c1 100644 --- a/ram/src/model/GetLoginProfileRequest.cc +++ b/ram/src/model/GetLoginProfileRequest.cc @@ -1,40 +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::Ram::Model::GetLoginProfileRequest; - -GetLoginProfileRequest::GetLoginProfileRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetLoginProfile") -{ - setMethod(HttpRequest::Method::Post); -} - -GetLoginProfileRequest::~GetLoginProfileRequest() -{} - -std::string GetLoginProfileRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetLoginProfileRequest; + +GetLoginProfileRequest::GetLoginProfileRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetLoginProfile") { + setMethod(HttpRequest::Method::Post); } -void GetLoginProfileRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +GetLoginProfileRequest::~GetLoginProfileRequest() {} + +std::string GetLoginProfileRequest::getUserName() const { + return userName_; +} + +void GetLoginProfileRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/GetLoginProfileResult.cc b/ram/src/model/GetLoginProfileResult.cc index 25d3fad90..08e89c764 100644 --- a/ram/src/model/GetLoginProfileResult.cc +++ b/ram/src/model/GetLoginProfileResult.cc @@ -40,14 +40,14 @@ void GetLoginProfileResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto loginProfileNode = value["LoginProfile"]; - if(!loginProfileNode["UserName"].isNull()) - loginProfile_.userName = loginProfileNode["UserName"].asString(); if(!loginProfileNode["PasswordResetRequired"].isNull()) loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true"; - if(!loginProfileNode["MFABindRequired"].isNull()) - loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true"; if(!loginProfileNode["CreateDate"].isNull()) loginProfile_.createDate = loginProfileNode["CreateDate"].asString(); + if(!loginProfileNode["UserName"].isNull()) + loginProfile_.userName = loginProfileNode["UserName"].asString(); + if(!loginProfileNode["MFABindRequired"].isNull()) + loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true"; } diff --git a/ram/src/model/GetPasswordPolicyRequest.cc b/ram/src/model/GetPasswordPolicyRequest.cc index 3d6f47641..a088a7664 100644 --- a/ram/src/model/GetPasswordPolicyRequest.cc +++ b/ram/src/model/GetPasswordPolicyRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::GetPasswordPolicyRequest; - -GetPasswordPolicyRequest::GetPasswordPolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetPasswordPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPasswordPolicyRequest::~GetPasswordPolicyRequest() -{} - + */ + +#include + +using AlibabaCloud::Ram::Model::GetPasswordPolicyRequest; + +GetPasswordPolicyRequest::GetPasswordPolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetPasswordPolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetPasswordPolicyRequest::~GetPasswordPolicyRequest() {} + diff --git a/ram/src/model/GetPasswordPolicyResult.cc b/ram/src/model/GetPasswordPolicyResult.cc index 7c246f585..a861f1608 100644 --- a/ram/src/model/GetPasswordPolicyResult.cc +++ b/ram/src/model/GetPasswordPolicyResult.cc @@ -40,22 +40,22 @@ void GetPasswordPolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto passwordPolicyNode = value["PasswordPolicy"]; - if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) - passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString()); - if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) - passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; - if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull()) - passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true"; if(!passwordPolicyNode["RequireNumbers"].isNull()) passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true"; - if(!passwordPolicyNode["RequireSymbols"].isNull()) - passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) + passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; if(!passwordPolicyNode["HardExpiry"].isNull()) passwordPolicy_.hardExpiry = passwordPolicyNode["HardExpiry"].asString() == "true"; - if(!passwordPolicyNode["MaxPasswordAge"].isNull()) - passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); if(!passwordPolicyNode["PasswordReusePrevention"].isNull()) passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString()); + if(!passwordPolicyNode["RequireSymbols"].isNull()) + passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["MaxPasswordAge"].isNull()) + passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); + 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()); diff --git a/ram/src/model/GetPolicyRequest.cc b/ram/src/model/GetPolicyRequest.cc index bbbc75503..ecd745495 100644 --- a/ram/src/model/GetPolicyRequest.cc +++ b/ram/src/model/GetPolicyRequest.cc @@ -1,51 +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::Ram::Model::GetPolicyRequest; - -GetPolicyRequest::GetPolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPolicyRequest::~GetPolicyRequest() -{} - -std::string GetPolicyRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetPolicyRequest; + +GetPolicyRequest::GetPolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetPolicy") { + setMethod(HttpRequest::Method::Post); } -void GetPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +GetPolicyRequest::~GetPolicyRequest() {} + +std::string GetPolicyRequest::getPolicyType() const { + return policyType_; } -std::string GetPolicyRequest::getPolicyName()const -{ - return policyName_; +void GetPolicyRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void GetPolicyRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string GetPolicyRequest::getPolicyName() const { + return policyName_; +} + +void GetPolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/GetPolicyResult.cc b/ram/src/model/GetPolicyResult.cc index 51dc52f27..ecebfceac 100644 --- a/ram/src/model/GetPolicyResult.cc +++ b/ram/src/model/GetPolicyResult.cc @@ -40,29 +40,29 @@ void GetPolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto policyNode = value["Policy"]; - if(!policyNode["PolicyName"].isNull()) - policy_.policyName = policyNode["PolicyName"].asString(); - if(!policyNode["PolicyType"].isNull()) - policy_.policyType = policyNode["PolicyType"].asString(); - if(!policyNode["Description"].isNull()) - policy_.description = policyNode["Description"].asString(); if(!policyNode["DefaultVersion"].isNull()) policy_.defaultVersion = policyNode["DefaultVersion"].asString(); - if(!policyNode["PolicyDocument"].isNull()) - policy_.policyDocument = policyNode["PolicyDocument"].asString(); - if(!policyNode["CreateDate"].isNull()) - policy_.createDate = policyNode["CreateDate"].asString(); if(!policyNode["UpdateDate"].isNull()) policy_.updateDate = policyNode["UpdateDate"].asString(); + if(!policyNode["Description"].isNull()) + policy_.description = policyNode["Description"].asString(); + if(!policyNode["PolicyDocument"].isNull()) + policy_.policyDocument = policyNode["PolicyDocument"].asString(); if(!policyNode["AttachmentCount"].isNull()) policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString()); + if(!policyNode["PolicyName"].isNull()) + policy_.policyName = policyNode["PolicyName"].asString(); + if(!policyNode["CreateDate"].isNull()) + policy_.createDate = policyNode["CreateDate"].asString(); + if(!policyNode["PolicyType"].isNull()) + policy_.policyType = policyNode["PolicyType"].asString(); auto defaultPolicyVersionNode = value["DefaultPolicyVersion"]; - if(!defaultPolicyVersionNode["VersionId"].isNull()) - defaultPolicyVersion_.versionId = defaultPolicyVersionNode["VersionId"].asString(); if(!defaultPolicyVersionNode["IsDefaultVersion"].isNull()) defaultPolicyVersion_.isDefaultVersion = defaultPolicyVersionNode["IsDefaultVersion"].asString() == "true"; if(!defaultPolicyVersionNode["PolicyDocument"].isNull()) defaultPolicyVersion_.policyDocument = defaultPolicyVersionNode["PolicyDocument"].asString(); + if(!defaultPolicyVersionNode["VersionId"].isNull()) + defaultPolicyVersion_.versionId = defaultPolicyVersionNode["VersionId"].asString(); if(!defaultPolicyVersionNode["CreateDate"].isNull()) defaultPolicyVersion_.createDate = defaultPolicyVersionNode["CreateDate"].asString(); diff --git a/ram/src/model/GetPolicyVersionRequest.cc b/ram/src/model/GetPolicyVersionRequest.cc index 9be2a352c..97966d868 100644 --- a/ram/src/model/GetPolicyVersionRequest.cc +++ b/ram/src/model/GetPolicyVersionRequest.cc @@ -1,62 +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::Ram::Model::GetPolicyVersionRequest; - -GetPolicyVersionRequest::GetPolicyVersionRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetPolicyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPolicyVersionRequest::~GetPolicyVersionRequest() -{} - -std::string GetPolicyVersionRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetPolicyVersionRequest; + +GetPolicyVersionRequest::GetPolicyVersionRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetPolicyVersion") { + setMethod(HttpRequest::Method::Post); } -void GetPolicyVersionRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +GetPolicyVersionRequest::~GetPolicyVersionRequest() {} + +std::string GetPolicyVersionRequest::getVersionId() const { + return versionId_; } -std::string GetPolicyVersionRequest::getVersionId()const -{ - return versionId_; +void GetPolicyVersionRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void GetPolicyVersionRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +std::string GetPolicyVersionRequest::getPolicyType() const { + return policyType_; } -std::string GetPolicyVersionRequest::getPolicyName()const -{ - return policyName_; +void GetPolicyVersionRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void GetPolicyVersionRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string GetPolicyVersionRequest::getPolicyName() const { + return policyName_; +} + +void GetPolicyVersionRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/GetPolicyVersionResult.cc b/ram/src/model/GetPolicyVersionResult.cc index f66211c5a..1f8261d9c 100644 --- a/ram/src/model/GetPolicyVersionResult.cc +++ b/ram/src/model/GetPolicyVersionResult.cc @@ -40,12 +40,12 @@ void GetPolicyVersionResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto policyVersionNode = value["PolicyVersion"]; - if(!policyVersionNode["VersionId"].isNull()) - policyVersion_.versionId = policyVersionNode["VersionId"].asString(); if(!policyVersionNode["IsDefaultVersion"].isNull()) policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true"; if(!policyVersionNode["PolicyDocument"].isNull()) policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString(); + if(!policyVersionNode["VersionId"].isNull()) + policyVersion_.versionId = policyVersionNode["VersionId"].asString(); if(!policyVersionNode["CreateDate"].isNull()) policyVersion_.createDate = policyVersionNode["CreateDate"].asString(); diff --git a/ram/src/model/GetPublicKeyRequest.cc b/ram/src/model/GetPublicKeyRequest.cc deleted file mode 100644 index ae7d17933..000000000 --- a/ram/src/model/GetPublicKeyRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::GetPublicKeyRequest; - -GetPublicKeyRequest::GetPublicKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetPublicKey") -{} - -GetPublicKeyRequest::~GetPublicKeyRequest() -{} - -std::string GetPublicKeyRequest::getUserPublicKeyId()const -{ - return userPublicKeyId_; -} - -void GetPublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId) -{ - userPublicKeyId_ = userPublicKeyId; - setParameter("UserPublicKeyId", userPublicKeyId); -} - -std::string GetPublicKeyRequest::getUserName()const -{ - return userName_; -} - -void GetPublicKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ram/src/model/GetPublicKeyResult.cc b/ram/src/model/GetPublicKeyResult.cc deleted file mode 100644 index 468f14087..000000000 --- a/ram/src/model/GetPublicKeyResult.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ram; -using namespace AlibabaCloud::Ram::Model; - -GetPublicKeyResult::GetPublicKeyResult() : - ServiceResult() -{} - -GetPublicKeyResult::GetPublicKeyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPublicKeyResult::~GetPublicKeyResult() -{} - -void GetPublicKeyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto publicKeyNode = value["PublicKey"]; - if(!publicKeyNode["PublicKeyId"].isNull()) - publicKey_.publicKeyId = publicKeyNode["PublicKeyId"].asString(); - if(!publicKeyNode["PublicKeySpec"].isNull()) - publicKey_.publicKeySpec = publicKeyNode["PublicKeySpec"].asString(); - if(!publicKeyNode["Status"].isNull()) - publicKey_.status = publicKeyNode["Status"].asString(); - if(!publicKeyNode["CreateDate"].isNull()) - publicKey_.createDate = publicKeyNode["CreateDate"].asString(); - -} - -GetPublicKeyResult::PublicKey GetPublicKeyResult::getPublicKey()const -{ - return publicKey_; -} - diff --git a/ram/src/model/GetRoleRequest.cc b/ram/src/model/GetRoleRequest.cc index 09ebe2128..65549604a 100644 --- a/ram/src/model/GetRoleRequest.cc +++ b/ram/src/model/GetRoleRequest.cc @@ -1,40 +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::Ram::Model::GetRoleRequest; - -GetRoleRequest::GetRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetRole") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRoleRequest::~GetRoleRequest() -{} - -std::string GetRoleRequest::getRoleName()const -{ - return roleName_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetRoleRequest; + +GetRoleRequest::GetRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetRole") { + setMethod(HttpRequest::Method::Post); } -void GetRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +GetRoleRequest::~GetRoleRequest() {} + +std::string GetRoleRequest::getRoleName() const { + return roleName_; +} + +void GetRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } diff --git a/ram/src/model/GetRoleResult.cc b/ram/src/model/GetRoleResult.cc index 4e3b9634d..574200928 100644 --- a/ram/src/model/GetRoleResult.cc +++ b/ram/src/model/GetRoleResult.cc @@ -40,22 +40,22 @@ void GetRoleResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; - if(!roleNode["RoleId"].isNull()) - role_.roleId = roleNode["RoleId"].asString(); - if(!roleNode["RoleName"].isNull()) - role_.roleName = roleNode["RoleName"].asString(); - if(!roleNode["Arn"].isNull()) - role_.arn = roleNode["Arn"].asString(); - if(!roleNode["Description"].isNull()) - role_.description = roleNode["Description"].asString(); if(!roleNode["AssumeRolePolicyDocument"].isNull()) role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString(); - if(!roleNode["CreateDate"].isNull()) - role_.createDate = roleNode["CreateDate"].asString(); if(!roleNode["UpdateDate"].isNull()) role_.updateDate = roleNode["UpdateDate"].asString(); + if(!roleNode["Description"].isNull()) + role_.description = roleNode["Description"].asString(); if(!roleNode["MaxSessionDuration"].isNull()) role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString()); + if(!roleNode["RoleName"].isNull()) + role_.roleName = roleNode["RoleName"].asString(); + if(!roleNode["CreateDate"].isNull()) + role_.createDate = roleNode["CreateDate"].asString(); + if(!roleNode["RoleId"].isNull()) + role_.roleId = roleNode["RoleId"].asString(); + if(!roleNode["Arn"].isNull()) + role_.arn = roleNode["Arn"].asString(); } diff --git a/ram/src/model/GetSecurityPreferenceRequest.cc b/ram/src/model/GetSecurityPreferenceRequest.cc index e5f5771a0..a89445dc2 100644 --- a/ram/src/model/GetSecurityPreferenceRequest.cc +++ b/ram/src/model/GetSecurityPreferenceRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::GetSecurityPreferenceRequest; - -GetSecurityPreferenceRequest::GetSecurityPreferenceRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetSecurityPreference") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest() -{} - + */ + +#include + +using AlibabaCloud::Ram::Model::GetSecurityPreferenceRequest; + +GetSecurityPreferenceRequest::GetSecurityPreferenceRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetSecurityPreference") { + setMethod(HttpRequest::Method::Post); +} + +GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest() {} + diff --git a/ram/src/model/GetSecurityPreferenceResult.cc b/ram/src/model/GetSecurityPreferenceResult.cc index feeadebe3..37f363712 100644 --- a/ram/src/model/GetSecurityPreferenceResult.cc +++ b/ram/src/model/GetSecurityPreferenceResult.cc @@ -40,24 +40,24 @@ void GetSecurityPreferenceResult::parse(const std::string &payload) 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 mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; + if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) + securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull()) securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true"; - if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) - securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull()) securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString()); if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull()) securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString(); - auto accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"]; - if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull()) - securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true"; + if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) + securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; auto publicKeyPreferenceNode = securityPreferenceNode["PublicKeyPreference"]; if(!publicKeyPreferenceNode["AllowUserToManagePublicKeys"].isNull()) securityPreference_.publicKeyPreference.allowUserToManagePublicKeys = publicKeyPreferenceNode["AllowUserToManagePublicKeys"].asString() == "true"; - auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; - if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) - securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; } diff --git a/ram/src/model/GetUserMFAInfoRequest.cc b/ram/src/model/GetUserMFAInfoRequest.cc index 516a01b96..d51ad994a 100644 --- a/ram/src/model/GetUserMFAInfoRequest.cc +++ b/ram/src/model/GetUserMFAInfoRequest.cc @@ -1,40 +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::Ram::Model::GetUserMFAInfoRequest; - -GetUserMFAInfoRequest::GetUserMFAInfoRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetUserMFAInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserMFAInfoRequest::~GetUserMFAInfoRequest() -{} - -std::string GetUserMFAInfoRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetUserMFAInfoRequest; + +GetUserMFAInfoRequest::GetUserMFAInfoRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetUserMFAInfo") { + setMethod(HttpRequest::Method::Post); } -void GetUserMFAInfoRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +GetUserMFAInfoRequest::~GetUserMFAInfoRequest() {} + +std::string GetUserMFAInfoRequest::getUserName() const { + return userName_; +} + +void GetUserMFAInfoRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/GetUserMFAInfoResult.cc b/ram/src/model/GetUserMFAInfoResult.cc index ce138f392..4b3607d79 100644 --- a/ram/src/model/GetUserMFAInfoResult.cc +++ b/ram/src/model/GetUserMFAInfoResult.cc @@ -42,6 +42,8 @@ void GetUserMFAInfoResult::parse(const std::string &payload) auto mFADeviceNode = value["MFADevice"]; if(!mFADeviceNode["SerialNumber"].isNull()) mFADevice_.serialNumber = mFADeviceNode["SerialNumber"].asString(); + if(!mFADeviceNode["Type"].isNull()) + mFADevice_.type = mFADeviceNode["Type"].asString(); } diff --git a/ram/src/model/GetUserRequest.cc b/ram/src/model/GetUserRequest.cc index 250c5ca10..840dd6cd1 100644 --- a/ram/src/model/GetUserRequest.cc +++ b/ram/src/model/GetUserRequest.cc @@ -1,40 +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::Ram::Model::GetUserRequest; - -GetUserRequest::GetUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "GetUser") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserRequest::~GetUserRequest() -{} - -std::string GetUserRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "GetUser") { + setMethod(HttpRequest::Method::Post); } -void GetUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +GetUserRequest::~GetUserRequest() {} + +std::string GetUserRequest::getUserName() const { + return userName_; +} + +void GetUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/GetUserResult.cc b/ram/src/model/GetUserResult.cc index cb721cd1f..d93263d89 100644 --- a/ram/src/model/GetUserResult.cc +++ b/ram/src/model/GetUserResult.cc @@ -40,24 +40,24 @@ void GetUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; - if(!userNode["UserId"].isNull()) - user_.userId = userNode["UserId"].asString(); - if(!userNode["UserName"].isNull()) - user_.userName = userNode["UserName"].asString(); if(!userNode["DisplayName"].isNull()) user_.displayName = userNode["DisplayName"].asString(); - if(!userNode["MobilePhone"].isNull()) - user_.mobilePhone = userNode["MobilePhone"].asString(); if(!userNode["Email"].isNull()) user_.email = userNode["Email"].asString(); - if(!userNode["Comments"].isNull()) - user_.comments = userNode["Comments"].asString(); - if(!userNode["CreateDate"].isNull()) - user_.createDate = userNode["CreateDate"].asString(); if(!userNode["UpdateDate"].isNull()) user_.updateDate = userNode["UpdateDate"].asString(); + if(!userNode["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["UserName"].isNull()) + user_.userName = userNode["UserName"].asString(); } diff --git a/ram/src/model/ListAccessKeysRequest.cc b/ram/src/model/ListAccessKeysRequest.cc index c530a054d..8066f098c 100644 --- a/ram/src/model/ListAccessKeysRequest.cc +++ b/ram/src/model/ListAccessKeysRequest.cc @@ -1,40 +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::Ram::Model::ListAccessKeysRequest; - -ListAccessKeysRequest::ListAccessKeysRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListAccessKeys") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAccessKeysRequest::~ListAccessKeysRequest() -{} - -std::string ListAccessKeysRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListAccessKeysRequest; + +ListAccessKeysRequest::ListAccessKeysRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListAccessKeys") { + setMethod(HttpRequest::Method::Post); } -void ListAccessKeysRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +ListAccessKeysRequest::~ListAccessKeysRequest() {} + +std::string ListAccessKeysRequest::getUserName() const { + return userName_; +} + +void ListAccessKeysRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/ListAccessKeysResult.cc b/ram/src/model/ListAccessKeysResult.cc index 4ae783df8..06277ba33 100644 --- a/ram/src/model/ListAccessKeysResult.cc +++ b/ram/src/model/ListAccessKeysResult.cc @@ -43,10 +43,10 @@ void ListAccessKeysResult::parse(const std::string &payload) for (auto valueAccessKeysAccessKey : allAccessKeysNode) { AccessKey accessKeysObject; - if(!valueAccessKeysAccessKey["AccessKeyId"].isNull()) - accessKeysObject.accessKeyId = valueAccessKeysAccessKey["AccessKeyId"].asString(); if(!valueAccessKeysAccessKey["Status"].isNull()) accessKeysObject.status = valueAccessKeysAccessKey["Status"].asString(); + if(!valueAccessKeysAccessKey["AccessKeyId"].isNull()) + accessKeysObject.accessKeyId = valueAccessKeysAccessKey["AccessKeyId"].asString(); if(!valueAccessKeysAccessKey["CreateDate"].isNull()) accessKeysObject.createDate = valueAccessKeysAccessKey["CreateDate"].asString(); accessKeys_.push_back(accessKeysObject); diff --git a/ram/src/model/ListEntitiesForPolicyRequest.cc b/ram/src/model/ListEntitiesForPolicyRequest.cc index f785ce1fd..2ae3c5372 100644 --- a/ram/src/model/ListEntitiesForPolicyRequest.cc +++ b/ram/src/model/ListEntitiesForPolicyRequest.cc @@ -1,51 +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::Ram::Model::ListEntitiesForPolicyRequest; - -ListEntitiesForPolicyRequest::ListEntitiesForPolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListEntitiesForPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ListEntitiesForPolicyRequest::~ListEntitiesForPolicyRequest() -{} - -std::string ListEntitiesForPolicyRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListEntitiesForPolicyRequest; + +ListEntitiesForPolicyRequest::ListEntitiesForPolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListEntitiesForPolicy") { + setMethod(HttpRequest::Method::Post); } -void ListEntitiesForPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +ListEntitiesForPolicyRequest::~ListEntitiesForPolicyRequest() {} + +std::string ListEntitiesForPolicyRequest::getPolicyType() const { + return policyType_; } -std::string ListEntitiesForPolicyRequest::getPolicyName()const -{ - return policyName_; +void ListEntitiesForPolicyRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void ListEntitiesForPolicyRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string ListEntitiesForPolicyRequest::getPolicyName() const { + return policyName_; +} + +void ListEntitiesForPolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/ListEntitiesForPolicyResult.cc b/ram/src/model/ListEntitiesForPolicyResult.cc index e053b90f0..32767ce03 100644 --- a/ram/src/model/ListEntitiesForPolicyResult.cc +++ b/ram/src/model/ListEntitiesForPolicyResult.cc @@ -51,36 +51,36 @@ void ListEntitiesForPolicyResult::parse(const std::string &payload) groupsObject.attachDate = valueGroupsGroup["AttachDate"].asString(); groups_.push_back(groupsObject); } - auto allUsersNode = value["Users"]["User"]; - for (auto valueUsersUser : allUsersNode) - { - User usersObject; - if(!valueUsersUser["UserId"].isNull()) - usersObject.userId = valueUsersUser["UserId"].asString(); - if(!valueUsersUser["UserName"].isNull()) - usersObject.userName = valueUsersUser["UserName"].asString(); - if(!valueUsersUser["DisplayName"].isNull()) - usersObject.displayName = valueUsersUser["DisplayName"].asString(); - if(!valueUsersUser["AttachDate"].isNull()) - usersObject.attachDate = valueUsersUser["AttachDate"].asString(); - users_.push_back(usersObject); - } auto allRolesNode = value["Roles"]["Role"]; for (auto valueRolesRole : allRolesNode) { Role rolesObject; - if(!valueRolesRole["RoleId"].isNull()) - rolesObject.roleId = valueRolesRole["RoleId"].asString(); - if(!valueRolesRole["RoleName"].isNull()) - rolesObject.roleName = valueRolesRole["RoleName"].asString(); - if(!valueRolesRole["Arn"].isNull()) - rolesObject.arn = valueRolesRole["Arn"].asString(); if(!valueRolesRole["Description"].isNull()) rolesObject.description = valueRolesRole["Description"].asString(); + if(!valueRolesRole["RoleName"].isNull()) + rolesObject.roleName = valueRolesRole["RoleName"].asString(); if(!valueRolesRole["AttachDate"].isNull()) rolesObject.attachDate = valueRolesRole["AttachDate"].asString(); + if(!valueRolesRole["Arn"].isNull()) + rolesObject.arn = valueRolesRole["Arn"].asString(); + if(!valueRolesRole["RoleId"].isNull()) + rolesObject.roleId = valueRolesRole["RoleId"].asString(); roles_.push_back(rolesObject); } + auto allUsersNode = value["Users"]["User"]; + for (auto valueUsersUser : allUsersNode) + { + User usersObject; + if(!valueUsersUser["DisplayName"].isNull()) + usersObject.displayName = valueUsersUser["DisplayName"].asString(); + if(!valueUsersUser["UserId"].isNull()) + usersObject.userId = valueUsersUser["UserId"].asString(); + if(!valueUsersUser["UserName"].isNull()) + usersObject.userName = valueUsersUser["UserName"].asString(); + if(!valueUsersUser["AttachDate"].isNull()) + usersObject.attachDate = valueUsersUser["AttachDate"].asString(); + users_.push_back(usersObject); + } } diff --git a/ram/src/model/ListGroupsForUserRequest.cc b/ram/src/model/ListGroupsForUserRequest.cc index 187c7ddf8..df77d9914 100644 --- a/ram/src/model/ListGroupsForUserRequest.cc +++ b/ram/src/model/ListGroupsForUserRequest.cc @@ -1,40 +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::Ram::Model::ListGroupsForUserRequest; - -ListGroupsForUserRequest::ListGroupsForUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListGroupsForUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ListGroupsForUserRequest::~ListGroupsForUserRequest() -{} - -std::string ListGroupsForUserRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListGroupsForUserRequest; + +ListGroupsForUserRequest::ListGroupsForUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListGroupsForUser") { + setMethod(HttpRequest::Method::Post); } -void ListGroupsForUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +ListGroupsForUserRequest::~ListGroupsForUserRequest() {} + +std::string ListGroupsForUserRequest::getUserName() const { + return userName_; +} + +void ListGroupsForUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/ListGroupsForUserResult.cc b/ram/src/model/ListGroupsForUserResult.cc index f95e16bfa..77387bd76 100644 --- a/ram/src/model/ListGroupsForUserResult.cc +++ b/ram/src/model/ListGroupsForUserResult.cc @@ -43,6 +43,8 @@ void ListGroupsForUserResult::parse(const std::string &payload) for (auto valueGroupsGroup : allGroupsNode) { Group groupsObject; + if(!valueGroupsGroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsGroup["GroupId"].asString(); if(!valueGroupsGroup["GroupName"].isNull()) groupsObject.groupName = valueGroupsGroup["GroupName"].asString(); if(!valueGroupsGroup["Comments"].isNull()) diff --git a/ram/src/model/ListGroupsRequest.cc b/ram/src/model/ListGroupsRequest.cc index c62474e71..edc6e1a07 100644 --- a/ram/src/model/ListGroupsRequest.cc +++ b/ram/src/model/ListGroupsRequest.cc @@ -1,51 +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::Ram::Model::ListGroupsRequest; - -ListGroupsRequest::ListGroupsRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListGroupsRequest::~ListGroupsRequest() -{} - -std::string ListGroupsRequest::getMarker()const -{ - return marker_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListGroupsRequest; + +ListGroupsRequest::ListGroupsRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListGroups") { + setMethod(HttpRequest::Method::Post); } -void ListGroupsRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +ListGroupsRequest::~ListGroupsRequest() {} + +std::string ListGroupsRequest::getMarker() const { + return marker_; } -int ListGroupsRequest::getMaxItems()const -{ - return maxItems_; +void ListGroupsRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); } -void ListGroupsRequest::setMaxItems(int maxItems) -{ - maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); +int ListGroupsRequest::getMaxItems() const { + return maxItems_; +} + +void ListGroupsRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); } diff --git a/ram/src/model/ListGroupsResult.cc b/ram/src/model/ListGroupsResult.cc index 6313afa2c..e299d669d 100644 --- a/ram/src/model/ListGroupsResult.cc +++ b/ram/src/model/ListGroupsResult.cc @@ -43,14 +43,16 @@ void ListGroupsResult::parse(const std::string &payload) for (auto valueGroupsGroup : allGroupsNode) { Group groupsObject; + 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(); - if(!valueGroupsGroup["UpdateDate"].isNull()) - groupsObject.updateDate = valueGroupsGroup["UpdateDate"].asString(); groups_.push_back(groupsObject); } if(!value["IsTruncated"].isNull()) diff --git a/ram/src/model/ListPoliciesForGroupRequest.cc b/ram/src/model/ListPoliciesForGroupRequest.cc index 1163a456d..9f5d882aa 100644 --- a/ram/src/model/ListPoliciesForGroupRequest.cc +++ b/ram/src/model/ListPoliciesForGroupRequest.cc @@ -1,40 +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::Ram::Model::ListPoliciesForGroupRequest; - -ListPoliciesForGroupRequest::ListPoliciesForGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPoliciesForGroupRequest::~ListPoliciesForGroupRequest() -{} - -std::string ListPoliciesForGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListPoliciesForGroupRequest; + +ListPoliciesForGroupRequest::ListPoliciesForGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForGroup") { + setMethod(HttpRequest::Method::Post); } -void ListPoliciesForGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +ListPoliciesForGroupRequest::~ListPoliciesForGroupRequest() {} + +std::string ListPoliciesForGroupRequest::getGroupName() const { + return groupName_; +} + +void ListPoliciesForGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } diff --git a/ram/src/model/ListPoliciesForGroupResult.cc b/ram/src/model/ListPoliciesForGroupResult.cc index 7440367ff..ed6efa0dd 100644 --- a/ram/src/model/ListPoliciesForGroupResult.cc +++ b/ram/src/model/ListPoliciesForGroupResult.cc @@ -43,16 +43,16 @@ void ListPoliciesForGroupResult::parse(const std::string &payload) for (auto valuePoliciesPolicy : allPoliciesNode) { Policy policiesObject; - if(!valuePoliciesPolicy["PolicyName"].isNull()) - policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); - if(!valuePoliciesPolicy["PolicyType"].isNull()) - policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); - if(!valuePoliciesPolicy["Description"].isNull()) - policiesObject.description = valuePoliciesPolicy["Description"].asString(); if(!valuePoliciesPolicy["DefaultVersion"].isNull()) policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString(); + if(!valuePoliciesPolicy["Description"].isNull()) + policiesObject.description = valuePoliciesPolicy["Description"].asString(); + if(!valuePoliciesPolicy["PolicyName"].isNull()) + policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); if(!valuePoliciesPolicy["AttachDate"].isNull()) policiesObject.attachDate = valuePoliciesPolicy["AttachDate"].asString(); + if(!valuePoliciesPolicy["PolicyType"].isNull()) + policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); policies_.push_back(policiesObject); } diff --git a/ram/src/model/ListPoliciesForRoleRequest.cc b/ram/src/model/ListPoliciesForRoleRequest.cc index 1e6cff06e..13b3cd0b0 100644 --- a/ram/src/model/ListPoliciesForRoleRequest.cc +++ b/ram/src/model/ListPoliciesForRoleRequest.cc @@ -1,40 +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::Ram::Model::ListPoliciesForRoleRequest; - -ListPoliciesForRoleRequest::ListPoliciesForRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForRole") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPoliciesForRoleRequest::~ListPoliciesForRoleRequest() -{} - -std::string ListPoliciesForRoleRequest::getRoleName()const -{ - return roleName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListPoliciesForRoleRequest; + +ListPoliciesForRoleRequest::ListPoliciesForRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForRole") { + setMethod(HttpRequest::Method::Post); } -void ListPoliciesForRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +ListPoliciesForRoleRequest::~ListPoliciesForRoleRequest() {} + +std::string ListPoliciesForRoleRequest::getRoleName() const { + return roleName_; +} + +void ListPoliciesForRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } diff --git a/ram/src/model/ListPoliciesForRoleResult.cc b/ram/src/model/ListPoliciesForRoleResult.cc index 0e1d9e99a..9eea58148 100644 --- a/ram/src/model/ListPoliciesForRoleResult.cc +++ b/ram/src/model/ListPoliciesForRoleResult.cc @@ -43,16 +43,16 @@ void ListPoliciesForRoleResult::parse(const std::string &payload) for (auto valuePoliciesPolicy : allPoliciesNode) { Policy policiesObject; - if(!valuePoliciesPolicy["PolicyName"].isNull()) - policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); - if(!valuePoliciesPolicy["PolicyType"].isNull()) - policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); - if(!valuePoliciesPolicy["Description"].isNull()) - policiesObject.description = valuePoliciesPolicy["Description"].asString(); if(!valuePoliciesPolicy["DefaultVersion"].isNull()) policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString(); + if(!valuePoliciesPolicy["Description"].isNull()) + policiesObject.description = valuePoliciesPolicy["Description"].asString(); + if(!valuePoliciesPolicy["PolicyName"].isNull()) + policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); if(!valuePoliciesPolicy["AttachDate"].isNull()) policiesObject.attachDate = valuePoliciesPolicy["AttachDate"].asString(); + if(!valuePoliciesPolicy["PolicyType"].isNull()) + policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); policies_.push_back(policiesObject); } diff --git a/ram/src/model/ListPoliciesForUserRequest.cc b/ram/src/model/ListPoliciesForUserRequest.cc index 51563dc4f..b4523bf69 100644 --- a/ram/src/model/ListPoliciesForUserRequest.cc +++ b/ram/src/model/ListPoliciesForUserRequest.cc @@ -1,40 +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::Ram::Model::ListPoliciesForUserRequest; - -ListPoliciesForUserRequest::ListPoliciesForUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPoliciesForUserRequest::~ListPoliciesForUserRequest() -{} - -std::string ListPoliciesForUserRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListPoliciesForUserRequest; + +ListPoliciesForUserRequest::ListPoliciesForUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListPoliciesForUser") { + setMethod(HttpRequest::Method::Post); } -void ListPoliciesForUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +ListPoliciesForUserRequest::~ListPoliciesForUserRequest() {} + +std::string ListPoliciesForUserRequest::getUserName() const { + return userName_; +} + +void ListPoliciesForUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/ListPoliciesForUserResult.cc b/ram/src/model/ListPoliciesForUserResult.cc index 9435adb58..a1299df6a 100644 --- a/ram/src/model/ListPoliciesForUserResult.cc +++ b/ram/src/model/ListPoliciesForUserResult.cc @@ -43,16 +43,16 @@ void ListPoliciesForUserResult::parse(const std::string &payload) for (auto valuePoliciesPolicy : allPoliciesNode) { Policy policiesObject; - if(!valuePoliciesPolicy["PolicyName"].isNull()) - policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); - if(!valuePoliciesPolicy["PolicyType"].isNull()) - policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); - if(!valuePoliciesPolicy["Description"].isNull()) - policiesObject.description = valuePoliciesPolicy["Description"].asString(); if(!valuePoliciesPolicy["DefaultVersion"].isNull()) policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString(); + if(!valuePoliciesPolicy["Description"].isNull()) + policiesObject.description = valuePoliciesPolicy["Description"].asString(); + if(!valuePoliciesPolicy["PolicyName"].isNull()) + policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); if(!valuePoliciesPolicy["AttachDate"].isNull()) policiesObject.attachDate = valuePoliciesPolicy["AttachDate"].asString(); + if(!valuePoliciesPolicy["PolicyType"].isNull()) + policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); policies_.push_back(policiesObject); } diff --git a/ram/src/model/ListPoliciesRequest.cc b/ram/src/model/ListPoliciesRequest.cc index bc7a2ad3c..07cac7c3b 100644 --- a/ram/src/model/ListPoliciesRequest.cc +++ b/ram/src/model/ListPoliciesRequest.cc @@ -1,62 +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. - */ - -#include - -using AlibabaCloud::Ram::Model::ListPoliciesRequest; - -ListPoliciesRequest::ListPoliciesRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPolicies") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPoliciesRequest::~ListPoliciesRequest() -{} - -std::string ListPoliciesRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListPoliciesRequest; + +ListPoliciesRequest::ListPoliciesRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListPolicies") { + setMethod(HttpRequest::Method::Post); } -void ListPoliciesRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +ListPoliciesRequest::~ListPoliciesRequest() {} + +std::string ListPoliciesRequest::getLanguage() const { + return language_; } -std::string ListPoliciesRequest::getMarker()const -{ - return marker_; +void ListPoliciesRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); } -void ListPoliciesRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +std::vector ListPoliciesRequest::getTag() const { + return tag_; } -int ListPoliciesRequest::getMaxItems()const -{ - return maxItems_; +void ListPoliciesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } } -void ListPoliciesRequest::setMaxItems(int maxItems) -{ - maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); +std::string ListPoliciesRequest::getPolicyType() const { + return policyType_; +} + +void ListPoliciesRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); +} + +std::string ListPoliciesRequest::getMarker() const { + return marker_; +} + +void ListPoliciesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListPoliciesRequest::getMaxItems() const { + return maxItems_; +} + +void ListPoliciesRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); } diff --git a/ram/src/model/ListPoliciesResult.cc b/ram/src/model/ListPoliciesResult.cc index 11cf06310..cc64fc7b9 100644 --- a/ram/src/model/ListPoliciesResult.cc +++ b/ram/src/model/ListPoliciesResult.cc @@ -43,20 +43,30 @@ void ListPoliciesResult::parse(const std::string &payload) for (auto valuePoliciesPolicy : allPoliciesNode) { Policy policiesObject; - if(!valuePoliciesPolicy["PolicyName"].isNull()) - policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); - if(!valuePoliciesPolicy["PolicyType"].isNull()) - policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); - if(!valuePoliciesPolicy["Description"].isNull()) - policiesObject.description = valuePoliciesPolicy["Description"].asString(); if(!valuePoliciesPolicy["DefaultVersion"].isNull()) policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString(); - if(!valuePoliciesPolicy["CreateDate"].isNull()) - policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString(); + if(!valuePoliciesPolicy["Description"].isNull()) + policiesObject.description = valuePoliciesPolicy["Description"].asString(); if(!valuePoliciesPolicy["UpdateDate"].isNull()) policiesObject.updateDate = valuePoliciesPolicy["UpdateDate"].asString(); if(!valuePoliciesPolicy["AttachmentCount"].isNull()) policiesObject.attachmentCount = std::stoi(valuePoliciesPolicy["AttachmentCount"].asString()); + if(!valuePoliciesPolicy["PolicyName"].isNull()) + policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString(); + if(!valuePoliciesPolicy["CreateDate"].isNull()) + policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString(); + if(!valuePoliciesPolicy["PolicyType"].isNull()) + policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString(); + auto allTagsNode = valuePoliciesPolicy["Tags"]["Tag"]; + for (auto valuePoliciesPolicyTagsTag : allTagsNode) + { + Policy::Tag tagsObject; + if(!valuePoliciesPolicyTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valuePoliciesPolicyTagsTag["TagKey"].asString(); + if(!valuePoliciesPolicyTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valuePoliciesPolicyTagsTag["TagValue"].asString(); + policiesObject.tags.push_back(tagsObject); + } policies_.push_back(policiesObject); } if(!value["IsTruncated"].isNull()) diff --git a/ram/src/model/ListPolicyVersionsRequest.cc b/ram/src/model/ListPolicyVersionsRequest.cc index 248de95bd..8941274d7 100644 --- a/ram/src/model/ListPolicyVersionsRequest.cc +++ b/ram/src/model/ListPolicyVersionsRequest.cc @@ -1,51 +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::Ram::Model::ListPolicyVersionsRequest; - -ListPolicyVersionsRequest::ListPolicyVersionsRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPolicyVersions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPolicyVersionsRequest::~ListPolicyVersionsRequest() -{} - -std::string ListPolicyVersionsRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListPolicyVersionsRequest; + +ListPolicyVersionsRequest::ListPolicyVersionsRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListPolicyVersions") { + setMethod(HttpRequest::Method::Post); } -void ListPolicyVersionsRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +ListPolicyVersionsRequest::~ListPolicyVersionsRequest() {} + +std::string ListPolicyVersionsRequest::getPolicyType() const { + return policyType_; } -std::string ListPolicyVersionsRequest::getPolicyName()const -{ - return policyName_; +void ListPolicyVersionsRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void ListPolicyVersionsRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string ListPolicyVersionsRequest::getPolicyName() const { + return policyName_; +} + +void ListPolicyVersionsRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/ListPolicyVersionsResult.cc b/ram/src/model/ListPolicyVersionsResult.cc index 7945d05f4..b495fd275 100644 --- a/ram/src/model/ListPolicyVersionsResult.cc +++ b/ram/src/model/ListPolicyVersionsResult.cc @@ -43,12 +43,12 @@ void ListPolicyVersionsResult::parse(const std::string &payload) for (auto valuePolicyVersionsPolicyVersion : allPolicyVersionsNode) { PolicyVersion policyVersionsObject; - if(!valuePolicyVersionsPolicyVersion["VersionId"].isNull()) - policyVersionsObject.versionId = valuePolicyVersionsPolicyVersion["VersionId"].asString(); if(!valuePolicyVersionsPolicyVersion["IsDefaultVersion"].isNull()) policyVersionsObject.isDefaultVersion = valuePolicyVersionsPolicyVersion["IsDefaultVersion"].asString() == "true"; if(!valuePolicyVersionsPolicyVersion["PolicyDocument"].isNull()) policyVersionsObject.policyDocument = valuePolicyVersionsPolicyVersion["PolicyDocument"].asString(); + if(!valuePolicyVersionsPolicyVersion["VersionId"].isNull()) + policyVersionsObject.versionId = valuePolicyVersionsPolicyVersion["VersionId"].asString(); if(!valuePolicyVersionsPolicyVersion["CreateDate"].isNull()) policyVersionsObject.createDate = valuePolicyVersionsPolicyVersion["CreateDate"].asString(); policyVersions_.push_back(policyVersionsObject); diff --git a/ram/src/model/ListPublicKeysRequest.cc b/ram/src/model/ListPublicKeysRequest.cc deleted file mode 100644 index 374703840..000000000 --- a/ram/src/model/ListPublicKeysRequest.cc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::ListPublicKeysRequest; - -ListPublicKeysRequest::ListPublicKeysRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListPublicKeys") -{} - -ListPublicKeysRequest::~ListPublicKeysRequest() -{} - -std::string ListPublicKeysRequest::getUserName()const -{ - return userName_; -} - -void ListPublicKeysRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ram/src/model/ListPublicKeysResult.cc b/ram/src/model/ListPublicKeysResult.cc deleted file mode 100644 index 95a8ecf4f..000000000 --- a/ram/src/model/ListPublicKeysResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ram; -using namespace AlibabaCloud::Ram::Model; - -ListPublicKeysResult::ListPublicKeysResult() : - ServiceResult() -{} - -ListPublicKeysResult::ListPublicKeysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListPublicKeysResult::~ListPublicKeysResult() -{} - -void ListPublicKeysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allPublicKeys = value["PublicKeys"]["PublicKey"]; - for (auto value : allPublicKeys) - { - PublicKey publicKeysObject; - if(!value["PublicKeyId"].isNull()) - publicKeysObject.publicKeyId = value["PublicKeyId"].asString(); - if(!value["Status"].isNull()) - publicKeysObject.status = value["Status"].asString(); - if(!value["CreateDate"].isNull()) - publicKeysObject.createDate = value["CreateDate"].asString(); - publicKeys_.push_back(publicKeysObject); - } - -} - -std::vector ListPublicKeysResult::getPublicKeys()const -{ - return publicKeys_; -} - diff --git a/ram/src/model/ListRolesRequest.cc b/ram/src/model/ListRolesRequest.cc index eb85b3055..8db7dd11f 100644 --- a/ram/src/model/ListRolesRequest.cc +++ b/ram/src/model/ListRolesRequest.cc @@ -1,51 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::ListRolesRequest; - -ListRolesRequest::ListRolesRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListRoles") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRolesRequest::~ListRolesRequest() -{} - -std::string ListRolesRequest::getMarker()const -{ - return marker_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListRolesRequest; + +ListRolesRequest::ListRolesRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListRoles") { + setMethod(HttpRequest::Method::Post); } -void ListRolesRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +ListRolesRequest::~ListRolesRequest() {} + +std::vector ListRolesRequest::getTag() const { + return tag_; } -int ListRolesRequest::getMaxItems()const -{ - return maxItems_; +void ListRolesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } } -void ListRolesRequest::setMaxItems(int maxItems) -{ - maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); +std::string ListRolesRequest::getMarker() const { + return marker_; +} + +void ListRolesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +int ListRolesRequest::getMaxItems() const { + return maxItems_; +} + +void ListRolesRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); } diff --git a/ram/src/model/ListRolesResult.cc b/ram/src/model/ListRolesResult.cc index de020b5e9..a62e4e336 100644 --- a/ram/src/model/ListRolesResult.cc +++ b/ram/src/model/ListRolesResult.cc @@ -43,20 +43,30 @@ void ListRolesResult::parse(const std::string &payload) for (auto valueRolesRole : allRolesNode) { Role rolesObject; - if(!valueRolesRole["RoleId"].isNull()) - rolesObject.roleId = valueRolesRole["RoleId"].asString(); - if(!valueRolesRole["RoleName"].isNull()) - rolesObject.roleName = valueRolesRole["RoleName"].asString(); - if(!valueRolesRole["Arn"].isNull()) - rolesObject.arn = valueRolesRole["Arn"].asString(); if(!valueRolesRole["Description"].isNull()) rolesObject.description = valueRolesRole["Description"].asString(); - if(!valueRolesRole["CreateDate"].isNull()) - rolesObject.createDate = valueRolesRole["CreateDate"].asString(); if(!valueRolesRole["UpdateDate"].isNull()) rolesObject.updateDate = valueRolesRole["UpdateDate"].asString(); if(!valueRolesRole["MaxSessionDuration"].isNull()) rolesObject.maxSessionDuration = std::stol(valueRolesRole["MaxSessionDuration"].asString()); + if(!valueRolesRole["RoleName"].isNull()) + rolesObject.roleName = valueRolesRole["RoleName"].asString(); + if(!valueRolesRole["CreateDate"].isNull()) + rolesObject.createDate = valueRolesRole["CreateDate"].asString(); + if(!valueRolesRole["RoleId"].isNull()) + rolesObject.roleId = valueRolesRole["RoleId"].asString(); + if(!valueRolesRole["Arn"].isNull()) + rolesObject.arn = valueRolesRole["Arn"].asString(); + auto allTagsNode = valueRolesRole["Tags"]["Tag"]; + for (auto valueRolesRoleTagsTag : allTagsNode) + { + Role::Tag tagsObject; + if(!valueRolesRoleTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueRolesRoleTagsTag["TagKey"].asString(); + if(!valueRolesRoleTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueRolesRoleTagsTag["TagValue"].asString(); + rolesObject.tags.push_back(tagsObject); + } roles_.push_back(rolesObject); } if(!value["IsTruncated"].isNull()) diff --git a/ram/src/model/ListTagResourcesRequest.cc b/ram/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..a04e0487e --- /dev/null +++ b/ram/src/model/ListTagResourcesRequest.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::Ram::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceNames() const { + return resourceNames_; +} + +void ListTagResourcesRequest::setResourceNames(const std::vector &resourceNames) { + resourceNames_ = resourceNames; + for(int dep1 = 0; dep1 != resourceNames.size(); dep1++) { + setParameter(std::string("ResourceNames") + "." + std::to_string(dep1 + 1), resourceNames[dep1]); + } +} + +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++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ram/src/model/ListTagResourcesResult.cc b/ram/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..14e8cb0c6 --- /dev/null +++ b/ram/src/model/ListTagResourcesResult.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::Ram; +using namespace AlibabaCloud::Ram::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"]["TagResourcesItem"]; + for (auto valueTagResourcesTagResourcesItem : allTagResourcesNode) + { + TagResourcesItem tagResourcesObject; + if(!valueTagResourcesTagResourcesItem["ResourceName"].isNull()) + tagResourcesObject.resourceName = valueTagResourcesTagResourcesItem["ResourceName"].asString(); + if(!valueTagResourcesTagResourcesItem["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResourcesItem["ResourceType"].asString(); + if(!valueTagResourcesTagResourcesItem["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResourcesItem["TagKey"].asString(); + if(!valueTagResourcesTagResourcesItem["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResourcesItem["TagValue"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/ram/src/model/ListUsersForGroupRequest.cc b/ram/src/model/ListUsersForGroupRequest.cc index 210de6320..08d19531d 100644 --- a/ram/src/model/ListUsersForGroupRequest.cc +++ b/ram/src/model/ListUsersForGroupRequest.cc @@ -1,62 +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::Ram::Model::ListUsersForGroupRequest; - -ListUsersForGroupRequest::ListUsersForGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListUsersForGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUsersForGroupRequest::~ListUsersForGroupRequest() -{} - -std::string ListUsersForGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListUsersForGroupRequest; + +ListUsersForGroupRequest::ListUsersForGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListUsersForGroup") { + setMethod(HttpRequest::Method::Post); } -void ListUsersForGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +ListUsersForGroupRequest::~ListUsersForGroupRequest() {} + +std::string ListUsersForGroupRequest::getGroupName() const { + return groupName_; } -std::string ListUsersForGroupRequest::getMarker()const -{ - return marker_; +void ListUsersForGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void ListUsersForGroupRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +std::string ListUsersForGroupRequest::getMarker() const { + return marker_; } -int ListUsersForGroupRequest::getMaxItems()const -{ - return maxItems_; +void ListUsersForGroupRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); } -void ListUsersForGroupRequest::setMaxItems(int maxItems) -{ - maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); +int ListUsersForGroupRequest::getMaxItems() const { + return maxItems_; +} + +void ListUsersForGroupRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); } diff --git a/ram/src/model/ListUsersForGroupResult.cc b/ram/src/model/ListUsersForGroupResult.cc index 5e2437f2d..d8416bf43 100644 --- a/ram/src/model/ListUsersForGroupResult.cc +++ b/ram/src/model/ListUsersForGroupResult.cc @@ -43,12 +43,12 @@ void ListUsersForGroupResult::parse(const std::string &payload) for (auto valueUsersUser : allUsersNode) { User usersObject; - if(!valueUsersUser["UserName"].isNull()) - usersObject.userName = valueUsersUser["UserName"].asString(); if(!valueUsersUser["DisplayName"].isNull()) usersObject.displayName = valueUsersUser["DisplayName"].asString(); if(!valueUsersUser["JoinDate"].isNull()) usersObject.joinDate = valueUsersUser["JoinDate"].asString(); + if(!valueUsersUser["UserName"].isNull()) + usersObject.userName = valueUsersUser["UserName"].asString(); users_.push_back(usersObject); } if(!value["IsTruncated"].isNull()) diff --git a/ram/src/model/ListUsersRequest.cc b/ram/src/model/ListUsersRequest.cc index bc7f3b717..865de353d 100644 --- a/ram/src/model/ListUsersRequest.cc +++ b/ram/src/model/ListUsersRequest.cc @@ -1,51 +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::Ram::Model::ListUsersRequest; - -ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUsersRequest::~ListUsersRequest() -{} - -std::string ListUsersRequest::getMarker()const -{ - return marker_; + */ + +#include + +using AlibabaCloud::Ram::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListUsers") { + setMethod(HttpRequest::Method::Post); } -void ListUsersRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +ListUsersRequest::~ListUsersRequest() {} + +std::string ListUsersRequest::getMarker() const { + return marker_; } -int ListUsersRequest::getMaxItems()const -{ - return maxItems_; +void ListUsersRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); } -void ListUsersRequest::setMaxItems(int maxItems) -{ - maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); +int ListUsersRequest::getMaxItems() const { + return maxItems_; +} + +void ListUsersRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); } diff --git a/ram/src/model/ListUsersResult.cc b/ram/src/model/ListUsersResult.cc index 28c942cf7..6e72b58eb 100644 --- a/ram/src/model/ListUsersResult.cc +++ b/ram/src/model/ListUsersResult.cc @@ -43,22 +43,22 @@ void ListUsersResult::parse(const std::string &payload) for (auto valueUsersUser : allUsersNode) { User usersObject; - if(!valueUsersUser["UserId"].isNull()) - usersObject.userId = valueUsersUser["UserId"].asString(); - if(!valueUsersUser["UserName"].isNull()) - usersObject.userName = valueUsersUser["UserName"].asString(); if(!valueUsersUser["DisplayName"].isNull()) usersObject.displayName = valueUsersUser["DisplayName"].asString(); - if(!valueUsersUser["MobilePhone"].isNull()) - usersObject.mobilePhone = valueUsersUser["MobilePhone"].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["CreateDate"].isNull()) usersObject.createDate = valueUsersUser["CreateDate"].asString(); - if(!valueUsersUser["UpdateDate"].isNull()) - usersObject.updateDate = valueUsersUser["UpdateDate"].asString(); + if(!valueUsersUser["UserName"].isNull()) + usersObject.userName = valueUsersUser["UserName"].asString(); users_.push_back(usersObject); } if(!value["IsTruncated"].isNull()) diff --git a/ram/src/model/ListVirtualMFADevicesRequest.cc b/ram/src/model/ListVirtualMFADevicesRequest.cc index 3e8984316..c16413d83 100644 --- a/ram/src/model/ListVirtualMFADevicesRequest.cc +++ b/ram/src/model/ListVirtualMFADevicesRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::ListVirtualMFADevicesRequest; - -ListVirtualMFADevicesRequest::ListVirtualMFADevicesRequest() : - RpcServiceRequest("ram", "2015-05-01", "ListVirtualMFADevices") -{ - setMethod(HttpRequest::Method::Post); -} - -ListVirtualMFADevicesRequest::~ListVirtualMFADevicesRequest() -{} - + */ + +#include + +using AlibabaCloud::Ram::Model::ListVirtualMFADevicesRequest; + +ListVirtualMFADevicesRequest::ListVirtualMFADevicesRequest() + : RpcServiceRequest("ram", "2015-05-01", "ListVirtualMFADevices") { + setMethod(HttpRequest::Method::Post); +} + +ListVirtualMFADevicesRequest::~ListVirtualMFADevicesRequest() {} + diff --git a/ram/src/model/ListVirtualMFADevicesResult.cc b/ram/src/model/ListVirtualMFADevicesResult.cc index 133a828ae..3c86a4b57 100644 --- a/ram/src/model/ListVirtualMFADevicesResult.cc +++ b/ram/src/model/ListVirtualMFADevicesResult.cc @@ -48,12 +48,12 @@ void ListVirtualMFADevicesResult::parse(const std::string &payload) if(!valueVirtualMFADevicesVirtualMFADevice["ActivateDate"].isNull()) virtualMFADevicesObject.activateDate = valueVirtualMFADevicesVirtualMFADevice["ActivateDate"].asString(); auto userNode = value["User"]; + if(!userNode["DisplayName"].isNull()) + virtualMFADevicesObject.user.displayName = userNode["DisplayName"].asString(); if(!userNode["UserId"].isNull()) virtualMFADevicesObject.user.userId = userNode["UserId"].asString(); if(!userNode["UserName"].isNull()) virtualMFADevicesObject.user.userName = userNode["UserName"].asString(); - if(!userNode["DisplayName"].isNull()) - virtualMFADevicesObject.user.displayName = userNode["DisplayName"].asString(); virtualMFADevices_.push_back(virtualMFADevicesObject); } diff --git a/ram/src/model/RemoveUserFromGroupRequest.cc b/ram/src/model/RemoveUserFromGroupRequest.cc index 8358dc604..54c909250 100644 --- a/ram/src/model/RemoveUserFromGroupRequest.cc +++ b/ram/src/model/RemoveUserFromGroupRequest.cc @@ -1,51 +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::Ram::Model::RemoveUserFromGroupRequest; - -RemoveUserFromGroupRequest::RemoveUserFromGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "RemoveUserFromGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveUserFromGroupRequest::~RemoveUserFromGroupRequest() -{} - -std::string RemoveUserFromGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::RemoveUserFromGroupRequest; + +RemoveUserFromGroupRequest::RemoveUserFromGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "RemoveUserFromGroup") { + setMethod(HttpRequest::Method::Post); } -void RemoveUserFromGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +RemoveUserFromGroupRequest::~RemoveUserFromGroupRequest() {} + +std::string RemoveUserFromGroupRequest::getGroupName() const { + return groupName_; } -std::string RemoveUserFromGroupRequest::getUserName()const -{ - return userName_; +void RemoveUserFromGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void RemoveUserFromGroupRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string RemoveUserFromGroupRequest::getUserName() const { + return userName_; +} + +void RemoveUserFromGroupRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/SetAccountAliasRequest.cc b/ram/src/model/SetAccountAliasRequest.cc index 8688592f5..176625863 100644 --- a/ram/src/model/SetAccountAliasRequest.cc +++ b/ram/src/model/SetAccountAliasRequest.cc @@ -1,40 +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::Ram::Model::SetAccountAliasRequest; - -SetAccountAliasRequest::SetAccountAliasRequest() : - RpcServiceRequest("ram", "2015-05-01", "SetAccountAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -SetAccountAliasRequest::~SetAccountAliasRequest() -{} - -std::string SetAccountAliasRequest::getAccountAlias()const -{ - return accountAlias_; + */ + +#include + +using AlibabaCloud::Ram::Model::SetAccountAliasRequest; + +SetAccountAliasRequest::SetAccountAliasRequest() + : RpcServiceRequest("ram", "2015-05-01", "SetAccountAlias") { + setMethod(HttpRequest::Method::Post); } -void SetAccountAliasRequest::setAccountAlias(const std::string& accountAlias) -{ - accountAlias_ = accountAlias; - setParameter("AccountAlias", accountAlias); +SetAccountAliasRequest::~SetAccountAliasRequest() {} + +std::string SetAccountAliasRequest::getAccountAlias() const { + return accountAlias_; +} + +void SetAccountAliasRequest::setAccountAlias(const std::string &accountAlias) { + accountAlias_ = accountAlias; + setParameter(std::string("AccountAlias"), accountAlias); } diff --git a/ram/src/model/SetDefaultPolicyVersionRequest.cc b/ram/src/model/SetDefaultPolicyVersionRequest.cc index f8bbd1e3c..07dec5252 100644 --- a/ram/src/model/SetDefaultPolicyVersionRequest.cc +++ b/ram/src/model/SetDefaultPolicyVersionRequest.cc @@ -1,51 +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::Ram::Model::SetDefaultPolicyVersionRequest; - -SetDefaultPolicyVersionRequest::SetDefaultPolicyVersionRequest() : - RpcServiceRequest("ram", "2015-05-01", "SetDefaultPolicyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDefaultPolicyVersionRequest::~SetDefaultPolicyVersionRequest() -{} - -std::string SetDefaultPolicyVersionRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::Ram::Model::SetDefaultPolicyVersionRequest; + +SetDefaultPolicyVersionRequest::SetDefaultPolicyVersionRequest() + : RpcServiceRequest("ram", "2015-05-01", "SetDefaultPolicyVersion") { + setMethod(HttpRequest::Method::Post); } -void SetDefaultPolicyVersionRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +SetDefaultPolicyVersionRequest::~SetDefaultPolicyVersionRequest() {} + +std::string SetDefaultPolicyVersionRequest::getVersionId() const { + return versionId_; } -std::string SetDefaultPolicyVersionRequest::getPolicyName()const -{ - return policyName_; +void SetDefaultPolicyVersionRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void SetDefaultPolicyVersionRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +std::string SetDefaultPolicyVersionRequest::getPolicyName() const { + return policyName_; +} + +void SetDefaultPolicyVersionRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); } diff --git a/ram/src/model/SetPasswordPolicyRequest.cc b/ram/src/model/SetPasswordPolicyRequest.cc index 98b9a7a0e..25d264ae5 100644 --- a/ram/src/model/SetPasswordPolicyRequest.cc +++ b/ram/src/model/SetPasswordPolicyRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::SetPasswordPolicyRequest; - -SetPasswordPolicyRequest::SetPasswordPolicyRequest() : - RpcServiceRequest("ram", "2015-05-01", "SetPasswordPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -SetPasswordPolicyRequest::~SetPasswordPolicyRequest() -{} - -int SetPasswordPolicyRequest::getPasswordReusePrevention()const -{ - return passwordReusePrevention_; + */ + +#include + +using AlibabaCloud::Ram::Model::SetPasswordPolicyRequest; + +SetPasswordPolicyRequest::SetPasswordPolicyRequest() + : RpcServiceRequest("ram", "2015-05-01", "SetPasswordPolicy") { + setMethod(HttpRequest::Method::Post); } -void SetPasswordPolicyRequest::setPasswordReusePrevention(int passwordReusePrevention) -{ - passwordReusePrevention_ = passwordReusePrevention; - setParameter("PasswordReusePrevention", std::to_string(passwordReusePrevention)); +SetPasswordPolicyRequest::~SetPasswordPolicyRequest() {} + +int SetPasswordPolicyRequest::getPasswordReusePrevention() const { + return passwordReusePrevention_; } -bool SetPasswordPolicyRequest::getRequireUppercaseCharacters()const -{ - return requireUppercaseCharacters_; +void SetPasswordPolicyRequest::setPasswordReusePrevention(int passwordReusePrevention) { + passwordReusePrevention_ = passwordReusePrevention; + setParameter(std::string("PasswordReusePrevention"), std::to_string(passwordReusePrevention)); } -void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUppercaseCharacters) -{ - requireUppercaseCharacters_ = requireUppercaseCharacters; - setParameter("RequireUppercaseCharacters", requireUppercaseCharacters ? "true" : "false"); +bool SetPasswordPolicyRequest::getRequireUppercaseCharacters() const { + return requireUppercaseCharacters_; } -int SetPasswordPolicyRequest::getMinimumPasswordLength()const -{ - return minimumPasswordLength_; +void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUppercaseCharacters) { + requireUppercaseCharacters_ = requireUppercaseCharacters; + setParameter(std::string("RequireUppercaseCharacters"), requireUppercaseCharacters ? "true" : "false"); } -void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength) -{ - minimumPasswordLength_ = minimumPasswordLength; - setParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength)); +int SetPasswordPolicyRequest::getMinimumPasswordLength() const { + return minimumPasswordLength_; } -bool SetPasswordPolicyRequest::getRequireNumbers()const -{ - return requireNumbers_; +void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength) { + minimumPasswordLength_ = minimumPasswordLength; + setParameter(std::string("MinimumPasswordLength"), std::to_string(minimumPasswordLength)); } -void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers) -{ - requireNumbers_ = requireNumbers; - setParameter("RequireNumbers", requireNumbers ? "true" : "false"); +bool SetPasswordPolicyRequest::getRequireNumbers() const { + return requireNumbers_; } -bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const -{ - return requireLowercaseCharacters_; +void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers) { + requireNumbers_ = requireNumbers; + setParameter(std::string("RequireNumbers"), requireNumbers ? "true" : "false"); } -void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters) -{ - requireLowercaseCharacters_ = requireLowercaseCharacters; - setParameter("RequireLowercaseCharacters", requireLowercaseCharacters ? "true" : "false"); +bool SetPasswordPolicyRequest::getRequireLowercaseCharacters() const { + return requireLowercaseCharacters_; } -int SetPasswordPolicyRequest::getMaxPasswordAge()const -{ - return maxPasswordAge_; +void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters) { + requireLowercaseCharacters_ = requireLowercaseCharacters; + setParameter(std::string("RequireLowercaseCharacters"), requireLowercaseCharacters ? "true" : "false"); } -void SetPasswordPolicyRequest::setMaxPasswordAge(int maxPasswordAge) -{ - maxPasswordAge_ = maxPasswordAge; - setParameter("MaxPasswordAge", std::to_string(maxPasswordAge)); +int SetPasswordPolicyRequest::getMaxPasswordAge() const { + return maxPasswordAge_; } -int SetPasswordPolicyRequest::getMaxLoginAttemps()const -{ - return maxLoginAttemps_; +void SetPasswordPolicyRequest::setMaxPasswordAge(int maxPasswordAge) { + maxPasswordAge_ = maxPasswordAge; + setParameter(std::string("MaxPasswordAge"), std::to_string(maxPasswordAge)); } -void SetPasswordPolicyRequest::setMaxLoginAttemps(int maxLoginAttemps) -{ - maxLoginAttemps_ = maxLoginAttemps; - setParameter("MaxLoginAttemps", std::to_string(maxLoginAttemps)); +int SetPasswordPolicyRequest::getMaxLoginAttemps() const { + return maxLoginAttemps_; } -bool SetPasswordPolicyRequest::getHardExpiry()const -{ - return hardExpiry_; +void SetPasswordPolicyRequest::setMaxLoginAttemps(int maxLoginAttemps) { + maxLoginAttemps_ = maxLoginAttemps; + setParameter(std::string("MaxLoginAttemps"), std::to_string(maxLoginAttemps)); } -void SetPasswordPolicyRequest::setHardExpiry(bool hardExpiry) -{ - hardExpiry_ = hardExpiry; - setParameter("HardExpiry", hardExpiry ? "true" : "false"); +bool SetPasswordPolicyRequest::getHardExpiry() const { + return hardExpiry_; } -bool SetPasswordPolicyRequest::getRequireSymbols()const -{ - return requireSymbols_; +void SetPasswordPolicyRequest::setHardExpiry(bool hardExpiry) { + hardExpiry_ = hardExpiry; + setParameter(std::string("HardExpiry"), hardExpiry ? "true" : "false"); } -void SetPasswordPolicyRequest::setRequireSymbols(bool requireSymbols) -{ - requireSymbols_ = requireSymbols; - setParameter("RequireSymbols", requireSymbols ? "true" : "false"); +bool SetPasswordPolicyRequest::getRequireSymbols() const { + return requireSymbols_; +} + +void SetPasswordPolicyRequest::setRequireSymbols(bool requireSymbols) { + requireSymbols_ = requireSymbols; + setParameter(std::string("RequireSymbols"), requireSymbols ? "true" : "false"); } diff --git a/ram/src/model/SetPasswordPolicyResult.cc b/ram/src/model/SetPasswordPolicyResult.cc index 9d786197f..2fa1b268f 100644 --- a/ram/src/model/SetPasswordPolicyResult.cc +++ b/ram/src/model/SetPasswordPolicyResult.cc @@ -40,22 +40,22 @@ void SetPasswordPolicyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto passwordPolicyNode = value["PasswordPolicy"]; - if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) - passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString()); - if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) - passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; - if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull()) - passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true"; if(!passwordPolicyNode["RequireNumbers"].isNull()) passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true"; - if(!passwordPolicyNode["RequireSymbols"].isNull()) - passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull()) + passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true"; if(!passwordPolicyNode["HardExpiry"].isNull()) passwordPolicy_.hardExpiry = passwordPolicyNode["HardExpiry"].asString() == "true"; - if(!passwordPolicyNode["MaxPasswordAge"].isNull()) - passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); if(!passwordPolicyNode["PasswordReusePrevention"].isNull()) passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString()); + if(!passwordPolicyNode["RequireSymbols"].isNull()) + passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true"; + if(!passwordPolicyNode["MaxPasswordAge"].isNull()) + passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString()); + 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()); diff --git a/ram/src/model/SetSecurityPreferenceRequest.cc b/ram/src/model/SetSecurityPreferenceRequest.cc index 5382b413c..ded5f3ca0 100644 --- a/ram/src/model/SetSecurityPreferenceRequest.cc +++ b/ram/src/model/SetSecurityPreferenceRequest.cc @@ -1,106 +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::Ram::Model::SetSecurityPreferenceRequest; - -SetSecurityPreferenceRequest::SetSecurityPreferenceRequest() : - RpcServiceRequest("ram", "2015-05-01", "SetSecurityPreference") -{ - setMethod(HttpRequest::Method::Post); -} - -SetSecurityPreferenceRequest::~SetSecurityPreferenceRequest() -{} - -bool SetSecurityPreferenceRequest::getEnableSaveMFATicket()const -{ - return enableSaveMFATicket_; + */ + +#include + +using AlibabaCloud::Ram::Model::SetSecurityPreferenceRequest; + +SetSecurityPreferenceRequest::SetSecurityPreferenceRequest() + : RpcServiceRequest("ram", "2015-05-01", "SetSecurityPreference") { + setMethod(HttpRequest::Method::Post); } -void SetSecurityPreferenceRequest::setEnableSaveMFATicket(bool enableSaveMFATicket) -{ - enableSaveMFATicket_ = enableSaveMFATicket; - setParameter("EnableSaveMFATicket", enableSaveMFATicket ? "true" : "false"); +SetSecurityPreferenceRequest::~SetSecurityPreferenceRequest() {} + +bool SetSecurityPreferenceRequest::getEnableSaveMFATicket() const { + return enableSaveMFATicket_; } -std::string SetSecurityPreferenceRequest::getLoginNetworkMasks()const -{ - return loginNetworkMasks_; +void SetSecurityPreferenceRequest::setEnableSaveMFATicket(bool enableSaveMFATicket) { + enableSaveMFATicket_ = enableSaveMFATicket; + setParameter(std::string("EnableSaveMFATicket"), enableSaveMFATicket ? "true" : "false"); } -void SetSecurityPreferenceRequest::setLoginNetworkMasks(const std::string& loginNetworkMasks) -{ - loginNetworkMasks_ = loginNetworkMasks; - setParameter("LoginNetworkMasks", loginNetworkMasks); +std::string SetSecurityPreferenceRequest::getLoginNetworkMasks() const { + return loginNetworkMasks_; } -bool SetSecurityPreferenceRequest::getAllowUserToChangePassword()const -{ - return allowUserToChangePassword_; +void SetSecurityPreferenceRequest::setLoginNetworkMasks(const std::string &loginNetworkMasks) { + loginNetworkMasks_ = loginNetworkMasks; + setParameter(std::string("LoginNetworkMasks"), loginNetworkMasks); } -void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserToChangePassword) -{ - allowUserToChangePassword_ = allowUserToChangePassword; - setParameter("AllowUserToChangePassword", allowUserToChangePassword ? "true" : "false"); +bool SetSecurityPreferenceRequest::getAllowUserToChangePassword() const { + return allowUserToChangePassword_; } -bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const -{ - return allowUserToManagePublicKeys_; +void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserToChangePassword) { + allowUserToChangePassword_ = allowUserToChangePassword; + setParameter(std::string("AllowUserToChangePassword"), allowUserToChangePassword ? "true" : "false"); } -void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys) -{ - allowUserToManagePublicKeys_ = allowUserToManagePublicKeys; - setParameter("AllowUserToManagePublicKeys", allowUserToManagePublicKeys ? "true" : "false"); +bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys() const { + return allowUserToManagePublicKeys_; } -int SetSecurityPreferenceRequest::getLoginSessionDuration()const -{ - return loginSessionDuration_; +void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys) { + allowUserToManagePublicKeys_ = allowUserToManagePublicKeys; + setParameter(std::string("AllowUserToManagePublicKeys"), allowUserToManagePublicKeys ? "true" : "false"); } -void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDuration) -{ - loginSessionDuration_ = loginSessionDuration; - setParameter("LoginSessionDuration", std::to_string(loginSessionDuration)); +int SetSecurityPreferenceRequest::getLoginSessionDuration() const { + return loginSessionDuration_; } -bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys()const -{ - return allowUserToManageAccessKeys_; +void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDuration) { + loginSessionDuration_ = loginSessionDuration; + setParameter(std::string("LoginSessionDuration"), std::to_string(loginSessionDuration)); } -void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys) -{ - allowUserToManageAccessKeys_ = allowUserToManageAccessKeys; - setParameter("AllowUserToManageAccessKeys", allowUserToManageAccessKeys ? "true" : "false"); +bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys() const { + return allowUserToManageAccessKeys_; } -bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const -{ - return allowUserToManageMFADevices_; +void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys) { + allowUserToManageAccessKeys_ = allowUserToManageAccessKeys; + setParameter(std::string("AllowUserToManageAccessKeys"), allowUserToManageAccessKeys ? "true" : "false"); } -void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices) -{ - allowUserToManageMFADevices_ = allowUserToManageMFADevices; - setParameter("AllowUserToManageMFADevices", allowUserToManageMFADevices ? "true" : "false"); +bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices() const { + return allowUserToManageMFADevices_; +} + +void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices) { + allowUserToManageMFADevices_ = allowUserToManageMFADevices; + setParameter(std::string("AllowUserToManageMFADevices"), allowUserToManageMFADevices ? "true" : "false"); } diff --git a/ram/src/model/SetSecurityPreferenceResult.cc b/ram/src/model/SetSecurityPreferenceResult.cc index 709c490c1..dee3f6fe6 100644 --- a/ram/src/model/SetSecurityPreferenceResult.cc +++ b/ram/src/model/SetSecurityPreferenceResult.cc @@ -40,24 +40,24 @@ void SetSecurityPreferenceResult::parse(const std::string &payload) 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 mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; + if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) + securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull()) securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true"; - if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) - securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull()) securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString()); if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull()) securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString(); - auto accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"]; - if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull()) - securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true"; + if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull()) + securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true"; auto publicKeyPreferenceNode = securityPreferenceNode["PublicKeyPreference"]; if(!publicKeyPreferenceNode["AllowUserToManagePublicKeys"].isNull()) securityPreference_.publicKeyPreference.allowUserToManagePublicKeys = publicKeyPreferenceNode["AllowUserToManagePublicKeys"].asString() == "true"; - auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"]; - if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull()) - securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true"; } diff --git a/ram/src/model/TagResourcesRequest.cc b/ram/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..60b353bff --- /dev/null +++ b/ram/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Ram::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ram", "2015-05-01", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceNames() const { + return resourceNames_; +} + +void TagResourcesRequest::setResourceNames(const std::vector &resourceNames) { + resourceNames_ = resourceNames; + for(int dep1 = 0; dep1 != resourceNames.size(); dep1++) { + setParameter(std::string("ResourceNames") + "." + std::to_string(dep1 + 1), resourceNames[dep1]); + } +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ram/src/model/DeletePublicKeyResult.cc b/ram/src/model/TagResourcesResult.cc similarity index 75% rename from ram/src/model/DeletePublicKeyResult.cc rename to ram/src/model/TagResourcesResult.cc index 7844a61c6..599cfceb3 100644 --- a/ram/src/model/DeletePublicKeyResult.cc +++ b/ram/src/model/TagResourcesResult.cc @@ -14,31 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ram; using namespace AlibabaCloud::Ram::Model; -DeletePublicKeyResult::DeletePublicKeyResult() : +TagResourcesResult::TagResourcesResult() : ServiceResult() {} -DeletePublicKeyResult::DeletePublicKeyResult(const std::string &payload) : +TagResourcesResult::TagResourcesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeletePublicKeyResult::~DeletePublicKeyResult() +TagResourcesResult::~TagResourcesResult() {} -void DeletePublicKeyResult::parse(const std::string &payload) +void TagResourcesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/UnbindMFADeviceRequest.cc b/ram/src/model/UnbindMFADeviceRequest.cc index 324d5415f..edbc52042 100644 --- a/ram/src/model/UnbindMFADeviceRequest.cc +++ b/ram/src/model/UnbindMFADeviceRequest.cc @@ -1,40 +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::Ram::Model::UnbindMFADeviceRequest; - -UnbindMFADeviceRequest::UnbindMFADeviceRequest() : - RpcServiceRequest("ram", "2015-05-01", "UnbindMFADevice") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindMFADeviceRequest::~UnbindMFADeviceRequest() -{} - -std::string UnbindMFADeviceRequest::getUserName()const -{ - return userName_; + */ + +#include + +using AlibabaCloud::Ram::Model::UnbindMFADeviceRequest; + +UnbindMFADeviceRequest::UnbindMFADeviceRequest() + : RpcServiceRequest("ram", "2015-05-01", "UnbindMFADevice") { + setMethod(HttpRequest::Method::Post); } -void UnbindMFADeviceRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +UnbindMFADeviceRequest::~UnbindMFADeviceRequest() {} + +std::string UnbindMFADeviceRequest::getUserName() const { + return userName_; +} + +void UnbindMFADeviceRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/UntagResourcesRequest.cc b/ram/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..9f161725d --- /dev/null +++ b/ram/src/model/UntagResourcesRequest.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 + +using AlibabaCloud::Ram::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ram", "2015-05-01", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +std::vector UntagResourcesRequest::getResourceNames() const { + return resourceNames_; +} + +void UntagResourcesRequest::setResourceNames(const std::vector &resourceNames) { + resourceNames_ = resourceNames; + for(int dep1 = 0; dep1 != resourceNames.size(); dep1++) { + setParameter(std::string("ResourceNames") + "." + std::to_string(dep1 + 1), resourceNames[dep1]); + } +} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKeys() const { + return tagKeys_; +} + +void UntagResourcesRequest::setTagKeys(const std::vector &tagKeys) { + tagKeys_ = tagKeys; + for(int dep1 = 0; dep1 != tagKeys.size(); dep1++) { + setParameter(std::string("TagKeys") + "." + std::to_string(dep1 + 1), tagKeys[dep1]); + } +} + diff --git a/ram/src/model/UpdatePublicKeyResult.cc b/ram/src/model/UntagResourcesResult.cc similarity index 75% rename from ram/src/model/UpdatePublicKeyResult.cc rename to ram/src/model/UntagResourcesResult.cc index cfb95bb28..edc612ba3 100644 --- a/ram/src/model/UpdatePublicKeyResult.cc +++ b/ram/src/model/UntagResourcesResult.cc @@ -14,31 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ram; using namespace AlibabaCloud::Ram::Model; -UpdatePublicKeyResult::UpdatePublicKeyResult() : +UntagResourcesResult::UntagResourcesResult() : ServiceResult() {} -UpdatePublicKeyResult::UpdatePublicKeyResult(const std::string &payload) : +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdatePublicKeyResult::~UpdatePublicKeyResult() +UntagResourcesResult::~UntagResourcesResult() {} -void UpdatePublicKeyResult::parse(const std::string &payload) +void UntagResourcesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/UpdateAccessKeyRequest.cc b/ram/src/model/UpdateAccessKeyRequest.cc index 6324683dc..57eb2134e 100644 --- a/ram/src/model/UpdateAccessKeyRequest.cc +++ b/ram/src/model/UpdateAccessKeyRequest.cc @@ -1,62 +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::Ram::Model::UpdateAccessKeyRequest; - -UpdateAccessKeyRequest::UpdateAccessKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdateAccessKey") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAccessKeyRequest::~UpdateAccessKeyRequest() -{} - -std::string UpdateAccessKeyRequest::getUserAccessKeyId()const -{ - return userAccessKeyId_; + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateAccessKeyRequest; + +UpdateAccessKeyRequest::UpdateAccessKeyRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdateAccessKey") { + setMethod(HttpRequest::Method::Post); } -void UpdateAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId) -{ - userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); +UpdateAccessKeyRequest::~UpdateAccessKeyRequest() {} + +std::string UpdateAccessKeyRequest::getUserAccessKeyId() const { + return userAccessKeyId_; } -std::string UpdateAccessKeyRequest::getUserName()const -{ - return userName_; +void UpdateAccessKeyRequest::setUserAccessKeyId(const std::string &userAccessKeyId) { + userAccessKeyId_ = userAccessKeyId; + setParameter(std::string("UserAccessKeyId"), userAccessKeyId); } -void UpdateAccessKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string UpdateAccessKeyRequest::getUserName() const { + return userName_; } -std::string UpdateAccessKeyRequest::getStatus()const -{ - return status_; +void UpdateAccessKeyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } -void UpdateAccessKeyRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string UpdateAccessKeyRequest::getStatus() const { + return status_; +} + +void UpdateAccessKeyRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ram/src/model/UpdateGroupRequest.cc b/ram/src/model/UpdateGroupRequest.cc index a3552a1cf..8140a5801 100644 --- a/ram/src/model/UpdateGroupRequest.cc +++ b/ram/src/model/UpdateGroupRequest.cc @@ -1,62 +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::Ram::Model::UpdateGroupRequest; - -UpdateGroupRequest::UpdateGroupRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdateGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGroupRequest::~UpdateGroupRequest() -{} - -std::string UpdateGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateGroupRequest; + +UpdateGroupRequest::UpdateGroupRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdateGroup") { + setMethod(HttpRequest::Method::Post); } -void UpdateGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +UpdateGroupRequest::~UpdateGroupRequest() {} + +std::string UpdateGroupRequest::getGroupName() const { + return groupName_; } -std::string UpdateGroupRequest::getNewGroupName()const -{ - return newGroupName_; +void UpdateGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void UpdateGroupRequest::setNewGroupName(const std::string& newGroupName) -{ - newGroupName_ = newGroupName; - setParameter("NewGroupName", newGroupName); +std::string UpdateGroupRequest::getNewGroupName() const { + return newGroupName_; } -std::string UpdateGroupRequest::getNewComments()const -{ - return newComments_; +void UpdateGroupRequest::setNewGroupName(const std::string &newGroupName) { + newGroupName_ = newGroupName; + setParameter(std::string("NewGroupName"), newGroupName); } -void UpdateGroupRequest::setNewComments(const std::string& newComments) -{ - newComments_ = newComments; - setParameter("NewComments", newComments); +std::string UpdateGroupRequest::getNewComments() const { + return newComments_; +} + +void UpdateGroupRequest::setNewComments(const std::string &newComments) { + newComments_ = newComments; + setParameter(std::string("NewComments"), newComments); } diff --git a/ram/src/model/UpdateGroupResult.cc b/ram/src/model/UpdateGroupResult.cc index f41584461..565fd23b3 100644 --- a/ram/src/model/UpdateGroupResult.cc +++ b/ram/src/model/UpdateGroupResult.cc @@ -40,14 +40,16 @@ void UpdateGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; + 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(); - if(!groupNode["UpdateDate"].isNull()) - group_.updateDate = groupNode["UpdateDate"].asString(); } diff --git a/ram/src/model/UpdateLoginProfileRequest.cc b/ram/src/model/UpdateLoginProfileRequest.cc index b4653905c..b12a63f78 100644 --- a/ram/src/model/UpdateLoginProfileRequest.cc +++ b/ram/src/model/UpdateLoginProfileRequest.cc @@ -1,73 +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::Ram::Model::UpdateLoginProfileRequest; - -UpdateLoginProfileRequest::UpdateLoginProfileRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdateLoginProfile") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateLoginProfileRequest::~UpdateLoginProfileRequest() -{} - -bool UpdateLoginProfileRequest::getPasswordResetRequired()const -{ - return passwordResetRequired_; + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateLoginProfileRequest; + +UpdateLoginProfileRequest::UpdateLoginProfileRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdateLoginProfile") { + setMethod(HttpRequest::Method::Post); } -void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) -{ - passwordResetRequired_ = passwordResetRequired; - setParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false"); +UpdateLoginProfileRequest::~UpdateLoginProfileRequest() {} + +std::string UpdateLoginProfileRequest::getPassword() const { + return password_; } -std::string UpdateLoginProfileRequest::getPassword()const -{ - return password_; +void UpdateLoginProfileRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void UpdateLoginProfileRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +bool UpdateLoginProfileRequest::getMFABindRequired() const { + return mFABindRequired_; } -bool UpdateLoginProfileRequest::getMFABindRequired()const -{ - return mFABindRequired_; +void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { + mFABindRequired_ = mFABindRequired; + setParameter(std::string("MFABindRequired"), mFABindRequired ? "true" : "false"); } -void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) -{ - mFABindRequired_ = mFABindRequired; - setParameter("MFABindRequired", mFABindRequired ? "true" : "false"); +bool UpdateLoginProfileRequest::getPasswordResetRequired() const { + return passwordResetRequired_; } -std::string UpdateLoginProfileRequest::getUserName()const -{ - return userName_; +void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { + passwordResetRequired_ = passwordResetRequired; + setParameter(std::string("PasswordResetRequired"), passwordResetRequired ? "true" : "false"); } -void UpdateLoginProfileRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string UpdateLoginProfileRequest::getUserName() const { + return userName_; +} + +void UpdateLoginProfileRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/UpdatePolicyDescriptionRequest.cc b/ram/src/model/UpdatePolicyDescriptionRequest.cc new file mode 100644 index 000000000..f09f54afa --- /dev/null +++ b/ram/src/model/UpdatePolicyDescriptionRequest.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::Ram::Model::UpdatePolicyDescriptionRequest; + +UpdatePolicyDescriptionRequest::UpdatePolicyDescriptionRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdatePolicyDescription") { + setMethod(HttpRequest::Method::Post); +} + +UpdatePolicyDescriptionRequest::~UpdatePolicyDescriptionRequest() {} + +std::string UpdatePolicyDescriptionRequest::getPolicyName() const { + return policyName_; +} + +void UpdatePolicyDescriptionRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); +} + +std::string UpdatePolicyDescriptionRequest::getNewDescription() const { + return newDescription_; +} + +void UpdatePolicyDescriptionRequest::setNewDescription(const std::string &newDescription) { + newDescription_ = newDescription; + setParameter(std::string("NewDescription"), newDescription); +} + diff --git a/ram/src/model/UpdatePolicyDescriptionResult.cc b/ram/src/model/UpdatePolicyDescriptionResult.cc new file mode 100644 index 000000000..4451746de --- /dev/null +++ b/ram/src/model/UpdatePolicyDescriptionResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ram; +using namespace AlibabaCloud::Ram::Model; + +UpdatePolicyDescriptionResult::UpdatePolicyDescriptionResult() : + ServiceResult() +{} + +UpdatePolicyDescriptionResult::UpdatePolicyDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePolicyDescriptionResult::~UpdatePolicyDescriptionResult() +{} + +void UpdatePolicyDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto policyNode = value["Policy"]; + if(!policyNode["PolicyName"].isNull()) + policy_.policyName = policyNode["PolicyName"].asString(); + if(!policyNode["PolicyType"].isNull()) + policy_.policyType = policyNode["PolicyType"].asString(); + if(!policyNode["CreateDate"].isNull()) + policy_.createDate = policyNode["CreateDate"].asString(); + if(!policyNode["UpdateDate"].isNull()) + policy_.updateDate = policyNode["UpdateDate"].asString(); + if(!policyNode["Description"].isNull()) + policy_.description = policyNode["Description"].asString(); + if(!policyNode["DefaultVersion"].isNull()) + policy_.defaultVersion = policyNode["DefaultVersion"].asString(); + +} + +UpdatePolicyDescriptionResult::Policy UpdatePolicyDescriptionResult::getPolicy()const +{ + return policy_; +} + diff --git a/ram/src/model/UpdatePublicKeyRequest.cc b/ram/src/model/UpdatePublicKeyRequest.cc deleted file mode 100644 index 569b39e6e..000000000 --- a/ram/src/model/UpdatePublicKeyRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::UpdatePublicKeyRequest; - -UpdatePublicKeyRequest::UpdatePublicKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdatePublicKey") -{} - -UpdatePublicKeyRequest::~UpdatePublicKeyRequest() -{} - -std::string UpdatePublicKeyRequest::getUserPublicKeyId()const -{ - return userPublicKeyId_; -} - -void UpdatePublicKeyRequest::setUserPublicKeyId(const std::string& userPublicKeyId) -{ - userPublicKeyId_ = userPublicKeyId; - setParameter("UserPublicKeyId", userPublicKeyId); -} - -std::string UpdatePublicKeyRequest::getUserName()const -{ - return userName_; -} - -void UpdatePublicKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - -std::string UpdatePublicKeyRequest::getStatus()const -{ - return status_; -} - -void UpdatePublicKeyRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); -} - diff --git a/ram/src/model/UpdateRoleRequest.cc b/ram/src/model/UpdateRoleRequest.cc index 091449f76..e89cf0948 100644 --- a/ram/src/model/UpdateRoleRequest.cc +++ b/ram/src/model/UpdateRoleRequest.cc @@ -1,62 +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::Ram::Model::UpdateRoleRequest; - -UpdateRoleRequest::UpdateRoleRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdateRole") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateRoleRequest::~UpdateRoleRequest() -{} - -std::string UpdateRoleRequest::getNewAssumeRolePolicyDocument()const -{ - return newAssumeRolePolicyDocument_; + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateRoleRequest; + +UpdateRoleRequest::UpdateRoleRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdateRole") { + setMethod(HttpRequest::Method::Post); } -void UpdateRoleRequest::setNewAssumeRolePolicyDocument(const std::string& newAssumeRolePolicyDocument) -{ - newAssumeRolePolicyDocument_ = newAssumeRolePolicyDocument; - setParameter("NewAssumeRolePolicyDocument", newAssumeRolePolicyDocument); +UpdateRoleRequest::~UpdateRoleRequest() {} + +long UpdateRoleRequest::getNewMaxSessionDuration() const { + return newMaxSessionDuration_; } -std::string UpdateRoleRequest::getRoleName()const -{ - return roleName_; +void UpdateRoleRequest::setNewMaxSessionDuration(long newMaxSessionDuration) { + newMaxSessionDuration_ = newMaxSessionDuration; + setParameter(std::string("NewMaxSessionDuration"), std::to_string(newMaxSessionDuration)); } -void UpdateRoleRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string UpdateRoleRequest::getNewDescription() const { + return newDescription_; } -long UpdateRoleRequest::getNewMaxSessionDuration()const -{ - return newMaxSessionDuration_; +void UpdateRoleRequest::setNewDescription(const std::string &newDescription) { + newDescription_ = newDescription; + setParameter(std::string("NewDescription"), newDescription); } -void UpdateRoleRequest::setNewMaxSessionDuration(long newMaxSessionDuration) -{ - newMaxSessionDuration_ = newMaxSessionDuration; - setParameter("NewMaxSessionDuration", std::to_string(newMaxSessionDuration)); +std::string UpdateRoleRequest::getNewAssumeRolePolicyDocument() const { + return newAssumeRolePolicyDocument_; +} + +void UpdateRoleRequest::setNewAssumeRolePolicyDocument(const std::string &newAssumeRolePolicyDocument) { + newAssumeRolePolicyDocument_ = newAssumeRolePolicyDocument; + setParameter(std::string("NewAssumeRolePolicyDocument"), newAssumeRolePolicyDocument); +} + +std::string UpdateRoleRequest::getRoleName() const { + return roleName_; +} + +void UpdateRoleRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } diff --git a/ram/src/model/UpdateRoleResult.cc b/ram/src/model/UpdateRoleResult.cc index b83d8c012..dde5ce265 100644 --- a/ram/src/model/UpdateRoleResult.cc +++ b/ram/src/model/UpdateRoleResult.cc @@ -40,22 +40,22 @@ void UpdateRoleResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; - if(!roleNode["RoleId"].isNull()) - role_.roleId = roleNode["RoleId"].asString(); - if(!roleNode["RoleName"].isNull()) - role_.roleName = roleNode["RoleName"].asString(); - if(!roleNode["Arn"].isNull()) - role_.arn = roleNode["Arn"].asString(); - if(!roleNode["Description"].isNull()) - role_.description = roleNode["Description"].asString(); if(!roleNode["AssumeRolePolicyDocument"].isNull()) role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString(); - if(!roleNode["CreateDate"].isNull()) - role_.createDate = roleNode["CreateDate"].asString(); if(!roleNode["UpdateDate"].isNull()) role_.updateDate = roleNode["UpdateDate"].asString(); + if(!roleNode["Description"].isNull()) + role_.description = roleNode["Description"].asString(); if(!roleNode["MaxSessionDuration"].isNull()) role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString()); + if(!roleNode["RoleName"].isNull()) + role_.roleName = roleNode["RoleName"].asString(); + if(!roleNode["CreateDate"].isNull()) + role_.createDate = roleNode["CreateDate"].asString(); + if(!roleNode["RoleId"].isNull()) + role_.roleId = roleNode["RoleId"].asString(); + if(!roleNode["Arn"].isNull()) + role_.arn = roleNode["Arn"].asString(); } diff --git a/ram/src/model/UpdateUserRequest.cc b/ram/src/model/UpdateUserRequest.cc index d7674bb93..3ddb8be01 100644 --- a/ram/src/model/UpdateUserRequest.cc +++ b/ram/src/model/UpdateUserRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Ram::Model::UpdateUserRequest; - -UpdateUserRequest::UpdateUserRequest() : - RpcServiceRequest("ram", "2015-05-01", "UpdateUser") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateUserRequest::~UpdateUserRequest() -{} - -std::string UpdateUserRequest::getNewUserName()const -{ - return newUserName_; + */ + +#include + +using AlibabaCloud::Ram::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() + : RpcServiceRequest("ram", "2015-05-01", "UpdateUser") { + setMethod(HttpRequest::Method::Post); } -void UpdateUserRequest::setNewUserName(const std::string& newUserName) -{ - newUserName_ = newUserName; - setParameter("NewUserName", newUserName); +UpdateUserRequest::~UpdateUserRequest() {} + +std::string UpdateUserRequest::getNewUserName() const { + return newUserName_; } -std::string UpdateUserRequest::getNewMobilePhone()const -{ - return newMobilePhone_; +void UpdateUserRequest::setNewUserName(const std::string &newUserName) { + newUserName_ = newUserName; + setParameter(std::string("NewUserName"), newUserName); } -void UpdateUserRequest::setNewMobilePhone(const std::string& newMobilePhone) -{ - newMobilePhone_ = newMobilePhone; - setParameter("NewMobilePhone", newMobilePhone); +std::string UpdateUserRequest::getNewMobilePhone() const { + return newMobilePhone_; } -std::string UpdateUserRequest::getNewEmail()const -{ - return newEmail_; +void UpdateUserRequest::setNewMobilePhone(const std::string &newMobilePhone) { + newMobilePhone_ = newMobilePhone; + setParameter(std::string("NewMobilePhone"), newMobilePhone); } -void UpdateUserRequest::setNewEmail(const std::string& newEmail) -{ - newEmail_ = newEmail; - setParameter("NewEmail", newEmail); +std::string UpdateUserRequest::getNewEmail() const { + return newEmail_; } -std::string UpdateUserRequest::getNewDisplayName()const -{ - return newDisplayName_; +void UpdateUserRequest::setNewEmail(const std::string &newEmail) { + newEmail_ = newEmail; + setParameter(std::string("NewEmail"), newEmail); } -void UpdateUserRequest::setNewDisplayName(const std::string& newDisplayName) -{ - newDisplayName_ = newDisplayName; - setParameter("NewDisplayName", newDisplayName); +std::string UpdateUserRequest::getNewDisplayName() const { + return newDisplayName_; } -std::string UpdateUserRequest::getNewComments()const -{ - return newComments_; +void UpdateUserRequest::setNewDisplayName(const std::string &newDisplayName) { + newDisplayName_ = newDisplayName; + setParameter(std::string("NewDisplayName"), newDisplayName); } -void UpdateUserRequest::setNewComments(const std::string& newComments) -{ - newComments_ = newComments; - setParameter("NewComments", newComments); +std::string UpdateUserRequest::getNewComments() const { + return newComments_; } -std::string UpdateUserRequest::getUserName()const -{ - return userName_; +void UpdateUserRequest::setNewComments(const std::string &newComments) { + newComments_ = newComments; + setParameter(std::string("NewComments"), newComments); } -void UpdateUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string UpdateUserRequest::getUserName() const { + return userName_; +} + +void UpdateUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/ram/src/model/UpdateUserResult.cc b/ram/src/model/UpdateUserResult.cc index 75450ca14..4fedcff83 100644 --- a/ram/src/model/UpdateUserResult.cc +++ b/ram/src/model/UpdateUserResult.cc @@ -40,22 +40,22 @@ void UpdateUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; - if(!userNode["UserId"].isNull()) - user_.userId = userNode["UserId"].asString(); - if(!userNode["UserName"].isNull()) - user_.userName = userNode["UserName"].asString(); if(!userNode["DisplayName"].isNull()) user_.displayName = userNode["DisplayName"].asString(); - if(!userNode["MobilePhone"].isNull()) - user_.mobilePhone = userNode["MobilePhone"].asString(); if(!userNode["Email"].isNull()) user_.email = userNode["Email"].asString(); + if(!userNode["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["CreateDate"].isNull()) user_.createDate = userNode["CreateDate"].asString(); - if(!userNode["UpdateDate"].isNull()) - user_.updateDate = userNode["UpdateDate"].asString(); + if(!userNode["UserName"].isNull()) + user_.userName = userNode["UserName"].asString(); } diff --git a/ram/src/model/UploadPublicKeyRequest.cc b/ram/src/model/UploadPublicKeyRequest.cc deleted file mode 100644 index 428530402..000000000 --- a/ram/src/model/UploadPublicKeyRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ram::Model::UploadPublicKeyRequest; - -UploadPublicKeyRequest::UploadPublicKeyRequest() : - RpcServiceRequest("ram", "2015-05-01", "UploadPublicKey") -{} - -UploadPublicKeyRequest::~UploadPublicKeyRequest() -{} - -std::string UploadPublicKeyRequest::getPublicKeySpec()const -{ - return publicKeySpec_; -} - -void UploadPublicKeyRequest::setPublicKeySpec(const std::string& publicKeySpec) -{ - publicKeySpec_ = publicKeySpec; - setParameter("PublicKeySpec", publicKeySpec); -} - -std::string UploadPublicKeyRequest::getUserName()const -{ - return userName_; -} - -void UploadPublicKeyRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ram/src/model/UploadPublicKeyResult.cc b/ram/src/model/UploadPublicKeyResult.cc deleted file mode 100644 index 7fc178d99..000000000 --- a/ram/src/model/UploadPublicKeyResult.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ram; -using namespace AlibabaCloud::Ram::Model; - -UploadPublicKeyResult::UploadPublicKeyResult() : - ServiceResult() -{} - -UploadPublicKeyResult::UploadPublicKeyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UploadPublicKeyResult::~UploadPublicKeyResult() -{} - -void UploadPublicKeyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto publicKeyNode = value["PublicKey"]; - if(!publicKeyNode["PublicKeyId"].isNull()) - publicKey_.publicKeyId = publicKeyNode["PublicKeyId"].asString(); - if(!publicKeyNode["PublicKeySpec"].isNull()) - publicKey_.publicKeySpec = publicKeyNode["PublicKeySpec"].asString(); - if(!publicKeyNode["Status"].isNull()) - publicKey_.status = publicKeyNode["Status"].asString(); - if(!publicKeyNode["CreateDate"].isNull()) - publicKey_.createDate = publicKeyNode["CreateDate"].asString(); - -} - -UploadPublicKeyResult::PublicKey UploadPublicKeyResult::getPublicKey()const -{ - return publicKey_; -} -