Supported more language for resourcemanager.

This commit is contained in:
sdk-team
2023-02-22 02:17:32 +00:00
parent f10a2a333b
commit 077c40de15
22 changed files with 748 additions and 16 deletions

View File

@@ -1 +1 @@
1.36.1460
1.36.1461

View File

@@ -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

View File

@@ -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<Error, Model::BindSecureMobilePhoneResult> BindSecureMobilePhoneOutcome;
typedef std::future<BindSecureMobilePhoneOutcome> BindSecureMobilePhoneOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::BindSecureMobilePhoneRequest&, const BindSecureMobilePhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindSecureMobilePhoneAsyncHandler;
typedef Outcome<Error, Model::CancelChangeAccountEmailResult> CancelChangeAccountEmailOutcome;
typedef std::future<CancelChangeAccountEmailOutcome> CancelChangeAccountEmailOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::CancelChangeAccountEmailRequest&, const CancelChangeAccountEmailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelChangeAccountEmailAsyncHandler;
typedef Outcome<Error, Model::CancelCreateCloudAccountResult> CancelCreateCloudAccountOutcome;
typedef std::future<CancelCreateCloudAccountOutcome> CancelCreateCloudAccountOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::CancelCreateCloudAccountRequest&, const CancelCreateCloudAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelCreateCloudAccountAsyncHandler;
@@ -230,6 +239,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CancelPromoteResourceAccountResult> CancelPromoteResourceAccountOutcome;
typedef std::future<CancelPromoteResourceAccountOutcome> CancelPromoteResourceAccountOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::CancelPromoteResourceAccountRequest&, const CancelPromoteResourceAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPromoteResourceAccountAsyncHandler;
typedef Outcome<Error, Model::ChangeAccountEmailResult> ChangeAccountEmailOutcome;
typedef std::future<ChangeAccountEmailOutcome> ChangeAccountEmailOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ChangeAccountEmailRequest&, const ChangeAccountEmailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeAccountEmailAsyncHandler;
typedef Outcome<Error, Model::CheckAccountDeleteResult> CheckAccountDeleteOutcome;
typedef std::future<CheckAccountDeleteOutcome> CheckAccountDeleteOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::CheckAccountDeleteRequest&, const CheckAccountDeleteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckAccountDeleteAsyncHandler;
@@ -443,6 +455,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ResendPromoteResourceAccountEmailResult> ResendPromoteResourceAccountEmailOutcome;
typedef std::future<ResendPromoteResourceAccountEmailOutcome> ResendPromoteResourceAccountEmailOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ResendPromoteResourceAccountEmailRequest&, const ResendPromoteResourceAccountEmailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResendPromoteResourceAccountEmailAsyncHandler;
typedef Outcome<Error, Model::RetryChangeAccountEmailResult> RetryChangeAccountEmailOutcome;
typedef std::future<RetryChangeAccountEmailOutcome> RetryChangeAccountEmailOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::RetryChangeAccountEmailRequest&, const RetryChangeAccountEmailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetryChangeAccountEmailAsyncHandler;
typedef Outcome<Error, Model::SendVerificationCodeForBindSecureMobilePhoneResult> SendVerificationCodeForBindSecureMobilePhoneOutcome;
typedef std::future<SendVerificationCodeForBindSecureMobilePhoneOutcome> SendVerificationCodeForBindSecureMobilePhoneOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::SendVerificationCodeForBindSecureMobilePhoneRequest&, const SendVerificationCodeForBindSecureMobilePhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
SendVerificationCodeForBindSecureMobilePhoneOutcomeCallable sendVerificationCodeForBindSecureMobilePhoneCallable(const Model::SendVerificationCodeForBindSecureMobilePhoneRequest& request) const;

View File

@@ -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_;

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILRESULT_H_
#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CANCELCHANGEACCOUNTEMAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILREQUEST_H_
#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILREQUEST_H_
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILRESULT_H_
#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_CHANGEACCOUNTEMAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -34,22 +34,34 @@ public:
};
CreateResourceAccountRequest();
~CreateResourceAccountRequest();
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &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<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getPayerAccountId() const;
void setPayerAccountId(const std::string &payerAccountId);
private:
std::vector<Tag> 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> tag_;
std::string payerAccountId_;
};
} // namespace Model

View File

@@ -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;

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILRESULT_H_
#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_RETRYCHANGEACCOUNTEMAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<CancelChangeAccountEmailOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<ChangeAccountEmailOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<RetryChangeAccountEmailOutcome()>>(
[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();

View File

@@ -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_;
}

View File

@@ -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 <alibabacloud/resourcemanager/model/CancelChangeAccountEmailRequest.h>
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);
}

View File

@@ -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 <alibabacloud/resourcemanager/model/CancelChangeAccountEmailResult.h>
#include <json/json.h>
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());
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/resourcemanager/model/ChangeAccountEmailRequest.h>
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);
}

View File

@@ -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 <alibabacloud/resourcemanager/model/ChangeAccountEmailResult.h>
#include <json/json.h>
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());
}

View File

@@ -25,6 +25,27 @@ CreateResourceAccountRequest::CreateResourceAccountRequest()
CreateResourceAccountRequest::~CreateResourceAccountRequest() {}
std::vector<CreateResourceAccountRequest::Tag> CreateResourceAccountRequest::getTag() const {
return tag_;
}
void CreateResourceAccountRequest::setTag(const std::vector<CreateResourceAccountRequest::Tag> &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::Tag> CreateResourceAccountRequest::getTag() const {
return tag_;
}
void CreateResourceAccountRequest::setTag(const std::vector<CreateResourceAccountRequest::Tag> &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_;
}

View File

@@ -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)
{

View File

@@ -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 <alibabacloud/resourcemanager/model/RetryChangeAccountEmailRequest.h>
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);
}

View File

@@ -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 <alibabacloud/resourcemanager/model/RetryChangeAccountEmailResult.h>
#include <json/json.h>
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());
}