diff --git a/VERSION b/VERSION index d5d708182..05b95d9b1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1768 \ No newline at end of file +1.36.1769 \ No newline at end of file diff --git a/dataworks-public/CMakeLists.txt b/dataworks-public/CMakeLists.txt index 6e809dba5..afdd940f7 100644 --- a/dataworks-public/CMakeLists.txt +++ b/dataworks-public/CMakeLists.txt @@ -31,6 +31,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/AddToMetaCategoryResult.h include/alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderRequest.h include/alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderResult.h + include/alibabacloud/dataworks-public/model/CallbackExtensionRequest.h + include/alibabacloud/dataworks-public/model/CallbackExtensionResult.h include/alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupRequest.h include/alibabacloud/dataworks-public/model/ChangeResourceManagerResourceGroupResult.h include/alibabacloud/dataworks-public/model/CheckFileDeploymentRequest.h @@ -45,6 +47,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/CreateBusinessResult.h include/alibabacloud/dataworks-public/model/CreateConnectionRequest.h include/alibabacloud/dataworks-public/model/CreateConnectionResult.h + include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleRequest.h + include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleResult.h + include/alibabacloud/dataworks-public/model/CreateDIJobRequest.h + include/alibabacloud/dataworks-public/model/CreateDIJobResult.h include/alibabacloud/dataworks-public/model/CreateDISyncTaskRequest.h include/alibabacloud/dataworks-public/model/CreateDISyncTaskResult.h include/alibabacloud/dataworks-public/model/CreateDagComplementRequest.h @@ -105,6 +111,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/DeleteBusinessResult.h include/alibabacloud/dataworks-public/model/DeleteConnectionRequest.h include/alibabacloud/dataworks-public/model/DeleteConnectionResult.h + include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleRequest.h + include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleResult.h + include/alibabacloud/dataworks-public/model/DeleteDIJobRequest.h + include/alibabacloud/dataworks-public/model/DeleteDIJobResult.h include/alibabacloud/dataworks-public/model/DeleteDISyncTaskRequest.h include/alibabacloud/dataworks-public/model/DeleteDISyncTaskResult.h include/alibabacloud/dataworks-public/model/DeleteDataServiceApiRequest.h @@ -171,6 +181,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/GetBusinessResult.h include/alibabacloud/dataworks-public/model/GetDDLJobStatusRequest.h include/alibabacloud/dataworks-public/model/GetDDLJobStatusResult.h + include/alibabacloud/dataworks-public/model/GetDIAlarmRuleRequest.h + include/alibabacloud/dataworks-public/model/GetDIAlarmRuleResult.h + include/alibabacloud/dataworks-public/model/GetDIJobRequest.h + include/alibabacloud/dataworks-public/model/GetDIJobResult.h include/alibabacloud/dataworks-public/model/GetDISyncInstanceInfoRequest.h include/alibabacloud/dataworks-public/model/GetDISyncInstanceInfoResult.h include/alibabacloud/dataworks-public/model/GetDISyncTaskRequest.h @@ -313,6 +327,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListCalcEnginesResult.h include/alibabacloud/dataworks-public/model/ListConnectionsRequest.h include/alibabacloud/dataworks-public/model/ListConnectionsResult.h + include/alibabacloud/dataworks-public/model/ListDIAlarmRulesRequest.h + include/alibabacloud/dataworks-public/model/ListDIAlarmRulesResult.h + include/alibabacloud/dataworks-public/model/ListDIJobsRequest.h + include/alibabacloud/dataworks-public/model/ListDIJobsResult.h include/alibabacloud/dataworks-public/model/ListDIProjectConfigRequest.h include/alibabacloud/dataworks-public/model/ListDIProjectConfigResult.h include/alibabacloud/dataworks-public/model/ListDagsRequest.h @@ -339,6 +357,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListDeploymentsResult.h include/alibabacloud/dataworks-public/model/ListEnabledExtensionsForProjectRequest.h include/alibabacloud/dataworks-public/model/ListEnabledExtensionsForProjectResult.h + include/alibabacloud/dataworks-public/model/ListEntitiesByTagsRequest.h + include/alibabacloud/dataworks-public/model/ListEntitiesByTagsResult.h + include/alibabacloud/dataworks-public/model/ListEntityTagsRequest.h + include/alibabacloud/dataworks-public/model/ListEntityTagsResult.h include/alibabacloud/dataworks-public/model/ListExtensionsRequest.h include/alibabacloud/dataworks-public/model/ListExtensionsResult.h include/alibabacloud/dataworks-public/model/ListFileTypeRequest.h @@ -427,6 +449,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h include/alibabacloud/dataworks-public/model/RegisterLineageRelationRequest.h include/alibabacloud/dataworks-public/model/RegisterLineageRelationResult.h + include/alibabacloud/dataworks-public/model/RemoveEntityTagsRequest.h + include/alibabacloud/dataworks-public/model/RemoveEntityTagsResult.h include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h include/alibabacloud/dataworks-public/model/RestartInstanceRequest.h @@ -455,12 +479,18 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/SearchNodesByOutputResult.h include/alibabacloud/dataworks-public/model/SetDataSourceShareRequest.h include/alibabacloud/dataworks-public/model/SetDataSourceShareResult.h + include/alibabacloud/dataworks-public/model/SetEntityTagsRequest.h + include/alibabacloud/dataworks-public/model/SetEntityTagsResult.h include/alibabacloud/dataworks-public/model/SetSuccessInstanceRequest.h include/alibabacloud/dataworks-public/model/SetSuccessInstanceResult.h + include/alibabacloud/dataworks-public/model/StartDIJobRequest.h + include/alibabacloud/dataworks-public/model/StartDIJobResult.h include/alibabacloud/dataworks-public/model/StartDISyncInstanceRequest.h include/alibabacloud/dataworks-public/model/StartDISyncInstanceResult.h include/alibabacloud/dataworks-public/model/StartMigrationRequest.h include/alibabacloud/dataworks-public/model/StartMigrationResult.h + include/alibabacloud/dataworks-public/model/StopDIJobRequest.h + include/alibabacloud/dataworks-public/model/StopDIJobResult.h include/alibabacloud/dataworks-public/model/StopDISyncInstanceRequest.h include/alibabacloud/dataworks-public/model/StopDISyncInstanceResult.h include/alibabacloud/dataworks-public/model/StopInstanceRequest.h @@ -489,6 +519,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/UpdateBusinessResult.h include/alibabacloud/dataworks-public/model/UpdateConnectionRequest.h include/alibabacloud/dataworks-public/model/UpdateConnectionResult.h + include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleRequest.h + include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleResult.h + include/alibabacloud/dataworks-public/model/UpdateDIJobRequest.h + include/alibabacloud/dataworks-public/model/UpdateDIJobResult.h include/alibabacloud/dataworks-public/model/UpdateDIProjectConfigRequest.h include/alibabacloud/dataworks-public/model/UpdateDIProjectConfigResult.h include/alibabacloud/dataworks-public/model/UpdateDISyncTaskRequest.h @@ -548,6 +582,8 @@ set(dataworks-public_src src/model/AddToMetaCategoryResult.cc src/model/ApprovePermissionApplyOrderRequest.cc src/model/ApprovePermissionApplyOrderResult.cc + src/model/CallbackExtensionRequest.cc + src/model/CallbackExtensionResult.cc src/model/ChangeResourceManagerResourceGroupRequest.cc src/model/ChangeResourceManagerResourceGroupResult.cc src/model/CheckFileDeploymentRequest.cc @@ -562,6 +598,10 @@ set(dataworks-public_src src/model/CreateBusinessResult.cc src/model/CreateConnectionRequest.cc src/model/CreateConnectionResult.cc + src/model/CreateDIAlarmRuleRequest.cc + src/model/CreateDIAlarmRuleResult.cc + src/model/CreateDIJobRequest.cc + src/model/CreateDIJobResult.cc src/model/CreateDISyncTaskRequest.cc src/model/CreateDISyncTaskResult.cc src/model/CreateDagComplementRequest.cc @@ -622,6 +662,10 @@ set(dataworks-public_src src/model/DeleteBusinessResult.cc src/model/DeleteConnectionRequest.cc src/model/DeleteConnectionResult.cc + src/model/DeleteDIAlarmRuleRequest.cc + src/model/DeleteDIAlarmRuleResult.cc + src/model/DeleteDIJobRequest.cc + src/model/DeleteDIJobResult.cc src/model/DeleteDISyncTaskRequest.cc src/model/DeleteDISyncTaskResult.cc src/model/DeleteDataServiceApiRequest.cc @@ -688,6 +732,10 @@ set(dataworks-public_src src/model/GetBusinessResult.cc src/model/GetDDLJobStatusRequest.cc src/model/GetDDLJobStatusResult.cc + src/model/GetDIAlarmRuleRequest.cc + src/model/GetDIAlarmRuleResult.cc + src/model/GetDIJobRequest.cc + src/model/GetDIJobResult.cc src/model/GetDISyncInstanceInfoRequest.cc src/model/GetDISyncInstanceInfoResult.cc src/model/GetDISyncTaskRequest.cc @@ -830,6 +878,10 @@ set(dataworks-public_src src/model/ListCalcEnginesResult.cc src/model/ListConnectionsRequest.cc src/model/ListConnectionsResult.cc + src/model/ListDIAlarmRulesRequest.cc + src/model/ListDIAlarmRulesResult.cc + src/model/ListDIJobsRequest.cc + src/model/ListDIJobsResult.cc src/model/ListDIProjectConfigRequest.cc src/model/ListDIProjectConfigResult.cc src/model/ListDagsRequest.cc @@ -856,6 +908,10 @@ set(dataworks-public_src src/model/ListDeploymentsResult.cc src/model/ListEnabledExtensionsForProjectRequest.cc src/model/ListEnabledExtensionsForProjectResult.cc + src/model/ListEntitiesByTagsRequest.cc + src/model/ListEntitiesByTagsResult.cc + src/model/ListEntityTagsRequest.cc + src/model/ListEntityTagsResult.cc src/model/ListExtensionsRequest.cc src/model/ListExtensionsResult.cc src/model/ListFileTypeRequest.cc @@ -944,6 +1000,8 @@ set(dataworks-public_src src/model/QueryPublicModelEngineResult.cc src/model/RegisterLineageRelationRequest.cc src/model/RegisterLineageRelationResult.cc + src/model/RemoveEntityTagsRequest.cc + src/model/RemoveEntityTagsResult.cc src/model/RemoveProjectMemberFromRoleRequest.cc src/model/RemoveProjectMemberFromRoleResult.cc src/model/RestartInstanceRequest.cc @@ -972,12 +1030,18 @@ set(dataworks-public_src src/model/SearchNodesByOutputResult.cc src/model/SetDataSourceShareRequest.cc src/model/SetDataSourceShareResult.cc + src/model/SetEntityTagsRequest.cc + src/model/SetEntityTagsResult.cc src/model/SetSuccessInstanceRequest.cc src/model/SetSuccessInstanceResult.cc + src/model/StartDIJobRequest.cc + src/model/StartDIJobResult.cc src/model/StartDISyncInstanceRequest.cc src/model/StartDISyncInstanceResult.cc src/model/StartMigrationRequest.cc src/model/StartMigrationResult.cc + src/model/StopDIJobRequest.cc + src/model/StopDIJobResult.cc src/model/StopDISyncInstanceRequest.cc src/model/StopDISyncInstanceResult.cc src/model/StopInstanceRequest.cc @@ -1006,6 +1070,10 @@ set(dataworks-public_src src/model/UpdateBusinessResult.cc src/model/UpdateConnectionRequest.cc src/model/UpdateConnectionResult.cc + src/model/UpdateDIAlarmRuleRequest.cc + src/model/UpdateDIAlarmRuleResult.cc + src/model/UpdateDIJobRequest.cc + src/model/UpdateDIJobResult.cc src/model/UpdateDIProjectConfigRequest.cc src/model/UpdateDIProjectConfigResult.cc src/model/UpdateDISyncTaskRequest.cc diff --git a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h index 5169acbed..d477d225a 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h @@ -32,6 +32,8 @@ #include "model/AddToMetaCategoryResult.h" #include "model/ApprovePermissionApplyOrderRequest.h" #include "model/ApprovePermissionApplyOrderResult.h" +#include "model/CallbackExtensionRequest.h" +#include "model/CallbackExtensionResult.h" #include "model/ChangeResourceManagerResourceGroupRequest.h" #include "model/ChangeResourceManagerResourceGroupResult.h" #include "model/CheckFileDeploymentRequest.h" @@ -46,6 +48,10 @@ #include "model/CreateBusinessResult.h" #include "model/CreateConnectionRequest.h" #include "model/CreateConnectionResult.h" +#include "model/CreateDIAlarmRuleRequest.h" +#include "model/CreateDIAlarmRuleResult.h" +#include "model/CreateDIJobRequest.h" +#include "model/CreateDIJobResult.h" #include "model/CreateDISyncTaskRequest.h" #include "model/CreateDISyncTaskResult.h" #include "model/CreateDagComplementRequest.h" @@ -106,6 +112,10 @@ #include "model/DeleteBusinessResult.h" #include "model/DeleteConnectionRequest.h" #include "model/DeleteConnectionResult.h" +#include "model/DeleteDIAlarmRuleRequest.h" +#include "model/DeleteDIAlarmRuleResult.h" +#include "model/DeleteDIJobRequest.h" +#include "model/DeleteDIJobResult.h" #include "model/DeleteDISyncTaskRequest.h" #include "model/DeleteDISyncTaskResult.h" #include "model/DeleteDataServiceApiRequest.h" @@ -172,6 +182,10 @@ #include "model/GetBusinessResult.h" #include "model/GetDDLJobStatusRequest.h" #include "model/GetDDLJobStatusResult.h" +#include "model/GetDIAlarmRuleRequest.h" +#include "model/GetDIAlarmRuleResult.h" +#include "model/GetDIJobRequest.h" +#include "model/GetDIJobResult.h" #include "model/GetDISyncInstanceInfoRequest.h" #include "model/GetDISyncInstanceInfoResult.h" #include "model/GetDISyncTaskRequest.h" @@ -314,6 +328,10 @@ #include "model/ListCalcEnginesResult.h" #include "model/ListConnectionsRequest.h" #include "model/ListConnectionsResult.h" +#include "model/ListDIAlarmRulesRequest.h" +#include "model/ListDIAlarmRulesResult.h" +#include "model/ListDIJobsRequest.h" +#include "model/ListDIJobsResult.h" #include "model/ListDIProjectConfigRequest.h" #include "model/ListDIProjectConfigResult.h" #include "model/ListDagsRequest.h" @@ -340,6 +358,10 @@ #include "model/ListDeploymentsResult.h" #include "model/ListEnabledExtensionsForProjectRequest.h" #include "model/ListEnabledExtensionsForProjectResult.h" +#include "model/ListEntitiesByTagsRequest.h" +#include "model/ListEntitiesByTagsResult.h" +#include "model/ListEntityTagsRequest.h" +#include "model/ListEntityTagsResult.h" #include "model/ListExtensionsRequest.h" #include "model/ListExtensionsResult.h" #include "model/ListFileTypeRequest.h" @@ -428,6 +450,8 @@ #include "model/QueryPublicModelEngineResult.h" #include "model/RegisterLineageRelationRequest.h" #include "model/RegisterLineageRelationResult.h" +#include "model/RemoveEntityTagsRequest.h" +#include "model/RemoveEntityTagsResult.h" #include "model/RemoveProjectMemberFromRoleRequest.h" #include "model/RemoveProjectMemberFromRoleResult.h" #include "model/RestartInstanceRequest.h" @@ -456,12 +480,18 @@ #include "model/SearchNodesByOutputResult.h" #include "model/SetDataSourceShareRequest.h" #include "model/SetDataSourceShareResult.h" +#include "model/SetEntityTagsRequest.h" +#include "model/SetEntityTagsResult.h" #include "model/SetSuccessInstanceRequest.h" #include "model/SetSuccessInstanceResult.h" +#include "model/StartDIJobRequest.h" +#include "model/StartDIJobResult.h" #include "model/StartDISyncInstanceRequest.h" #include "model/StartDISyncInstanceResult.h" #include "model/StartMigrationRequest.h" #include "model/StartMigrationResult.h" +#include "model/StopDIJobRequest.h" +#include "model/StopDIJobResult.h" #include "model/StopDISyncInstanceRequest.h" #include "model/StopDISyncInstanceResult.h" #include "model/StopInstanceRequest.h" @@ -490,6 +520,10 @@ #include "model/UpdateBusinessResult.h" #include "model/UpdateConnectionRequest.h" #include "model/UpdateConnectionResult.h" +#include "model/UpdateDIAlarmRuleRequest.h" +#include "model/UpdateDIAlarmRuleResult.h" +#include "model/UpdateDIJobRequest.h" +#include "model/UpdateDIJobResult.h" #include "model/UpdateDIProjectConfigRequest.h" #include "model/UpdateDIProjectConfigResult.h" #include "model/UpdateDISyncTaskRequest.h" @@ -560,6 +594,9 @@ namespace AlibabaCloud typedef Outcome ApprovePermissionApplyOrderOutcome; typedef std::future ApprovePermissionApplyOrderOutcomeCallable; typedef std::function&)> ApprovePermissionApplyOrderAsyncHandler; + typedef Outcome CallbackExtensionOutcome; + typedef std::future CallbackExtensionOutcomeCallable; + typedef std::function&)> CallbackExtensionAsyncHandler; typedef Outcome ChangeResourceManagerResourceGroupOutcome; typedef std::future ChangeResourceManagerResourceGroupOutcomeCallable; typedef std::function&)> ChangeResourceManagerResourceGroupAsyncHandler; @@ -581,6 +618,12 @@ namespace AlibabaCloud typedef Outcome CreateConnectionOutcome; typedef std::future CreateConnectionOutcomeCallable; typedef std::function&)> CreateConnectionAsyncHandler; + typedef Outcome CreateDIAlarmRuleOutcome; + typedef std::future CreateDIAlarmRuleOutcomeCallable; + typedef std::function&)> CreateDIAlarmRuleAsyncHandler; + typedef Outcome CreateDIJobOutcome; + typedef std::future CreateDIJobOutcomeCallable; + typedef std::function&)> CreateDIJobAsyncHandler; typedef Outcome CreateDISyncTaskOutcome; typedef std::future CreateDISyncTaskOutcomeCallable; typedef std::function&)> CreateDISyncTaskAsyncHandler; @@ -671,6 +714,12 @@ namespace AlibabaCloud typedef Outcome DeleteConnectionOutcome; typedef std::future DeleteConnectionOutcomeCallable; typedef std::function&)> DeleteConnectionAsyncHandler; + typedef Outcome DeleteDIAlarmRuleOutcome; + typedef std::future DeleteDIAlarmRuleOutcomeCallable; + typedef std::function&)> DeleteDIAlarmRuleAsyncHandler; + typedef Outcome DeleteDIJobOutcome; + typedef std::future DeleteDIJobOutcomeCallable; + typedef std::function&)> DeleteDIJobAsyncHandler; typedef Outcome DeleteDISyncTaskOutcome; typedef std::future DeleteDISyncTaskOutcomeCallable; typedef std::function&)> DeleteDISyncTaskAsyncHandler; @@ -770,6 +819,12 @@ namespace AlibabaCloud typedef Outcome GetDDLJobStatusOutcome; typedef std::future GetDDLJobStatusOutcomeCallable; typedef std::function&)> GetDDLJobStatusAsyncHandler; + typedef Outcome GetDIAlarmRuleOutcome; + typedef std::future GetDIAlarmRuleOutcomeCallable; + typedef std::function&)> GetDIAlarmRuleAsyncHandler; + typedef Outcome GetDIJobOutcome; + typedef std::future GetDIJobOutcomeCallable; + typedef std::function&)> GetDIJobAsyncHandler; typedef Outcome GetDISyncInstanceInfoOutcome; typedef std::future GetDISyncInstanceInfoOutcomeCallable; typedef std::function&)> GetDISyncInstanceInfoAsyncHandler; @@ -983,6 +1038,12 @@ namespace AlibabaCloud typedef Outcome ListConnectionsOutcome; typedef std::future ListConnectionsOutcomeCallable; typedef std::function&)> ListConnectionsAsyncHandler; + typedef Outcome ListDIAlarmRulesOutcome; + typedef std::future ListDIAlarmRulesOutcomeCallable; + typedef std::function&)> ListDIAlarmRulesAsyncHandler; + typedef Outcome ListDIJobsOutcome; + typedef std::future ListDIJobsOutcomeCallable; + typedef std::function&)> ListDIJobsAsyncHandler; typedef Outcome ListDIProjectConfigOutcome; typedef std::future ListDIProjectConfigOutcomeCallable; typedef std::function&)> ListDIProjectConfigAsyncHandler; @@ -1022,6 +1083,12 @@ namespace AlibabaCloud typedef Outcome ListEnabledExtensionsForProjectOutcome; typedef std::future ListEnabledExtensionsForProjectOutcomeCallable; typedef std::function&)> ListEnabledExtensionsForProjectAsyncHandler; + typedef Outcome ListEntitiesByTagsOutcome; + typedef std::future ListEntitiesByTagsOutcomeCallable; + typedef std::function&)> ListEntitiesByTagsAsyncHandler; + typedef Outcome ListEntityTagsOutcome; + typedef std::future ListEntityTagsOutcomeCallable; + typedef std::function&)> ListEntityTagsAsyncHandler; typedef Outcome ListExtensionsOutcome; typedef std::future ListExtensionsOutcomeCallable; typedef std::function&)> ListExtensionsAsyncHandler; @@ -1154,6 +1221,9 @@ namespace AlibabaCloud typedef Outcome RegisterLineageRelationOutcome; typedef std::future RegisterLineageRelationOutcomeCallable; typedef std::function&)> RegisterLineageRelationAsyncHandler; + typedef Outcome RemoveEntityTagsOutcome; + typedef std::future RemoveEntityTagsOutcomeCallable; + typedef std::function&)> RemoveEntityTagsAsyncHandler; typedef Outcome RemoveProjectMemberFromRoleOutcome; typedef std::future RemoveProjectMemberFromRoleOutcomeCallable; typedef std::function&)> RemoveProjectMemberFromRoleAsyncHandler; @@ -1196,15 +1266,24 @@ namespace AlibabaCloud typedef Outcome SetDataSourceShareOutcome; typedef std::future SetDataSourceShareOutcomeCallable; typedef std::function&)> SetDataSourceShareAsyncHandler; + typedef Outcome SetEntityTagsOutcome; + typedef std::future SetEntityTagsOutcomeCallable; + typedef std::function&)> SetEntityTagsAsyncHandler; typedef Outcome SetSuccessInstanceOutcome; typedef std::future SetSuccessInstanceOutcomeCallable; typedef std::function&)> SetSuccessInstanceAsyncHandler; + typedef Outcome StartDIJobOutcome; + typedef std::future StartDIJobOutcomeCallable; + typedef std::function&)> StartDIJobAsyncHandler; typedef Outcome StartDISyncInstanceOutcome; typedef std::future StartDISyncInstanceOutcomeCallable; typedef std::function&)> StartDISyncInstanceAsyncHandler; typedef Outcome StartMigrationOutcome; typedef std::future StartMigrationOutcomeCallable; typedef std::function&)> StartMigrationAsyncHandler; + typedef Outcome StopDIJobOutcome; + typedef std::future StopDIJobOutcomeCallable; + typedef std::function&)> StopDIJobAsyncHandler; typedef Outcome StopDISyncInstanceOutcome; typedef std::future StopDISyncInstanceOutcomeCallable; typedef std::function&)> StopDISyncInstanceAsyncHandler; @@ -1247,6 +1326,12 @@ namespace AlibabaCloud typedef Outcome UpdateConnectionOutcome; typedef std::future UpdateConnectionOutcomeCallable; typedef std::function&)> UpdateConnectionAsyncHandler; + typedef Outcome UpdateDIAlarmRuleOutcome; + typedef std::future UpdateDIAlarmRuleOutcomeCallable; + typedef std::function&)> UpdateDIAlarmRuleAsyncHandler; + typedef Outcome UpdateDIJobOutcome; + typedef std::future UpdateDIJobOutcomeCallable; + typedef std::function&)> UpdateDIJobAsyncHandler; typedef Outcome UpdateDIProjectConfigOutcome; typedef std::future UpdateDIProjectConfigOutcomeCallable; typedef std::function&)> UpdateDIProjectConfigAsyncHandler; @@ -1336,6 +1421,9 @@ namespace AlibabaCloud ApprovePermissionApplyOrderOutcome approvePermissionApplyOrder(const Model::ApprovePermissionApplyOrderRequest &request)const; void approvePermissionApplyOrderAsync(const Model::ApprovePermissionApplyOrderRequest& request, const ApprovePermissionApplyOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApprovePermissionApplyOrderOutcomeCallable approvePermissionApplyOrderCallable(const Model::ApprovePermissionApplyOrderRequest& request) const; + CallbackExtensionOutcome callbackExtension(const Model::CallbackExtensionRequest &request)const; + void callbackExtensionAsync(const Model::CallbackExtensionRequest& request, const CallbackExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CallbackExtensionOutcomeCallable callbackExtensionCallable(const Model::CallbackExtensionRequest& request) const; ChangeResourceManagerResourceGroupOutcome changeResourceManagerResourceGroup(const Model::ChangeResourceManagerResourceGroupRequest &request)const; void changeResourceManagerResourceGroupAsync(const Model::ChangeResourceManagerResourceGroupRequest& request, const ChangeResourceManagerResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ChangeResourceManagerResourceGroupOutcomeCallable changeResourceManagerResourceGroupCallable(const Model::ChangeResourceManagerResourceGroupRequest& request) const; @@ -1357,6 +1445,12 @@ namespace AlibabaCloud CreateConnectionOutcome createConnection(const Model::CreateConnectionRequest &request)const; void createConnectionAsync(const Model::CreateConnectionRequest& request, const CreateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConnectionOutcomeCallable createConnectionCallable(const Model::CreateConnectionRequest& request) const; + CreateDIAlarmRuleOutcome createDIAlarmRule(const Model::CreateDIAlarmRuleRequest &request)const; + void createDIAlarmRuleAsync(const Model::CreateDIAlarmRuleRequest& request, const CreateDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDIAlarmRuleOutcomeCallable createDIAlarmRuleCallable(const Model::CreateDIAlarmRuleRequest& request) const; + CreateDIJobOutcome createDIJob(const Model::CreateDIJobRequest &request)const; + void createDIJobAsync(const Model::CreateDIJobRequest& request, const CreateDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDIJobOutcomeCallable createDIJobCallable(const Model::CreateDIJobRequest& request) const; CreateDISyncTaskOutcome createDISyncTask(const Model::CreateDISyncTaskRequest &request)const; void createDISyncTaskAsync(const Model::CreateDISyncTaskRequest& request, const CreateDISyncTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDISyncTaskOutcomeCallable createDISyncTaskCallable(const Model::CreateDISyncTaskRequest& request) const; @@ -1447,6 +1541,12 @@ namespace AlibabaCloud DeleteConnectionOutcome deleteConnection(const Model::DeleteConnectionRequest &request)const; void deleteConnectionAsync(const Model::DeleteConnectionRequest& request, const DeleteConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConnectionOutcomeCallable deleteConnectionCallable(const Model::DeleteConnectionRequest& request) const; + DeleteDIAlarmRuleOutcome deleteDIAlarmRule(const Model::DeleteDIAlarmRuleRequest &request)const; + void deleteDIAlarmRuleAsync(const Model::DeleteDIAlarmRuleRequest& request, const DeleteDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDIAlarmRuleOutcomeCallable deleteDIAlarmRuleCallable(const Model::DeleteDIAlarmRuleRequest& request) const; + DeleteDIJobOutcome deleteDIJob(const Model::DeleteDIJobRequest &request)const; + void deleteDIJobAsync(const Model::DeleteDIJobRequest& request, const DeleteDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDIJobOutcomeCallable deleteDIJobCallable(const Model::DeleteDIJobRequest& request) const; DeleteDISyncTaskOutcome deleteDISyncTask(const Model::DeleteDISyncTaskRequest &request)const; void deleteDISyncTaskAsync(const Model::DeleteDISyncTaskRequest& request, const DeleteDISyncTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDISyncTaskOutcomeCallable deleteDISyncTaskCallable(const Model::DeleteDISyncTaskRequest& request) const; @@ -1546,6 +1646,12 @@ namespace AlibabaCloud GetDDLJobStatusOutcome getDDLJobStatus(const Model::GetDDLJobStatusRequest &request)const; void getDDLJobStatusAsync(const Model::GetDDLJobStatusRequest& request, const GetDDLJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDDLJobStatusOutcomeCallable getDDLJobStatusCallable(const Model::GetDDLJobStatusRequest& request) const; + GetDIAlarmRuleOutcome getDIAlarmRule(const Model::GetDIAlarmRuleRequest &request)const; + void getDIAlarmRuleAsync(const Model::GetDIAlarmRuleRequest& request, const GetDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDIAlarmRuleOutcomeCallable getDIAlarmRuleCallable(const Model::GetDIAlarmRuleRequest& request) const; + GetDIJobOutcome getDIJob(const Model::GetDIJobRequest &request)const; + void getDIJobAsync(const Model::GetDIJobRequest& request, const GetDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDIJobOutcomeCallable getDIJobCallable(const Model::GetDIJobRequest& request) const; GetDISyncInstanceInfoOutcome getDISyncInstanceInfo(const Model::GetDISyncInstanceInfoRequest &request)const; void getDISyncInstanceInfoAsync(const Model::GetDISyncInstanceInfoRequest& request, const GetDISyncInstanceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDISyncInstanceInfoOutcomeCallable getDISyncInstanceInfoCallable(const Model::GetDISyncInstanceInfoRequest& request) const; @@ -1759,6 +1865,12 @@ namespace AlibabaCloud ListConnectionsOutcome listConnections(const Model::ListConnectionsRequest &request)const; void listConnectionsAsync(const Model::ListConnectionsRequest& request, const ListConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConnectionsOutcomeCallable listConnectionsCallable(const Model::ListConnectionsRequest& request) const; + ListDIAlarmRulesOutcome listDIAlarmRules(const Model::ListDIAlarmRulesRequest &request)const; + void listDIAlarmRulesAsync(const Model::ListDIAlarmRulesRequest& request, const ListDIAlarmRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDIAlarmRulesOutcomeCallable listDIAlarmRulesCallable(const Model::ListDIAlarmRulesRequest& request) const; + ListDIJobsOutcome listDIJobs(const Model::ListDIJobsRequest &request)const; + void listDIJobsAsync(const Model::ListDIJobsRequest& request, const ListDIJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDIJobsOutcomeCallable listDIJobsCallable(const Model::ListDIJobsRequest& request) const; ListDIProjectConfigOutcome listDIProjectConfig(const Model::ListDIProjectConfigRequest &request)const; void listDIProjectConfigAsync(const Model::ListDIProjectConfigRequest& request, const ListDIProjectConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDIProjectConfigOutcomeCallable listDIProjectConfigCallable(const Model::ListDIProjectConfigRequest& request) const; @@ -1798,6 +1910,12 @@ namespace AlibabaCloud ListEnabledExtensionsForProjectOutcome listEnabledExtensionsForProject(const Model::ListEnabledExtensionsForProjectRequest &request)const; void listEnabledExtensionsForProjectAsync(const Model::ListEnabledExtensionsForProjectRequest& request, const ListEnabledExtensionsForProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEnabledExtensionsForProjectOutcomeCallable listEnabledExtensionsForProjectCallable(const Model::ListEnabledExtensionsForProjectRequest& request) const; + ListEntitiesByTagsOutcome listEntitiesByTags(const Model::ListEntitiesByTagsRequest &request)const; + void listEntitiesByTagsAsync(const Model::ListEntitiesByTagsRequest& request, const ListEntitiesByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEntitiesByTagsOutcomeCallable listEntitiesByTagsCallable(const Model::ListEntitiesByTagsRequest& request) const; + ListEntityTagsOutcome listEntityTags(const Model::ListEntityTagsRequest &request)const; + void listEntityTagsAsync(const Model::ListEntityTagsRequest& request, const ListEntityTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEntityTagsOutcomeCallable listEntityTagsCallable(const Model::ListEntityTagsRequest& request) const; ListExtensionsOutcome listExtensions(const Model::ListExtensionsRequest &request)const; void listExtensionsAsync(const Model::ListExtensionsRequest& request, const ListExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListExtensionsOutcomeCallable listExtensionsCallable(const Model::ListExtensionsRequest& request) const; @@ -1930,6 +2048,9 @@ namespace AlibabaCloud RegisterLineageRelationOutcome registerLineageRelation(const Model::RegisterLineageRelationRequest &request)const; void registerLineageRelationAsync(const Model::RegisterLineageRelationRequest& request, const RegisterLineageRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterLineageRelationOutcomeCallable registerLineageRelationCallable(const Model::RegisterLineageRelationRequest& request) const; + RemoveEntityTagsOutcome removeEntityTags(const Model::RemoveEntityTagsRequest &request)const; + void removeEntityTagsAsync(const Model::RemoveEntityTagsRequest& request, const RemoveEntityTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveEntityTagsOutcomeCallable removeEntityTagsCallable(const Model::RemoveEntityTagsRequest& request) const; RemoveProjectMemberFromRoleOutcome removeProjectMemberFromRole(const Model::RemoveProjectMemberFromRoleRequest &request)const; void removeProjectMemberFromRoleAsync(const Model::RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveProjectMemberFromRoleOutcomeCallable removeProjectMemberFromRoleCallable(const Model::RemoveProjectMemberFromRoleRequest& request) const; @@ -1972,15 +2093,24 @@ namespace AlibabaCloud SetDataSourceShareOutcome setDataSourceShare(const Model::SetDataSourceShareRequest &request)const; void setDataSourceShareAsync(const Model::SetDataSourceShareRequest& request, const SetDataSourceShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDataSourceShareOutcomeCallable setDataSourceShareCallable(const Model::SetDataSourceShareRequest& request) const; + SetEntityTagsOutcome setEntityTags(const Model::SetEntityTagsRequest &request)const; + void setEntityTagsAsync(const Model::SetEntityTagsRequest& request, const SetEntityTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetEntityTagsOutcomeCallable setEntityTagsCallable(const Model::SetEntityTagsRequest& request) const; SetSuccessInstanceOutcome setSuccessInstance(const Model::SetSuccessInstanceRequest &request)const; void setSuccessInstanceAsync(const Model::SetSuccessInstanceRequest& request, const SetSuccessInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetSuccessInstanceOutcomeCallable setSuccessInstanceCallable(const Model::SetSuccessInstanceRequest& request) const; + StartDIJobOutcome startDIJob(const Model::StartDIJobRequest &request)const; + void startDIJobAsync(const Model::StartDIJobRequest& request, const StartDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartDIJobOutcomeCallable startDIJobCallable(const Model::StartDIJobRequest& request) const; StartDISyncInstanceOutcome startDISyncInstance(const Model::StartDISyncInstanceRequest &request)const; void startDISyncInstanceAsync(const Model::StartDISyncInstanceRequest& request, const StartDISyncInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartDISyncInstanceOutcomeCallable startDISyncInstanceCallable(const Model::StartDISyncInstanceRequest& request) const; StartMigrationOutcome startMigration(const Model::StartMigrationRequest &request)const; void startMigrationAsync(const Model::StartMigrationRequest& request, const StartMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartMigrationOutcomeCallable startMigrationCallable(const Model::StartMigrationRequest& request) const; + StopDIJobOutcome stopDIJob(const Model::StopDIJobRequest &request)const; + void stopDIJobAsync(const Model::StopDIJobRequest& request, const StopDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopDIJobOutcomeCallable stopDIJobCallable(const Model::StopDIJobRequest& request) const; StopDISyncInstanceOutcome stopDISyncInstance(const Model::StopDISyncInstanceRequest &request)const; void stopDISyncInstanceAsync(const Model::StopDISyncInstanceRequest& request, const StopDISyncInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopDISyncInstanceOutcomeCallable stopDISyncInstanceCallable(const Model::StopDISyncInstanceRequest& request) const; @@ -2023,6 +2153,12 @@ namespace AlibabaCloud UpdateConnectionOutcome updateConnection(const Model::UpdateConnectionRequest &request)const; void updateConnectionAsync(const Model::UpdateConnectionRequest& request, const UpdateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateConnectionOutcomeCallable updateConnectionCallable(const Model::UpdateConnectionRequest& request) const; + UpdateDIAlarmRuleOutcome updateDIAlarmRule(const Model::UpdateDIAlarmRuleRequest &request)const; + void updateDIAlarmRuleAsync(const Model::UpdateDIAlarmRuleRequest& request, const UpdateDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDIAlarmRuleOutcomeCallable updateDIAlarmRuleCallable(const Model::UpdateDIAlarmRuleRequest& request) const; + UpdateDIJobOutcome updateDIJob(const Model::UpdateDIJobRequest &request)const; + void updateDIJobAsync(const Model::UpdateDIJobRequest& request, const UpdateDIJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDIJobOutcomeCallable updateDIJobCallable(const Model::UpdateDIJobRequest& request) const; UpdateDIProjectConfigOutcome updateDIProjectConfig(const Model::UpdateDIProjectConfigRequest &request)const; void updateDIProjectConfigAsync(const Model::UpdateDIProjectConfigRequest& request, const UpdateDIProjectConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDIProjectConfigOutcomeCallable updateDIProjectConfigCallable(const Model::UpdateDIProjectConfigRequest& request) const; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/AddMetaCollectionEntityRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/AddMetaCollectionEntityRequest.h index fc32cb265..a1e1c736e 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/AddMetaCollectionEntityRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/AddMetaCollectionEntityRequest.h @@ -32,11 +32,14 @@ public: ~AddMetaCollectionEntityRequest(); std::string getEntityQualifiedName() const; void setEntityQualifiedName(const std::string &entityQualifiedName); + std::string getRemark() const; + void setRemark(const std::string &remark); std::string getCollectionQualifiedName() const; void setCollectionQualifiedName(const std::string &collectionQualifiedName); private: std::string entityQualifiedName_; + std::string remark_; std::string collectionQualifiedName_; }; } // namespace Model diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionRequest.h new file mode 100644 index 000000000..9cd0ac0e3 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionRequest.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_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CallbackExtensionRequest : public RpcServiceRequest { +public: + CallbackExtensionRequest(); + ~CallbackExtensionRequest(); + std::string getCheckResult() const; + void setCheckResult(const std::string &checkResult); + std::string getMessageId() const; + void setMessageId(const std::string &messageId); + std::string getCheckMessage() const; + void setCheckMessage(const std::string &checkMessage); + std::string getExtensionCode() const; + void setExtensionCode(const std::string &extensionCode); + +private: + std::string checkResult_; + std::string messageId_; + std::string checkMessage_; + std::string extensionCode_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionResult.h new file mode 100644 index 000000000..0a9a5701d --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CallbackExtensionResult.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_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CallbackExtensionResult : public ServiceResult + { + public: + + + CallbackExtensionResult(); + explicit CallbackExtensionResult(const std::string &payload); + ~CallbackExtensionResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CALLBACKEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleRequest.h new file mode 100644 index 000000000..2075eb136 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleRequest.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_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateDIAlarmRuleRequest : public RpcServiceRequest { +public: + CreateDIAlarmRuleRequest(); + ~CreateDIAlarmRuleRequest(); + std::string getMetricType() const; + void setMetricType(const std::string &metricType); + std::string getTriggerConditions() const; + void setTriggerConditions(const std::string &triggerConditions); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNotificationSettings() const; + void setNotificationSettings(const std::string ¬ificationSettings); + bool getEnabled() const; + void setEnabled(bool enabled); + long getDIJobId() const; + void setDIJobId(long dIJobId); + +private: + std::string metricType_; + std::string triggerConditions_; + std::string description_; + std::string notificationSettings_; + bool enabled_; + long dIJobId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULEREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleResult.h new file mode 100644 index 000000000..7c0377e11 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIAlarmRuleResult.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_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateDIAlarmRuleResult : public ServiceResult + { + public: + + + CreateDIAlarmRuleResult(); + explicit CreateDIAlarmRuleResult(const std::string &payload); + ~CreateDIAlarmRuleResult(); + long getDIAlarmRuleId()const; + + protected: + void parse(const std::string &payload); + private: + long dIAlarmRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIALARMRULERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobRequest.h new file mode 100644 index 000000000..ce516de14 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobRequest.h @@ -0,0 +1,78 @@ +/* + * 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_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateDIJobRequest : public RpcServiceRequest { +public: + CreateDIJobRequest(); + ~CreateDIJobRequest(); + std::string getSourceDataSourceType() const; + void setSourceDataSourceType(const std::string &sourceDataSourceType); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTransformationRules() const; + void setTransformationRules(const std::string &transformationRules); + std::string getDestinationDataSourceType() const; + void setDestinationDataSourceType(const std::string &destinationDataSourceType); + std::string getDestinationDataSourceSettings() const; + void setDestinationDataSourceSettings(const std::string &destinationDataSourceSettings); + std::string getSourceDataSourceSettings() const; + void setSourceDataSourceSettings(const std::string &sourceDataSourceSettings); + std::string getResourceSettings() const; + void setResourceSettings(const std::string &resourceSettings); + std::string getMigrationType() const; + void setMigrationType(const std::string &migrationType); + std::string getSystemDebug() const; + void setSystemDebug(const std::string &systemDebug); + long getProjectId() const; + void setProjectId(long projectId); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getTableMappings() const; + void setTableMappings(const std::string &tableMappings); + std::string getJobSettings() const; + void setJobSettings(const std::string &jobSettings); + +private: + std::string sourceDataSourceType_; + std::string description_; + std::string transformationRules_; + std::string destinationDataSourceType_; + std::string destinationDataSourceSettings_; + std::string sourceDataSourceSettings_; + std::string resourceSettings_; + std::string migrationType_; + std::string systemDebug_; + long projectId_; + std::string jobName_; + std::string tableMappings_; + std::string jobSettings_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobResult.h new file mode 100644 index 000000000..877355820 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateDIJobResult.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_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateDIJobResult : public ServiceResult + { + public: + + + CreateDIJobResult(); + explicit CreateDIJobResult(const std::string &payload); + ~CreateDIJobResult(); + long getDIJobId()const; + + protected: + void parse(const std::string &payload); + private: + long dIJobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleRequest.h new file mode 100644 index 000000000..442949f9a --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteDIAlarmRuleRequest : public RpcServiceRequest { +public: + DeleteDIAlarmRuleRequest(); + ~DeleteDIAlarmRuleRequest(); + long getDIAlarmRuleId() const; + void setDIAlarmRuleId(long dIAlarmRuleId); + +private: + long dIAlarmRuleId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULEREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleResult.h new file mode 100644 index 000000000..c0ee70ec8 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIAlarmRuleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteDIAlarmRuleResult : public ServiceResult + { + public: + + + DeleteDIAlarmRuleResult(); + explicit DeleteDIAlarmRuleResult(const std::string &payload); + ~DeleteDIAlarmRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIALARMRULERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobRequest.h new file mode 100644 index 000000000..de9552dfd --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteDIJobRequest : public RpcServiceRequest { +public: + DeleteDIJobRequest(); + ~DeleteDIJobRequest(); + long getDIJobId() const; + void setDIJobId(long dIJobId); + +private: + long dIJobId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobResult.h new file mode 100644 index 000000000..d15d620b3 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteDIJobResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteDIJobResult : public ServiceResult + { + public: + + + DeleteDIJobResult(); + explicit DeleteDIJobResult(const std::string &payload); + ~DeleteDIJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleRequest.h new file mode 100644 index 000000000..8601af244 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetDIAlarmRuleRequest : public RpcServiceRequest { +public: + GetDIAlarmRuleRequest(); + ~GetDIAlarmRuleRequest(); + long getDIAlarmRuleId() const; + void setDIAlarmRuleId(long dIAlarmRuleId); + +private: + long dIAlarmRuleId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULEREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleResult.h new file mode 100644 index 000000000..5d595a51c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIAlarmRuleResult.h @@ -0,0 +1,87 @@ +/* + * 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_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetDIAlarmRuleResult : public ServiceResult + { + public: + struct DIAlarmRule + { + struct NotificationSettings + { + struct NotificationChannel + { + std::string severity; + std::vector channels; + }; + struct NotificationReceiver + { + std::string receiverType; + std::vector receiverValues; + }; + std::vector notificationChannels; + int inhibitionInterval; + std::vector notificationReceivers; + }; + struct TriggerCondition + { + std::string severity; + long duration; + long threshold; + }; + std::string updatedUid; + long dIJobId; + std::string description; + long createdTime; + std::vector triggerConditions; + std::string metricType; + NotificationSettings notificationSettings; + bool enabled; + long updatedTime; + long dIAlarmRuleId; + std::string createdUid; + }; + + + GetDIAlarmRuleResult(); + explicit GetDIAlarmRuleResult(const std::string &payload); + ~GetDIAlarmRuleResult(); + DIAlarmRule getDIAlarmRule()const; + + protected: + void parse(const std::string &payload); + private: + DIAlarmRule dIAlarmRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIALARMRULERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobRequest.h new file mode 100644 index 000000000..0ab776761 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetDIJobRequest : public RpcServiceRequest { +public: + GetDIJobRequest(); + ~GetDIJobRequest(); + long getDIJobId() const; + void setDIJobId(long dIJobId); + bool getWithDetails() const; + void setWithDetails(bool withDetails); + +private: + long dIJobId_; + bool withDetails_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobResult.h new file mode 100644 index 000000000..d147935ae --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetDIJobResult.h @@ -0,0 +1,143 @@ +/* + * 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_DATAWORKS_PUBLIC_MODEL_GETDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetDIJobResult : public ServiceResult + { + public: + struct Data + { + struct ResourceSettings + { + struct OfflineResourceSettings + { + std::string resourceGroupIdentifier; + }; + struct RealtimeResourceSettings + { + std::string resourceGroupIdentifier; + }; + RealtimeResourceSettings realtimeResourceSettings; + OfflineResourceSettings offlineResourceSettings; + }; + struct JobSettings + { + struct ColumnDataTypeSetting + { + std::string destinationDataType; + std::string sourceDataType; + }; + struct DdlHandlingSetting + { + std::string action; + std::string type; + }; + struct RuntimeSetting + { + std::string value; + std::string name; + }; + std::vector ddlHandlingSettings; + std::vector columnDataTypeSettings; + std::vector runtimeSettings; + }; + struct SourceDataSourceSetting + { + std::string dataSourceName; + std::string dataSourceProperties; + }; + struct DestinationDataSourceSetting + { + std::string dataSourceName; + std::string dataSourceProperties; + }; + struct TransformationRule + { + std::string ruleActionType; + std::string ruleExpression; + std::string ruleTargetType; + std::string ruleName; + }; + struct TableMapping + { + struct SourceObjectSelectionRule + { + std::string objectType; + std::string expression; + }; + struct TransformationRule2 + { + std::string ruleActionType; + std::string ruleTargetType; + std::string ruleName; + }; + std::vector sourceObjectSelectionRules; + std::vector transformationRules1; + }; + std::string updatedUid; + std::string runStats; + JobSettings jobSettings; + std::string description; + long createdTime; + long projectId; + std::string jobName; + std::vector sourceDataSourceSettings; + std::string migrationType; + std::string destinationDataSourceType; + std::string jobStatus; + long dIJobId; + std::vector tableMappings; + std::string startedUid; + ResourceSettings resourceSettings; + std::vector transformationRules; + std::string sourceDataSourceType; + long startedTime; + std::vector destinationDataSourceSettings; + long updatedTime; + std::string errorMessage; + std::string createdUid; + }; + + + GetDIJobResult(); + explicit GetDIJobResult(const std::string &payload); + ~GetDIJobResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h index 50445db44..75b06a315 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h @@ -55,6 +55,7 @@ namespace AlibabaCloud std::string deletedStatus; long nodeId; bool autoParsing; + long fileId; std::string fileFolderId; long bizId; long businessId; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetProjectRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetProjectRequest.h index 69a72df95..9a9f18e01 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/GetProjectRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetProjectRequest.h @@ -30,10 +30,13 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetProjectRequest : public RpcService public: GetProjectRequest(); ~GetProjectRequest(); + std::string getProjectIdentifier() const; + void setProjectIdentifier(const std::string &projectIdentifier); long getProjectId() const; void setProjectId(long projectId); private: + std::string projectIdentifier_; long projectId_; }; } // namespace Model diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesRequest.h new file mode 100644 index 000000000..bd1f4169a --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesRequest.h @@ -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_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDIAlarmRulesRequest : public RpcServiceRequest { +public: + ListDIAlarmRulesRequest(); + ~ListDIAlarmRulesRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getDIJobId() const; + void setDIJobId(long dIJobId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long pageNumber_; + long dIJobId_; + long pageSize_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesResult.h new file mode 100644 index 000000000..018c05a04 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIAlarmRulesResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDIAlarmRulesResult : public ServiceResult + { + public: + struct DIAlarmRulePaging + { + struct DIJobAlarmRule + { + struct NotificationSettings + { + struct NotificationChannel + { + std::string severity; + std::vector channels; + }; + struct NotificationReceiver + { + std::string receiverType; + std::vector receiverValues; + }; + std::vector notificationChannels; + int inhibitionInterval; + std::vector notificationReceivers; + }; + struct TriggerCondition + { + std::string severity; + long duration; + long threshold; + }; + long dIJobId; + std::string description; + std::vector triggerConditions; + std::string metricType; + NotificationSettings notificationSettings; + bool enabled; + long dIAlarmRuleId; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector dIJobAlarmRules; + }; + + + ListDIAlarmRulesResult(); + explicit ListDIAlarmRulesResult(const std::string &payload); + ~ListDIAlarmRulesResult(); + DIAlarmRulePaging getDIAlarmRulePaging()const; + + protected: + void parse(const std::string &payload); + private: + DIAlarmRulePaging dIAlarmRulePaging_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIALARMRULESRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsRequest.h new file mode 100644 index 000000000..28f5435a1 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsRequest.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_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDIJobsRequest : public RpcServiceRequest { +public: + ListDIJobsRequest(); + ~ListDIJobsRequest(); + std::string getSourceDataSourceType() const; + void setSourceDataSourceType(const std::string &sourceDataSourceType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getDestinationDataSourceType() const; + void setDestinationDataSourceType(const std::string &destinationDataSourceType); + int getPageSize() const; + void setPageSize(int pageSize); + long getProjectId() const; + void setProjectId(long projectId); + std::string getJobName() const; + void setJobName(const std::string &jobName); + +private: + std::string sourceDataSourceType_; + int pageNumber_; + std::string destinationDataSourceType_; + int pageSize_; + long projectId_; + std::string jobName_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsResult.h new file mode 100644 index 000000000..d62e38cdb --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListDIJobsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDIJobsResult : public ServiceResult + { + public: + struct DIJobPaging + { + struct DIJob + { + std::string destinationDataSourceType; + std::string jobStatus; + long dIJobId; + std::string sourceDataSourceType; + long projectId; + std::string jobName; + std::string migrationType; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector dIJobs; + }; + + + ListDIJobsResult(); + explicit ListDIJobsResult(const std::string &payload); + ~ListDIJobsResult(); + DIJobPaging getDIJobPaging()const; + + protected: + void parse(const std::string &payload); + private: + DIJobPaging dIJobPaging_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDIJOBSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsRequest.h new file mode 100644 index 000000000..33e6e8612 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsRequest.h @@ -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_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntitiesByTagsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string tagValue; + std::string tagKey; + }; + ListEntitiesByTagsRequest(); + ~ListEntitiesByTagsRequest(); + std::string getEntityType() const; + void setEntityType(const std::string &entityType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTags() const; + void setTags(const std::vector &tags); + +private: + std::string entityType_; + std::string nextToken_; + int pageSize_; + std::vector tags_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsResult.h new file mode 100644 index 000000000..12d061a41 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntitiesByTagsResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntitiesByTagsResult : public ServiceResult + { + public: + struct Data + { + struct EntityListItem + { + std::string entityContent; + long tenantId; + std::string qualifiedName; + }; + std::string nextToken; + std::vector entityList; + }; + + + ListEntitiesByTagsResult(); + explicit ListEntitiesByTagsResult(const std::string &payload); + ~ListEntitiesByTagsResult(); + int getHttpStatusCode()const; + Data getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + Data data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITIESBYTAGSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsRequest.h new file mode 100644 index 000000000..c8f2cc37e --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntityTagsRequest : public RpcServiceRequest { +public: + ListEntityTagsRequest(); + ~ListEntityTagsRequest(); + std::string getQualifiedName() const; + void setQualifiedName(const std::string &qualifiedName); + +private: + std::string qualifiedName_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsResult.h new file mode 100644 index 000000000..a6a522eaa --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListEntityTagsResult.h @@ -0,0 +1,64 @@ +/* + * 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_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntityTagsResult : public ServiceResult + { + public: + struct DataItem + { + std::string tagKey; + std::string tagValue; + }; + + + ListEntityTagsResult(); + explicit ListEntityTagsResult(const std::string &payload); + ~ListEntityTagsResult(); + int getHttpStatusCode()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + std::vector data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTENTITYTAGSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsRequest.h new file mode 100644 index 000000000..7b3b42d70 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RemoveEntityTagsRequest : public RpcServiceRequest { +public: + RemoveEntityTagsRequest(); + ~RemoveEntityTagsRequest(); + std::string getQualifiedName() const; + void setQualifiedName(const std::string &qualifiedName); + std::vector getTagKeys() const; + void setTagKeys(const std::vector &tagKeys); + +private: + std::string qualifiedName_; + std::vector tagKeys_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsResult.h new file mode 100644 index 000000000..5ea680a7a --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveEntityTagsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RemoveEntityTagsResult : public ServiceResult + { + public: + + + RemoveEntityTagsResult(); + explicit RemoveEntityTagsResult(const std::string &payload); + ~RemoveEntityTagsResult(); + int getHttpStatusCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEENTITYTAGSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsRequest.h new file mode 100644 index 000000000..75a8c9911 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsRequest.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT SetEntityTagsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string tagValue; + std::string tagKey; + }; + SetEntityTagsRequest(); + ~SetEntityTagsRequest(); + std::string getQualifiedName() const; + void setQualifiedName(const std::string &qualifiedName); + std::vector getTags() const; + void setTags(const std::vector &tags); + +private: + std::string qualifiedName_; + std::vector tags_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsResult.h new file mode 100644 index 000000000..65bdc362c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/SetEntityTagsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT SetEntityTagsResult : public ServiceResult + { + public: + + + SetEntityTagsResult(); + explicit SetEntityTagsResult(const std::string &payload); + ~SetEntityTagsResult(); + int getHttpStatusCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_SETENTITYTAGSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobRequest.h new file mode 100644 index 000000000..6bda3e694 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobRequest.h @@ -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_DATAWORKS_PUBLIC_MODEL_STARTDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STARTDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT StartDIJobRequest : public RpcServiceRequest { +public: + StartDIJobRequest(); + ~StartDIJobRequest(); + bool getForceToRerun() const; + void setForceToRerun(bool forceToRerun); + long getDIJobId() const; + void setDIJobId(long dIJobId); + std::string getRealtimeStartSettings() const; + void setRealtimeStartSettings(const std::string &realtimeStartSettings); + +private: + bool forceToRerun_; + long dIJobId_; + std::string realtimeStartSettings_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STARTDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobResult.h new file mode 100644 index 000000000..4a93ba4aa --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/StartDIJobResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STARTDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STARTDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT StartDIJobResult : public ServiceResult + { + public: + + + StartDIJobResult(); + explicit StartDIJobResult(const std::string &payload); + ~StartDIJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STARTDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobRequest.h new file mode 100644 index 000000000..d3a6ff364 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT StopDIJobRequest : public RpcServiceRequest { +public: + StopDIJobRequest(); + ~StopDIJobRequest(); + long getDIJobId() const; + void setDIJobId(long dIJobId); + +private: + long dIJobId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobResult.h new file mode 100644 index 000000000..9c65ba1fd --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/StopDIJobResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT StopDIJobResult : public ServiceResult + { + public: + + + StopDIJobResult(); + explicit StopDIJobResult(const std::string &payload); + ~StopDIJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_STOPDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleRequest.h new file mode 100644 index 000000000..96c6753f4 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleRequest.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_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateDIAlarmRuleRequest : public RpcServiceRequest { +public: + UpdateDIAlarmRuleRequest(); + ~UpdateDIAlarmRuleRequest(); + std::string getMetricType() const; + void setMetricType(const std::string &metricType); + std::string getTriggerConditions() const; + void setTriggerConditions(const std::string &triggerConditions); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNotificationSettings() const; + void setNotificationSettings(const std::string ¬ificationSettings); + bool getEnabled() const; + void setEnabled(bool enabled); + long getDIAlarmRuleId() const; + void setDIAlarmRuleId(long dIAlarmRuleId); + +private: + std::string metricType_; + std::string triggerConditions_; + std::string description_; + std::string notificationSettings_; + bool enabled_; + long dIAlarmRuleId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULEREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleResult.h new file mode 100644 index 000000000..708d50693 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIAlarmRuleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateDIAlarmRuleResult : public ServiceResult + { + public: + + + UpdateDIAlarmRuleResult(); + explicit UpdateDIAlarmRuleResult(const std::string &payload); + ~UpdateDIAlarmRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIALARMRULERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobRequest.h new file mode 100644 index 000000000..00ba6f53c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobRequest.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_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateDIJobRequest : public RpcServiceRequest { +public: + UpdateDIJobRequest(); + ~UpdateDIJobRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTransformationRules() const; + void setTransformationRules(const std::string &transformationRules); + long getDIJobId() const; + void setDIJobId(long dIJobId); + std::string getResourceSettings() const; + void setResourceSettings(const std::string &resourceSettings); + std::string getTableMappings() const; + void setTableMappings(const std::string &tableMappings); + std::string getJobSettings() const; + void setJobSettings(const std::string &jobSettings); + +private: + std::string description_; + std::string transformationRules_; + long dIJobId_; + std::string resourceSettings_; + std::string tableMappings_; + std::string jobSettings_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobResult.h new file mode 100644 index 000000000..bded77233 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateDIJobResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateDIJobResult : public ServiceResult + { + public: + + + UpdateDIJobResult(); + explicit UpdateDIJobResult(const std::string &payload); + ~UpdateDIJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATEDIJOBRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/src/Dataworks-publicClient.cc b/dataworks-public/src/Dataworks-publicClient.cc index d24dac60e..a4aef1973 100644 --- a/dataworks-public/src/Dataworks-publicClient.cc +++ b/dataworks-public/src/Dataworks-publicClient.cc @@ -231,6 +231,42 @@ Dataworks_publicClient::ApprovePermissionApplyOrderOutcomeCallable Dataworks_pub return task->get_future(); } +Dataworks_publicClient::CallbackExtensionOutcome Dataworks_publicClient::callbackExtension(const CallbackExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CallbackExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CallbackExtensionOutcome(CallbackExtensionResult(outcome.result())); + else + return CallbackExtensionOutcome(outcome.error()); +} + +void Dataworks_publicClient::callbackExtensionAsync(const CallbackExtensionRequest& request, const CallbackExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, callbackExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::CallbackExtensionOutcomeCallable Dataworks_publicClient::callbackExtensionCallable(const CallbackExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->callbackExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::ChangeResourceManagerResourceGroupOutcome Dataworks_publicClient::changeResourceManagerResourceGroup(const ChangeResourceManagerResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +519,78 @@ Dataworks_publicClient::CreateConnectionOutcomeCallable Dataworks_publicClient:: return task->get_future(); } +Dataworks_publicClient::CreateDIAlarmRuleOutcome Dataworks_publicClient::createDIAlarmRule(const CreateDIAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDIAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDIAlarmRuleOutcome(CreateDIAlarmRuleResult(outcome.result())); + else + return CreateDIAlarmRuleOutcome(outcome.error()); +} + +void Dataworks_publicClient::createDIAlarmRuleAsync(const CreateDIAlarmRuleRequest& request, const CreateDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDIAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::CreateDIAlarmRuleOutcomeCallable Dataworks_publicClient::createDIAlarmRuleCallable(const CreateDIAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDIAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::CreateDIJobOutcome Dataworks_publicClient::createDIJob(const CreateDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDIJobOutcome(CreateDIJobResult(outcome.result())); + else + return CreateDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::createDIJobAsync(const CreateDIJobRequest& request, const CreateDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::CreateDIJobOutcomeCallable Dataworks_publicClient::createDIJobCallable(const CreateDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::CreateDISyncTaskOutcome Dataworks_publicClient::createDISyncTask(const CreateDISyncTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1671,78 @@ Dataworks_publicClient::DeleteConnectionOutcomeCallable Dataworks_publicClient:: return task->get_future(); } +Dataworks_publicClient::DeleteDIAlarmRuleOutcome Dataworks_publicClient::deleteDIAlarmRule(const DeleteDIAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDIAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDIAlarmRuleOutcome(DeleteDIAlarmRuleResult(outcome.result())); + else + return DeleteDIAlarmRuleOutcome(outcome.error()); +} + +void Dataworks_publicClient::deleteDIAlarmRuleAsync(const DeleteDIAlarmRuleRequest& request, const DeleteDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDIAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::DeleteDIAlarmRuleOutcomeCallable Dataworks_publicClient::deleteDIAlarmRuleCallable(const DeleteDIAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDIAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::DeleteDIJobOutcome Dataworks_publicClient::deleteDIJob(const DeleteDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDIJobOutcome(DeleteDIJobResult(outcome.result())); + else + return DeleteDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::deleteDIJobAsync(const DeleteDIJobRequest& request, const DeleteDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::DeleteDIJobOutcomeCallable Dataworks_publicClient::deleteDIJobCallable(const DeleteDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::DeleteDISyncTaskOutcome Dataworks_publicClient::deleteDISyncTask(const DeleteDISyncTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,6 +2931,78 @@ Dataworks_publicClient::GetDDLJobStatusOutcomeCallable Dataworks_publicClient::g return task->get_future(); } +Dataworks_publicClient::GetDIAlarmRuleOutcome Dataworks_publicClient::getDIAlarmRule(const GetDIAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDIAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDIAlarmRuleOutcome(GetDIAlarmRuleResult(outcome.result())); + else + return GetDIAlarmRuleOutcome(outcome.error()); +} + +void Dataworks_publicClient::getDIAlarmRuleAsync(const GetDIAlarmRuleRequest& request, const GetDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDIAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::GetDIAlarmRuleOutcomeCallable Dataworks_publicClient::getDIAlarmRuleCallable(const GetDIAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDIAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::GetDIJobOutcome Dataworks_publicClient::getDIJob(const GetDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDIJobOutcome(GetDIJobResult(outcome.result())); + else + return GetDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::getDIJobAsync(const GetDIJobRequest& request, const GetDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::GetDIJobOutcomeCallable Dataworks_publicClient::getDIJobCallable(const GetDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::GetDISyncInstanceInfoOutcome Dataworks_publicClient::getDISyncInstanceInfo(const GetDISyncInstanceInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,6 +5559,78 @@ Dataworks_publicClient::ListConnectionsOutcomeCallable Dataworks_publicClient::l return task->get_future(); } +Dataworks_publicClient::ListDIAlarmRulesOutcome Dataworks_publicClient::listDIAlarmRules(const ListDIAlarmRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDIAlarmRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDIAlarmRulesOutcome(ListDIAlarmRulesResult(outcome.result())); + else + return ListDIAlarmRulesOutcome(outcome.error()); +} + +void Dataworks_publicClient::listDIAlarmRulesAsync(const ListDIAlarmRulesRequest& request, const ListDIAlarmRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDIAlarmRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListDIAlarmRulesOutcomeCallable Dataworks_publicClient::listDIAlarmRulesCallable(const ListDIAlarmRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDIAlarmRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::ListDIJobsOutcome Dataworks_publicClient::listDIJobs(const ListDIJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDIJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDIJobsOutcome(ListDIJobsResult(outcome.result())); + else + return ListDIJobsOutcome(outcome.error()); +} + +void Dataworks_publicClient::listDIJobsAsync(const ListDIJobsRequest& request, const ListDIJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDIJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListDIJobsOutcomeCallable Dataworks_publicClient::listDIJobsCallable(const ListDIJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDIJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::ListDIProjectConfigOutcome Dataworks_publicClient::listDIProjectConfig(const ListDIProjectConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5775,6 +6099,78 @@ Dataworks_publicClient::ListEnabledExtensionsForProjectOutcomeCallable Dataworks return task->get_future(); } +Dataworks_publicClient::ListEntitiesByTagsOutcome Dataworks_publicClient::listEntitiesByTags(const ListEntitiesByTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEntitiesByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEntitiesByTagsOutcome(ListEntitiesByTagsResult(outcome.result())); + else + return ListEntitiesByTagsOutcome(outcome.error()); +} + +void Dataworks_publicClient::listEntitiesByTagsAsync(const ListEntitiesByTagsRequest& request, const ListEntitiesByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEntitiesByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListEntitiesByTagsOutcomeCallable Dataworks_publicClient::listEntitiesByTagsCallable(const ListEntitiesByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEntitiesByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::ListEntityTagsOutcome Dataworks_publicClient::listEntityTags(const ListEntityTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEntityTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEntityTagsOutcome(ListEntityTagsResult(outcome.result())); + else + return ListEntityTagsOutcome(outcome.error()); +} + +void Dataworks_publicClient::listEntityTagsAsync(const ListEntityTagsRequest& request, const ListEntityTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEntityTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListEntityTagsOutcomeCallable Dataworks_publicClient::listEntityTagsCallable(const ListEntityTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEntityTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::ListExtensionsOutcome Dataworks_publicClient::listExtensions(const ListExtensionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7359,6 +7755,42 @@ Dataworks_publicClient::RegisterLineageRelationOutcomeCallable Dataworks_publicC return task->get_future(); } +Dataworks_publicClient::RemoveEntityTagsOutcome Dataworks_publicClient::removeEntityTags(const RemoveEntityTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveEntityTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveEntityTagsOutcome(RemoveEntityTagsResult(outcome.result())); + else + return RemoveEntityTagsOutcome(outcome.error()); +} + +void Dataworks_publicClient::removeEntityTagsAsync(const RemoveEntityTagsRequest& request, const RemoveEntityTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeEntityTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::RemoveEntityTagsOutcomeCallable Dataworks_publicClient::removeEntityTagsCallable(const RemoveEntityTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeEntityTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::RemoveProjectMemberFromRoleOutcome Dataworks_publicClient::removeProjectMemberFromRole(const RemoveProjectMemberFromRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7863,6 +8295,42 @@ Dataworks_publicClient::SetDataSourceShareOutcomeCallable Dataworks_publicClient return task->get_future(); } +Dataworks_publicClient::SetEntityTagsOutcome Dataworks_publicClient::setEntityTags(const SetEntityTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetEntityTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetEntityTagsOutcome(SetEntityTagsResult(outcome.result())); + else + return SetEntityTagsOutcome(outcome.error()); +} + +void Dataworks_publicClient::setEntityTagsAsync(const SetEntityTagsRequest& request, const SetEntityTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setEntityTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::SetEntityTagsOutcomeCallable Dataworks_publicClient::setEntityTagsCallable(const SetEntityTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setEntityTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::SetSuccessInstanceOutcome Dataworks_publicClient::setSuccessInstance(const SetSuccessInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7899,6 +8367,42 @@ Dataworks_publicClient::SetSuccessInstanceOutcomeCallable Dataworks_publicClient return task->get_future(); } +Dataworks_publicClient::StartDIJobOutcome Dataworks_publicClient::startDIJob(const StartDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartDIJobOutcome(StartDIJobResult(outcome.result())); + else + return StartDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::startDIJobAsync(const StartDIJobRequest& request, const StartDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::StartDIJobOutcomeCallable Dataworks_publicClient::startDIJobCallable(const StartDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::StartDISyncInstanceOutcome Dataworks_publicClient::startDISyncInstance(const StartDISyncInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7971,6 +8475,42 @@ Dataworks_publicClient::StartMigrationOutcomeCallable Dataworks_publicClient::st return task->get_future(); } +Dataworks_publicClient::StopDIJobOutcome Dataworks_publicClient::stopDIJob(const StopDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopDIJobOutcome(StopDIJobResult(outcome.result())); + else + return StopDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::stopDIJobAsync(const StopDIJobRequest& request, const StopDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::StopDIJobOutcomeCallable Dataworks_publicClient::stopDIJobCallable(const StopDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::StopDISyncInstanceOutcome Dataworks_publicClient::stopDISyncInstance(const StopDISyncInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8475,6 +9015,78 @@ Dataworks_publicClient::UpdateConnectionOutcomeCallable Dataworks_publicClient:: return task->get_future(); } +Dataworks_publicClient::UpdateDIAlarmRuleOutcome Dataworks_publicClient::updateDIAlarmRule(const UpdateDIAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDIAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDIAlarmRuleOutcome(UpdateDIAlarmRuleResult(outcome.result())); + else + return UpdateDIAlarmRuleOutcome(outcome.error()); +} + +void Dataworks_publicClient::updateDIAlarmRuleAsync(const UpdateDIAlarmRuleRequest& request, const UpdateDIAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDIAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::UpdateDIAlarmRuleOutcomeCallable Dataworks_publicClient::updateDIAlarmRuleCallable(const UpdateDIAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDIAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::UpdateDIJobOutcome Dataworks_publicClient::updateDIJob(const UpdateDIJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDIJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDIJobOutcome(UpdateDIJobResult(outcome.result())); + else + return UpdateDIJobOutcome(outcome.error()); +} + +void Dataworks_publicClient::updateDIJobAsync(const UpdateDIJobRequest& request, const UpdateDIJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDIJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::UpdateDIJobOutcomeCallable Dataworks_publicClient::updateDIJobCallable(const UpdateDIJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDIJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::UpdateDIProjectConfigOutcome Dataworks_publicClient::updateDIProjectConfig(const UpdateDIProjectConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dataworks-public/src/model/AddMetaCollectionEntityRequest.cc b/dataworks-public/src/model/AddMetaCollectionEntityRequest.cc index a407304d9..54133a6a6 100644 --- a/dataworks-public/src/model/AddMetaCollectionEntityRequest.cc +++ b/dataworks-public/src/model/AddMetaCollectionEntityRequest.cc @@ -34,6 +34,15 @@ void AddMetaCollectionEntityRequest::setEntityQualifiedName(const std::string &e setParameter(std::string("EntityQualifiedName"), entityQualifiedName); } +std::string AddMetaCollectionEntityRequest::getRemark() const { + return remark_; +} + +void AddMetaCollectionEntityRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + std::string AddMetaCollectionEntityRequest::getCollectionQualifiedName() const { return collectionQualifiedName_; } diff --git a/dataworks-public/src/model/CallbackExtensionRequest.cc b/dataworks-public/src/model/CallbackExtensionRequest.cc new file mode 100644 index 000000000..aaeb51baf --- /dev/null +++ b/dataworks-public/src/model/CallbackExtensionRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::CallbackExtensionRequest; + +CallbackExtensionRequest::CallbackExtensionRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "CallbackExtension") { + setMethod(HttpRequest::Method::Post); +} + +CallbackExtensionRequest::~CallbackExtensionRequest() {} + +std::string CallbackExtensionRequest::getCheckResult() const { + return checkResult_; +} + +void CallbackExtensionRequest::setCheckResult(const std::string &checkResult) { + checkResult_ = checkResult; + setBodyParameter(std::string("CheckResult"), checkResult); +} + +std::string CallbackExtensionRequest::getMessageId() const { + return messageId_; +} + +void CallbackExtensionRequest::setMessageId(const std::string &messageId) { + messageId_ = messageId; + setBodyParameter(std::string("MessageId"), messageId); +} + +std::string CallbackExtensionRequest::getCheckMessage() const { + return checkMessage_; +} + +void CallbackExtensionRequest::setCheckMessage(const std::string &checkMessage) { + checkMessage_ = checkMessage; + setBodyParameter(std::string("CheckMessage"), checkMessage); +} + +std::string CallbackExtensionRequest::getExtensionCode() const { + return extensionCode_; +} + +void CallbackExtensionRequest::setExtensionCode(const std::string &extensionCode) { + extensionCode_ = extensionCode; + setBodyParameter(std::string("ExtensionCode"), extensionCode); +} + diff --git a/dataworks-public/src/model/CallbackExtensionResult.cc b/dataworks-public/src/model/CallbackExtensionResult.cc new file mode 100644 index 000000000..81a8416ca --- /dev/null +++ b/dataworks-public/src/model/CallbackExtensionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +CallbackExtensionResult::CallbackExtensionResult() : + ServiceResult() +{} + +CallbackExtensionResult::CallbackExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CallbackExtensionResult::~CallbackExtensionResult() +{} + +void CallbackExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string CallbackExtensionResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/CreateDIAlarmRuleRequest.cc b/dataworks-public/src/model/CreateDIAlarmRuleRequest.cc new file mode 100644 index 000000000..212f78a0d --- /dev/null +++ b/dataworks-public/src/model/CreateDIAlarmRuleRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::CreateDIAlarmRuleRequest; + +CreateDIAlarmRuleRequest::CreateDIAlarmRuleRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDIAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateDIAlarmRuleRequest::~CreateDIAlarmRuleRequest() {} + +std::string CreateDIAlarmRuleRequest::getMetricType() const { + return metricType_; +} + +void CreateDIAlarmRuleRequest::setMetricType(const std::string &metricType) { + metricType_ = metricType; + setBodyParameter(std::string("MetricType"), metricType); +} + +std::string CreateDIAlarmRuleRequest::getTriggerConditions() const { + return triggerConditions_; +} + +void CreateDIAlarmRuleRequest::setTriggerConditions(const std::string &triggerConditions) { + triggerConditions_ = triggerConditions; + setBodyParameter(std::string("TriggerConditions"), triggerConditions); +} + +std::string CreateDIAlarmRuleRequest::getDescription() const { + return description_; +} + +void CreateDIAlarmRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateDIAlarmRuleRequest::getNotificationSettings() const { + return notificationSettings_; +} + +void CreateDIAlarmRuleRequest::setNotificationSettings(const std::string ¬ificationSettings) { + notificationSettings_ = notificationSettings; + setBodyParameter(std::string("NotificationSettings"), notificationSettings); +} + +bool CreateDIAlarmRuleRequest::getEnabled() const { + return enabled_; +} + +void CreateDIAlarmRuleRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setBodyParameter(std::string("Enabled"), enabled ? "true" : "false"); +} + +long CreateDIAlarmRuleRequest::getDIJobId() const { + return dIJobId_; +} + +void CreateDIAlarmRuleRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + diff --git a/dataworks-public/src/model/CreateDIAlarmRuleResult.cc b/dataworks-public/src/model/CreateDIAlarmRuleResult.cc new file mode 100644 index 000000000..1f0bf49d6 --- /dev/null +++ b/dataworks-public/src/model/CreateDIAlarmRuleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +CreateDIAlarmRuleResult::CreateDIAlarmRuleResult() : + ServiceResult() +{} + +CreateDIAlarmRuleResult::CreateDIAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDIAlarmRuleResult::~CreateDIAlarmRuleResult() +{} + +void CreateDIAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DIAlarmRuleId"].isNull()) + dIAlarmRuleId_ = std::stol(value["DIAlarmRuleId"].asString()); + +} + +long CreateDIAlarmRuleResult::getDIAlarmRuleId()const +{ + return dIAlarmRuleId_; +} + diff --git a/dataworks-public/src/model/CreateDIJobRequest.cc b/dataworks-public/src/model/CreateDIJobRequest.cc new file mode 100644 index 000000000..10212bf95 --- /dev/null +++ b/dataworks-public/src/model/CreateDIJobRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::CreateDIJobRequest; + +CreateDIJobRequest::CreateDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDIJob") { + setMethod(HttpRequest::Method::Post); +} + +CreateDIJobRequest::~CreateDIJobRequest() {} + +std::string CreateDIJobRequest::getSourceDataSourceType() const { + return sourceDataSourceType_; +} + +void CreateDIJobRequest::setSourceDataSourceType(const std::string &sourceDataSourceType) { + sourceDataSourceType_ = sourceDataSourceType; + setBodyParameter(std::string("SourceDataSourceType"), sourceDataSourceType); +} + +std::string CreateDIJobRequest::getDescription() const { + return description_; +} + +void CreateDIJobRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateDIJobRequest::getTransformationRules() const { + return transformationRules_; +} + +void CreateDIJobRequest::setTransformationRules(const std::string &transformationRules) { + transformationRules_ = transformationRules; + setBodyParameter(std::string("TransformationRules"), transformationRules); +} + +std::string CreateDIJobRequest::getDestinationDataSourceType() const { + return destinationDataSourceType_; +} + +void CreateDIJobRequest::setDestinationDataSourceType(const std::string &destinationDataSourceType) { + destinationDataSourceType_ = destinationDataSourceType; + setBodyParameter(std::string("DestinationDataSourceType"), destinationDataSourceType); +} + +std::string CreateDIJobRequest::getDestinationDataSourceSettings() const { + return destinationDataSourceSettings_; +} + +void CreateDIJobRequest::setDestinationDataSourceSettings(const std::string &destinationDataSourceSettings) { + destinationDataSourceSettings_ = destinationDataSourceSettings; + setBodyParameter(std::string("DestinationDataSourceSettings"), destinationDataSourceSettings); +} + +std::string CreateDIJobRequest::getSourceDataSourceSettings() const { + return sourceDataSourceSettings_; +} + +void CreateDIJobRequest::setSourceDataSourceSettings(const std::string &sourceDataSourceSettings) { + sourceDataSourceSettings_ = sourceDataSourceSettings; + setBodyParameter(std::string("SourceDataSourceSettings"), sourceDataSourceSettings); +} + +std::string CreateDIJobRequest::getResourceSettings() const { + return resourceSettings_; +} + +void CreateDIJobRequest::setResourceSettings(const std::string &resourceSettings) { + resourceSettings_ = resourceSettings; + setBodyParameter(std::string("ResourceSettings"), resourceSettings); +} + +std::string CreateDIJobRequest::getMigrationType() const { + return migrationType_; +} + +void CreateDIJobRequest::setMigrationType(const std::string &migrationType) { + migrationType_ = migrationType; + setBodyParameter(std::string("MigrationType"), migrationType); +} + +std::string CreateDIJobRequest::getSystemDebug() const { + return systemDebug_; +} + +void CreateDIJobRequest::setSystemDebug(const std::string &systemDebug) { + systemDebug_ = systemDebug; + setParameter(std::string("SystemDebug"), systemDebug); +} + +long CreateDIJobRequest::getProjectId() const { + return projectId_; +} + +void CreateDIJobRequest::setProjectId(long projectId) { + projectId_ = projectId; + setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); +} + +std::string CreateDIJobRequest::getJobName() const { + return jobName_; +} + +void CreateDIJobRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setBodyParameter(std::string("JobName"), jobName); +} + +std::string CreateDIJobRequest::getTableMappings() const { + return tableMappings_; +} + +void CreateDIJobRequest::setTableMappings(const std::string &tableMappings) { + tableMappings_ = tableMappings; + setBodyParameter(std::string("TableMappings"), tableMappings); +} + +std::string CreateDIJobRequest::getJobSettings() const { + return jobSettings_; +} + +void CreateDIJobRequest::setJobSettings(const std::string &jobSettings) { + jobSettings_ = jobSettings; + setBodyParameter(std::string("JobSettings"), jobSettings); +} + diff --git a/dataworks-public/src/model/CreateDIJobResult.cc b/dataworks-public/src/model/CreateDIJobResult.cc new file mode 100644 index 000000000..3a64117bd --- /dev/null +++ b/dataworks-public/src/model/CreateDIJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +CreateDIJobResult::CreateDIJobResult() : + ServiceResult() +{} + +CreateDIJobResult::CreateDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDIJobResult::~CreateDIJobResult() +{} + +void CreateDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DIJobId"].isNull()) + dIJobId_ = std::stol(value["DIJobId"].asString()); + +} + +long CreateDIJobResult::getDIJobId()const +{ + return dIJobId_; +} + diff --git a/dataworks-public/src/model/DeleteDIAlarmRuleRequest.cc b/dataworks-public/src/model/DeleteDIAlarmRuleRequest.cc new file mode 100644 index 000000000..4b2ba179f --- /dev/null +++ b/dataworks-public/src/model/DeleteDIAlarmRuleRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::DeleteDIAlarmRuleRequest; + +DeleteDIAlarmRuleRequest::DeleteDIAlarmRuleRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteDIAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDIAlarmRuleRequest::~DeleteDIAlarmRuleRequest() {} + +long DeleteDIAlarmRuleRequest::getDIAlarmRuleId() const { + return dIAlarmRuleId_; +} + +void DeleteDIAlarmRuleRequest::setDIAlarmRuleId(long dIAlarmRuleId) { + dIAlarmRuleId_ = dIAlarmRuleId; + setBodyParameter(std::string("DIAlarmRuleId"), std::to_string(dIAlarmRuleId)); +} + diff --git a/dataworks-public/src/model/DeleteDIAlarmRuleResult.cc b/dataworks-public/src/model/DeleteDIAlarmRuleResult.cc new file mode 100644 index 000000000..c6ec94280 --- /dev/null +++ b/dataworks-public/src/model/DeleteDIAlarmRuleResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +DeleteDIAlarmRuleResult::DeleteDIAlarmRuleResult() : + ServiceResult() +{} + +DeleteDIAlarmRuleResult::DeleteDIAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDIAlarmRuleResult::~DeleteDIAlarmRuleResult() +{} + +void DeleteDIAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dataworks-public/src/model/DeleteDIJobRequest.cc b/dataworks-public/src/model/DeleteDIJobRequest.cc new file mode 100644 index 000000000..d69875193 --- /dev/null +++ b/dataworks-public/src/model/DeleteDIJobRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::DeleteDIJobRequest; + +DeleteDIJobRequest::DeleteDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteDIJob") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDIJobRequest::~DeleteDIJobRequest() {} + +long DeleteDIJobRequest::getDIJobId() const { + return dIJobId_; +} + +void DeleteDIJobRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + diff --git a/dataworks-public/src/model/DeleteDIJobResult.cc b/dataworks-public/src/model/DeleteDIJobResult.cc new file mode 100644 index 000000000..ff62ba13e --- /dev/null +++ b/dataworks-public/src/model/DeleteDIJobResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +DeleteDIJobResult::DeleteDIJobResult() : + ServiceResult() +{} + +DeleteDIJobResult::DeleteDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDIJobResult::~DeleteDIJobResult() +{} + +void DeleteDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dataworks-public/src/model/GetDIAlarmRuleRequest.cc b/dataworks-public/src/model/GetDIAlarmRuleRequest.cc new file mode 100644 index 000000000..c37da97a1 --- /dev/null +++ b/dataworks-public/src/model/GetDIAlarmRuleRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::GetDIAlarmRuleRequest; + +GetDIAlarmRuleRequest::GetDIAlarmRuleRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "GetDIAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +GetDIAlarmRuleRequest::~GetDIAlarmRuleRequest() {} + +long GetDIAlarmRuleRequest::getDIAlarmRuleId() const { + return dIAlarmRuleId_; +} + +void GetDIAlarmRuleRequest::setDIAlarmRuleId(long dIAlarmRuleId) { + dIAlarmRuleId_ = dIAlarmRuleId; + setBodyParameter(std::string("DIAlarmRuleId"), std::to_string(dIAlarmRuleId)); +} + diff --git a/dataworks-public/src/model/GetDIAlarmRuleResult.cc b/dataworks-public/src/model/GetDIAlarmRuleResult.cc new file mode 100644 index 000000000..294734740 --- /dev/null +++ b/dataworks-public/src/model/GetDIAlarmRuleResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +GetDIAlarmRuleResult::GetDIAlarmRuleResult() : + ServiceResult() +{} + +GetDIAlarmRuleResult::GetDIAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDIAlarmRuleResult::~GetDIAlarmRuleResult() +{} + +void GetDIAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dIAlarmRuleNode = value["DIAlarmRule"]; + if(!dIAlarmRuleNode["DIAlarmRuleId"].isNull()) + dIAlarmRule_.dIAlarmRuleId = std::stol(dIAlarmRuleNode["DIAlarmRuleId"].asString()); + if(!dIAlarmRuleNode["DIJobId"].isNull()) + dIAlarmRule_.dIJobId = std::stol(dIAlarmRuleNode["DIJobId"].asString()); + if(!dIAlarmRuleNode["Description"].isNull()) + dIAlarmRule_.description = dIAlarmRuleNode["Description"].asString(); + if(!dIAlarmRuleNode["MetricType"].isNull()) + dIAlarmRule_.metricType = dIAlarmRuleNode["MetricType"].asString(); + if(!dIAlarmRuleNode["Enabled"].isNull()) + dIAlarmRule_.enabled = dIAlarmRuleNode["Enabled"].asString() == "true"; + if(!dIAlarmRuleNode["CreatedUid"].isNull()) + dIAlarmRule_.createdUid = dIAlarmRuleNode["CreatedUid"].asString(); + if(!dIAlarmRuleNode["CreatedTime"].isNull()) + dIAlarmRule_.createdTime = std::stol(dIAlarmRuleNode["CreatedTime"].asString()); + if(!dIAlarmRuleNode["UpdatedUid"].isNull()) + dIAlarmRule_.updatedUid = dIAlarmRuleNode["UpdatedUid"].asString(); + if(!dIAlarmRuleNode["UpdatedTime"].isNull()) + dIAlarmRule_.updatedTime = std::stol(dIAlarmRuleNode["UpdatedTime"].asString()); + auto allTriggerConditionsNode = dIAlarmRuleNode["TriggerConditions"]["TriggerCondition"]; + for (auto dIAlarmRuleNodeTriggerConditionsTriggerCondition : allTriggerConditionsNode) + { + DIAlarmRule::TriggerCondition triggerConditionObject; + if(!dIAlarmRuleNodeTriggerConditionsTriggerCondition["Severity"].isNull()) + triggerConditionObject.severity = dIAlarmRuleNodeTriggerConditionsTriggerCondition["Severity"].asString(); + if(!dIAlarmRuleNodeTriggerConditionsTriggerCondition["Duration"].isNull()) + triggerConditionObject.duration = std::stol(dIAlarmRuleNodeTriggerConditionsTriggerCondition["Duration"].asString()); + if(!dIAlarmRuleNodeTriggerConditionsTriggerCondition["Threshold"].isNull()) + triggerConditionObject.threshold = std::stol(dIAlarmRuleNodeTriggerConditionsTriggerCondition["Threshold"].asString()); + dIAlarmRule_.triggerConditions.push_back(triggerConditionObject); + } + auto notificationSettingsNode = dIAlarmRuleNode["NotificationSettings"]; + if(!notificationSettingsNode["InhibitionInterval"].isNull()) + dIAlarmRule_.notificationSettings.inhibitionInterval = std::stoi(notificationSettingsNode["InhibitionInterval"].asString()); + auto allNotificationChannelsNode = notificationSettingsNode["NotificationChannels"]["NotificationChannel"]; + for (auto notificationSettingsNodeNotificationChannelsNotificationChannel : allNotificationChannelsNode) + { + DIAlarmRule::NotificationSettings::NotificationChannel notificationChannelObject; + if(!notificationSettingsNodeNotificationChannelsNotificationChannel["Severity"].isNull()) + notificationChannelObject.severity = notificationSettingsNodeNotificationChannelsNotificationChannel["Severity"].asString(); + auto allChannels = value["Channels"]["Channel"]; + for (auto value : allChannels) + notificationChannelObject.channels.push_back(value.asString()); + dIAlarmRule_.notificationSettings.notificationChannels.push_back(notificationChannelObject); + } + auto allNotificationReceiversNode = notificationSettingsNode["NotificationReceivers"]["NotificationReceiver"]; + for (auto notificationSettingsNodeNotificationReceiversNotificationReceiver : allNotificationReceiversNode) + { + DIAlarmRule::NotificationSettings::NotificationReceiver notificationReceiverObject; + if(!notificationSettingsNodeNotificationReceiversNotificationReceiver["ReceiverType"].isNull()) + notificationReceiverObject.receiverType = notificationSettingsNodeNotificationReceiversNotificationReceiver["ReceiverType"].asString(); + auto allReceiverValues = value["ReceiverValues"]["ReceiverValue"]; + for (auto value : allReceiverValues) + notificationReceiverObject.receiverValues.push_back(value.asString()); + dIAlarmRule_.notificationSettings.notificationReceivers.push_back(notificationReceiverObject); + } + +} + +GetDIAlarmRuleResult::DIAlarmRule GetDIAlarmRuleResult::getDIAlarmRule()const +{ + return dIAlarmRule_; +} + diff --git a/dataworks-public/src/model/GetDIJobRequest.cc b/dataworks-public/src/model/GetDIJobRequest.cc new file mode 100644 index 000000000..97b82dac3 --- /dev/null +++ b/dataworks-public/src/model/GetDIJobRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::GetDIJobRequest; + +GetDIJobRequest::GetDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "GetDIJob") { + setMethod(HttpRequest::Method::Post); +} + +GetDIJobRequest::~GetDIJobRequest() {} + +long GetDIJobRequest::getDIJobId() const { + return dIJobId_; +} + +void GetDIJobRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + +bool GetDIJobRequest::getWithDetails() const { + return withDetails_; +} + +void GetDIJobRequest::setWithDetails(bool withDetails) { + withDetails_ = withDetails; + setBodyParameter(std::string("WithDetails"), withDetails ? "true" : "false"); +} + diff --git a/dataworks-public/src/model/GetDIJobResult.cc b/dataworks-public/src/model/GetDIJobResult.cc new file mode 100644 index 000000000..0c4eba58b --- /dev/null +++ b/dataworks-public/src/model/GetDIJobResult.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +GetDIJobResult::GetDIJobResult() : + ServiceResult() +{} + +GetDIJobResult::GetDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDIJobResult::~GetDIJobResult() +{} + +void GetDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ProjectId"].isNull()) + data_.projectId = std::stol(dataNode["ProjectId"].asString()); + if(!dataNode["DIJobId"].isNull()) + data_.dIJobId = std::stol(dataNode["DIJobId"].asString()); + if(!dataNode["JobName"].isNull()) + data_.jobName = dataNode["JobName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["MigrationType"].isNull()) + data_.migrationType = dataNode["MigrationType"].asString(); + if(!dataNode["SourceDataSourceType"].isNull()) + data_.sourceDataSourceType = dataNode["SourceDataSourceType"].asString(); + if(!dataNode["DestinationDataSourceType"].isNull()) + data_.destinationDataSourceType = dataNode["DestinationDataSourceType"].asString(); + if(!dataNode["CreatedTime"].isNull()) + data_.createdTime = std::stol(dataNode["CreatedTime"].asString()); + if(!dataNode["CreatedUid"].isNull()) + data_.createdUid = dataNode["CreatedUid"].asString(); + if(!dataNode["UpdatedTime"].isNull()) + data_.updatedTime = std::stol(dataNode["UpdatedTime"].asString()); + if(!dataNode["UpdatedUid"].isNull()) + data_.updatedUid = dataNode["UpdatedUid"].asString(); + if(!dataNode["StartedTime"].isNull()) + data_.startedTime = std::stol(dataNode["StartedTime"].asString()); + if(!dataNode["StartedUid"].isNull()) + data_.startedUid = dataNode["StartedUid"].asString(); + if(!dataNode["JobStatus"].isNull()) + data_.jobStatus = dataNode["JobStatus"].asString(); + if(!dataNode["ErrorMessage"].isNull()) + data_.errorMessage = dataNode["ErrorMessage"].asString(); + if(!dataNode["RunStats"].isNull()) + data_.runStats = dataNode["RunStats"].asString(); + auto allSourceDataSourceSettingsNode = dataNode["SourceDataSourceSettings"]["SourceDataSourceSetting"]; + for (auto dataNodeSourceDataSourceSettingsSourceDataSourceSetting : allSourceDataSourceSettingsNode) + { + Data::SourceDataSourceSetting sourceDataSourceSettingObject; + if(!dataNodeSourceDataSourceSettingsSourceDataSourceSetting["DataSourceName"].isNull()) + sourceDataSourceSettingObject.dataSourceName = dataNodeSourceDataSourceSettingsSourceDataSourceSetting["DataSourceName"].asString(); + if(!dataNodeSourceDataSourceSettingsSourceDataSourceSetting["DataSourceProperties"].isNull()) + sourceDataSourceSettingObject.dataSourceProperties = dataNodeSourceDataSourceSettingsSourceDataSourceSetting["DataSourceProperties"].asString(); + data_.sourceDataSourceSettings.push_back(sourceDataSourceSettingObject); + } + auto allDestinationDataSourceSettingsNode = dataNode["DestinationDataSourceSettings"]["DestinationDataSourceSetting"]; + for (auto dataNodeDestinationDataSourceSettingsDestinationDataSourceSetting : allDestinationDataSourceSettingsNode) + { + Data::DestinationDataSourceSetting destinationDataSourceSettingObject; + if(!dataNodeDestinationDataSourceSettingsDestinationDataSourceSetting["DataSourceName"].isNull()) + destinationDataSourceSettingObject.dataSourceName = dataNodeDestinationDataSourceSettingsDestinationDataSourceSetting["DataSourceName"].asString(); + if(!dataNodeDestinationDataSourceSettingsDestinationDataSourceSetting["DataSourceProperties"].isNull()) + destinationDataSourceSettingObject.dataSourceProperties = dataNodeDestinationDataSourceSettingsDestinationDataSourceSetting["DataSourceProperties"].asString(); + data_.destinationDataSourceSettings.push_back(destinationDataSourceSettingObject); + } + auto allTransformationRulesNode = dataNode["TransformationRules"]["TransformationRule"]; + for (auto dataNodeTransformationRulesTransformationRule : allTransformationRulesNode) + { + Data::TransformationRule transformationRuleObject; + if(!dataNodeTransformationRulesTransformationRule["RuleActionType"].isNull()) + transformationRuleObject.ruleActionType = dataNodeTransformationRulesTransformationRule["RuleActionType"].asString(); + if(!dataNodeTransformationRulesTransformationRule["RuleExpression"].isNull()) + transformationRuleObject.ruleExpression = dataNodeTransformationRulesTransformationRule["RuleExpression"].asString(); + if(!dataNodeTransformationRulesTransformationRule["RuleName"].isNull()) + transformationRuleObject.ruleName = dataNodeTransformationRulesTransformationRule["RuleName"].asString(); + if(!dataNodeTransformationRulesTransformationRule["RuleTargetType"].isNull()) + transformationRuleObject.ruleTargetType = dataNodeTransformationRulesTransformationRule["RuleTargetType"].asString(); + data_.transformationRules.push_back(transformationRuleObject); + } + auto allTableMappingsNode = dataNode["TableMappings"]["TableMapping"]; + for (auto dataNodeTableMappingsTableMapping : allTableMappingsNode) + { + Data::TableMapping tableMappingObject; + auto allSourceObjectSelectionRulesNode = dataNodeTableMappingsTableMapping["SourceObjectSelectionRules"]["SourceObjectSelectionRule"]; + for (auto dataNodeTableMappingsTableMappingSourceObjectSelectionRulesSourceObjectSelectionRule : allSourceObjectSelectionRulesNode) + { + Data::TableMapping::SourceObjectSelectionRule sourceObjectSelectionRulesObject; + if(!dataNodeTableMappingsTableMappingSourceObjectSelectionRulesSourceObjectSelectionRule["Expression"].isNull()) + sourceObjectSelectionRulesObject.expression = dataNodeTableMappingsTableMappingSourceObjectSelectionRulesSourceObjectSelectionRule["Expression"].asString(); + if(!dataNodeTableMappingsTableMappingSourceObjectSelectionRulesSourceObjectSelectionRule["ObjectType"].isNull()) + sourceObjectSelectionRulesObject.objectType = dataNodeTableMappingsTableMappingSourceObjectSelectionRulesSourceObjectSelectionRule["ObjectType"].asString(); + tableMappingObject.sourceObjectSelectionRules.push_back(sourceObjectSelectionRulesObject); + } + auto allTransformationRules1Node = dataNodeTableMappingsTableMapping["TransformationRules"]["TransformationRule"]; + for (auto dataNodeTableMappingsTableMappingTransformationRulesTransformationRule : allTransformationRules1Node) + { + Data::TableMapping::TransformationRule2 transformationRules1Object; + if(!dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleActionType"].isNull()) + transformationRules1Object.ruleActionType = dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleActionType"].asString(); + if(!dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleName"].isNull()) + transformationRules1Object.ruleName = dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleName"].asString(); + if(!dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleTargetType"].isNull()) + transformationRules1Object.ruleTargetType = dataNodeTableMappingsTableMappingTransformationRulesTransformationRule["RuleTargetType"].asString(); + tableMappingObject.transformationRules1.push_back(transformationRules1Object); + } + data_.tableMappings.push_back(tableMappingObject); + } + auto resourceSettingsNode = dataNode["ResourceSettings"]; + auto offlineResourceSettingsNode = resourceSettingsNode["OfflineResourceSettings"]; + if(!offlineResourceSettingsNode["ResourceGroupIdentifier"].isNull()) + data_.resourceSettings.offlineResourceSettings.resourceGroupIdentifier = offlineResourceSettingsNode["ResourceGroupIdentifier"].asString(); + auto realtimeResourceSettingsNode = resourceSettingsNode["RealtimeResourceSettings"]; + if(!realtimeResourceSettingsNode["ResourceGroupIdentifier"].isNull()) + data_.resourceSettings.realtimeResourceSettings.resourceGroupIdentifier = realtimeResourceSettingsNode["ResourceGroupIdentifier"].asString(); + auto jobSettingsNode = dataNode["JobSettings"]; + auto allColumnDataTypeSettingsNode = jobSettingsNode["ColumnDataTypeSettings"]["ColumnDataTypeSetting"]; + for (auto jobSettingsNodeColumnDataTypeSettingsColumnDataTypeSetting : allColumnDataTypeSettingsNode) + { + Data::JobSettings::ColumnDataTypeSetting columnDataTypeSettingObject; + if(!jobSettingsNodeColumnDataTypeSettingsColumnDataTypeSetting["SourceDataType"].isNull()) + columnDataTypeSettingObject.sourceDataType = jobSettingsNodeColumnDataTypeSettingsColumnDataTypeSetting["SourceDataType"].asString(); + if(!jobSettingsNodeColumnDataTypeSettingsColumnDataTypeSetting["DestinationDataType"].isNull()) + columnDataTypeSettingObject.destinationDataType = jobSettingsNodeColumnDataTypeSettingsColumnDataTypeSetting["DestinationDataType"].asString(); + data_.jobSettings.columnDataTypeSettings.push_back(columnDataTypeSettingObject); + } + auto allDdlHandlingSettingsNode = jobSettingsNode["DdlHandlingSettings"]["DdlHandlingSetting"]; + for (auto jobSettingsNodeDdlHandlingSettingsDdlHandlingSetting : allDdlHandlingSettingsNode) + { + Data::JobSettings::DdlHandlingSetting ddlHandlingSettingObject; + if(!jobSettingsNodeDdlHandlingSettingsDdlHandlingSetting["Action"].isNull()) + ddlHandlingSettingObject.action = jobSettingsNodeDdlHandlingSettingsDdlHandlingSetting["Action"].asString(); + if(!jobSettingsNodeDdlHandlingSettingsDdlHandlingSetting["Type"].isNull()) + ddlHandlingSettingObject.type = jobSettingsNodeDdlHandlingSettingsDdlHandlingSetting["Type"].asString(); + data_.jobSettings.ddlHandlingSettings.push_back(ddlHandlingSettingObject); + } + auto allRuntimeSettingsNode = jobSettingsNode["RuntimeSettings"]["RuntimeSetting"]; + for (auto jobSettingsNodeRuntimeSettingsRuntimeSetting : allRuntimeSettingsNode) + { + Data::JobSettings::RuntimeSetting runtimeSettingObject; + if(!jobSettingsNodeRuntimeSettingsRuntimeSetting["Name"].isNull()) + runtimeSettingObject.name = jobSettingsNodeRuntimeSettingsRuntimeSetting["Name"].asString(); + if(!jobSettingsNodeRuntimeSettingsRuntimeSetting["Value"].isNull()) + runtimeSettingObject.value = jobSettingsNodeRuntimeSettingsRuntimeSetting["Value"].asString(); + data_.jobSettings.runtimeSettings.push_back(runtimeSettingObject); + } + +} + +GetDIJobResult::Data GetDIJobResult::getData()const +{ + return data_; +} + diff --git a/dataworks-public/src/model/GetFileResult.cc b/dataworks-public/src/model/GetFileResult.cc index fa5758b29..025049cc3 100644 --- a/dataworks-public/src/model/GetFileResult.cc +++ b/dataworks-public/src/model/GetFileResult.cc @@ -85,6 +85,8 @@ void GetFileResult::parse(const std::string &payload) data_.file.nodeId = std::stol(fileNode["NodeId"].asString()); if(!fileNode["AdvancedSettings"].isNull()) data_.file.advancedSettings = fileNode["AdvancedSettings"].asString(); + if(!fileNode["FileId"].isNull()) + data_.file.fileId = std::stol(fileNode["FileId"].asString()); auto nodeConfigurationNode = dataNode["NodeConfiguration"]; if(!nodeConfigurationNode["RerunMode"].isNull()) data_.nodeConfiguration.rerunMode = nodeConfigurationNode["RerunMode"].asString(); diff --git a/dataworks-public/src/model/GetProjectRequest.cc b/dataworks-public/src/model/GetProjectRequest.cc index 9a646a8b7..2721d3320 100644 --- a/dataworks-public/src/model/GetProjectRequest.cc +++ b/dataworks-public/src/model/GetProjectRequest.cc @@ -25,6 +25,15 @@ GetProjectRequest::GetProjectRequest() GetProjectRequest::~GetProjectRequest() {} +std::string GetProjectRequest::getProjectIdentifier() const { + return projectIdentifier_; +} + +void GetProjectRequest::setProjectIdentifier(const std::string &projectIdentifier) { + projectIdentifier_ = projectIdentifier; + setParameter(std::string("ProjectIdentifier"), projectIdentifier); +} + long GetProjectRequest::getProjectId() const { return projectId_; } diff --git a/dataworks-public/src/model/ListDIAlarmRulesRequest.cc b/dataworks-public/src/model/ListDIAlarmRulesRequest.cc new file mode 100644 index 000000000..d7405bb8a --- /dev/null +++ b/dataworks-public/src/model/ListDIAlarmRulesRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::ListDIAlarmRulesRequest; + +ListDIAlarmRulesRequest::ListDIAlarmRulesRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "ListDIAlarmRules") { + setMethod(HttpRequest::Method::Post); +} + +ListDIAlarmRulesRequest::~ListDIAlarmRulesRequest() {} + +long ListDIAlarmRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDIAlarmRulesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListDIAlarmRulesRequest::getDIJobId() const { + return dIJobId_; +} + +void ListDIAlarmRulesRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + +long ListDIAlarmRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListDIAlarmRulesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/dataworks-public/src/model/ListDIAlarmRulesResult.cc b/dataworks-public/src/model/ListDIAlarmRulesResult.cc new file mode 100644 index 000000000..887e87732 --- /dev/null +++ b/dataworks-public/src/model/ListDIAlarmRulesResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +ListDIAlarmRulesResult::ListDIAlarmRulesResult() : + ServiceResult() +{} + +ListDIAlarmRulesResult::ListDIAlarmRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDIAlarmRulesResult::~ListDIAlarmRulesResult() +{} + +void ListDIAlarmRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dIAlarmRulePagingNode = value["DIAlarmRulePaging"]; + if(!dIAlarmRulePagingNode["TotalCount"].isNull()) + dIAlarmRulePaging_.totalCount = std::stol(dIAlarmRulePagingNode["TotalCount"].asString()); + if(!dIAlarmRulePagingNode["PageNumber"].isNull()) + dIAlarmRulePaging_.pageNumber = std::stol(dIAlarmRulePagingNode["PageNumber"].asString()); + if(!dIAlarmRulePagingNode["PageSize"].isNull()) + dIAlarmRulePaging_.pageSize = std::stol(dIAlarmRulePagingNode["PageSize"].asString()); + auto allDIJobAlarmRulesNode = dIAlarmRulePagingNode["DIJobAlarmRules"]["DIJobAlarmRule"]; + for (auto dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule : allDIJobAlarmRulesNode) + { + DIAlarmRulePaging::DIJobAlarmRule dIJobAlarmRuleObject; + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["DIAlarmRuleId"].isNull()) + dIJobAlarmRuleObject.dIAlarmRuleId = std::stol(dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["DIAlarmRuleId"].asString()); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["DIJobId"].isNull()) + dIJobAlarmRuleObject.dIJobId = std::stol(dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["DIJobId"].asString()); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["Description"].isNull()) + dIJobAlarmRuleObject.description = dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["Description"].asString(); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["MetricType"].isNull()) + dIJobAlarmRuleObject.metricType = dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["MetricType"].asString(); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["Enabled"].isNull()) + dIJobAlarmRuleObject.enabled = dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["Enabled"].asString() == "true"; + auto allTriggerConditionsNode = dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRule["TriggerConditions"]["TriggerCondition"]; + for (auto dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition : allTriggerConditionsNode) + { + DIAlarmRulePaging::DIJobAlarmRule::TriggerCondition triggerConditionsObject; + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Severity"].isNull()) + triggerConditionsObject.severity = dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Severity"].asString(); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Duration"].isNull()) + triggerConditionsObject.duration = std::stol(dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Duration"].asString()); + if(!dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Threshold"].isNull()) + triggerConditionsObject.threshold = std::stol(dIAlarmRulePagingNodeDIJobAlarmRulesDIJobAlarmRuleTriggerConditionsTriggerCondition["Threshold"].asString()); + dIJobAlarmRuleObject.triggerConditions.push_back(triggerConditionsObject); + } + auto notificationSettingsNode = value["NotificationSettings"]; + if(!notificationSettingsNode["InhibitionInterval"].isNull()) + dIJobAlarmRuleObject.notificationSettings.inhibitionInterval = std::stoi(notificationSettingsNode["InhibitionInterval"].asString()); + auto allNotificationChannelsNode = notificationSettingsNode["NotificationChannels"]["NotificationChannel"]; + for (auto notificationSettingsNodeNotificationChannelsNotificationChannel : allNotificationChannelsNode) + { + DIAlarmRulePaging::DIJobAlarmRule::NotificationSettings::NotificationChannel notificationChannelObject; + if(!notificationSettingsNodeNotificationChannelsNotificationChannel["Severity"].isNull()) + notificationChannelObject.severity = notificationSettingsNodeNotificationChannelsNotificationChannel["Severity"].asString(); + auto allChannels = value["Channels"]["Channel"]; + for (auto value : allChannels) + notificationChannelObject.channels.push_back(value.asString()); + dIJobAlarmRuleObject.notificationSettings.notificationChannels.push_back(notificationChannelObject); + } + auto allNotificationReceiversNode = notificationSettingsNode["NotificationReceivers"]["NotificationReceiver"]; + for (auto notificationSettingsNodeNotificationReceiversNotificationReceiver : allNotificationReceiversNode) + { + DIAlarmRulePaging::DIJobAlarmRule::NotificationSettings::NotificationReceiver notificationReceiverObject; + if(!notificationSettingsNodeNotificationReceiversNotificationReceiver["ReceiverType"].isNull()) + notificationReceiverObject.receiverType = notificationSettingsNodeNotificationReceiversNotificationReceiver["ReceiverType"].asString(); + auto allReceiverValues = value["ReceiverValues"]["ReceiverValue"]; + for (auto value : allReceiverValues) + notificationReceiverObject.receiverValues.push_back(value.asString()); + dIJobAlarmRuleObject.notificationSettings.notificationReceivers.push_back(notificationReceiverObject); + } + dIAlarmRulePaging_.dIJobAlarmRules.push_back(dIJobAlarmRuleObject); + } + +} + +ListDIAlarmRulesResult::DIAlarmRulePaging ListDIAlarmRulesResult::getDIAlarmRulePaging()const +{ + return dIAlarmRulePaging_; +} + diff --git a/dataworks-public/src/model/ListDIJobsRequest.cc b/dataworks-public/src/model/ListDIJobsRequest.cc new file mode 100644 index 000000000..a64f72319 --- /dev/null +++ b/dataworks-public/src/model/ListDIJobsRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::ListDIJobsRequest; + +ListDIJobsRequest::ListDIJobsRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "ListDIJobs") { + setMethod(HttpRequest::Method::Post); +} + +ListDIJobsRequest::~ListDIJobsRequest() {} + +std::string ListDIJobsRequest::getSourceDataSourceType() const { + return sourceDataSourceType_; +} + +void ListDIJobsRequest::setSourceDataSourceType(const std::string &sourceDataSourceType) { + sourceDataSourceType_ = sourceDataSourceType; + setBodyParameter(std::string("SourceDataSourceType"), sourceDataSourceType); +} + +int ListDIJobsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDIJobsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListDIJobsRequest::getDestinationDataSourceType() const { + return destinationDataSourceType_; +} + +void ListDIJobsRequest::setDestinationDataSourceType(const std::string &destinationDataSourceType) { + destinationDataSourceType_ = destinationDataSourceType; + setBodyParameter(std::string("DestinationDataSourceType"), destinationDataSourceType); +} + +int ListDIJobsRequest::getPageSize() const { + return pageSize_; +} + +void ListDIJobsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListDIJobsRequest::getProjectId() const { + return projectId_; +} + +void ListDIJobsRequest::setProjectId(long projectId) { + projectId_ = projectId; + setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); +} + +std::string ListDIJobsRequest::getJobName() const { + return jobName_; +} + +void ListDIJobsRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setBodyParameter(std::string("JobName"), jobName); +} + diff --git a/dataworks-public/src/model/ListDIJobsResult.cc b/dataworks-public/src/model/ListDIJobsResult.cc new file mode 100644 index 000000000..81137a32d --- /dev/null +++ b/dataworks-public/src/model/ListDIJobsResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +ListDIJobsResult::ListDIJobsResult() : + ServiceResult() +{} + +ListDIJobsResult::ListDIJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDIJobsResult::~ListDIJobsResult() +{} + +void ListDIJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dIJobPagingNode = value["DIJobPaging"]; + if(!dIJobPagingNode["TotalCount"].isNull()) + dIJobPaging_.totalCount = std::stoi(dIJobPagingNode["TotalCount"].asString()); + if(!dIJobPagingNode["PageNumber"].isNull()) + dIJobPaging_.pageNumber = std::stoi(dIJobPagingNode["PageNumber"].asString()); + if(!dIJobPagingNode["PageSize"].isNull()) + dIJobPaging_.pageSize = std::stoi(dIJobPagingNode["PageSize"].asString()); + auto allDIJobsNode = dIJobPagingNode["DIJobs"]["DIJob"]; + for (auto dIJobPagingNodeDIJobsDIJob : allDIJobsNode) + { + DIJobPaging::DIJob dIJobObject; + if(!dIJobPagingNodeDIJobsDIJob["DIJobId"].isNull()) + dIJobObject.dIJobId = std::stol(dIJobPagingNodeDIJobsDIJob["DIJobId"].asString()); + if(!dIJobPagingNodeDIJobsDIJob["ProjectId"].isNull()) + dIJobObject.projectId = std::stol(dIJobPagingNodeDIJobsDIJob["ProjectId"].asString()); + if(!dIJobPagingNodeDIJobsDIJob["JobName"].isNull()) + dIJobObject.jobName = dIJobPagingNodeDIJobsDIJob["JobName"].asString(); + if(!dIJobPagingNodeDIJobsDIJob["MigrationType"].isNull()) + dIJobObject.migrationType = dIJobPagingNodeDIJobsDIJob["MigrationType"].asString(); + if(!dIJobPagingNodeDIJobsDIJob["SourceDataSourceType"].isNull()) + dIJobObject.sourceDataSourceType = dIJobPagingNodeDIJobsDIJob["SourceDataSourceType"].asString(); + if(!dIJobPagingNodeDIJobsDIJob["DestinationDataSourceType"].isNull()) + dIJobObject.destinationDataSourceType = dIJobPagingNodeDIJobsDIJob["DestinationDataSourceType"].asString(); + if(!dIJobPagingNodeDIJobsDIJob["JobStatus"].isNull()) + dIJobObject.jobStatus = dIJobPagingNodeDIJobsDIJob["JobStatus"].asString(); + dIJobPaging_.dIJobs.push_back(dIJobObject); + } + +} + +ListDIJobsResult::DIJobPaging ListDIJobsResult::getDIJobPaging()const +{ + return dIJobPaging_; +} + diff --git a/dataworks-public/src/model/ListEntitiesByTagsRequest.cc b/dataworks-public/src/model/ListEntitiesByTagsRequest.cc new file mode 100644 index 000000000..cfab5794f --- /dev/null +++ b/dataworks-public/src/model/ListEntitiesByTagsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::ListEntitiesByTagsRequest; + +ListEntitiesByTagsRequest::ListEntitiesByTagsRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "ListEntitiesByTags") { + setMethod(HttpRequest::Method::Get); +} + +ListEntitiesByTagsRequest::~ListEntitiesByTagsRequest() {} + +std::string ListEntitiesByTagsRequest::getEntityType() const { + return entityType_; +} + +void ListEntitiesByTagsRequest::setEntityType(const std::string &entityType) { + entityType_ = entityType; + setParameter(std::string("EntityType"), entityType); +} + +std::string ListEntitiesByTagsRequest::getNextToken() const { + return nextToken_; +} + +void ListEntitiesByTagsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListEntitiesByTagsRequest::getPageSize() const { + return pageSize_; +} + +void ListEntitiesByTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector ListEntitiesByTagsRequest::getTags() const { + return tags_; +} + +void ListEntitiesByTagsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagValue", tags[dep1].tagValue); + setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagKey", tags[dep1].tagKey); + } +} + diff --git a/dataworks-public/src/model/ListEntitiesByTagsResult.cc b/dataworks-public/src/model/ListEntitiesByTagsResult.cc new file mode 100644 index 000000000..1ca852309 --- /dev/null +++ b/dataworks-public/src/model/ListEntitiesByTagsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +ListEntitiesByTagsResult::ListEntitiesByTagsResult() : + ServiceResult() +{} + +ListEntitiesByTagsResult::ListEntitiesByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEntitiesByTagsResult::~ListEntitiesByTagsResult() +{} + +void ListEntitiesByTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + auto allEntityListNode = dataNode["EntityList"]["EntityListItem"]; + for (auto dataNodeEntityListEntityListItem : allEntityListNode) + { + Data::EntityListItem entityListItemObject; + if(!dataNodeEntityListEntityListItem["QualifiedName"].isNull()) + entityListItemObject.qualifiedName = dataNodeEntityListEntityListItem["QualifiedName"].asString(); + if(!dataNodeEntityListEntityListItem["TenantId"].isNull()) + entityListItemObject.tenantId = std::stol(dataNodeEntityListEntityListItem["TenantId"].asString()); + if(!dataNodeEntityListEntityListItem["EntityContent"].isNull()) + entityListItemObject.entityContent = dataNodeEntityListEntityListItem["EntityContent"].asString(); + data_.entityList.push_back(entityListItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int ListEntitiesByTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListEntitiesByTagsResult::Data ListEntitiesByTagsResult::getData()const +{ + return data_; +} + +std::string ListEntitiesByTagsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListEntitiesByTagsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListEntitiesByTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/ListEntityTagsRequest.cc b/dataworks-public/src/model/ListEntityTagsRequest.cc new file mode 100644 index 000000000..3030763b8 --- /dev/null +++ b/dataworks-public/src/model/ListEntityTagsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::ListEntityTagsRequest; + +ListEntityTagsRequest::ListEntityTagsRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "ListEntityTags") { + setMethod(HttpRequest::Method::Get); +} + +ListEntityTagsRequest::~ListEntityTagsRequest() {} + +std::string ListEntityTagsRequest::getQualifiedName() const { + return qualifiedName_; +} + +void ListEntityTagsRequest::setQualifiedName(const std::string &qualifiedName) { + qualifiedName_ = qualifiedName; + setParameter(std::string("QualifiedName"), qualifiedName); +} + diff --git a/dataworks-public/src/model/ListEntityTagsResult.cc b/dataworks-public/src/model/ListEntityTagsResult.cc new file mode 100644 index 000000000..cb3bf6974 --- /dev/null +++ b/dataworks-public/src/model/ListEntityTagsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +ListEntityTagsResult::ListEntityTagsResult() : + ServiceResult() +{} + +ListEntityTagsResult::ListEntityTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEntityTagsResult::~ListEntityTagsResult() +{} + +void ListEntityTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["TagKey"].isNull()) + dataObject.tagKey = valueDatadataItem["TagKey"].asString(); + if(!valueDatadataItem["TagValue"].isNull()) + dataObject.tagValue = valueDatadataItem["TagValue"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int ListEntityTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListEntityTagsResult::getData()const +{ + return data_; +} + +std::string ListEntityTagsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListEntityTagsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListEntityTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/RemoveEntityTagsRequest.cc b/dataworks-public/src/model/RemoveEntityTagsRequest.cc new file mode 100644 index 000000000..9267440cb --- /dev/null +++ b/dataworks-public/src/model/RemoveEntityTagsRequest.cc @@ -0,0 +1,47 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::RemoveEntityTagsRequest; + +RemoveEntityTagsRequest::RemoveEntityTagsRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "RemoveEntityTags") { + setMethod(HttpRequest::Method::Post); +} + +RemoveEntityTagsRequest::~RemoveEntityTagsRequest() {} + +std::string RemoveEntityTagsRequest::getQualifiedName() const { + return qualifiedName_; +} + +void RemoveEntityTagsRequest::setQualifiedName(const std::string &qualifiedName) { + qualifiedName_ = qualifiedName; + setParameter(std::string("QualifiedName"), qualifiedName); +} + +std::vector RemoveEntityTagsRequest::getTagKeys() const { + return tagKeys_; +} + +void RemoveEntityTagsRequest::setTagKeys(const std::vector &tagKeys) { + tagKeys_ = tagKeys; + for(int dep1 = 0; dep1 != tagKeys.size(); dep1++) { + setBodyParameter(std::string("TagKeys") + "." + std::to_string(dep1 + 1), tagKeys[dep1]); + } +} + diff --git a/dataworks-public/src/model/RemoveEntityTagsResult.cc b/dataworks-public/src/model/RemoveEntityTagsResult.cc new file mode 100644 index 000000000..18e27b6a4 --- /dev/null +++ b/dataworks-public/src/model/RemoveEntityTagsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +RemoveEntityTagsResult::RemoveEntityTagsResult() : + ServiceResult() +{} + +RemoveEntityTagsResult::RemoveEntityTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveEntityTagsResult::~RemoveEntityTagsResult() +{} + +void RemoveEntityTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int RemoveEntityTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool RemoveEntityTagsResult::getData()const +{ + return data_; +} + +std::string RemoveEntityTagsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RemoveEntityTagsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RemoveEntityTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/SetEntityTagsRequest.cc b/dataworks-public/src/model/SetEntityTagsRequest.cc new file mode 100644 index 000000000..0e838c3f9 --- /dev/null +++ b/dataworks-public/src/model/SetEntityTagsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::SetEntityTagsRequest; + +SetEntityTagsRequest::SetEntityTagsRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "SetEntityTags") { + setMethod(HttpRequest::Method::Post); +} + +SetEntityTagsRequest::~SetEntityTagsRequest() {} + +std::string SetEntityTagsRequest::getQualifiedName() const { + return qualifiedName_; +} + +void SetEntityTagsRequest::setQualifiedName(const std::string &qualifiedName) { + qualifiedName_ = qualifiedName; + setParameter(std::string("QualifiedName"), qualifiedName); +} + +std::vector SetEntityTagsRequest::getTags() const { + return tags_; +} + +void SetEntityTagsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + setBodyParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagValue", tags[dep1].tagValue); + setBodyParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagKey", tags[dep1].tagKey); + } +} + diff --git a/dataworks-public/src/model/SetEntityTagsResult.cc b/dataworks-public/src/model/SetEntityTagsResult.cc new file mode 100644 index 000000000..8e2099234 --- /dev/null +++ b/dataworks-public/src/model/SetEntityTagsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +SetEntityTagsResult::SetEntityTagsResult() : + ServiceResult() +{} + +SetEntityTagsResult::SetEntityTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetEntityTagsResult::~SetEntityTagsResult() +{} + +void SetEntityTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int SetEntityTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool SetEntityTagsResult::getData()const +{ + return data_; +} + +std::string SetEntityTagsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SetEntityTagsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SetEntityTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/StartDIJobRequest.cc b/dataworks-public/src/model/StartDIJobRequest.cc new file mode 100644 index 000000000..518c35f71 --- /dev/null +++ b/dataworks-public/src/model/StartDIJobRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::StartDIJobRequest; + +StartDIJobRequest::StartDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "StartDIJob") { + setMethod(HttpRequest::Method::Post); +} + +StartDIJobRequest::~StartDIJobRequest() {} + +bool StartDIJobRequest::getForceToRerun() const { + return forceToRerun_; +} + +void StartDIJobRequest::setForceToRerun(bool forceToRerun) { + forceToRerun_ = forceToRerun; + setBodyParameter(std::string("ForceToRerun"), forceToRerun ? "true" : "false"); +} + +long StartDIJobRequest::getDIJobId() const { + return dIJobId_; +} + +void StartDIJobRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + +std::string StartDIJobRequest::getRealtimeStartSettings() const { + return realtimeStartSettings_; +} + +void StartDIJobRequest::setRealtimeStartSettings(const std::string &realtimeStartSettings) { + realtimeStartSettings_ = realtimeStartSettings; + setBodyParameter(std::string("RealtimeStartSettings"), realtimeStartSettings); +} + diff --git a/dataworks-public/src/model/StartDIJobResult.cc b/dataworks-public/src/model/StartDIJobResult.cc new file mode 100644 index 000000000..ad172f862 --- /dev/null +++ b/dataworks-public/src/model/StartDIJobResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +StartDIJobResult::StartDIJobResult() : + ServiceResult() +{} + +StartDIJobResult::StartDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartDIJobResult::~StartDIJobResult() +{} + +void StartDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dataworks-public/src/model/StopDIJobRequest.cc b/dataworks-public/src/model/StopDIJobRequest.cc new file mode 100644 index 000000000..97e1f7d2c --- /dev/null +++ b/dataworks-public/src/model/StopDIJobRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dataworks_public::Model::StopDIJobRequest; + +StopDIJobRequest::StopDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "StopDIJob") { + setMethod(HttpRequest::Method::Post); +} + +StopDIJobRequest::~StopDIJobRequest() {} + +long StopDIJobRequest::getDIJobId() const { + return dIJobId_; +} + +void StopDIJobRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + diff --git a/dataworks-public/src/model/StopDIJobResult.cc b/dataworks-public/src/model/StopDIJobResult.cc new file mode 100644 index 000000000..257921108 --- /dev/null +++ b/dataworks-public/src/model/StopDIJobResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +StopDIJobResult::StopDIJobResult() : + ServiceResult() +{} + +StopDIJobResult::StopDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopDIJobResult::~StopDIJobResult() +{} + +void StopDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dataworks-public/src/model/UpdateDIAlarmRuleRequest.cc b/dataworks-public/src/model/UpdateDIAlarmRuleRequest.cc new file mode 100644 index 000000000..2206ca4db --- /dev/null +++ b/dataworks-public/src/model/UpdateDIAlarmRuleRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::UpdateDIAlarmRuleRequest; + +UpdateDIAlarmRuleRequest::UpdateDIAlarmRuleRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateDIAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDIAlarmRuleRequest::~UpdateDIAlarmRuleRequest() {} + +std::string UpdateDIAlarmRuleRequest::getMetricType() const { + return metricType_; +} + +void UpdateDIAlarmRuleRequest::setMetricType(const std::string &metricType) { + metricType_ = metricType; + setBodyParameter(std::string("MetricType"), metricType); +} + +std::string UpdateDIAlarmRuleRequest::getTriggerConditions() const { + return triggerConditions_; +} + +void UpdateDIAlarmRuleRequest::setTriggerConditions(const std::string &triggerConditions) { + triggerConditions_ = triggerConditions; + setBodyParameter(std::string("TriggerConditions"), triggerConditions); +} + +std::string UpdateDIAlarmRuleRequest::getDescription() const { + return description_; +} + +void UpdateDIAlarmRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateDIAlarmRuleRequest::getNotificationSettings() const { + return notificationSettings_; +} + +void UpdateDIAlarmRuleRequest::setNotificationSettings(const std::string ¬ificationSettings) { + notificationSettings_ = notificationSettings; + setBodyParameter(std::string("NotificationSettings"), notificationSettings); +} + +bool UpdateDIAlarmRuleRequest::getEnabled() const { + return enabled_; +} + +void UpdateDIAlarmRuleRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setBodyParameter(std::string("Enabled"), enabled ? "true" : "false"); +} + +long UpdateDIAlarmRuleRequest::getDIAlarmRuleId() const { + return dIAlarmRuleId_; +} + +void UpdateDIAlarmRuleRequest::setDIAlarmRuleId(long dIAlarmRuleId) { + dIAlarmRuleId_ = dIAlarmRuleId; + setBodyParameter(std::string("DIAlarmRuleId"), std::to_string(dIAlarmRuleId)); +} + diff --git a/dataworks-public/src/model/UpdateDIAlarmRuleResult.cc b/dataworks-public/src/model/UpdateDIAlarmRuleResult.cc new file mode 100644 index 000000000..6a22deced --- /dev/null +++ b/dataworks-public/src/model/UpdateDIAlarmRuleResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +UpdateDIAlarmRuleResult::UpdateDIAlarmRuleResult() : + ServiceResult() +{} + +UpdateDIAlarmRuleResult::UpdateDIAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDIAlarmRuleResult::~UpdateDIAlarmRuleResult() +{} + +void UpdateDIAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dataworks-public/src/model/UpdateDIJobRequest.cc b/dataworks-public/src/model/UpdateDIJobRequest.cc new file mode 100644 index 000000000..f43f3a72b --- /dev/null +++ b/dataworks-public/src/model/UpdateDIJobRequest.cc @@ -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 + +using AlibabaCloud::Dataworks_public::Model::UpdateDIJobRequest; + +UpdateDIJobRequest::UpdateDIJobRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateDIJob") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDIJobRequest::~UpdateDIJobRequest() {} + +std::string UpdateDIJobRequest::getDescription() const { + return description_; +} + +void UpdateDIJobRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateDIJobRequest::getTransformationRules() const { + return transformationRules_; +} + +void UpdateDIJobRequest::setTransformationRules(const std::string &transformationRules) { + transformationRules_ = transformationRules; + setBodyParameter(std::string("TransformationRules"), transformationRules); +} + +long UpdateDIJobRequest::getDIJobId() const { + return dIJobId_; +} + +void UpdateDIJobRequest::setDIJobId(long dIJobId) { + dIJobId_ = dIJobId; + setBodyParameter(std::string("DIJobId"), std::to_string(dIJobId)); +} + +std::string UpdateDIJobRequest::getResourceSettings() const { + return resourceSettings_; +} + +void UpdateDIJobRequest::setResourceSettings(const std::string &resourceSettings) { + resourceSettings_ = resourceSettings; + setBodyParameter(std::string("ResourceSettings"), resourceSettings); +} + +std::string UpdateDIJobRequest::getTableMappings() const { + return tableMappings_; +} + +void UpdateDIJobRequest::setTableMappings(const std::string &tableMappings) { + tableMappings_ = tableMappings; + setBodyParameter(std::string("TableMappings"), tableMappings); +} + +std::string UpdateDIJobRequest::getJobSettings() const { + return jobSettings_; +} + +void UpdateDIJobRequest::setJobSettings(const std::string &jobSettings) { + jobSettings_ = jobSettings; + setBodyParameter(std::string("JobSettings"), jobSettings); +} + diff --git a/dataworks-public/src/model/UpdateDIJobResult.cc b/dataworks-public/src/model/UpdateDIJobResult.cc new file mode 100644 index 000000000..19728a6fb --- /dev/null +++ b/dataworks-public/src/model/UpdateDIJobResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +UpdateDIJobResult::UpdateDIJobResult() : + ServiceResult() +{} + +UpdateDIJobResult::UpdateDIJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDIJobResult::~UpdateDIJobResult() +{} + +void UpdateDIJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +