Supported CreateStandardGroup, ListStandardGroups API.

This commit is contained in:
sdk-team
2022-03-18 07:41:26 +00:00
parent 82e2b63b6d
commit adf8ff200a
25 changed files with 1644 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ set(dms-enterprise_public_header
include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h )
set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/AddLhMembersRequest.h
include/alibabacloud/dms-enterprise/model/AddLhMembersResult.h
include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h
include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
@@ -39,6 +41,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/CreateDataImportOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h
include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateLakeHouseSpaceRequest.h
include/alibabacloud/dms-enterprise/model/CreateLakeHouseSpaceResult.h
include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h
include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
@@ -51,6 +55,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h
include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.h
include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateStandardGroupRequest.h
include/alibabacloud/dms-enterprise/model/CreateStandardGroupResult.h
include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h
include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h
@@ -59,6 +65,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobResult.h
include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h
include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h
include/alibabacloud/dms-enterprise/model/DeleteLhMembersRequest.h
include/alibabacloud/dms-enterprise/model/DeleteLhMembersResult.h
include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.h
include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h
include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h
@@ -175,6 +183,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.h
include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h
include/alibabacloud/dms-enterprise/model/ListInstancesResult.h
include/alibabacloud/dms-enterprise/model/ListLhTaskFlowAndScenarioRequest.h
include/alibabacloud/dms-enterprise/model/ListLhTaskFlowAndScenarioResult.h
include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h
include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h
include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.h
@@ -246,6 +256,8 @@ set(dms-enterprise_public_header_model
set(dms-enterprise_src
src/Dms-enterpriseClient.cc
src/model/AddLhMembersRequest.cc
src/model/AddLhMembersResult.cc
src/model/AddLogicTableRouteConfigRequest.cc
src/model/AddLogicTableRouteConfigResult.cc
src/model/ApproveOrderRequest.cc
@@ -264,6 +276,8 @@ set(dms-enterprise_src
src/model/CreateDataImportOrderResult.cc
src/model/CreateFreeLockCorrectOrderRequest.cc
src/model/CreateFreeLockCorrectOrderResult.cc
src/model/CreateLakeHouseSpaceRequest.cc
src/model/CreateLakeHouseSpaceResult.cc
src/model/CreateLogicDatabaseRequest.cc
src/model/CreateLogicDatabaseResult.cc
src/model/CreateOrderRequest.cc
@@ -276,6 +290,8 @@ set(dms-enterprise_src
src/model/CreatePublishGroupTaskResult.cc
src/model/CreateSQLReviewOrderRequest.cc
src/model/CreateSQLReviewOrderResult.cc
src/model/CreateStandardGroupRequest.cc
src/model/CreateStandardGroupResult.cc
src/model/CreateStructSyncOrderRequest.cc
src/model/CreateStructSyncOrderResult.cc
src/model/CreateUploadFileJobRequest.cc
@@ -284,6 +300,8 @@ set(dms-enterprise_src
src/model/CreateUploadOSSFileJobResult.cc
src/model/DeleteInstanceRequest.cc
src/model/DeleteInstanceResult.cc
src/model/DeleteLhMembersRequest.cc
src/model/DeleteLhMembersResult.cc
src/model/DeleteLogicDatabaseRequest.cc
src/model/DeleteLogicDatabaseResult.cc
src/model/DeleteLogicTableRouteConfigRequest.cc
@@ -400,6 +418,8 @@ set(dms-enterprise_src
src/model/ListInstanceUserPermissionsResult.cc
src/model/ListInstancesRequest.cc
src/model/ListInstancesResult.cc
src/model/ListLhTaskFlowAndScenarioRequest.cc
src/model/ListLhTaskFlowAndScenarioResult.cc
src/model/ListLogicDatabasesRequest.cc
src/model/ListLogicDatabasesResult.cc
src/model/ListLogicTableRouteConfigRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "Dms_enterpriseExport.h"
#include "model/AddLhMembersRequest.h"
#include "model/AddLhMembersResult.h"
#include "model/AddLogicTableRouteConfigRequest.h"
#include "model/AddLogicTableRouteConfigResult.h"
#include "model/ApproveOrderRequest.h"
@@ -40,6 +42,8 @@
#include "model/CreateDataImportOrderResult.h"
#include "model/CreateFreeLockCorrectOrderRequest.h"
#include "model/CreateFreeLockCorrectOrderResult.h"
#include "model/CreateLakeHouseSpaceRequest.h"
#include "model/CreateLakeHouseSpaceResult.h"
#include "model/CreateLogicDatabaseRequest.h"
#include "model/CreateLogicDatabaseResult.h"
#include "model/CreateOrderRequest.h"
@@ -52,6 +56,8 @@
#include "model/CreatePublishGroupTaskResult.h"
#include "model/CreateSQLReviewOrderRequest.h"
#include "model/CreateSQLReviewOrderResult.h"
#include "model/CreateStandardGroupRequest.h"
#include "model/CreateStandardGroupResult.h"
#include "model/CreateStructSyncOrderRequest.h"
#include "model/CreateStructSyncOrderResult.h"
#include "model/CreateUploadFileJobRequest.h"
@@ -60,6 +66,8 @@
#include "model/CreateUploadOSSFileJobResult.h"
#include "model/DeleteInstanceRequest.h"
#include "model/DeleteInstanceResult.h"
#include "model/DeleteLhMembersRequest.h"
#include "model/DeleteLhMembersResult.h"
#include "model/DeleteLogicDatabaseRequest.h"
#include "model/DeleteLogicDatabaseResult.h"
#include "model/DeleteLogicTableRouteConfigRequest.h"
@@ -176,6 +184,8 @@
#include "model/ListInstanceUserPermissionsResult.h"
#include "model/ListInstancesRequest.h"
#include "model/ListInstancesResult.h"
#include "model/ListLhTaskFlowAndScenarioRequest.h"
#include "model/ListLhTaskFlowAndScenarioResult.h"
#include "model/ListLogicDatabasesRequest.h"
#include "model/ListLogicDatabasesResult.h"
#include "model/ListLogicTableRouteConfigRequest.h"
@@ -253,6 +263,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT Dms_enterpriseClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddLhMembersResult> AddLhMembersOutcome;
typedef std::future<AddLhMembersOutcome> AddLhMembersOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::AddLhMembersRequest&, const AddLhMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLhMembersAsyncHandler;
typedef Outcome<Error, Model::AddLogicTableRouteConfigResult> AddLogicTableRouteConfigOutcome;
typedef std::future<AddLogicTableRouteConfigOutcome> AddLogicTableRouteConfigOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::AddLogicTableRouteConfigRequest&, const AddLogicTableRouteConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLogicTableRouteConfigAsyncHandler;
@@ -280,6 +293,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateFreeLockCorrectOrderResult> CreateFreeLockCorrectOrderOutcome;
typedef std::future<CreateFreeLockCorrectOrderOutcome> CreateFreeLockCorrectOrderOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateFreeLockCorrectOrderRequest&, const CreateFreeLockCorrectOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFreeLockCorrectOrderAsyncHandler;
typedef Outcome<Error, Model::CreateLakeHouseSpaceResult> CreateLakeHouseSpaceOutcome;
typedef std::future<CreateLakeHouseSpaceOutcome> CreateLakeHouseSpaceOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateLakeHouseSpaceRequest&, const CreateLakeHouseSpaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLakeHouseSpaceAsyncHandler;
typedef Outcome<Error, Model::CreateLogicDatabaseResult> CreateLogicDatabaseOutcome;
typedef std::future<CreateLogicDatabaseOutcome> CreateLogicDatabaseOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateLogicDatabaseRequest&, const CreateLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLogicDatabaseAsyncHandler;
@@ -298,6 +314,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateSQLReviewOrderResult> CreateSQLReviewOrderOutcome;
typedef std::future<CreateSQLReviewOrderOutcome> CreateSQLReviewOrderOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateSQLReviewOrderRequest&, const CreateSQLReviewOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSQLReviewOrderAsyncHandler;
typedef Outcome<Error, Model::CreateStandardGroupResult> CreateStandardGroupOutcome;
typedef std::future<CreateStandardGroupOutcome> CreateStandardGroupOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateStandardGroupRequest&, const CreateStandardGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStandardGroupAsyncHandler;
typedef Outcome<Error, Model::CreateStructSyncOrderResult> CreateStructSyncOrderOutcome;
typedef std::future<CreateStructSyncOrderOutcome> CreateStructSyncOrderOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateStructSyncOrderRequest&, const CreateStructSyncOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStructSyncOrderAsyncHandler;
@@ -310,6 +329,9 @@ namespace AlibabaCloud
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;
typedef Outcome<Error, Model::DeleteLhMembersResult> DeleteLhMembersOutcome;
typedef std::future<DeleteLhMembersOutcome> DeleteLhMembersOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteLhMembersRequest&, const DeleteLhMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLhMembersAsyncHandler;
typedef Outcome<Error, Model::DeleteLogicDatabaseResult> DeleteLogicDatabaseOutcome;
typedef std::future<DeleteLogicDatabaseOutcome> DeleteLogicDatabaseOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteLogicDatabaseRequest&, const DeleteLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLogicDatabaseAsyncHandler;
@@ -484,6 +506,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
typedef Outcome<Error, Model::ListLhTaskFlowAndScenarioResult> ListLhTaskFlowAndScenarioOutcome;
typedef std::future<ListLhTaskFlowAndScenarioOutcome> ListLhTaskFlowAndScenarioOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListLhTaskFlowAndScenarioRequest&, const ListLhTaskFlowAndScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLhTaskFlowAndScenarioAsyncHandler;
typedef Outcome<Error, Model::ListLogicDatabasesResult> ListLogicDatabasesOutcome;
typedef std::future<ListLogicDatabasesOutcome> ListLogicDatabasesOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListLogicDatabasesRequest&, const ListLogicDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLogicDatabasesAsyncHandler;
@@ -591,6 +616,9 @@ namespace AlibabaCloud
Dms_enterpriseClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
Dms_enterpriseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~Dms_enterpriseClient();
AddLhMembersOutcome addLhMembers(const Model::AddLhMembersRequest &request)const;
void addLhMembersAsync(const Model::AddLhMembersRequest& request, const AddLhMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLhMembersOutcomeCallable addLhMembersCallable(const Model::AddLhMembersRequest& request) const;
AddLogicTableRouteConfigOutcome addLogicTableRouteConfig(const Model::AddLogicTableRouteConfigRequest &request)const;
void addLogicTableRouteConfigAsync(const Model::AddLogicTableRouteConfigRequest& request, const AddLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLogicTableRouteConfigOutcomeCallable addLogicTableRouteConfigCallable(const Model::AddLogicTableRouteConfigRequest& request) const;
@@ -618,6 +646,9 @@ namespace AlibabaCloud
CreateFreeLockCorrectOrderOutcome createFreeLockCorrectOrder(const Model::CreateFreeLockCorrectOrderRequest &request)const;
void createFreeLockCorrectOrderAsync(const Model::CreateFreeLockCorrectOrderRequest& request, const CreateFreeLockCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFreeLockCorrectOrderOutcomeCallable createFreeLockCorrectOrderCallable(const Model::CreateFreeLockCorrectOrderRequest& request) const;
CreateLakeHouseSpaceOutcome createLakeHouseSpace(const Model::CreateLakeHouseSpaceRequest &request)const;
void createLakeHouseSpaceAsync(const Model::CreateLakeHouseSpaceRequest& request, const CreateLakeHouseSpaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateLakeHouseSpaceOutcomeCallable createLakeHouseSpaceCallable(const Model::CreateLakeHouseSpaceRequest& request) const;
CreateLogicDatabaseOutcome createLogicDatabase(const Model::CreateLogicDatabaseRequest &request)const;
void createLogicDatabaseAsync(const Model::CreateLogicDatabaseRequest& request, const CreateLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateLogicDatabaseOutcomeCallable createLogicDatabaseCallable(const Model::CreateLogicDatabaseRequest& request) const;
@@ -636,6 +667,9 @@ namespace AlibabaCloud
CreateSQLReviewOrderOutcome createSQLReviewOrder(const Model::CreateSQLReviewOrderRequest &request)const;
void createSQLReviewOrderAsync(const Model::CreateSQLReviewOrderRequest& request, const CreateSQLReviewOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSQLReviewOrderOutcomeCallable createSQLReviewOrderCallable(const Model::CreateSQLReviewOrderRequest& request) const;
CreateStandardGroupOutcome createStandardGroup(const Model::CreateStandardGroupRequest &request)const;
void createStandardGroupAsync(const Model::CreateStandardGroupRequest& request, const CreateStandardGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateStandardGroupOutcomeCallable createStandardGroupCallable(const Model::CreateStandardGroupRequest& request) const;
CreateStructSyncOrderOutcome createStructSyncOrder(const Model::CreateStructSyncOrderRequest &request)const;
void createStructSyncOrderAsync(const Model::CreateStructSyncOrderRequest& request, const CreateStructSyncOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateStructSyncOrderOutcomeCallable createStructSyncOrderCallable(const Model::CreateStructSyncOrderRequest& request) const;
@@ -648,6 +682,9 @@ namespace AlibabaCloud
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;
DeleteLhMembersOutcome deleteLhMembers(const Model::DeleteLhMembersRequest &request)const;
void deleteLhMembersAsync(const Model::DeleteLhMembersRequest& request, const DeleteLhMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLhMembersOutcomeCallable deleteLhMembersCallable(const Model::DeleteLhMembersRequest& request) const;
DeleteLogicDatabaseOutcome deleteLogicDatabase(const Model::DeleteLogicDatabaseRequest &request)const;
void deleteLogicDatabaseAsync(const Model::DeleteLogicDatabaseRequest& request, const DeleteLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLogicDatabaseOutcomeCallable deleteLogicDatabaseCallable(const Model::DeleteLogicDatabaseRequest& request) const;
@@ -822,6 +859,9 @@ namespace AlibabaCloud
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
ListLhTaskFlowAndScenarioOutcome listLhTaskFlowAndScenario(const Model::ListLhTaskFlowAndScenarioRequest &request)const;
void listLhTaskFlowAndScenarioAsync(const Model::ListLhTaskFlowAndScenarioRequest& request, const ListLhTaskFlowAndScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListLhTaskFlowAndScenarioOutcomeCallable listLhTaskFlowAndScenarioCallable(const Model::ListLhTaskFlowAndScenarioRequest& request) const;
ListLogicDatabasesOutcome listLogicDatabases(const Model::ListLogicDatabasesRequest &request)const;
void listLogicDatabasesAsync(const Model::ListLogicDatabasesRequest& request, const ListLogicDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListLogicDatabasesOutcomeCallable listLogicDatabasesCallable(const Model::ListLogicDatabasesRequest& request) const;

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSREQUEST_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 AddLhMembersRequest : public RpcServiceRequest {
public:
struct Members {
std::string string;
std::vector<std::string> roles;
long userId;
};
AddLhMembersRequest();
~AddLhMembersRequest();
long getTid() const;
void setTid(long tid);
std::vector<Members> getMembers() const;
void setMembers(const std::vector<Members> &members);
int getObjectType() const;
void setObjectType(int objectType);
long getObjectId() const;
void setObjectId(long objectId);
private:
long tid_;
std::vector<Members> members_;
int objectType_;
long objectId_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSRESULT_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 AddLhMembersResult : public ServiceResult
{
public:
AddLhMembersResult();
explicit AddLhMembersResult(const std::string &payload);
~AddLhMembersResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLHMEMBERSRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELAKEHOUSESPACEREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELAKEHOUSESPACEREQUEST_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 CreateLakeHouseSpaceRequest : public RpcServiceRequest {
public:
CreateLakeHouseSpaceRequest();
~CreateLakeHouseSpaceRequest();
std::string getSpaceName() const;
void setSpaceName(const std::string &spaceName);
std::string getDescription() const;
void setDescription(const std::string &description);
long getUserId() const;
void setUserId(long userId);
long getTid() const;
void setTid(long tid);
std::string getMode() const;
void setMode(const std::string &mode);
std::string getDwDbType() const;
void setDwDbType(const std::string &dwDbType);
std::string getProdDbId() const;
void setProdDbId(const std::string &prodDbId);
std::string getDevDbId() const;
void setDevDbId(const std::string &devDbId);
std::string getSpaceConfig() const;
void setSpaceConfig(const std::string &spaceConfig);
private:
std::string spaceName_;
std::string description_;
long userId_;
long tid_;
std::string mode_;
std::string dwDbType_;
std::string prodDbId_;
std::string devDbId_;
std::string spaceConfig_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELAKEHOUSESPACEREQUEST_H_

View File

@@ -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_CREATELAKEHOUSESPACERESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELAKEHOUSESPACERESULT_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 CreateLakeHouseSpaceResult : public ServiceResult
{
public:
CreateLakeHouseSpaceResult();
explicit CreateLakeHouseSpaceResult(const std::string &payload);
~CreateLakeHouseSpaceResult();
long getSpaceId()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long spaceId_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELAKEHOUSESPACERESULT_H_

View File

@@ -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_CREATESTANDARDGROUPREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTANDARDGROUPREQUEST_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 CreateStandardGroupRequest : public RpcServiceRequest {
public:
CreateStandardGroupRequest();
~CreateStandardGroupRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getGroupName() const;
void setGroupName(const std::string &groupName);
long getTid() const;
void setTid(long tid);
std::string getDbType() const;
void setDbType(const std::string &dbType);
private:
std::string description_;
std::string groupName_;
long tid_;
std::string dbType_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTANDARDGROUPREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTANDARDGROUPRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTANDARDGROUPRESULT_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 CreateStandardGroupResult : public ServiceResult
{
public:
struct StandardGroup
{
std::string groupName;
std::string description;
long lastMenderId;
std::string groupMode;
std::string dbType;
};
CreateStandardGroupResult();
explicit CreateStandardGroupResult(const std::string &payload);
~CreateStandardGroupResult();
StandardGroup getStandardGroup()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
StandardGroup standardGroup_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTANDARDGROUPRESULT_H_

View File

@@ -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_DELETELHMEMBERSREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELHMEMBERSREQUEST_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 DeleteLhMembersRequest : public RpcServiceRequest {
public:
DeleteLhMembersRequest();
~DeleteLhMembersRequest();
long getTid() const;
void setTid(long tid);
int getObjectType() const;
void setObjectType(int objectType);
long getObjectId() const;
void setObjectId(long objectId);
std::vector<int> getMemberIds() const;
void setMemberIds(const std::vector<int> &memberIds);
private:
long tid_;
int objectType_;
long objectId_;
std::vector<int> memberIds_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELHMEMBERSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELHMEMBERSRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELHMEMBERSRESULT_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 DeleteLhMembersResult : public ServiceResult
{
public:
DeleteLhMembersResult();
explicit DeleteLhMembersResult(const std::string &payload);
~DeleteLhMembersResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELHMEMBERSRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIOREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIOREQUEST_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 ListLhTaskFlowAndScenarioRequest : public RpcServiceRequest {
public:
ListLhTaskFlowAndScenarioRequest();
~ListLhTaskFlowAndScenarioRequest();
long getUserId() const;
void setUserId(long userId);
long getTid() const;
void setTid(long tid);
long getSpaceId() const;
void setSpaceId(long spaceId);
private:
long userId_;
long tid_;
long spaceId_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIOREQUEST_H_

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIORESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIORESULT_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 ListLhTaskFlowAndScenarioResult : public ServiceResult
{
public:
struct ScenarioDAGList
{
struct Scenario
{
std::string description;
std::string creatorId;
std::string scenarioName;
};
struct Dag1
{
int status;
int latestInstanceTime;
bool isDeleted;
long scenarioId;
std::string creatorId;
long deployId;
long spaceId;
std::string dagOwnerNickName;
bool canEdit;
int latestInstanceStatus;
std::string demoId;
long id;
std::string creatorNickName;
long dataFlowId;
};
std::vector<Dag1> dagList;
Scenario scenario;
};
struct Dag
{
int status;
int latestInstanceTime;
bool isDeleted;
long scenarioId;
std::string creatorId;
long deployId;
long spaceId;
std::string dagOwnerNickName;
bool canEdit;
int latestInstanceStatus;
std::string demoId;
long id;
std::string creatorNickName;
long dataFlowId;
};
ListLhTaskFlowAndScenarioResult();
explicit ListLhTaskFlowAndScenarioResult(const std::string &payload);
~ListLhTaskFlowAndScenarioResult();
ScenarioDAGList getScenarioDAGList()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<Dag> getRawDAGList()const;
protected:
void parse(const std::string &payload);
private:
ScenarioDAGList scenarioDAGList_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<Dag> rawDAGList_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLHTASKFLOWANDSCENARIORESULT_H_

View File

@@ -51,6 +51,42 @@ Dms_enterpriseClient::Dms_enterpriseClient(const std::string & accessKeyId, cons
Dms_enterpriseClient::~Dms_enterpriseClient()
{}
Dms_enterpriseClient::AddLhMembersOutcome Dms_enterpriseClient::addLhMembers(const AddLhMembersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLhMembersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLhMembersOutcome(AddLhMembersResult(outcome.result()));
else
return AddLhMembersOutcome(outcome.error());
}
void Dms_enterpriseClient::addLhMembersAsync(const AddLhMembersRequest& request, const AddLhMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLhMembers(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::AddLhMembersOutcomeCallable Dms_enterpriseClient::addLhMembersCallable(const AddLhMembersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLhMembersOutcome()>>(
[this, request]()
{
return this->addLhMembers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::AddLogicTableRouteConfigOutcome Dms_enterpriseClient::addLogicTableRouteConfig(const AddLogicTableRouteConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +411,42 @@ Dms_enterpriseClient::CreateFreeLockCorrectOrderOutcomeCallable Dms_enterpriseCl
return task->get_future();
}
Dms_enterpriseClient::CreateLakeHouseSpaceOutcome Dms_enterpriseClient::createLakeHouseSpace(const CreateLakeHouseSpaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateLakeHouseSpaceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateLakeHouseSpaceOutcome(CreateLakeHouseSpaceResult(outcome.result()));
else
return CreateLakeHouseSpaceOutcome(outcome.error());
}
void Dms_enterpriseClient::createLakeHouseSpaceAsync(const CreateLakeHouseSpaceRequest& request, const CreateLakeHouseSpaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createLakeHouseSpace(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::CreateLakeHouseSpaceOutcomeCallable Dms_enterpriseClient::createLakeHouseSpaceCallable(const CreateLakeHouseSpaceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateLakeHouseSpaceOutcome()>>(
[this, request]()
{
return this->createLakeHouseSpace(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::CreateLogicDatabaseOutcome Dms_enterpriseClient::createLogicDatabase(const CreateLogicDatabaseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -591,6 +663,42 @@ Dms_enterpriseClient::CreateSQLReviewOrderOutcomeCallable Dms_enterpriseClient::
return task->get_future();
}
Dms_enterpriseClient::CreateStandardGroupOutcome Dms_enterpriseClient::createStandardGroup(const CreateStandardGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateStandardGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateStandardGroupOutcome(CreateStandardGroupResult(outcome.result()));
else
return CreateStandardGroupOutcome(outcome.error());
}
void Dms_enterpriseClient::createStandardGroupAsync(const CreateStandardGroupRequest& request, const CreateStandardGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createStandardGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::CreateStandardGroupOutcomeCallable Dms_enterpriseClient::createStandardGroupCallable(const CreateStandardGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateStandardGroupOutcome()>>(
[this, request]()
{
return this->createStandardGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::CreateStructSyncOrderOutcome Dms_enterpriseClient::createStructSyncOrder(const CreateStructSyncOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,6 +843,42 @@ Dms_enterpriseClient::DeleteInstanceOutcomeCallable Dms_enterpriseClient::delete
return task->get_future();
}
Dms_enterpriseClient::DeleteLhMembersOutcome Dms_enterpriseClient::deleteLhMembers(const DeleteLhMembersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLhMembersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLhMembersOutcome(DeleteLhMembersResult(outcome.result()));
else
return DeleteLhMembersOutcome(outcome.error());
}
void Dms_enterpriseClient::deleteLhMembersAsync(const DeleteLhMembersRequest& request, const DeleteLhMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLhMembers(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::DeleteLhMembersOutcomeCallable Dms_enterpriseClient::deleteLhMembersCallable(const DeleteLhMembersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLhMembersOutcome()>>(
[this, request]()
{
return this->deleteLhMembers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::DeleteLogicDatabaseOutcome Dms_enterpriseClient::deleteLogicDatabase(const DeleteLogicDatabaseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2823,6 +2967,42 @@ Dms_enterpriseClient::ListInstancesOutcomeCallable Dms_enterpriseClient::listIns
return task->get_future();
}
Dms_enterpriseClient::ListLhTaskFlowAndScenarioOutcome Dms_enterpriseClient::listLhTaskFlowAndScenario(const ListLhTaskFlowAndScenarioRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListLhTaskFlowAndScenarioOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListLhTaskFlowAndScenarioOutcome(ListLhTaskFlowAndScenarioResult(outcome.result()));
else
return ListLhTaskFlowAndScenarioOutcome(outcome.error());
}
void Dms_enterpriseClient::listLhTaskFlowAndScenarioAsync(const ListLhTaskFlowAndScenarioRequest& request, const ListLhTaskFlowAndScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listLhTaskFlowAndScenario(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::ListLhTaskFlowAndScenarioOutcomeCallable Dms_enterpriseClient::listLhTaskFlowAndScenarioCallable(const ListLhTaskFlowAndScenarioRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListLhTaskFlowAndScenarioOutcome()>>(
[this, request]()
{
return this->listLhTaskFlowAndScenario(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::ListLogicDatabasesOutcome Dms_enterpriseClient::listLogicDatabases(const ListLogicDatabasesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/AddLhMembersRequest.h>
using AlibabaCloud::Dms_enterprise::Model::AddLhMembersRequest;
AddLhMembersRequest::AddLhMembersRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "AddLhMembers") {
setMethod(HttpRequest::Method::Post);
}
AddLhMembersRequest::~AddLhMembersRequest() {}
long AddLhMembersRequest::getTid() const {
return tid_;
}
void AddLhMembersRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::vector<AddLhMembersRequest::Members> AddLhMembersRequest::getMembers() const {
return members_;
}
void AddLhMembersRequest::setMembers(const std::vector<AddLhMembersRequest::Members> &members) {
members_ = members;
for(int dep1 = 0; dep1 != members.size(); dep1++) {
for(int dep2 = 0; dep2 != members[dep1].roles.size(); dep2++) {
setParameter(std::string("Members") + "." + std::to_string(dep1 + 1) + ".Roles." + std::to_string(dep2 + 1), members[dep1].roles[dep2]);
}
setParameter(std::string("Members") + "." + std::to_string(dep1 + 1) + ".UserId", std::to_string(members[dep1].userId));
}
}
int AddLhMembersRequest::getObjectType() const {
return objectType_;
}
void AddLhMembersRequest::setObjectType(int objectType) {
objectType_ = objectType;
setParameter(std::string("ObjectType"), std::to_string(objectType));
}
long AddLhMembersRequest::getObjectId() const {
return objectId_;
}
void AddLhMembersRequest::setObjectId(long objectId) {
objectId_ = objectId;
setParameter(std::string("ObjectId"), std::to_string(objectId));
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/AddLhMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
AddLhMembersResult::AddLhMembersResult() :
ServiceResult()
{}
AddLhMembersResult::AddLhMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddLhMembersResult::~AddLhMembersResult()
{}
void AddLhMembersResult::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";
}
std::string AddLhMembersResult::getErrorCode()const
{
return errorCode_;
}
std::string AddLhMembersResult::getErrorMessage()const
{
return errorMessage_;
}
bool AddLhMembersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/CreateLakeHouseSpaceRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateLakeHouseSpaceRequest;
CreateLakeHouseSpaceRequest::CreateLakeHouseSpaceRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateLakeHouseSpace") {
setMethod(HttpRequest::Method::Post);
}
CreateLakeHouseSpaceRequest::~CreateLakeHouseSpaceRequest() {}
std::string CreateLakeHouseSpaceRequest::getSpaceName() const {
return spaceName_;
}
void CreateLakeHouseSpaceRequest::setSpaceName(const std::string &spaceName) {
spaceName_ = spaceName;
setParameter(std::string("SpaceName"), spaceName);
}
std::string CreateLakeHouseSpaceRequest::getDescription() const {
return description_;
}
void CreateLakeHouseSpaceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
long CreateLakeHouseSpaceRequest::getUserId() const {
return userId_;
}
void CreateLakeHouseSpaceRequest::setUserId(long userId) {
userId_ = userId;
setParameter(std::string("UserId"), std::to_string(userId));
}
long CreateLakeHouseSpaceRequest::getTid() const {
return tid_;
}
void CreateLakeHouseSpaceRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string CreateLakeHouseSpaceRequest::getMode() const {
return mode_;
}
void CreateLakeHouseSpaceRequest::setMode(const std::string &mode) {
mode_ = mode;
setParameter(std::string("Mode"), mode);
}
std::string CreateLakeHouseSpaceRequest::getDwDbType() const {
return dwDbType_;
}
void CreateLakeHouseSpaceRequest::setDwDbType(const std::string &dwDbType) {
dwDbType_ = dwDbType;
setParameter(std::string("DwDbType"), dwDbType);
}
std::string CreateLakeHouseSpaceRequest::getProdDbId() const {
return prodDbId_;
}
void CreateLakeHouseSpaceRequest::setProdDbId(const std::string &prodDbId) {
prodDbId_ = prodDbId;
setParameter(std::string("ProdDbId"), prodDbId);
}
std::string CreateLakeHouseSpaceRequest::getDevDbId() const {
return devDbId_;
}
void CreateLakeHouseSpaceRequest::setDevDbId(const std::string &devDbId) {
devDbId_ = devDbId;
setParameter(std::string("DevDbId"), devDbId);
}
std::string CreateLakeHouseSpaceRequest::getSpaceConfig() const {
return spaceConfig_;
}
void CreateLakeHouseSpaceRequest::setSpaceConfig(const std::string &spaceConfig) {
spaceConfig_ = spaceConfig;
setParameter(std::string("SpaceConfig"), spaceConfig);
}

View 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/CreateLakeHouseSpaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateLakeHouseSpaceResult::CreateLakeHouseSpaceResult() :
ServiceResult()
{}
CreateLakeHouseSpaceResult::CreateLakeHouseSpaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLakeHouseSpaceResult::~CreateLakeHouseSpaceResult()
{}
void CreateLakeHouseSpaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SpaceId"].isNull())
spaceId_ = std::stol(value["SpaceId"].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";
}
long CreateLakeHouseSpaceResult::getSpaceId()const
{
return spaceId_;
}
std::string CreateLakeHouseSpaceResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateLakeHouseSpaceResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateLakeHouseSpaceResult::getSuccess()const
{
return success_;
}

View 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/CreateStandardGroupRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateStandardGroupRequest;
CreateStandardGroupRequest::CreateStandardGroupRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateStandardGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateStandardGroupRequest::~CreateStandardGroupRequest() {}
std::string CreateStandardGroupRequest::getDescription() const {
return description_;
}
void CreateStandardGroupRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateStandardGroupRequest::getGroupName() const {
return groupName_;
}
void CreateStandardGroupRequest::setGroupName(const std::string &groupName) {
groupName_ = groupName;
setParameter(std::string("GroupName"), groupName);
}
long CreateStandardGroupRequest::getTid() const {
return tid_;
}
void CreateStandardGroupRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string CreateStandardGroupRequest::getDbType() const {
return dbType_;
}
void CreateStandardGroupRequest::setDbType(const std::string &dbType) {
dbType_ = dbType;
setParameter(std::string("DbType"), dbType);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/CreateStandardGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateStandardGroupResult::CreateStandardGroupResult() :
ServiceResult()
{}
CreateStandardGroupResult::CreateStandardGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateStandardGroupResult::~CreateStandardGroupResult()
{}
void CreateStandardGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto standardGroupNode = value["StandardGroup"];
if(!standardGroupNode["GroupName"].isNull())
standardGroup_.groupName = standardGroupNode["GroupName"].asString();
if(!standardGroupNode["Description"].isNull())
standardGroup_.description = standardGroupNode["Description"].asString();
if(!standardGroupNode["DbType"].isNull())
standardGroup_.dbType = standardGroupNode["DbType"].asString();
if(!standardGroupNode["LastMenderId"].isNull())
standardGroup_.lastMenderId = std::stol(standardGroupNode["LastMenderId"].asString());
if(!standardGroupNode["GroupMode"].isNull())
standardGroup_.groupMode = standardGroupNode["GroupMode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
CreateStandardGroupResult::StandardGroup CreateStandardGroupResult::getStandardGroup()const
{
return standardGroup_;
}
std::string CreateStandardGroupResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateStandardGroupResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateStandardGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/DeleteLhMembersRequest.h>
using AlibabaCloud::Dms_enterprise::Model::DeleteLhMembersRequest;
DeleteLhMembersRequest::DeleteLhMembersRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteLhMembers") {
setMethod(HttpRequest::Method::Post);
}
DeleteLhMembersRequest::~DeleteLhMembersRequest() {}
long DeleteLhMembersRequest::getTid() const {
return tid_;
}
void DeleteLhMembersRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
int DeleteLhMembersRequest::getObjectType() const {
return objectType_;
}
void DeleteLhMembersRequest::setObjectType(int objectType) {
objectType_ = objectType;
setParameter(std::string("ObjectType"), std::to_string(objectType));
}
long DeleteLhMembersRequest::getObjectId() const {
return objectId_;
}
void DeleteLhMembersRequest::setObjectId(long objectId) {
objectId_ = objectId;
setParameter(std::string("ObjectId"), std::to_string(objectId));
}
std::vector<DeleteLhMembersRequest::int> DeleteLhMembersRequest::getMemberIds() const {
return memberIds_;
}
void DeleteLhMembersRequest::setMemberIds(const std::vector<DeleteLhMembersRequest::int> &memberIds) {
memberIds_ = memberIds;
for(int dep1 = 0; dep1 != memberIds.size(); dep1++) {
setParameter(std::string("MemberIds") + "." + std::to_string(dep1 + 1), std::to_string(memberIds[dep1]));
}
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/DeleteLhMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
DeleteLhMembersResult::DeleteLhMembersResult() :
ServiceResult()
{}
DeleteLhMembersResult::DeleteLhMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLhMembersResult::~DeleteLhMembersResult()
{}
void DeleteLhMembersResult::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";
}
std::string DeleteLhMembersResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteLhMembersResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteLhMembersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/ListLhTaskFlowAndScenarioRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListLhTaskFlowAndScenarioRequest;
ListLhTaskFlowAndScenarioRequest::ListLhTaskFlowAndScenarioRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLhTaskFlowAndScenario") {
setMethod(HttpRequest::Method::Post);
}
ListLhTaskFlowAndScenarioRequest::~ListLhTaskFlowAndScenarioRequest() {}
long ListLhTaskFlowAndScenarioRequest::getUserId() const {
return userId_;
}
void ListLhTaskFlowAndScenarioRequest::setUserId(long userId) {
userId_ = userId;
setParameter(std::string("UserId"), std::to_string(userId));
}
long ListLhTaskFlowAndScenarioRequest::getTid() const {
return tid_;
}
void ListLhTaskFlowAndScenarioRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long ListLhTaskFlowAndScenarioRequest::getSpaceId() const {
return spaceId_;
}
void ListLhTaskFlowAndScenarioRequest::setSpaceId(long spaceId) {
spaceId_ = spaceId;
setParameter(std::string("SpaceId"), std::to_string(spaceId));
}

View File

@@ -0,0 +1,151 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/ListLhTaskFlowAndScenarioResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListLhTaskFlowAndScenarioResult::ListLhTaskFlowAndScenarioResult() :
ServiceResult()
{}
ListLhTaskFlowAndScenarioResult::ListLhTaskFlowAndScenarioResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLhTaskFlowAndScenarioResult::~ListLhTaskFlowAndScenarioResult()
{}
void ListLhTaskFlowAndScenarioResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRawDAGListNode = value["RawDAGList"]["dag"];
for (auto valueRawDAGListdag : allRawDAGListNode)
{
Dag rawDAGListObject;
if(!valueRawDAGListdag["Id"].isNull())
rawDAGListObject.id = std::stol(valueRawDAGListdag["Id"].asString());
if(!valueRawDAGListdag["CreatorId"].isNull())
rawDAGListObject.creatorId = valueRawDAGListdag["CreatorId"].asString();
if(!valueRawDAGListdag["IsDeleted"].isNull())
rawDAGListObject.isDeleted = valueRawDAGListdag["IsDeleted"].asString() == "true";
if(!valueRawDAGListdag["DemoId"].isNull())
rawDAGListObject.demoId = valueRawDAGListdag["DemoId"].asString();
if(!valueRawDAGListdag["DeployId"].isNull())
rawDAGListObject.deployId = std::stol(valueRawDAGListdag["DeployId"].asString());
if(!valueRawDAGListdag["DataFlowId"].isNull())
rawDAGListObject.dataFlowId = std::stol(valueRawDAGListdag["DataFlowId"].asString());
if(!valueRawDAGListdag["ScenarioId"].isNull())
rawDAGListObject.scenarioId = std::stol(valueRawDAGListdag["ScenarioId"].asString());
if(!valueRawDAGListdag["SpaceId"].isNull())
rawDAGListObject.spaceId = std::stol(valueRawDAGListdag["SpaceId"].asString());
if(!valueRawDAGListdag["CreatorNickName"].isNull())
rawDAGListObject.creatorNickName = valueRawDAGListdag["CreatorNickName"].asString();
if(!valueRawDAGListdag["DagOwnerNickName"].isNull())
rawDAGListObject.dagOwnerNickName = valueRawDAGListdag["DagOwnerNickName"].asString();
if(!valueRawDAGListdag["CanEdit"].isNull())
rawDAGListObject.canEdit = valueRawDAGListdag["CanEdit"].asString() == "true";
if(!valueRawDAGListdag["Status"].isNull())
rawDAGListObject.status = std::stoi(valueRawDAGListdag["Status"].asString());
if(!valueRawDAGListdag["LatestInstanceStatus"].isNull())
rawDAGListObject.latestInstanceStatus = std::stoi(valueRawDAGListdag["LatestInstanceStatus"].asString());
if(!valueRawDAGListdag["LatestInstanceTime"].isNull())
rawDAGListObject.latestInstanceTime = std::stoi(valueRawDAGListdag["LatestInstanceTime"].asString());
rawDAGList_.push_back(rawDAGListObject);
}
auto scenarioDAGListNode = value["ScenarioDAGList"];
auto allDagListNode = scenarioDAGListNode["DagList"]["dag"];
for (auto scenarioDAGListNodeDagListdag : allDagListNode)
{
ScenarioDAGList::Dag1 dag1Object;
if(!scenarioDAGListNodeDagListdag["Id"].isNull())
dag1Object.id = std::stol(scenarioDAGListNodeDagListdag["Id"].asString());
if(!scenarioDAGListNodeDagListdag["CreatorId"].isNull())
dag1Object.creatorId = scenarioDAGListNodeDagListdag["CreatorId"].asString();
if(!scenarioDAGListNodeDagListdag["IsDeleted"].isNull())
dag1Object.isDeleted = scenarioDAGListNodeDagListdag["IsDeleted"].asString() == "true";
if(!scenarioDAGListNodeDagListdag["DemoId"].isNull())
dag1Object.demoId = scenarioDAGListNodeDagListdag["DemoId"].asString();
if(!scenarioDAGListNodeDagListdag["DeployId"].isNull())
dag1Object.deployId = std::stol(scenarioDAGListNodeDagListdag["DeployId"].asString());
if(!scenarioDAGListNodeDagListdag["DataFlowId"].isNull())
dag1Object.dataFlowId = std::stol(scenarioDAGListNodeDagListdag["DataFlowId"].asString());
if(!scenarioDAGListNodeDagListdag["ScenarioId"].isNull())
dag1Object.scenarioId = std::stol(scenarioDAGListNodeDagListdag["ScenarioId"].asString());
if(!scenarioDAGListNodeDagListdag["SpaceId"].isNull())
dag1Object.spaceId = std::stol(scenarioDAGListNodeDagListdag["SpaceId"].asString());
if(!scenarioDAGListNodeDagListdag["CreatorNickName"].isNull())
dag1Object.creatorNickName = scenarioDAGListNodeDagListdag["CreatorNickName"].asString();
if(!scenarioDAGListNodeDagListdag["DagOwnerNickName"].isNull())
dag1Object.dagOwnerNickName = scenarioDAGListNodeDagListdag["DagOwnerNickName"].asString();
if(!scenarioDAGListNodeDagListdag["CanEdit"].isNull())
dag1Object.canEdit = scenarioDAGListNodeDagListdag["CanEdit"].asString() == "true";
if(!scenarioDAGListNodeDagListdag["Status"].isNull())
dag1Object.status = std::stoi(scenarioDAGListNodeDagListdag["Status"].asString());
if(!scenarioDAGListNodeDagListdag["LatestInstanceStatus"].isNull())
dag1Object.latestInstanceStatus = std::stoi(scenarioDAGListNodeDagListdag["LatestInstanceStatus"].asString());
if(!scenarioDAGListNodeDagListdag["LatestInstanceTime"].isNull())
dag1Object.latestInstanceTime = std::stoi(scenarioDAGListNodeDagListdag["LatestInstanceTime"].asString());
scenarioDAGList_.dagList.push_back(dag1Object);
}
auto scenarioNode = scenarioDAGListNode["Scenario"];
if(!scenarioNode["ScenarioName"].isNull())
scenarioDAGList_.scenario.scenarioName = scenarioNode["ScenarioName"].asString();
if(!scenarioNode["CreatorId"].isNull())
scenarioDAGList_.scenario.creatorId = scenarioNode["CreatorId"].asString();
if(!scenarioNode["Description"].isNull())
scenarioDAGList_.scenario.description = scenarioNode["Description"].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";
}
ListLhTaskFlowAndScenarioResult::ScenarioDAGList ListLhTaskFlowAndScenarioResult::getScenarioDAGList()const
{
return scenarioDAGList_;
}
std::string ListLhTaskFlowAndScenarioResult::getErrorCode()const
{
return errorCode_;
}
std::string ListLhTaskFlowAndScenarioResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListLhTaskFlowAndScenarioResult::getSuccess()const
{
return success_;
}
std::vector<ListLhTaskFlowAndScenarioResult::Dag> ListLhTaskFlowAndScenarioResult::getRawDAGList()const
{
return rawDAGList_;
}