diff --git a/VERSION b/VERSION index 0da6c63ca..b33f1f739 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1460 \ No newline at end of file +1.36.1461 \ No newline at end of file diff --git a/resourcemanager/CMakeLists.txt b/resourcemanager/CMakeLists.txt index 4e7fd41b5..9f41666eb 100644 --- a/resourcemanager/CMakeLists.txt +++ b/resourcemanager/CMakeLists.txt @@ -29,12 +29,16 @@ set(resourcemanager_public_header_model include/alibabacloud/resourcemanager/model/AttachPolicyResult.h include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneRequest.h include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneResult.h + include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailRequest.h + include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailResult.h include/alibabacloud/resourcemanager/model/CancelCreateCloudAccountRequest.h include/alibabacloud/resourcemanager/model/CancelCreateCloudAccountResult.h include/alibabacloud/resourcemanager/model/CancelHandshakeRequest.h include/alibabacloud/resourcemanager/model/CancelHandshakeResult.h include/alibabacloud/resourcemanager/model/CancelPromoteResourceAccountRequest.h include/alibabacloud/resourcemanager/model/CancelPromoteResourceAccountResult.h + include/alibabacloud/resourcemanager/model/ChangeAccountEmailRequest.h + include/alibabacloud/resourcemanager/model/ChangeAccountEmailResult.h include/alibabacloud/resourcemanager/model/CheckAccountDeleteRequest.h include/alibabacloud/resourcemanager/model/CheckAccountDeleteResult.h include/alibabacloud/resourcemanager/model/CreateCloudAccountRequest.h @@ -177,6 +181,8 @@ set(resourcemanager_public_header_model include/alibabacloud/resourcemanager/model/ResendCreateCloudAccountEmailResult.h include/alibabacloud/resourcemanager/model/ResendPromoteResourceAccountEmailRequest.h include/alibabacloud/resourcemanager/model/ResendPromoteResourceAccountEmailResult.h + include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailRequest.h + include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailResult.h include/alibabacloud/resourcemanager/model/SendVerificationCodeForBindSecureMobilePhoneRequest.h include/alibabacloud/resourcemanager/model/SendVerificationCodeForBindSecureMobilePhoneResult.h include/alibabacloud/resourcemanager/model/SendVerificationCodeForEnableRDRequest.h @@ -210,12 +216,16 @@ set(resourcemanager_src src/model/AttachPolicyResult.cc src/model/BindSecureMobilePhoneRequest.cc src/model/BindSecureMobilePhoneResult.cc + src/model/CancelChangeAccountEmailRequest.cc + src/model/CancelChangeAccountEmailResult.cc src/model/CancelCreateCloudAccountRequest.cc src/model/CancelCreateCloudAccountResult.cc src/model/CancelHandshakeRequest.cc src/model/CancelHandshakeResult.cc src/model/CancelPromoteResourceAccountRequest.cc src/model/CancelPromoteResourceAccountResult.cc + src/model/ChangeAccountEmailRequest.cc + src/model/ChangeAccountEmailResult.cc src/model/CheckAccountDeleteRequest.cc src/model/CheckAccountDeleteResult.cc src/model/CreateCloudAccountRequest.cc @@ -358,6 +368,8 @@ set(resourcemanager_src src/model/ResendCreateCloudAccountEmailResult.cc src/model/ResendPromoteResourceAccountEmailRequest.cc src/model/ResendPromoteResourceAccountEmailResult.cc + src/model/RetryChangeAccountEmailRequest.cc + src/model/RetryChangeAccountEmailResult.cc src/model/SendVerificationCodeForBindSecureMobilePhoneRequest.cc src/model/SendVerificationCodeForBindSecureMobilePhoneResult.cc src/model/SendVerificationCodeForEnableRDRequest.cc diff --git a/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h b/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h index 094f2fbe2..55859fb7f 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h @@ -30,12 +30,16 @@ #include "model/AttachPolicyResult.h" #include "model/BindSecureMobilePhoneRequest.h" #include "model/BindSecureMobilePhoneResult.h" +#include "model/CancelChangeAccountEmailRequest.h" +#include "model/CancelChangeAccountEmailResult.h" #include "model/CancelCreateCloudAccountRequest.h" #include "model/CancelCreateCloudAccountResult.h" #include "model/CancelHandshakeRequest.h" #include "model/CancelHandshakeResult.h" #include "model/CancelPromoteResourceAccountRequest.h" #include "model/CancelPromoteResourceAccountResult.h" +#include "model/ChangeAccountEmailRequest.h" +#include "model/ChangeAccountEmailResult.h" #include "model/CheckAccountDeleteRequest.h" #include "model/CheckAccountDeleteResult.h" #include "model/CreateCloudAccountRequest.h" @@ -178,6 +182,8 @@ #include "model/ResendCreateCloudAccountEmailResult.h" #include "model/ResendPromoteResourceAccountEmailRequest.h" #include "model/ResendPromoteResourceAccountEmailResult.h" +#include "model/RetryChangeAccountEmailRequest.h" +#include "model/RetryChangeAccountEmailResult.h" #include "model/SendVerificationCodeForBindSecureMobilePhoneRequest.h" #include "model/SendVerificationCodeForBindSecureMobilePhoneResult.h" #include "model/SendVerificationCodeForEnableRDRequest.h" @@ -221,6 +227,9 @@ namespace AlibabaCloud typedef Outcome BindSecureMobilePhoneOutcome; typedef std::future BindSecureMobilePhoneOutcomeCallable; typedef std::function&)> BindSecureMobilePhoneAsyncHandler; + typedef Outcome CancelChangeAccountEmailOutcome; + typedef std::future CancelChangeAccountEmailOutcomeCallable; + typedef std::function&)> CancelChangeAccountEmailAsyncHandler; typedef Outcome CancelCreateCloudAccountOutcome; typedef std::future CancelCreateCloudAccountOutcomeCallable; typedef std::function&)> CancelCreateCloudAccountAsyncHandler; @@ -230,6 +239,9 @@ namespace AlibabaCloud typedef Outcome CancelPromoteResourceAccountOutcome; typedef std::future CancelPromoteResourceAccountOutcomeCallable; typedef std::function&)> CancelPromoteResourceAccountAsyncHandler; + typedef Outcome ChangeAccountEmailOutcome; + typedef std::future ChangeAccountEmailOutcomeCallable; + typedef std::function&)> ChangeAccountEmailAsyncHandler; typedef Outcome CheckAccountDeleteOutcome; typedef std::future CheckAccountDeleteOutcomeCallable; typedef std::function&)> CheckAccountDeleteAsyncHandler; @@ -443,6 +455,9 @@ namespace AlibabaCloud typedef Outcome ResendPromoteResourceAccountEmailOutcome; typedef std::future ResendPromoteResourceAccountEmailOutcomeCallable; typedef std::function&)> ResendPromoteResourceAccountEmailAsyncHandler; + typedef Outcome RetryChangeAccountEmailOutcome; + typedef std::future RetryChangeAccountEmailOutcomeCallable; + typedef std::function&)> RetryChangeAccountEmailAsyncHandler; typedef Outcome SendVerificationCodeForBindSecureMobilePhoneOutcome; typedef std::future SendVerificationCodeForBindSecureMobilePhoneOutcomeCallable; typedef std::function&)> SendVerificationCodeForBindSecureMobilePhoneAsyncHandler; @@ -493,6 +508,9 @@ namespace AlibabaCloud BindSecureMobilePhoneOutcome bindSecureMobilePhone(const Model::BindSecureMobilePhoneRequest &request)const; void bindSecureMobilePhoneAsync(const Model::BindSecureMobilePhoneRequest& request, const BindSecureMobilePhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindSecureMobilePhoneOutcomeCallable bindSecureMobilePhoneCallable(const Model::BindSecureMobilePhoneRequest& request) const; + CancelChangeAccountEmailOutcome cancelChangeAccountEmail(const Model::CancelChangeAccountEmailRequest &request)const; + void cancelChangeAccountEmailAsync(const Model::CancelChangeAccountEmailRequest& request, const CancelChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelChangeAccountEmailOutcomeCallable cancelChangeAccountEmailCallable(const Model::CancelChangeAccountEmailRequest& request) const; CancelCreateCloudAccountOutcome cancelCreateCloudAccount(const Model::CancelCreateCloudAccountRequest &request)const; void cancelCreateCloudAccountAsync(const Model::CancelCreateCloudAccountRequest& request, const CancelCreateCloudAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelCreateCloudAccountOutcomeCallable cancelCreateCloudAccountCallable(const Model::CancelCreateCloudAccountRequest& request) const; @@ -502,6 +520,9 @@ namespace AlibabaCloud CancelPromoteResourceAccountOutcome cancelPromoteResourceAccount(const Model::CancelPromoteResourceAccountRequest &request)const; void cancelPromoteResourceAccountAsync(const Model::CancelPromoteResourceAccountRequest& request, const CancelPromoteResourceAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelPromoteResourceAccountOutcomeCallable cancelPromoteResourceAccountCallable(const Model::CancelPromoteResourceAccountRequest& request) const; + ChangeAccountEmailOutcome changeAccountEmail(const Model::ChangeAccountEmailRequest &request)const; + void changeAccountEmailAsync(const Model::ChangeAccountEmailRequest& request, const ChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeAccountEmailOutcomeCallable changeAccountEmailCallable(const Model::ChangeAccountEmailRequest& request) const; CheckAccountDeleteOutcome checkAccountDelete(const Model::CheckAccountDeleteRequest &request)const; void checkAccountDeleteAsync(const Model::CheckAccountDeleteRequest& request, const CheckAccountDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckAccountDeleteOutcomeCallable checkAccountDeleteCallable(const Model::CheckAccountDeleteRequest& request) const; @@ -715,6 +736,9 @@ namespace AlibabaCloud ResendPromoteResourceAccountEmailOutcome resendPromoteResourceAccountEmail(const Model::ResendPromoteResourceAccountEmailRequest &request)const; void resendPromoteResourceAccountEmailAsync(const Model::ResendPromoteResourceAccountEmailRequest& request, const ResendPromoteResourceAccountEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResendPromoteResourceAccountEmailOutcomeCallable resendPromoteResourceAccountEmailCallable(const Model::ResendPromoteResourceAccountEmailRequest& request) const; + RetryChangeAccountEmailOutcome retryChangeAccountEmail(const Model::RetryChangeAccountEmailRequest &request)const; + void retryChangeAccountEmailAsync(const Model::RetryChangeAccountEmailRequest& request, const RetryChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryChangeAccountEmailOutcomeCallable retryChangeAccountEmailCallable(const Model::RetryChangeAccountEmailRequest& request) const; SendVerificationCodeForBindSecureMobilePhoneOutcome sendVerificationCodeForBindSecureMobilePhone(const Model::SendVerificationCodeForBindSecureMobilePhoneRequest &request)const; void sendVerificationCodeForBindSecureMobilePhoneAsync(const Model::SendVerificationCodeForBindSecureMobilePhoneRequest& request, const SendVerificationCodeForBindSecureMobilePhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendVerificationCodeForBindSecureMobilePhoneOutcomeCallable sendVerificationCodeForBindSecureMobilePhoneCallable(const Model::SendVerificationCodeForBindSecureMobilePhoneRequest& request) const; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneRequest.h index f4899dc49..cc0ed786c 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/BindSecureMobilePhoneRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_RESOURCEMANAGER_EXPORT BindSecureMobilePhoneRequest : public public: BindSecureMobilePhoneRequest(); ~BindSecureMobilePhoneRequest(); + std::string getInheritSecureMobilePhoneFrom() const; + void setInheritSecureMobilePhoneFrom(const std::string &inheritSecureMobilePhoneFrom); std::string getSecureMobilePhone() const; void setSecureMobilePhone(const std::string &secureMobilePhone); std::string getAccountId() const; @@ -38,6 +40,7 @@ public: void setVerificationCode(const std::string &verificationCode); private: + std::string inheritSecureMobilePhoneFrom_; std::string secureMobilePhone_; std::string accountId_; std::string verificationCode_; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailRequest.h new file mode 100644 index 000000000..49d22b11b --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT CancelChangeAccountEmailRequest : public RpcServiceRequest { +public: + CancelChangeAccountEmailRequest(); + ~CancelChangeAccountEmailRequest(); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + std::string accountId_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailResult.h new file mode 100644 index 000000000..ac436fe06 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/CancelChangeAccountEmailResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT CancelChangeAccountEmailResult : public ServiceResult + { + public: + + + CancelChangeAccountEmailResult(); + explicit CancelChangeAccountEmailResult(const std::string &payload); + ~CancelChangeAccountEmailResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailRequest.h new file mode 100644 index 000000000..7d3c6e3a0 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailRequest.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_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ChangeAccountEmailRequest : public RpcServiceRequest { +public: + ChangeAccountEmailRequest(); + ~ChangeAccountEmailRequest(); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getEmail() const; + void setEmail(const std::string &email); + +private: + std::string accountId_; + std::string email_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailResult.h new file mode 100644 index 000000000..d38dfe02c --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ChangeAccountEmailResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ChangeAccountEmailResult : public ServiceResult + { + public: + + + ChangeAccountEmailResult(); + explicit ChangeAccountEmailResult(const std::string &payload); + ~ChangeAccountEmailResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h index fd3455340..b2c79bfbe 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h @@ -34,22 +34,34 @@ public: }; CreateResourceAccountRequest(); ~CreateResourceAccountRequest(); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getVerificationCode() const; + void setVerificationCode(const std::string &verificationCode); std::string getAccountNamePrefix() const; void setAccountNamePrefix(const std::string &accountNamePrefix); + std::string getInheritSecureMobilePhoneFrom() const; + void setInheritSecureMobilePhoneFrom(const std::string &inheritSecureMobilePhoneFrom); + std::string getSecureMobilePhone() const; + void setSecureMobilePhone(const std::string &secureMobilePhone); + std::string getResellAccountType() const; + void setResellAccountType(const std::string &resellAccountType); std::string getParentFolderId() const; void setParentFolderId(const std::string &parentFolderId); std::string getDisplayName() const; void setDisplayName(const std::string &displayName); - std::vector getTag() const; - void setTag(const std::vector &tag); std::string getPayerAccountId() const; void setPayerAccountId(const std::string &payerAccountId); private: + std::vector tag_; + std::string verificationCode_; std::string accountNamePrefix_; + std::string inheritSecureMobilePhoneFrom_; + std::string secureMobilePhone_; + std::string resellAccountType_; std::string parentFolderId_; std::string displayName_; - std::vector tag_; std::string payerAccountId_; }; } // namespace Model diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h index 49a24410c..7892cc9fa 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string modifyTime; std::string resourceDirectoryId; std::string accountId; + std::string emailStatus; std::string folderId; std::string identityInformation; std::string joinMethod; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailRequest.h new file mode 100644 index 000000000..197977bd7 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT RetryChangeAccountEmailRequest : public RpcServiceRequest { +public: + RetryChangeAccountEmailRequest(); + ~RetryChangeAccountEmailRequest(); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + std::string accountId_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailResult.h new file mode 100644 index 000000000..df6135d3e --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/RetryChangeAccountEmailResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT RetryChangeAccountEmailResult : public ServiceResult + { + public: + + + RetryChangeAccountEmailResult(); + explicit RetryChangeAccountEmailResult(const std::string &payload); + ~RetryChangeAccountEmailResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/src/ResourceManagerClient.cc b/resourcemanager/src/ResourceManagerClient.cc index 8147689a3..eae0446fa 100644 --- a/resourcemanager/src/ResourceManagerClient.cc +++ b/resourcemanager/src/ResourceManagerClient.cc @@ -195,6 +195,42 @@ ResourceManagerClient::BindSecureMobilePhoneOutcomeCallable ResourceManagerClien return task->get_future(); } +ResourceManagerClient::CancelChangeAccountEmailOutcome ResourceManagerClient::cancelChangeAccountEmail(const CancelChangeAccountEmailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelChangeAccountEmailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelChangeAccountEmailOutcome(CancelChangeAccountEmailResult(outcome.result())); + else + return CancelChangeAccountEmailOutcome(outcome.error()); +} + +void ResourceManagerClient::cancelChangeAccountEmailAsync(const CancelChangeAccountEmailRequest& request, const CancelChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelChangeAccountEmail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::CancelChangeAccountEmailOutcomeCallable ResourceManagerClient::cancelChangeAccountEmailCallable(const CancelChangeAccountEmailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelChangeAccountEmail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::CancelCreateCloudAccountOutcome ResourceManagerClient::cancelCreateCloudAccount(const CancelCreateCloudAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +339,42 @@ ResourceManagerClient::CancelPromoteResourceAccountOutcomeCallable ResourceManag return task->get_future(); } +ResourceManagerClient::ChangeAccountEmailOutcome ResourceManagerClient::changeAccountEmail(const ChangeAccountEmailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeAccountEmailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeAccountEmailOutcome(ChangeAccountEmailResult(outcome.result())); + else + return ChangeAccountEmailOutcome(outcome.error()); +} + +void ResourceManagerClient::changeAccountEmailAsync(const ChangeAccountEmailRequest& request, const ChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeAccountEmail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::ChangeAccountEmailOutcomeCallable ResourceManagerClient::changeAccountEmailCallable(const ChangeAccountEmailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeAccountEmail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::CheckAccountDeleteOutcome ResourceManagerClient::checkAccountDelete(const CheckAccountDeleteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +2931,42 @@ ResourceManagerClient::ResendPromoteResourceAccountEmailOutcomeCallable Resource return task->get_future(); } +ResourceManagerClient::RetryChangeAccountEmailOutcome ResourceManagerClient::retryChangeAccountEmail(const RetryChangeAccountEmailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryChangeAccountEmailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryChangeAccountEmailOutcome(RetryChangeAccountEmailResult(outcome.result())); + else + return RetryChangeAccountEmailOutcome(outcome.error()); +} + +void ResourceManagerClient::retryChangeAccountEmailAsync(const RetryChangeAccountEmailRequest& request, const RetryChangeAccountEmailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryChangeAccountEmail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::RetryChangeAccountEmailOutcomeCallable ResourceManagerClient::retryChangeAccountEmailCallable(const RetryChangeAccountEmailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryChangeAccountEmail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::SendVerificationCodeForBindSecureMobilePhoneOutcome ResourceManagerClient::sendVerificationCodeForBindSecureMobilePhone(const SendVerificationCodeForBindSecureMobilePhoneRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/resourcemanager/src/model/BindSecureMobilePhoneRequest.cc b/resourcemanager/src/model/BindSecureMobilePhoneRequest.cc index 04eef6408..1f55ce04b 100644 --- a/resourcemanager/src/model/BindSecureMobilePhoneRequest.cc +++ b/resourcemanager/src/model/BindSecureMobilePhoneRequest.cc @@ -25,6 +25,15 @@ BindSecureMobilePhoneRequest::BindSecureMobilePhoneRequest() BindSecureMobilePhoneRequest::~BindSecureMobilePhoneRequest() {} +std::string BindSecureMobilePhoneRequest::getInheritSecureMobilePhoneFrom() const { + return inheritSecureMobilePhoneFrom_; +} + +void BindSecureMobilePhoneRequest::setInheritSecureMobilePhoneFrom(const std::string &inheritSecureMobilePhoneFrom) { + inheritSecureMobilePhoneFrom_ = inheritSecureMobilePhoneFrom; + setParameter(std::string("InheritSecureMobilePhoneFrom"), inheritSecureMobilePhoneFrom); +} + std::string BindSecureMobilePhoneRequest::getSecureMobilePhone() const { return secureMobilePhone_; } diff --git a/resourcemanager/src/model/CancelChangeAccountEmailRequest.cc b/resourcemanager/src/model/CancelChangeAccountEmailRequest.cc new file mode 100644 index 000000000..09865023f --- /dev/null +++ b/resourcemanager/src/model/CancelChangeAccountEmailRequest.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::ResourceManager::Model::CancelChangeAccountEmailRequest; + +CancelChangeAccountEmailRequest::CancelChangeAccountEmailRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "CancelChangeAccountEmail") { + setMethod(HttpRequest::Method::Post); +} + +CancelChangeAccountEmailRequest::~CancelChangeAccountEmailRequest() {} + +std::string CancelChangeAccountEmailRequest::getAccountId() const { + return accountId_; +} + +void CancelChangeAccountEmailRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), accountId); +} + diff --git a/resourcemanager/src/model/CancelChangeAccountEmailResult.cc b/resourcemanager/src/model/CancelChangeAccountEmailResult.cc new file mode 100644 index 000000000..deadf238a --- /dev/null +++ b/resourcemanager/src/model/CancelChangeAccountEmailResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +CancelChangeAccountEmailResult::CancelChangeAccountEmailResult() : + ServiceResult() +{} + +CancelChangeAccountEmailResult::CancelChangeAccountEmailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelChangeAccountEmailResult::~CancelChangeAccountEmailResult() +{} + +void CancelChangeAccountEmailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcemanager/src/model/ChangeAccountEmailRequest.cc b/resourcemanager/src/model/ChangeAccountEmailRequest.cc new file mode 100644 index 000000000..84993bde6 --- /dev/null +++ b/resourcemanager/src/model/ChangeAccountEmailRequest.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::ResourceManager::Model::ChangeAccountEmailRequest; + +ChangeAccountEmailRequest::ChangeAccountEmailRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "ChangeAccountEmail") { + setMethod(HttpRequest::Method::Post); +} + +ChangeAccountEmailRequest::~ChangeAccountEmailRequest() {} + +std::string ChangeAccountEmailRequest::getAccountId() const { + return accountId_; +} + +void ChangeAccountEmailRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), accountId); +} + +std::string ChangeAccountEmailRequest::getEmail() const { + return email_; +} + +void ChangeAccountEmailRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); +} + diff --git a/resourcemanager/src/model/ChangeAccountEmailResult.cc b/resourcemanager/src/model/ChangeAccountEmailResult.cc new file mode 100644 index 000000000..644efe313 --- /dev/null +++ b/resourcemanager/src/model/ChangeAccountEmailResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +ChangeAccountEmailResult::ChangeAccountEmailResult() : + ServiceResult() +{} + +ChangeAccountEmailResult::ChangeAccountEmailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeAccountEmailResult::~ChangeAccountEmailResult() +{} + +void ChangeAccountEmailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcemanager/src/model/CreateResourceAccountRequest.cc b/resourcemanager/src/model/CreateResourceAccountRequest.cc index 2b4ebe9e6..d47dd3df2 100644 --- a/resourcemanager/src/model/CreateResourceAccountRequest.cc +++ b/resourcemanager/src/model/CreateResourceAccountRequest.cc @@ -25,6 +25,27 @@ CreateResourceAccountRequest::CreateResourceAccountRequest() CreateResourceAccountRequest::~CreateResourceAccountRequest() {} +std::vector CreateResourceAccountRequest::getTag() const { + return tag_; +} + +void CreateResourceAccountRequest::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 CreateResourceAccountRequest::getVerificationCode() const { + return verificationCode_; +} + +void CreateResourceAccountRequest::setVerificationCode(const std::string &verificationCode) { + verificationCode_ = verificationCode; + setParameter(std::string("VerificationCode"), verificationCode); +} + std::string CreateResourceAccountRequest::getAccountNamePrefix() const { return accountNamePrefix_; } @@ -34,6 +55,33 @@ void CreateResourceAccountRequest::setAccountNamePrefix(const std::string &accou setParameter(std::string("AccountNamePrefix"), accountNamePrefix); } +std::string CreateResourceAccountRequest::getInheritSecureMobilePhoneFrom() const { + return inheritSecureMobilePhoneFrom_; +} + +void CreateResourceAccountRequest::setInheritSecureMobilePhoneFrom(const std::string &inheritSecureMobilePhoneFrom) { + inheritSecureMobilePhoneFrom_ = inheritSecureMobilePhoneFrom; + setParameter(std::string("InheritSecureMobilePhoneFrom"), inheritSecureMobilePhoneFrom); +} + +std::string CreateResourceAccountRequest::getSecureMobilePhone() const { + return secureMobilePhone_; +} + +void CreateResourceAccountRequest::setSecureMobilePhone(const std::string &secureMobilePhone) { + secureMobilePhone_ = secureMobilePhone; + setParameter(std::string("SecureMobilePhone"), secureMobilePhone); +} + +std::string CreateResourceAccountRequest::getResellAccountType() const { + return resellAccountType_; +} + +void CreateResourceAccountRequest::setResellAccountType(const std::string &resellAccountType) { + resellAccountType_ = resellAccountType; + setParameter(std::string("ResellAccountType"), resellAccountType); +} + std::string CreateResourceAccountRequest::getParentFolderId() const { return parentFolderId_; } @@ -52,18 +100,6 @@ void CreateResourceAccountRequest::setDisplayName(const std::string &displayName setParameter(std::string("DisplayName"), displayName); } -std::vector CreateResourceAccountRequest::getTag() const { - return tag_; -} - -void CreateResourceAccountRequest::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 CreateResourceAccountRequest::getPayerAccountId() const { return payerAccountId_; } diff --git a/resourcemanager/src/model/GetAccountResult.cc b/resourcemanager/src/model/GetAccountResult.cc index 6ff48cf50..79fdbcc13 100644 --- a/resourcemanager/src/model/GetAccountResult.cc +++ b/resourcemanager/src/model/GetAccountResult.cc @@ -66,6 +66,8 @@ void GetAccountResult::parse(const std::string &payload) account_.resourceDirectoryPath = accountNode["ResourceDirectoryPath"].asString(); if(!accountNode["Location"].isNull()) account_.location = accountNode["Location"].asString(); + if(!accountNode["EmailStatus"].isNull()) + account_.emailStatus = accountNode["EmailStatus"].asString(); auto allTagsNode = accountNode["Tags"]["Tag"]; for (auto accountNodeTagsTag : allTagsNode) { diff --git a/resourcemanager/src/model/RetryChangeAccountEmailRequest.cc b/resourcemanager/src/model/RetryChangeAccountEmailRequest.cc new file mode 100644 index 000000000..7622e571c --- /dev/null +++ b/resourcemanager/src/model/RetryChangeAccountEmailRequest.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::ResourceManager::Model::RetryChangeAccountEmailRequest; + +RetryChangeAccountEmailRequest::RetryChangeAccountEmailRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "RetryChangeAccountEmail") { + setMethod(HttpRequest::Method::Post); +} + +RetryChangeAccountEmailRequest::~RetryChangeAccountEmailRequest() {} + +std::string RetryChangeAccountEmailRequest::getAccountId() const { + return accountId_; +} + +void RetryChangeAccountEmailRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), accountId); +} + diff --git a/resourcemanager/src/model/RetryChangeAccountEmailResult.cc b/resourcemanager/src/model/RetryChangeAccountEmailResult.cc new file mode 100644 index 000000000..1ec1816bf --- /dev/null +++ b/resourcemanager/src/model/RetryChangeAccountEmailResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +RetryChangeAccountEmailResult::RetryChangeAccountEmailResult() : + ServiceResult() +{} + +RetryChangeAccountEmailResult::RetryChangeAccountEmailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryChangeAccountEmailResult::~RetryChangeAccountEmailResult() +{} + +void RetryChangeAccountEmailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +