diff --git a/CHANGELOG b/CHANGELOG index 9c2b890f8..653ce83fa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-08-07 Version: 1.36.560 +- Generated 2020-05-18 for `dataworks-public`. + 2020-08-07 Version: 1.36.559 - GetTitleDiagnose GetTitleGenerate GetImageTranslate supported. diff --git a/VERSION b/VERSION index 228efdbcb..2b1089f7d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.559 \ No newline at end of file +1.36.560 \ No newline at end of file diff --git a/dataworks-public/CMakeLists.txt b/dataworks-public/CMakeLists.txt index f228232e5..e3da8ae8b 100644 --- a/dataworks-public/CMakeLists.txt +++ b/dataworks-public/CMakeLists.txt @@ -23,6 +23,8 @@ set(dataworks-public_public_header set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/AbolishDataServiceApiRequest.h include/alibabacloud/dataworks-public/model/AbolishDataServiceApiResult.h + include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleRequest.h + include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleResult.h include/alibabacloud/dataworks-public/model/AddToMetaCategoryRequest.h include/alibabacloud/dataworks-public/model/AddToMetaCategoryResult.h include/alibabacloud/dataworks-public/model/CheckMetaPartitionRequest.h @@ -43,6 +45,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/CreateFolderResult.h include/alibabacloud/dataworks-public/model/CreateMetaCategoryRequest.h include/alibabacloud/dataworks-public/model/CreateMetaCategoryResult.h + include/alibabacloud/dataworks-public/model/CreateProjectMemberRequest.h + include/alibabacloud/dataworks-public/model/CreateProjectMemberResult.h include/alibabacloud/dataworks-public/model/CreateQualityEntityRequest.h include/alibabacloud/dataworks-public/model/CreateQualityEntityResult.h include/alibabacloud/dataworks-public/model/CreateQualityFollowerRequest.h @@ -69,6 +73,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/DeleteFromMetaCategoryResult.h include/alibabacloud/dataworks-public/model/DeleteMetaCategoryRequest.h include/alibabacloud/dataworks-public/model/DeleteMetaCategoryResult.h + include/alibabacloud/dataworks-public/model/DeleteProjectMemberRequest.h + include/alibabacloud/dataworks-public/model/DeleteProjectMemberResult.h include/alibabacloud/dataworks-public/model/DeleteQualityEntityRequest.h include/alibabacloud/dataworks-public/model/DeleteQualityEntityResult.h include/alibabacloud/dataworks-public/model/DeleteQualityFollowerRequest.h @@ -189,6 +195,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListNodeIOResult.h include/alibabacloud/dataworks-public/model/ListNodesRequest.h include/alibabacloud/dataworks-public/model/ListNodesResult.h + include/alibabacloud/dataworks-public/model/ListProjectMembersRequest.h + include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h + include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.h + include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h include/alibabacloud/dataworks-public/model/ListQualityRulesRequest.h include/alibabacloud/dataworks-public/model/ListQualityRulesResult.h include/alibabacloud/dataworks-public/model/ListRemindsRequest.h @@ -199,6 +209,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListTopicsResult.h include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h include/alibabacloud/dataworks-public/model/PublishDataServiceApiResult.h + include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h + include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h include/alibabacloud/dataworks-public/model/RestartInstanceRequest.h include/alibabacloud/dataworks-public/model/RestartInstanceResult.h include/alibabacloud/dataworks-public/model/ResumeInstanceRequest.h @@ -238,6 +250,8 @@ set(dataworks-public_src src/Dataworks-publicClient.cc src/model/AbolishDataServiceApiRequest.cc src/model/AbolishDataServiceApiResult.cc + src/model/AddProjectMemberToRoleRequest.cc + src/model/AddProjectMemberToRoleResult.cc src/model/AddToMetaCategoryRequest.cc src/model/AddToMetaCategoryResult.cc src/model/CheckMetaPartitionRequest.cc @@ -258,6 +272,8 @@ set(dataworks-public_src src/model/CreateFolderResult.cc src/model/CreateMetaCategoryRequest.cc src/model/CreateMetaCategoryResult.cc + src/model/CreateProjectMemberRequest.cc + src/model/CreateProjectMemberResult.cc src/model/CreateQualityEntityRequest.cc src/model/CreateQualityEntityResult.cc src/model/CreateQualityFollowerRequest.cc @@ -284,6 +300,8 @@ set(dataworks-public_src src/model/DeleteFromMetaCategoryResult.cc src/model/DeleteMetaCategoryRequest.cc src/model/DeleteMetaCategoryResult.cc + src/model/DeleteProjectMemberRequest.cc + src/model/DeleteProjectMemberResult.cc src/model/DeleteQualityEntityRequest.cc src/model/DeleteQualityEntityResult.cc src/model/DeleteQualityFollowerRequest.cc @@ -404,6 +422,10 @@ set(dataworks-public_src src/model/ListNodeIOResult.cc src/model/ListNodesRequest.cc src/model/ListNodesResult.cc + src/model/ListProjectMembersRequest.cc + src/model/ListProjectMembersResult.cc + src/model/ListProjectRolesRequest.cc + src/model/ListProjectRolesResult.cc src/model/ListQualityRulesRequest.cc src/model/ListQualityRulesResult.cc src/model/ListRemindsRequest.cc @@ -414,6 +436,8 @@ set(dataworks-public_src src/model/ListTopicsResult.cc src/model/PublishDataServiceApiRequest.cc src/model/PublishDataServiceApiResult.cc + src/model/RemoveProjectMemberFromRoleRequest.cc + src/model/RemoveProjectMemberFromRoleResult.cc src/model/RestartInstanceRequest.cc src/model/RestartInstanceResult.cc src/model/ResumeInstanceRequest.cc diff --git a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h index a2ac08982..80425510d 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h @@ -24,6 +24,8 @@ #include "Dataworks_publicExport.h" #include "model/AbolishDataServiceApiRequest.h" #include "model/AbolishDataServiceApiResult.h" +#include "model/AddProjectMemberToRoleRequest.h" +#include "model/AddProjectMemberToRoleResult.h" #include "model/AddToMetaCategoryRequest.h" #include "model/AddToMetaCategoryResult.h" #include "model/CheckMetaPartitionRequest.h" @@ -44,6 +46,8 @@ #include "model/CreateFolderResult.h" #include "model/CreateMetaCategoryRequest.h" #include "model/CreateMetaCategoryResult.h" +#include "model/CreateProjectMemberRequest.h" +#include "model/CreateProjectMemberResult.h" #include "model/CreateQualityEntityRequest.h" #include "model/CreateQualityEntityResult.h" #include "model/CreateQualityFollowerRequest.h" @@ -70,6 +74,8 @@ #include "model/DeleteFromMetaCategoryResult.h" #include "model/DeleteMetaCategoryRequest.h" #include "model/DeleteMetaCategoryResult.h" +#include "model/DeleteProjectMemberRequest.h" +#include "model/DeleteProjectMemberResult.h" #include "model/DeleteQualityEntityRequest.h" #include "model/DeleteQualityEntityResult.h" #include "model/DeleteQualityFollowerRequest.h" @@ -190,6 +196,10 @@ #include "model/ListNodeIOResult.h" #include "model/ListNodesRequest.h" #include "model/ListNodesResult.h" +#include "model/ListProjectMembersRequest.h" +#include "model/ListProjectMembersResult.h" +#include "model/ListProjectRolesRequest.h" +#include "model/ListProjectRolesResult.h" #include "model/ListQualityRulesRequest.h" #include "model/ListQualityRulesResult.h" #include "model/ListRemindsRequest.h" @@ -200,6 +210,8 @@ #include "model/ListTopicsResult.h" #include "model/PublishDataServiceApiRequest.h" #include "model/PublishDataServiceApiResult.h" +#include "model/RemoveProjectMemberFromRoleRequest.h" +#include "model/RemoveProjectMemberFromRoleResult.h" #include "model/RestartInstanceRequest.h" #include "model/RestartInstanceResult.h" #include "model/ResumeInstanceRequest.h" @@ -246,6 +258,9 @@ namespace AlibabaCloud typedef Outcome AbolishDataServiceApiOutcome; typedef std::future AbolishDataServiceApiOutcomeCallable; typedef std::function&)> AbolishDataServiceApiAsyncHandler; + typedef Outcome AddProjectMemberToRoleOutcome; + typedef std::future AddProjectMemberToRoleOutcomeCallable; + typedef std::function&)> AddProjectMemberToRoleAsyncHandler; typedef Outcome AddToMetaCategoryOutcome; typedef std::future AddToMetaCategoryOutcomeCallable; typedef std::function&)> AddToMetaCategoryAsyncHandler; @@ -276,6 +291,9 @@ namespace AlibabaCloud typedef Outcome CreateMetaCategoryOutcome; typedef std::future CreateMetaCategoryOutcomeCallable; typedef std::function&)> CreateMetaCategoryAsyncHandler; + typedef Outcome CreateProjectMemberOutcome; + typedef std::future CreateProjectMemberOutcomeCallable; + typedef std::function&)> CreateProjectMemberAsyncHandler; typedef Outcome CreateQualityEntityOutcome; typedef std::future CreateQualityEntityOutcomeCallable; typedef std::function&)> CreateQualityEntityAsyncHandler; @@ -315,6 +333,9 @@ namespace AlibabaCloud typedef Outcome DeleteMetaCategoryOutcome; typedef std::future DeleteMetaCategoryOutcomeCallable; typedef std::function&)> DeleteMetaCategoryAsyncHandler; + typedef Outcome DeleteProjectMemberOutcome; + typedef std::future DeleteProjectMemberOutcomeCallable; + typedef std::function&)> DeleteProjectMemberAsyncHandler; typedef Outcome DeleteQualityEntityOutcome; typedef std::future DeleteQualityEntityOutcomeCallable; typedef std::function&)> DeleteQualityEntityAsyncHandler; @@ -495,6 +516,12 @@ namespace AlibabaCloud typedef Outcome ListNodesOutcome; typedef std::future ListNodesOutcomeCallable; typedef std::function&)> ListNodesAsyncHandler; + typedef Outcome ListProjectMembersOutcome; + typedef std::future ListProjectMembersOutcomeCallable; + typedef std::function&)> ListProjectMembersAsyncHandler; + typedef Outcome ListProjectRolesOutcome; + typedef std::future ListProjectRolesOutcomeCallable; + typedef std::function&)> ListProjectRolesAsyncHandler; typedef Outcome ListQualityRulesOutcome; typedef std::future ListQualityRulesOutcomeCallable; typedef std::function&)> ListQualityRulesAsyncHandler; @@ -510,6 +537,9 @@ namespace AlibabaCloud typedef Outcome PublishDataServiceApiOutcome; typedef std::future PublishDataServiceApiOutcomeCallable; typedef std::function&)> PublishDataServiceApiAsyncHandler; + typedef Outcome RemoveProjectMemberFromRoleOutcome; + typedef std::future RemoveProjectMemberFromRoleOutcomeCallable; + typedef std::function&)> RemoveProjectMemberFromRoleAsyncHandler; typedef Outcome RestartInstanceOutcome; typedef std::future RestartInstanceOutcomeCallable; typedef std::function&)> RestartInstanceAsyncHandler; @@ -569,6 +599,9 @@ namespace AlibabaCloud AbolishDataServiceApiOutcome abolishDataServiceApi(const Model::AbolishDataServiceApiRequest &request)const; void abolishDataServiceApiAsync(const Model::AbolishDataServiceApiRequest& request, const AbolishDataServiceApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AbolishDataServiceApiOutcomeCallable abolishDataServiceApiCallable(const Model::AbolishDataServiceApiRequest& request) const; + AddProjectMemberToRoleOutcome addProjectMemberToRole(const Model::AddProjectMemberToRoleRequest &request)const; + void addProjectMemberToRoleAsync(const Model::AddProjectMemberToRoleRequest& request, const AddProjectMemberToRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddProjectMemberToRoleOutcomeCallable addProjectMemberToRoleCallable(const Model::AddProjectMemberToRoleRequest& request) const; AddToMetaCategoryOutcome addToMetaCategory(const Model::AddToMetaCategoryRequest &request)const; void addToMetaCategoryAsync(const Model::AddToMetaCategoryRequest& request, const AddToMetaCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddToMetaCategoryOutcomeCallable addToMetaCategoryCallable(const Model::AddToMetaCategoryRequest& request) const; @@ -599,6 +632,9 @@ namespace AlibabaCloud CreateMetaCategoryOutcome createMetaCategory(const Model::CreateMetaCategoryRequest &request)const; void createMetaCategoryAsync(const Model::CreateMetaCategoryRequest& request, const CreateMetaCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMetaCategoryOutcomeCallable createMetaCategoryCallable(const Model::CreateMetaCategoryRequest& request) const; + CreateProjectMemberOutcome createProjectMember(const Model::CreateProjectMemberRequest &request)const; + void createProjectMemberAsync(const Model::CreateProjectMemberRequest& request, const CreateProjectMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectMemberOutcomeCallable createProjectMemberCallable(const Model::CreateProjectMemberRequest& request) const; CreateQualityEntityOutcome createQualityEntity(const Model::CreateQualityEntityRequest &request)const; void createQualityEntityAsync(const Model::CreateQualityEntityRequest& request, const CreateQualityEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateQualityEntityOutcomeCallable createQualityEntityCallable(const Model::CreateQualityEntityRequest& request) const; @@ -638,6 +674,9 @@ namespace AlibabaCloud DeleteMetaCategoryOutcome deleteMetaCategory(const Model::DeleteMetaCategoryRequest &request)const; void deleteMetaCategoryAsync(const Model::DeleteMetaCategoryRequest& request, const DeleteMetaCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMetaCategoryOutcomeCallable deleteMetaCategoryCallable(const Model::DeleteMetaCategoryRequest& request) const; + DeleteProjectMemberOutcome deleteProjectMember(const Model::DeleteProjectMemberRequest &request)const; + void deleteProjectMemberAsync(const Model::DeleteProjectMemberRequest& request, const DeleteProjectMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectMemberOutcomeCallable deleteProjectMemberCallable(const Model::DeleteProjectMemberRequest& request) const; DeleteQualityEntityOutcome deleteQualityEntity(const Model::DeleteQualityEntityRequest &request)const; void deleteQualityEntityAsync(const Model::DeleteQualityEntityRequest& request, const DeleteQualityEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteQualityEntityOutcomeCallable deleteQualityEntityCallable(const Model::DeleteQualityEntityRequest& request) const; @@ -818,6 +857,12 @@ namespace AlibabaCloud ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const; void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const; + ListProjectMembersOutcome listProjectMembers(const Model::ListProjectMembersRequest &request)const; + void listProjectMembersAsync(const Model::ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectMembersOutcomeCallable listProjectMembersCallable(const Model::ListProjectMembersRequest& request) const; + ListProjectRolesOutcome listProjectRoles(const Model::ListProjectRolesRequest &request)const; + void listProjectRolesAsync(const Model::ListProjectRolesRequest& request, const ListProjectRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectRolesOutcomeCallable listProjectRolesCallable(const Model::ListProjectRolesRequest& request) const; ListQualityRulesOutcome listQualityRules(const Model::ListQualityRulesRequest &request)const; void listQualityRulesAsync(const Model::ListQualityRulesRequest& request, const ListQualityRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListQualityRulesOutcomeCallable listQualityRulesCallable(const Model::ListQualityRulesRequest& request) const; @@ -833,6 +878,9 @@ namespace AlibabaCloud PublishDataServiceApiOutcome publishDataServiceApi(const Model::PublishDataServiceApiRequest &request)const; void publishDataServiceApiAsync(const Model::PublishDataServiceApiRequest& request, const PublishDataServiceApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishDataServiceApiOutcomeCallable publishDataServiceApiCallable(const Model::PublishDataServiceApiRequest& 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; RestartInstanceOutcome restartInstance(const Model::RestartInstanceRequest &request)const; void restartInstanceAsync(const Model::RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartInstanceOutcomeCallable restartInstanceCallable(const Model::RestartInstanceRequest& request) const; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleRequest.h new file mode 100644 index 000000000..ea63af3aa --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleRequest.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_ADDPROJECTMEMBERTOROLEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT AddProjectMemberToRoleRequest : public RpcServiceRequest + { + + public: + AddProjectMemberToRoleRequest(); + ~AddProjectMemberToRoleRequest(); + + std::string getRoleCode()const; + void setRoleCode(const std::string& roleCode); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getProjectId()const; + void setProjectId(long projectId); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string roleCode_; + std::string clientToken_; + long projectId_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLEREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleResult.h new file mode 100644 index 000000000..603945056 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/AddProjectMemberToRoleResult.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_ADDPROJECTMEMBERTOROLERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT AddProjectMemberToRoleResult : public ServiceResult + { + public: + + + AddProjectMemberToRoleResult(); + explicit AddProjectMemberToRoleResult(const std::string &payload); + ~AddProjectMemberToRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_ADDPROJECTMEMBERTOROLERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberRequest.h new file mode 100644 index 000000000..2de53ce70 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateProjectMemberRequest : public RpcServiceRequest + { + + public: + CreateProjectMemberRequest(); + ~CreateProjectMemberRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getProjectId()const; + void setProjectId(long projectId); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string clientToken_; + long projectId_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberResult.h new file mode 100644 index 000000000..2a78f69c3 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateProjectMemberResult.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_CREATEPROJECTMEMBERRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateProjectMemberResult : public ServiceResult + { + public: + + + CreateProjectMemberResult(); + explicit CreateProjectMemberResult(const std::string &payload); + ~CreateProjectMemberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEPROJECTMEMBERRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberRequest.h new file mode 100644 index 000000000..05855e688 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberRequest.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_DELETEPROJECTMEMBERREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteProjectMemberRequest : public RpcServiceRequest + { + + public: + DeleteProjectMemberRequest(); + ~DeleteProjectMemberRequest(); + + long getProjectId()const; + void setProjectId(long projectId); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + long projectId_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberResult.h new file mode 100644 index 000000000..04e4acf48 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/DeleteProjectMemberResult.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_DELETEPROJECTMEMBERRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteProjectMemberResult : public ServiceResult + { + public: + + + DeleteProjectMemberResult(); + explicit DeleteProjectMemberResult(const std::string &payload); + ~DeleteProjectMemberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETEPROJECTMEMBERRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersRequest.h new file mode 100644 index 000000000..bfe4520e8 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectMembersRequest : public RpcServiceRequest + { + + public: + ListProjectMembersRequest(); + ~ListProjectMembersRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNum()const; + void setPageNum(int pageNum); + long getProjectId()const; + void setProjectId(long projectId); + + private: + int pageSize_; + int pageNum_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h new file mode 100644 index 000000000..d2a8a8d54 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h @@ -0,0 +1,74 @@ +/* + * 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_LISTPROJECTMEMBERSRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectMembersResult : public ServiceResult + { + public: + struct ProjectMember + { + struct Role + { + std::string projectRoleName; + std::string projectRoleType; + std::string projectRoleCode; + int projectRoleId; + }; + std::string createOn; + std::string status; + std::vector projectRoleList; + std::string projectMemberType; + std::string projectMemberId; + std::string nick; + std::string projectMemberName; + }; + + + ListProjectMembersResult(); + explicit ListProjectMembersResult(const std::string &payload); + ~ListProjectMembersResult(); + int getTotalNum()const; + std::vector getProjectMemberList()const; + int getPageNum()const; + int getPageSize()const; + + protected: + void parse(const std::string &payload); + private: + int totalNum_; + std::vector projectMemberList_; + int pageNum_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.h new file mode 100644 index 000000000..79c72ee47 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.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_LISTPROJECTROLESREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectRolesRequest : public RpcServiceRequest + { + + public: + ListProjectRolesRequest(); + ~ListProjectRolesRequest(); + + long getProjectId()const; + void setProjectId(long projectId); + + private: + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h new file mode 100644 index 000000000..85818072f --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h @@ -0,0 +1,58 @@ +/* + * 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_LISTPROJECTROLESRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectRolesResult : public ServiceResult + { + public: + struct Role + { + std::string projectRoleName; + std::string projectRoleType; + std::string projectRoleCode; + int projectRoleId; + }; + + + ListProjectRolesResult(); + explicit ListProjectRolesResult(const std::string &payload); + ~ListProjectRolesResult(); + std::vector getProjectRoleList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector projectRoleList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTROLESRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h new file mode 100644 index 000000000..46863e3c5 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RemoveProjectMemberFromRoleRequest : public RpcServiceRequest + { + + public: + RemoveProjectMemberFromRoleRequest(); + ~RemoveProjectMemberFromRoleRequest(); + + std::string getRoleCode()const; + void setRoleCode(const std::string& roleCode); + long getProjectId()const; + void setProjectId(long projectId); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string roleCode_; + long projectId_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLEREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h new file mode 100644 index 000000000..4144fc3c4 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.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_REMOVEPROJECTMEMBERFROMROLERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RemoveProjectMemberFromRoleResult : public ServiceResult + { + public: + + + RemoveProjectMemberFromRoleResult(); + explicit RemoveProjectMemberFromRoleResult(const std::string &payload); + ~RemoveProjectMemberFromRoleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REMOVEPROJECTMEMBERFROMROLERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/src/Dataworks-publicClient.cc b/dataworks-public/src/Dataworks-publicClient.cc index 7c0b64645..099b81e1f 100644 --- a/dataworks-public/src/Dataworks-publicClient.cc +++ b/dataworks-public/src/Dataworks-publicClient.cc @@ -87,6 +87,42 @@ Dataworks_publicClient::AbolishDataServiceApiOutcomeCallable Dataworks_publicCli return task->get_future(); } +Dataworks_publicClient::AddProjectMemberToRoleOutcome Dataworks_publicClient::addProjectMemberToRole(const AddProjectMemberToRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddProjectMemberToRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddProjectMemberToRoleOutcome(AddProjectMemberToRoleResult(outcome.result())); + else + return AddProjectMemberToRoleOutcome(outcome.error()); +} + +void Dataworks_publicClient::addProjectMemberToRoleAsync(const AddProjectMemberToRoleRequest& request, const AddProjectMemberToRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addProjectMemberToRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::AddProjectMemberToRoleOutcomeCallable Dataworks_publicClient::addProjectMemberToRoleCallable(const AddProjectMemberToRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addProjectMemberToRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::AddToMetaCategoryOutcome Dataworks_publicClient::addToMetaCategory(const AddToMetaCategoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +483,42 @@ Dataworks_publicClient::CreateMetaCategoryOutcomeCallable Dataworks_publicClient return task->get_future(); } +Dataworks_publicClient::CreateProjectMemberOutcome Dataworks_publicClient::createProjectMember(const CreateProjectMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectMemberOutcome(CreateProjectMemberResult(outcome.result())); + else + return CreateProjectMemberOutcome(outcome.error()); +} + +void Dataworks_publicClient::createProjectMemberAsync(const CreateProjectMemberRequest& request, const CreateProjectMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProjectMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::CreateProjectMemberOutcomeCallable Dataworks_publicClient::createProjectMemberCallable(const CreateProjectMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProjectMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::CreateQualityEntityOutcome Dataworks_publicClient::createQualityEntity(const CreateQualityEntityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +987,42 @@ Dataworks_publicClient::DeleteMetaCategoryOutcomeCallable Dataworks_publicClient return task->get_future(); } +Dataworks_publicClient::DeleteProjectMemberOutcome Dataworks_publicClient::deleteProjectMember(const DeleteProjectMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectMemberOutcome(DeleteProjectMemberResult(outcome.result())); + else + return DeleteProjectMemberOutcome(outcome.error()); +} + +void Dataworks_publicClient::deleteProjectMemberAsync(const DeleteProjectMemberRequest& request, const DeleteProjectMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::DeleteProjectMemberOutcomeCallable Dataworks_publicClient::deleteProjectMemberCallable(const DeleteProjectMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::DeleteQualityEntityOutcome Dataworks_publicClient::deleteQualityEntity(const DeleteQualityEntityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,6 +3183,78 @@ Dataworks_publicClient::ListNodesOutcomeCallable Dataworks_publicClient::listNod return task->get_future(); } +Dataworks_publicClient::ListProjectMembersOutcome Dataworks_publicClient::listProjectMembers(const ListProjectMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectMembersOutcome(ListProjectMembersResult(outcome.result())); + else + return ListProjectMembersOutcome(outcome.error()); +} + +void Dataworks_publicClient::listProjectMembersAsync(const ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListProjectMembersOutcomeCallable Dataworks_publicClient::listProjectMembersCallable(const ListProjectMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dataworks_publicClient::ListProjectRolesOutcome Dataworks_publicClient::listProjectRoles(const ListProjectRolesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectRolesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectRolesOutcome(ListProjectRolesResult(outcome.result())); + else + return ListProjectRolesOutcome(outcome.error()); +} + +void Dataworks_publicClient::listProjectRolesAsync(const ListProjectRolesRequest& request, const ListProjectRolesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectRoles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::ListProjectRolesOutcomeCallable Dataworks_publicClient::listProjectRolesCallable(const ListProjectRolesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectRoles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::ListQualityRulesOutcome Dataworks_publicClient::listQualityRules(const ListQualityRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,6 +3435,42 @@ Dataworks_publicClient::PublishDataServiceApiOutcomeCallable Dataworks_publicCli return task->get_future(); } +Dataworks_publicClient::RemoveProjectMemberFromRoleOutcome Dataworks_publicClient::removeProjectMemberFromRole(const RemoveProjectMemberFromRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveProjectMemberFromRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveProjectMemberFromRoleOutcome(RemoveProjectMemberFromRoleResult(outcome.result())); + else + return RemoveProjectMemberFromRoleOutcome(outcome.error()); +} + +void Dataworks_publicClient::removeProjectMemberFromRoleAsync(const RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeProjectMemberFromRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::RemoveProjectMemberFromRoleOutcomeCallable Dataworks_publicClient::removeProjectMemberFromRoleCallable(const RemoveProjectMemberFromRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeProjectMemberFromRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::RestartInstanceOutcome Dataworks_publicClient::restartInstance(const RestartInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dataworks-public/src/model/AddProjectMemberToRoleRequest.cc b/dataworks-public/src/model/AddProjectMemberToRoleRequest.cc new file mode 100644 index 000000000..9306a545c --- /dev/null +++ b/dataworks-public/src/model/AddProjectMemberToRoleRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::AddProjectMemberToRoleRequest; + +AddProjectMemberToRoleRequest::AddProjectMemberToRoleRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "AddProjectMemberToRole") +{ + setMethod(HttpRequest::Method::Post); +} + +AddProjectMemberToRoleRequest::~AddProjectMemberToRoleRequest() +{} + +std::string AddProjectMemberToRoleRequest::getRoleCode()const +{ + return roleCode_; +} + +void AddProjectMemberToRoleRequest::setRoleCode(const std::string& roleCode) +{ + roleCode_ = roleCode; + setParameter("RoleCode", roleCode); +} + +std::string AddProjectMemberToRoleRequest::getClientToken()const +{ + return clientToken_; +} + +void AddProjectMemberToRoleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long AddProjectMemberToRoleRequest::getProjectId()const +{ + return projectId_; +} + +void AddProjectMemberToRoleRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + +std::string AddProjectMemberToRoleRequest::getUserId()const +{ + return userId_; +} + +void AddProjectMemberToRoleRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/dataworks-public/src/model/AddProjectMemberToRoleResult.cc b/dataworks-public/src/model/AddProjectMemberToRoleResult.cc new file mode 100644 index 000000000..d1a674ee3 --- /dev/null +++ b/dataworks-public/src/model/AddProjectMemberToRoleResult.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; + +AddProjectMemberToRoleResult::AddProjectMemberToRoleResult() : + ServiceResult() +{} + +AddProjectMemberToRoleResult::AddProjectMemberToRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddProjectMemberToRoleResult::~AddProjectMemberToRoleResult() +{} + +void AddProjectMemberToRoleResult::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/CreateProjectMemberRequest.cc b/dataworks-public/src/model/CreateProjectMemberRequest.cc new file mode 100644 index 000000000..901c8e36d --- /dev/null +++ b/dataworks-public/src/model/CreateProjectMemberRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::CreateProjectMemberRequest; + +CreateProjectMemberRequest::CreateProjectMemberRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "CreateProjectMember") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateProjectMemberRequest::~CreateProjectMemberRequest() +{} + +std::string CreateProjectMemberRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateProjectMemberRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long CreateProjectMemberRequest::getProjectId()const +{ + return projectId_; +} + +void CreateProjectMemberRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + +std::string CreateProjectMemberRequest::getUserId()const +{ + return userId_; +} + +void CreateProjectMemberRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/dataworks-public/src/model/CreateProjectMemberResult.cc b/dataworks-public/src/model/CreateProjectMemberResult.cc new file mode 100644 index 000000000..71b9eb144 --- /dev/null +++ b/dataworks-public/src/model/CreateProjectMemberResult.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; + +CreateProjectMemberResult::CreateProjectMemberResult() : + ServiceResult() +{} + +CreateProjectMemberResult::CreateProjectMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectMemberResult::~CreateProjectMemberResult() +{} + +void CreateProjectMemberResult::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/DeleteProjectMemberRequest.cc b/dataworks-public/src/model/DeleteProjectMemberRequest.cc new file mode 100644 index 000000000..6b67adadd --- /dev/null +++ b/dataworks-public/src/model/DeleteProjectMemberRequest.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 + +using AlibabaCloud::Dataworks_public::Model::DeleteProjectMemberRequest; + +DeleteProjectMemberRequest::DeleteProjectMemberRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteProjectMember") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteProjectMemberRequest::~DeleteProjectMemberRequest() +{} + +long DeleteProjectMemberRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteProjectMemberRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + +std::string DeleteProjectMemberRequest::getUserId()const +{ + return userId_; +} + +void DeleteProjectMemberRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/dataworks-public/src/model/DeleteProjectMemberResult.cc b/dataworks-public/src/model/DeleteProjectMemberResult.cc new file mode 100644 index 000000000..9b828aec4 --- /dev/null +++ b/dataworks-public/src/model/DeleteProjectMemberResult.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; + +DeleteProjectMemberResult::DeleteProjectMemberResult() : + ServiceResult() +{} + +DeleteProjectMemberResult::DeleteProjectMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectMemberResult::~DeleteProjectMemberResult() +{} + +void DeleteProjectMemberResult::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/ListProjectMembersRequest.cc b/dataworks-public/src/model/ListProjectMembersRequest.cc new file mode 100644 index 000000000..cb1c12257 --- /dev/null +++ b/dataworks-public/src/model/ListProjectMembersRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::ListProjectMembersRequest; + +ListProjectMembersRequest::ListProjectMembersRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjectMembers") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectMembersRequest::~ListProjectMembersRequest() +{} + +int ListProjectMembersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListProjectMembersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListProjectMembersRequest::getPageNum()const +{ + return pageNum_; +} + +void ListProjectMembersRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +long ListProjectMembersRequest::getProjectId()const +{ + return projectId_; +} + +void ListProjectMembersRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/dataworks-public/src/model/ListProjectMembersResult.cc b/dataworks-public/src/model/ListProjectMembersResult.cc new file mode 100644 index 000000000..00de1ed5b --- /dev/null +++ b/dataworks-public/src/model/ListProjectMembersResult.cc @@ -0,0 +1,102 @@ +/* + * 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; + +ListProjectMembersResult::ListProjectMembersResult() : + ServiceResult() +{} + +ListProjectMembersResult::ListProjectMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectMembersResult::~ListProjectMembersResult() +{} + +void ListProjectMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProjectMemberListNode = value["ProjectMemberList"]["ProjectMember"]; + for (auto valueProjectMemberListProjectMember : allProjectMemberListNode) + { + ProjectMember projectMemberListObject; + if(!valueProjectMemberListProjectMember["ProjectMemberId"].isNull()) + projectMemberListObject.projectMemberId = valueProjectMemberListProjectMember["ProjectMemberId"].asString(); + if(!valueProjectMemberListProjectMember["ProjectMemberName"].isNull()) + projectMemberListObject.projectMemberName = valueProjectMemberListProjectMember["ProjectMemberName"].asString(); + if(!valueProjectMemberListProjectMember["ProjectMemberType"].isNull()) + projectMemberListObject.projectMemberType = valueProjectMemberListProjectMember["ProjectMemberType"].asString(); + if(!valueProjectMemberListProjectMember["CreateOn"].isNull()) + projectMemberListObject.createOn = valueProjectMemberListProjectMember["CreateOn"].asString(); + if(!valueProjectMemberListProjectMember["Nick"].isNull()) + projectMemberListObject.nick = valueProjectMemberListProjectMember["Nick"].asString(); + if(!valueProjectMemberListProjectMember["Status"].isNull()) + projectMemberListObject.status = valueProjectMemberListProjectMember["Status"].asString(); + auto allProjectRoleListNode = allProjectMemberListNode["ProjectRoleList"]["Role"]; + for (auto allProjectMemberListNodeProjectRoleListRole : allProjectRoleListNode) + { + ProjectMember::Role projectRoleListObject; + if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].isNull()) + projectRoleListObject.projectRoleCode = allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].asString(); + if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleId"].isNull()) + projectRoleListObject.projectRoleId = std::stoi(allProjectMemberListNodeProjectRoleListRole["ProjectRoleId"].asString()); + if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleName"].isNull()) + projectRoleListObject.projectRoleName = allProjectMemberListNodeProjectRoleListRole["ProjectRoleName"].asString(); + if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].isNull()) + projectRoleListObject.projectRoleType = allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].asString(); + projectMemberListObject.projectRoleList.push_back(projectRoleListObject); + } + projectMemberList_.push_back(projectMemberListObject); + } + if(!value["PageNum"].isNull()) + pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stoi(value["TotalNum"].asString()); + +} + +int ListProjectMembersResult::getTotalNum()const +{ + return totalNum_; +} + +std::vector ListProjectMembersResult::getProjectMemberList()const +{ + return projectMemberList_; +} + +int ListProjectMembersResult::getPageNum()const +{ + return pageNum_; +} + +int ListProjectMembersResult::getPageSize()const +{ + return pageSize_; +} + diff --git a/dataworks-public/src/model/ListProjectRolesRequest.cc b/dataworks-public/src/model/ListProjectRolesRequest.cc new file mode 100644 index 000000000..b4a1762b3 --- /dev/null +++ b/dataworks-public/src/model/ListProjectRolesRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::ListProjectRolesRequest; + +ListProjectRolesRequest::ListProjectRolesRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjectRoles") +{ + setMethod(HttpRequest::Method::Post); +} + +ListProjectRolesRequest::~ListProjectRolesRequest() +{} + +long ListProjectRolesRequest::getProjectId()const +{ + return projectId_; +} + +void ListProjectRolesRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/dataworks-public/src/model/ListProjectRolesResult.cc b/dataworks-public/src/model/ListProjectRolesResult.cc new file mode 100644 index 000000000..fcf9cdacd --- /dev/null +++ b/dataworks-public/src/model/ListProjectRolesResult.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 +#include + +using namespace AlibabaCloud::Dataworks_public; +using namespace AlibabaCloud::Dataworks_public::Model; + +ListProjectRolesResult::ListProjectRolesResult() : + ServiceResult() +{} + +ListProjectRolesResult::ListProjectRolesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectRolesResult::~ListProjectRolesResult() +{} + +void ListProjectRolesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProjectRoleListNode = value["ProjectRoleList"]["Role"]; + for (auto valueProjectRoleListRole : allProjectRoleListNode) + { + Role projectRoleListObject; + if(!valueProjectRoleListRole["ProjectRoleCode"].isNull()) + projectRoleListObject.projectRoleCode = valueProjectRoleListRole["ProjectRoleCode"].asString(); + if(!valueProjectRoleListRole["ProjectRoleId"].isNull()) + projectRoleListObject.projectRoleId = std::stoi(valueProjectRoleListRole["ProjectRoleId"].asString()); + if(!valueProjectRoleListRole["ProjectRoleName"].isNull()) + projectRoleListObject.projectRoleName = valueProjectRoleListRole["ProjectRoleName"].asString(); + if(!valueProjectRoleListRole["ProjectRoleType"].isNull()) + projectRoleListObject.projectRoleType = valueProjectRoleListRole["ProjectRoleType"].asString(); + projectRoleList_.push_back(projectRoleListObject); + } + +} + +std::vector ListProjectRolesResult::getProjectRoleList()const +{ + return projectRoleList_; +} + diff --git a/dataworks-public/src/model/RemoveProjectMemberFromRoleRequest.cc b/dataworks-public/src/model/RemoveProjectMemberFromRoleRequest.cc new file mode 100644 index 000000000..32444fcfc --- /dev/null +++ b/dataworks-public/src/model/RemoveProjectMemberFromRoleRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::RemoveProjectMemberFromRoleRequest; + +RemoveProjectMemberFromRoleRequest::RemoveProjectMemberFromRoleRequest() : + RpcServiceRequest("dataworks-public", "2020-05-18", "RemoveProjectMemberFromRole") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveProjectMemberFromRoleRequest::~RemoveProjectMemberFromRoleRequest() +{} + +std::string RemoveProjectMemberFromRoleRequest::getRoleCode()const +{ + return roleCode_; +} + +void RemoveProjectMemberFromRoleRequest::setRoleCode(const std::string& roleCode) +{ + roleCode_ = roleCode; + setParameter("RoleCode", roleCode); +} + +long RemoveProjectMemberFromRoleRequest::getProjectId()const +{ + return projectId_; +} + +void RemoveProjectMemberFromRoleRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + +std::string RemoveProjectMemberFromRoleRequest::getUserId()const +{ + return userId_; +} + +void RemoveProjectMemberFromRoleRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/dataworks-public/src/model/RemoveProjectMemberFromRoleResult.cc b/dataworks-public/src/model/RemoveProjectMemberFromRoleResult.cc new file mode 100644 index 000000000..efd4b3f5e --- /dev/null +++ b/dataworks-public/src/model/RemoveProjectMemberFromRoleResult.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; + +RemoveProjectMemberFromRoleResult::RemoveProjectMemberFromRoleResult() : + ServiceResult() +{} + +RemoveProjectMemberFromRoleResult::RemoveProjectMemberFromRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveProjectMemberFromRoleResult::~RemoveProjectMemberFromRoleResult() +{} + +void RemoveProjectMemberFromRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +