Support CreateProcCorrectOrder request param of ExecMode.
This commit is contained in:
@@ -93,6 +93,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/CreateUploadFileJobResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteLakeHouseSpaceRequest.h
|
||||
@@ -253,6 +255,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListClassificationTemplatesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListClassificationTemplatesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h
|
||||
@@ -526,6 +530,8 @@ set(dms-enterprise_src
|
||||
src/model/CreateUploadFileJobResult.cc
|
||||
src/model/CreateUploadOSSFileJobRequest.cc
|
||||
src/model/CreateUploadOSSFileJobResult.cc
|
||||
src/model/DeleteAuthorityTemplateRequest.cc
|
||||
src/model/DeleteAuthorityTemplateResult.cc
|
||||
src/model/DeleteInstanceRequest.cc
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/DeleteLakeHouseSpaceRequest.cc
|
||||
@@ -686,6 +692,8 @@ set(dms-enterprise_src
|
||||
src/model/GrantUserPermissionResult.cc
|
||||
src/model/InspectProxyAccessSecretRequest.cc
|
||||
src/model/InspectProxyAccessSecretResult.cc
|
||||
src/model/ListAuthorityTemplateRequest.cc
|
||||
src/model/ListAuthorityTemplateResult.cc
|
||||
src/model/ListClassificationTemplatesRequest.cc
|
||||
src/model/ListClassificationTemplatesResult.cc
|
||||
src/model/ListColumnsRequest.cc
|
||||
|
||||
@@ -94,6 +94,8 @@
|
||||
#include "model/CreateUploadFileJobResult.h"
|
||||
#include "model/CreateUploadOSSFileJobRequest.h"
|
||||
#include "model/CreateUploadOSSFileJobResult.h"
|
||||
#include "model/DeleteAuthorityTemplateRequest.h"
|
||||
#include "model/DeleteAuthorityTemplateResult.h"
|
||||
#include "model/DeleteInstanceRequest.h"
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/DeleteLakeHouseSpaceRequest.h"
|
||||
@@ -254,6 +256,8 @@
|
||||
#include "model/GrantUserPermissionResult.h"
|
||||
#include "model/InspectProxyAccessSecretRequest.h"
|
||||
#include "model/InspectProxyAccessSecretResult.h"
|
||||
#include "model/ListAuthorityTemplateRequest.h"
|
||||
#include "model/ListAuthorityTemplateResult.h"
|
||||
#include "model/ListClassificationTemplatesRequest.h"
|
||||
#include "model/ListClassificationTemplatesResult.h"
|
||||
#include "model/ListColumnsRequest.h"
|
||||
@@ -569,6 +573,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateUploadOSSFileJobResult> CreateUploadOSSFileJobOutcome;
|
||||
typedef std::future<CreateUploadOSSFileJobOutcome> CreateUploadOSSFileJobOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateUploadOSSFileJobRequest&, const CreateUploadOSSFileJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUploadOSSFileJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAuthorityTemplateResult> DeleteAuthorityTemplateOutcome;
|
||||
typedef std::future<DeleteAuthorityTemplateOutcome> DeleteAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteAuthorityTemplateRequest&, const DeleteAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
|
||||
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
|
||||
@@ -809,6 +816,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InspectProxyAccessSecretResult> InspectProxyAccessSecretOutcome;
|
||||
typedef std::future<InspectProxyAccessSecretOutcome> InspectProxyAccessSecretOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::InspectProxyAccessSecretRequest&, const InspectProxyAccessSecretOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InspectProxyAccessSecretAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAuthorityTemplateResult> ListAuthorityTemplateOutcome;
|
||||
typedef std::future<ListAuthorityTemplateOutcome> ListAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListAuthorityTemplateRequest&, const ListAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClassificationTemplatesResult> ListClassificationTemplatesOutcome;
|
||||
typedef std::future<ListClassificationTemplatesOutcome> ListClassificationTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListClassificationTemplatesRequest&, const ListClassificationTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClassificationTemplatesAsyncHandler;
|
||||
@@ -1219,6 +1229,9 @@ namespace AlibabaCloud
|
||||
CreateUploadOSSFileJobOutcome createUploadOSSFileJob(const Model::CreateUploadOSSFileJobRequest &request)const;
|
||||
void createUploadOSSFileJobAsync(const Model::CreateUploadOSSFileJobRequest& request, const CreateUploadOSSFileJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUploadOSSFileJobOutcomeCallable createUploadOSSFileJobCallable(const Model::CreateUploadOSSFileJobRequest& request) const;
|
||||
DeleteAuthorityTemplateOutcome deleteAuthorityTemplate(const Model::DeleteAuthorityTemplateRequest &request)const;
|
||||
void deleteAuthorityTemplateAsync(const Model::DeleteAuthorityTemplateRequest& request, const DeleteAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAuthorityTemplateOutcomeCallable deleteAuthorityTemplateCallable(const Model::DeleteAuthorityTemplateRequest& request) const;
|
||||
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
|
||||
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
|
||||
@@ -1459,6 +1472,9 @@ namespace AlibabaCloud
|
||||
InspectProxyAccessSecretOutcome inspectProxyAccessSecret(const Model::InspectProxyAccessSecretRequest &request)const;
|
||||
void inspectProxyAccessSecretAsync(const Model::InspectProxyAccessSecretRequest& request, const InspectProxyAccessSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InspectProxyAccessSecretOutcomeCallable inspectProxyAccessSecretCallable(const Model::InspectProxyAccessSecretRequest& request) const;
|
||||
ListAuthorityTemplateOutcome listAuthorityTemplate(const Model::ListAuthorityTemplateRequest &request)const;
|
||||
void listAuthorityTemplateAsync(const Model::ListAuthorityTemplateRequest& request, const ListAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAuthorityTemplateOutcomeCallable listAuthorityTemplateCallable(const Model::ListAuthorityTemplateRequest& request) const;
|
||||
ListClassificationTemplatesOutcome listClassificationTemplates(const Model::ListClassificationTemplatesRequest &request)const;
|
||||
void listClassificationTemplatesAsync(const Model::ListClassificationTemplatesRequest& request, const ListClassificationTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClassificationTemplatesOutcomeCallable listClassificationTemplatesCallable(const Model::ListClassificationTemplatesRequest& request) const;
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
DbItemListItem dbItemListItem;
|
||||
std::vector<DbItemListItem> dbItemList;
|
||||
std::string execSQL;
|
||||
std::string execMode;
|
||||
std::string rollbackAttachmentName;
|
||||
};
|
||||
CreateProcCorrectOrderRequest();
|
||||
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteAuthorityTemplateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteAuthorityTemplateRequest();
|
||||
~DeleteAuthorityTemplateRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long templateId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteAuthorityTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAuthorityTemplateResult();
|
||||
explicit DeleteAuthorityTemplateResult(const std::string &payload);
|
||||
~DeleteAuthorityTemplateResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
long getTid()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEAUTHORITYTEMPLATERESULT_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_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListAuthorityTemplateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListAuthorityTemplateRequest();
|
||||
~ListAuthorityTemplateRequest();
|
||||
std::string getSearchKey() const;
|
||||
void setSearchKey(const std::string &searchKey);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string searchKey_;
|
||||
int pageNumber_;
|
||||
long tid_;
|
||||
int pageSize_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListAuthorityTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AuthorityTemplateView
|
||||
{
|
||||
std::string description;
|
||||
long creatorId;
|
||||
std::string createTime;
|
||||
long templateId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListAuthorityTemplateResult();
|
||||
explicit ListAuthorityTemplateResult(const std::string &payload);
|
||||
~ListAuthorityTemplateResult();
|
||||
long getTotalCount()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
long getTid()const;
|
||||
std::vector<AuthorityTemplateView> getAuthorityTemplateViewList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
long tid_;
|
||||
std::vector<AuthorityTemplateView> authorityTemplateViewList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTAUTHORITYTEMPLATERESULT_H_
|
||||
@@ -32,81 +32,84 @@ public:
|
||||
~RegisterInstanceRequest();
|
||||
std::string getEcsRegion() const;
|
||||
void setEcsRegion(const std::string &ecsRegion);
|
||||
int getDdlOnline() const;
|
||||
void setDdlOnline(int ddlOnline);
|
||||
int getUseDsql() const;
|
||||
void setUseDsql(int useDsql);
|
||||
std::string getNetworkType() const;
|
||||
void setNetworkType(const std::string &networkType);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getSid() const;
|
||||
void setSid(const std::string &sid);
|
||||
std::string getEnableSellSitd() const;
|
||||
void setEnableSellSitd(const std::string &enableSellSitd);
|
||||
std::string getDataLinkName() const;
|
||||
void setDataLinkName(const std::string &dataLinkName);
|
||||
std::string getTemplateType() const;
|
||||
void setTemplateType(const std::string &templateType);
|
||||
std::string getInstanceSource() const;
|
||||
void setInstanceSource(const std::string &instanceSource);
|
||||
std::string getEnvType() const;
|
||||
void setEnvType(const std::string &envType);
|
||||
std::string getHost() const;
|
||||
void setHost(const std::string &host);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
int getQueryTimeout() const;
|
||||
void setQueryTimeout(int queryTimeout);
|
||||
std::string getDbaUidByString() const;
|
||||
void setDbaUidByString(const std::string &dbaUidByString);
|
||||
std::string getEcsInstanceId() const;
|
||||
void setEcsInstanceId(const std::string &ecsInstanceId);
|
||||
int getExportTimeout() const;
|
||||
void setExportTimeout(int exportTimeout);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
int getPort() const;
|
||||
void setPort(int port);
|
||||
std::string getSafeRule() const;
|
||||
void setSafeRule(const std::string &safeRule);
|
||||
int getDdlOnline() const;
|
||||
void setDdlOnline(int ddlOnline);
|
||||
int getUseDsql() const;
|
||||
void setUseDsql(int useDsql);
|
||||
std::string getSid() const;
|
||||
void setSid(const std::string &sid);
|
||||
std::string getDataLinkName() const;
|
||||
void setDataLinkName(const std::string &dataLinkName);
|
||||
std::string getTemplateType() const;
|
||||
void setTemplateType(const std::string &templateType);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getDatabasePassword() const;
|
||||
void setDatabasePassword(const std::string &databasePassword);
|
||||
std::string getInstanceAlias() const;
|
||||
void setInstanceAlias(const std::string &instanceAlias);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
std::string getDatabaseUser() const;
|
||||
void setDatabaseUser(const std::string &databaseUser);
|
||||
int getPort() const;
|
||||
void setPort(int port);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
long getDbaUid() const;
|
||||
void setDbaUid(long dbaUid);
|
||||
bool getSkipTest() const;
|
||||
void setSkipTest(bool skipTest);
|
||||
std::string getSafeRule() const;
|
||||
void setSafeRule(const std::string &safeRule);
|
||||
|
||||
private:
|
||||
std::string ecsRegion_;
|
||||
int ddlOnline_;
|
||||
int useDsql_;
|
||||
std::string networkType_;
|
||||
long tid_;
|
||||
std::string sid_;
|
||||
std::string enableSellSitd_;
|
||||
std::string dataLinkName_;
|
||||
std::string templateType_;
|
||||
std::string instanceSource_;
|
||||
std::string envType_;
|
||||
std::string host_;
|
||||
std::string instanceType_;
|
||||
int queryTimeout_;
|
||||
std::string dbaUidByString_;
|
||||
std::string ecsInstanceId_;
|
||||
int exportTimeout_;
|
||||
long templateId_;
|
||||
int port_;
|
||||
std::string safeRule_;
|
||||
int ddlOnline_;
|
||||
int useDsql_;
|
||||
std::string sid_;
|
||||
std::string dataLinkName_;
|
||||
std::string templateType_;
|
||||
std::string instanceType_;
|
||||
std::string databasePassword_;
|
||||
std::string instanceAlias_;
|
||||
long templateId_;
|
||||
std::string databaseUser_;
|
||||
int port_;
|
||||
std::string vpcId_;
|
||||
long dbaUid_;
|
||||
bool skipTest_;
|
||||
std::string safeRule_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
|
||||
@@ -1347,6 +1347,42 @@ Dms_enterpriseClient::CreateUploadOSSFileJobOutcomeCallable Dms_enterpriseClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::DeleteAuthorityTemplateOutcome Dms_enterpriseClient::deleteAuthorityTemplate(const DeleteAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAuthorityTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAuthorityTemplateOutcome(DeleteAuthorityTemplateResult(outcome.result()));
|
||||
else
|
||||
return DeleteAuthorityTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::deleteAuthorityTemplateAsync(const DeleteAuthorityTemplateRequest& request, const DeleteAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAuthorityTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::DeleteAuthorityTemplateOutcomeCallable Dms_enterpriseClient::deleteAuthorityTemplateCallable(const DeleteAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAuthorityTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAuthorityTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::DeleteInstanceOutcome Dms_enterpriseClient::deleteInstance(const DeleteInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4227,6 +4263,42 @@ Dms_enterpriseClient::InspectProxyAccessSecretOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListAuthorityTemplateOutcome Dms_enterpriseClient::listAuthorityTemplate(const ListAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAuthorityTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAuthorityTemplateOutcome(ListAuthorityTemplateResult(outcome.result()));
|
||||
else
|
||||
return ListAuthorityTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listAuthorityTemplateAsync(const ListAuthorityTemplateRequest& request, const ListAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAuthorityTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListAuthorityTemplateOutcomeCallable Dms_enterpriseClient::listAuthorityTemplateCallable(const ListAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAuthorityTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAuthorityTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListClassificationTemplatesOutcome Dms_enterpriseClient::listClassificationTemplates(const ListClassificationTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -48,6 +48,7 @@ void CreateProcCorrectOrderRequest::setParam(const CreateProcCorrectOrderRequest
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
|
||||
}
|
||||
setParameter(std::string("Param") + ".ExecSQL", param.execSQL);
|
||||
setParameter(std::string("Param") + ".ExecMode", param.execMode);
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
}
|
||||
|
||||
|
||||
45
dms-enterprise/src/model/DeleteAuthorityTemplateRequest.cc
Normal file
45
dms-enterprise/src/model/DeleteAuthorityTemplateRequest.cc
Normal 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/dms-enterprise/model/DeleteAuthorityTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DeleteAuthorityTemplateRequest;
|
||||
|
||||
DeleteAuthorityTemplateRequest::DeleteAuthorityTemplateRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteAuthorityTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAuthorityTemplateRequest::~DeleteAuthorityTemplateRequest() {}
|
||||
|
||||
long DeleteAuthorityTemplateRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void DeleteAuthorityTemplateRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long DeleteAuthorityTemplateRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void DeleteAuthorityTemplateRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/DeleteAuthorityTemplateResult.cc
Normal file
72
dms-enterprise/src/model/DeleteAuthorityTemplateResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/DeleteAuthorityTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
DeleteAuthorityTemplateResult::DeleteAuthorityTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAuthorityTemplateResult::DeleteAuthorityTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAuthorityTemplateResult::~DeleteAuthorityTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteAuthorityTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Tid"].isNull())
|
||||
tid_ = std::stol(value["Tid"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAuthorityTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteAuthorityTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteAuthorityTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
long DeleteAuthorityTemplateResult::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
63
dms-enterprise/src/model/ListAuthorityTemplateRequest.cc
Normal file
63
dms-enterprise/src/model/ListAuthorityTemplateRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListAuthorityTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListAuthorityTemplateRequest;
|
||||
|
||||
ListAuthorityTemplateRequest::ListAuthorityTemplateRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListAuthorityTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAuthorityTemplateRequest::~ListAuthorityTemplateRequest() {}
|
||||
|
||||
std::string ListAuthorityTemplateRequest::getSearchKey() const {
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void ListAuthorityTemplateRequest::setSearchKey(const std::string &searchKey) {
|
||||
searchKey_ = searchKey;
|
||||
setParameter(std::string("SearchKey"), searchKey);
|
||||
}
|
||||
|
||||
int ListAuthorityTemplateRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAuthorityTemplateRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListAuthorityTemplateRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ListAuthorityTemplateRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
int ListAuthorityTemplateRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAuthorityTemplateRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
100
dms-enterprise/src/model/ListAuthorityTemplateResult.cc
Normal file
100
dms-enterprise/src/model/ListAuthorityTemplateResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/dms-enterprise/model/ListAuthorityTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ListAuthorityTemplateResult::ListAuthorityTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAuthorityTemplateResult::ListAuthorityTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAuthorityTemplateResult::~ListAuthorityTemplateResult()
|
||||
{}
|
||||
|
||||
void ListAuthorityTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAuthorityTemplateViewListNode = value["AuthorityTemplateViewList"]["AuthorityTemplateView"];
|
||||
for (auto valueAuthorityTemplateViewListAuthorityTemplateView : allAuthorityTemplateViewListNode)
|
||||
{
|
||||
AuthorityTemplateView authorityTemplateViewListObject;
|
||||
if(!valueAuthorityTemplateViewListAuthorityTemplateView["TemplateId"].isNull())
|
||||
authorityTemplateViewListObject.templateId = std::stol(valueAuthorityTemplateViewListAuthorityTemplateView["TemplateId"].asString());
|
||||
if(!valueAuthorityTemplateViewListAuthorityTemplateView["CreatorId"].isNull())
|
||||
authorityTemplateViewListObject.creatorId = std::stol(valueAuthorityTemplateViewListAuthorityTemplateView["CreatorId"].asString());
|
||||
if(!valueAuthorityTemplateViewListAuthorityTemplateView["Name"].isNull())
|
||||
authorityTemplateViewListObject.name = valueAuthorityTemplateViewListAuthorityTemplateView["Name"].asString();
|
||||
if(!valueAuthorityTemplateViewListAuthorityTemplateView["Description"].isNull())
|
||||
authorityTemplateViewListObject.description = valueAuthorityTemplateViewListAuthorityTemplateView["Description"].asString();
|
||||
if(!valueAuthorityTemplateViewListAuthorityTemplateView["CreateTime"].isNull())
|
||||
authorityTemplateViewListObject.createTime = valueAuthorityTemplateViewListAuthorityTemplateView["CreateTime"].asString();
|
||||
authorityTemplateViewList_.push_back(authorityTemplateViewListObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Tid"].isNull())
|
||||
tid_ = std::stol(value["Tid"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListAuthorityTemplateResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAuthorityTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListAuthorityTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListAuthorityTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
long ListAuthorityTemplateResult::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::vector<ListAuthorityTemplateResult::AuthorityTemplateView> ListAuthorityTemplateResult::getAuthorityTemplateViewList()const
|
||||
{
|
||||
return authorityTemplateViewList_;
|
||||
}
|
||||
|
||||
@@ -34,24 +34,6 @@ void RegisterInstanceRequest::setEcsRegion(const std::string &ecsRegion) {
|
||||
setParameter(std::string("EcsRegion"), ecsRegion);
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getDdlOnline() const {
|
||||
return ddlOnline_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setDdlOnline(int ddlOnline) {
|
||||
ddlOnline_ = ddlOnline;
|
||||
setParameter(std::string("DdlOnline"), std::to_string(ddlOnline));
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getUseDsql() const {
|
||||
return useDsql_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setUseDsql(int useDsql) {
|
||||
useDsql_ = useDsql;
|
||||
setParameter(std::string("UseDsql"), std::to_string(useDsql));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getNetworkType() const {
|
||||
return networkType_;
|
||||
}
|
||||
@@ -70,15 +52,6 @@ void RegisterInstanceRequest::setTid(long tid) {
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setSid(const std::string &sid) {
|
||||
sid_ = sid;
|
||||
setParameter(std::string("Sid"), sid);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getEnableSellSitd() const {
|
||||
return enableSellSitd_;
|
||||
}
|
||||
@@ -88,24 +61,6 @@ void RegisterInstanceRequest::setEnableSellSitd(const std::string &enableSellSit
|
||||
setParameter(std::string("EnableSellSitd"), enableSellSitd);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getDataLinkName() const {
|
||||
return dataLinkName_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setDataLinkName(const std::string &dataLinkName) {
|
||||
dataLinkName_ = dataLinkName;
|
||||
setParameter(std::string("DataLinkName"), dataLinkName);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getTemplateType() const {
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setTemplateType(const std::string &templateType) {
|
||||
templateType_ = templateType;
|
||||
setParameter(std::string("TemplateType"), templateType);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getInstanceSource() const {
|
||||
return instanceSource_;
|
||||
}
|
||||
@@ -133,15 +88,6 @@ void RegisterInstanceRequest::setHost(const std::string &host) {
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getQueryTimeout() const {
|
||||
return queryTimeout_;
|
||||
}
|
||||
@@ -151,6 +97,15 @@ void RegisterInstanceRequest::setQueryTimeout(int queryTimeout) {
|
||||
setParameter(std::string("QueryTimeout"), std::to_string(queryTimeout));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getDbaUidByString() const {
|
||||
return dbaUidByString_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setDbaUidByString(const std::string &dbaUidByString) {
|
||||
dbaUidByString_ = dbaUidByString;
|
||||
setParameter(std::string("DbaUidByString"), dbaUidByString);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getEcsInstanceId() const {
|
||||
return ecsInstanceId_;
|
||||
}
|
||||
@@ -169,6 +124,87 @@ void RegisterInstanceRequest::setExportTimeout(int exportTimeout) {
|
||||
setParameter(std::string("ExportTimeout"), std::to_string(exportTimeout));
|
||||
}
|
||||
|
||||
long RegisterInstanceRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getSafeRule() const {
|
||||
return safeRule_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setSafeRule(const std::string &safeRule) {
|
||||
safeRule_ = safeRule;
|
||||
setParameter(std::string("SafeRule"), safeRule);
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getDdlOnline() const {
|
||||
return ddlOnline_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setDdlOnline(int ddlOnline) {
|
||||
ddlOnline_ = ddlOnline;
|
||||
setParameter(std::string("DdlOnline"), std::to_string(ddlOnline));
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getUseDsql() const {
|
||||
return useDsql_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setUseDsql(int useDsql) {
|
||||
useDsql_ = useDsql;
|
||||
setParameter(std::string("UseDsql"), std::to_string(useDsql));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setSid(const std::string &sid) {
|
||||
sid_ = sid;
|
||||
setParameter(std::string("Sid"), sid);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getDataLinkName() const {
|
||||
return dataLinkName_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setDataLinkName(const std::string &dataLinkName) {
|
||||
dataLinkName_ = dataLinkName;
|
||||
setParameter(std::string("DataLinkName"), dataLinkName);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getTemplateType() const {
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setTemplateType(const std::string &templateType) {
|
||||
templateType_ = templateType;
|
||||
setParameter(std::string("TemplateType"), templateType);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getDatabasePassword() const {
|
||||
return databasePassword_;
|
||||
}
|
||||
@@ -187,15 +223,6 @@ void RegisterInstanceRequest::setInstanceAlias(const std::string &instanceAlias)
|
||||
setParameter(std::string("InstanceAlias"), instanceAlias);
|
||||
}
|
||||
|
||||
long RegisterInstanceRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getDatabaseUser() const {
|
||||
return databaseUser_;
|
||||
}
|
||||
@@ -205,15 +232,6 @@ void RegisterInstanceRequest::setDatabaseUser(const std::string &databaseUser) {
|
||||
setParameter(std::string("DatabaseUser"), databaseUser);
|
||||
}
|
||||
|
||||
int RegisterInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
@@ -241,12 +259,3 @@ void RegisterInstanceRequest::setSkipTest(bool skipTest) {
|
||||
setParameter(std::string("SkipTest"), skipTest ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getSafeRule() const {
|
||||
return safeRule_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setSafeRule(const std::string &safeRule) {
|
||||
safeRule_ = safeRule;
|
||||
setParameter(std::string("SafeRule"), safeRule);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user