Add CreateTicket4Copilot API.
This commit is contained in:
@@ -57,6 +57,8 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/CheckReadableResult.h
|
||||
include/alibabacloud/quickbi-public/model/CreateTicketRequest.h
|
||||
include/alibabacloud/quickbi-public/model/CreateTicketResult.h
|
||||
include/alibabacloud/quickbi-public/model/CreateTicket4CopilotRequest.h
|
||||
include/alibabacloud/quickbi-public/model/CreateTicket4CopilotResult.h
|
||||
include/alibabacloud/quickbi-public/model/CreateUserGroupRequest.h
|
||||
include/alibabacloud/quickbi-public/model/CreateUserGroupResult.h
|
||||
include/alibabacloud/quickbi-public/model/DelayTicketExpireTimeRequest.h
|
||||
@@ -93,6 +95,10 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/ListDataLevelPermissionWhiteListResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListFavoriteReportsRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListFavoriteReportsResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListOrganizationRoleUsersRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListOrganizationRoleUsersResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListOrganizationRolesRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListOrganizationRolesResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListPortalMenuAuthorizationRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListPortalMenuAuthorizationResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListPortalMenusRequest.h
|
||||
@@ -103,6 +109,10 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/ListSharedReportsResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListUserGroupsByUserIdRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListUserGroupsByUserIdResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListWorkspaceRoleUsersRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListWorkspaceRoleUsersResult.h
|
||||
include/alibabacloud/quickbi-public/model/ListWorkspaceRolesRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ListWorkspaceRolesResult.h
|
||||
include/alibabacloud/quickbi-public/model/ModifyApiDatasourceParametersRequest.h
|
||||
include/alibabacloud/quickbi-public/model/ModifyApiDatasourceParametersResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryComponentPerformanceRequest.h
|
||||
@@ -125,6 +135,8 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedInfoResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedStatusRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedStatusResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryOrganizationRoleConfigRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryOrganizationRoleConfigResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryOrganizationWorkspaceListRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryOrganizationWorkspaceListResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryReadableResourcesListByUserIdRequest.h
|
||||
@@ -161,6 +173,8 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/QueryWorksByOrganizationResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorksByWorkspaceRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorksByWorkspaceResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorkspaceRoleConfigRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorkspaceRoleConfigResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorkspaceUserListRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryWorkspaceUserListResult.h
|
||||
include/alibabacloud/quickbi-public/model/ResultCallbackRequest.h
|
||||
@@ -232,6 +246,8 @@ set(quickbi-public_src
|
||||
src/model/CheckReadableResult.cc
|
||||
src/model/CreateTicketRequest.cc
|
||||
src/model/CreateTicketResult.cc
|
||||
src/model/CreateTicket4CopilotRequest.cc
|
||||
src/model/CreateTicket4CopilotResult.cc
|
||||
src/model/CreateUserGroupRequest.cc
|
||||
src/model/CreateUserGroupResult.cc
|
||||
src/model/DelayTicketExpireTimeRequest.cc
|
||||
@@ -268,6 +284,10 @@ set(quickbi-public_src
|
||||
src/model/ListDataLevelPermissionWhiteListResult.cc
|
||||
src/model/ListFavoriteReportsRequest.cc
|
||||
src/model/ListFavoriteReportsResult.cc
|
||||
src/model/ListOrganizationRoleUsersRequest.cc
|
||||
src/model/ListOrganizationRoleUsersResult.cc
|
||||
src/model/ListOrganizationRolesRequest.cc
|
||||
src/model/ListOrganizationRolesResult.cc
|
||||
src/model/ListPortalMenuAuthorizationRequest.cc
|
||||
src/model/ListPortalMenuAuthorizationResult.cc
|
||||
src/model/ListPortalMenusRequest.cc
|
||||
@@ -278,6 +298,10 @@ set(quickbi-public_src
|
||||
src/model/ListSharedReportsResult.cc
|
||||
src/model/ListUserGroupsByUserIdRequest.cc
|
||||
src/model/ListUserGroupsByUserIdResult.cc
|
||||
src/model/ListWorkspaceRoleUsersRequest.cc
|
||||
src/model/ListWorkspaceRoleUsersResult.cc
|
||||
src/model/ListWorkspaceRolesRequest.cc
|
||||
src/model/ListWorkspaceRolesResult.cc
|
||||
src/model/ModifyApiDatasourceParametersRequest.cc
|
||||
src/model/ModifyApiDatasourceParametersResult.cc
|
||||
src/model/QueryComponentPerformanceRequest.cc
|
||||
@@ -300,6 +324,8 @@ set(quickbi-public_src
|
||||
src/model/QueryEmbeddedInfoResult.cc
|
||||
src/model/QueryEmbeddedStatusRequest.cc
|
||||
src/model/QueryEmbeddedStatusResult.cc
|
||||
src/model/QueryOrganizationRoleConfigRequest.cc
|
||||
src/model/QueryOrganizationRoleConfigResult.cc
|
||||
src/model/QueryOrganizationWorkspaceListRequest.cc
|
||||
src/model/QueryOrganizationWorkspaceListResult.cc
|
||||
src/model/QueryReadableResourcesListByUserIdRequest.cc
|
||||
@@ -336,6 +362,8 @@ set(quickbi-public_src
|
||||
src/model/QueryWorksByOrganizationResult.cc
|
||||
src/model/QueryWorksByWorkspaceRequest.cc
|
||||
src/model/QueryWorksByWorkspaceResult.cc
|
||||
src/model/QueryWorkspaceRoleConfigRequest.cc
|
||||
src/model/QueryWorkspaceRoleConfigResult.cc
|
||||
src/model/QueryWorkspaceUserListRequest.cc
|
||||
src/model/QueryWorkspaceUserListResult.cc
|
||||
src/model/ResultCallbackRequest.cc
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
#include "model/CheckReadableResult.h"
|
||||
#include "model/CreateTicketRequest.h"
|
||||
#include "model/CreateTicketResult.h"
|
||||
#include "model/CreateTicket4CopilotRequest.h"
|
||||
#include "model/CreateTicket4CopilotResult.h"
|
||||
#include "model/CreateUserGroupRequest.h"
|
||||
#include "model/CreateUserGroupResult.h"
|
||||
#include "model/DelayTicketExpireTimeRequest.h"
|
||||
@@ -94,6 +96,10 @@
|
||||
#include "model/ListDataLevelPermissionWhiteListResult.h"
|
||||
#include "model/ListFavoriteReportsRequest.h"
|
||||
#include "model/ListFavoriteReportsResult.h"
|
||||
#include "model/ListOrganizationRoleUsersRequest.h"
|
||||
#include "model/ListOrganizationRoleUsersResult.h"
|
||||
#include "model/ListOrganizationRolesRequest.h"
|
||||
#include "model/ListOrganizationRolesResult.h"
|
||||
#include "model/ListPortalMenuAuthorizationRequest.h"
|
||||
#include "model/ListPortalMenuAuthorizationResult.h"
|
||||
#include "model/ListPortalMenusRequest.h"
|
||||
@@ -104,6 +110,10 @@
|
||||
#include "model/ListSharedReportsResult.h"
|
||||
#include "model/ListUserGroupsByUserIdRequest.h"
|
||||
#include "model/ListUserGroupsByUserIdResult.h"
|
||||
#include "model/ListWorkspaceRoleUsersRequest.h"
|
||||
#include "model/ListWorkspaceRoleUsersResult.h"
|
||||
#include "model/ListWorkspaceRolesRequest.h"
|
||||
#include "model/ListWorkspaceRolesResult.h"
|
||||
#include "model/ModifyApiDatasourceParametersRequest.h"
|
||||
#include "model/ModifyApiDatasourceParametersResult.h"
|
||||
#include "model/QueryComponentPerformanceRequest.h"
|
||||
@@ -126,6 +136,8 @@
|
||||
#include "model/QueryEmbeddedInfoResult.h"
|
||||
#include "model/QueryEmbeddedStatusRequest.h"
|
||||
#include "model/QueryEmbeddedStatusResult.h"
|
||||
#include "model/QueryOrganizationRoleConfigRequest.h"
|
||||
#include "model/QueryOrganizationRoleConfigResult.h"
|
||||
#include "model/QueryOrganizationWorkspaceListRequest.h"
|
||||
#include "model/QueryOrganizationWorkspaceListResult.h"
|
||||
#include "model/QueryReadableResourcesListByUserIdRequest.h"
|
||||
@@ -162,6 +174,8 @@
|
||||
#include "model/QueryWorksByOrganizationResult.h"
|
||||
#include "model/QueryWorksByWorkspaceRequest.h"
|
||||
#include "model/QueryWorksByWorkspaceResult.h"
|
||||
#include "model/QueryWorkspaceRoleConfigRequest.h"
|
||||
#include "model/QueryWorkspaceRoleConfigResult.h"
|
||||
#include "model/QueryWorkspaceUserListRequest.h"
|
||||
#include "model/QueryWorkspaceUserListResult.h"
|
||||
#include "model/ResultCallbackRequest.h"
|
||||
@@ -257,6 +271,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateTicketResult> CreateTicketOutcome;
|
||||
typedef std::future<CreateTicketOutcome> CreateTicketOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::CreateTicketRequest&, const CreateTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTicketAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTicket4CopilotResult> CreateTicket4CopilotOutcome;
|
||||
typedef std::future<CreateTicket4CopilotOutcome> CreateTicket4CopilotOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::CreateTicket4CopilotRequest&, const CreateTicket4CopilotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTicket4CopilotAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUserGroupResult> CreateUserGroupOutcome;
|
||||
typedef std::future<CreateUserGroupOutcome> CreateUserGroupOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::CreateUserGroupRequest&, const CreateUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserGroupAsyncHandler;
|
||||
@@ -311,6 +328,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFavoriteReportsResult> ListFavoriteReportsOutcome;
|
||||
typedef std::future<ListFavoriteReportsOutcome> ListFavoriteReportsOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListFavoriteReportsRequest&, const ListFavoriteReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFavoriteReportsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOrganizationRoleUsersResult> ListOrganizationRoleUsersOutcome;
|
||||
typedef std::future<ListOrganizationRoleUsersOutcome> ListOrganizationRoleUsersOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListOrganizationRoleUsersRequest&, const ListOrganizationRoleUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrganizationRoleUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOrganizationRolesResult> ListOrganizationRolesOutcome;
|
||||
typedef std::future<ListOrganizationRolesOutcome> ListOrganizationRolesOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListOrganizationRolesRequest&, const ListOrganizationRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrganizationRolesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPortalMenuAuthorizationResult> ListPortalMenuAuthorizationOutcome;
|
||||
typedef std::future<ListPortalMenuAuthorizationOutcome> ListPortalMenuAuthorizationOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListPortalMenuAuthorizationRequest&, const ListPortalMenuAuthorizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPortalMenuAuthorizationAsyncHandler;
|
||||
@@ -326,6 +349,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListUserGroupsByUserIdResult> ListUserGroupsByUserIdOutcome;
|
||||
typedef std::future<ListUserGroupsByUserIdOutcome> ListUserGroupsByUserIdOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListUserGroupsByUserIdRequest&, const ListUserGroupsByUserIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserGroupsByUserIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListWorkspaceRoleUsersResult> ListWorkspaceRoleUsersOutcome;
|
||||
typedef std::future<ListWorkspaceRoleUsersOutcome> ListWorkspaceRoleUsersOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListWorkspaceRoleUsersRequest&, const ListWorkspaceRoleUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListWorkspaceRoleUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListWorkspaceRolesResult> ListWorkspaceRolesOutcome;
|
||||
typedef std::future<ListWorkspaceRolesOutcome> ListWorkspaceRolesOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ListWorkspaceRolesRequest&, const ListWorkspaceRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListWorkspaceRolesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyApiDatasourceParametersResult> ModifyApiDatasourceParametersOutcome;
|
||||
typedef std::future<ModifyApiDatasourceParametersOutcome> ModifyApiDatasourceParametersOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::ModifyApiDatasourceParametersRequest&, const ModifyApiDatasourceParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyApiDatasourceParametersAsyncHandler;
|
||||
@@ -359,6 +388,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryEmbeddedStatusResult> QueryEmbeddedStatusOutcome;
|
||||
typedef std::future<QueryEmbeddedStatusOutcome> QueryEmbeddedStatusOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryEmbeddedStatusRequest&, const QueryEmbeddedStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEmbeddedStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryOrganizationRoleConfigResult> QueryOrganizationRoleConfigOutcome;
|
||||
typedef std::future<QueryOrganizationRoleConfigOutcome> QueryOrganizationRoleConfigOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryOrganizationRoleConfigRequest&, const QueryOrganizationRoleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryOrganizationRoleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryOrganizationWorkspaceListResult> QueryOrganizationWorkspaceListOutcome;
|
||||
typedef std::future<QueryOrganizationWorkspaceListOutcome> QueryOrganizationWorkspaceListOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryOrganizationWorkspaceListRequest&, const QueryOrganizationWorkspaceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryOrganizationWorkspaceListAsyncHandler;
|
||||
@@ -413,6 +445,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryWorksByWorkspaceResult> QueryWorksByWorkspaceOutcome;
|
||||
typedef std::future<QueryWorksByWorkspaceOutcome> QueryWorksByWorkspaceOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryWorksByWorkspaceRequest&, const QueryWorksByWorkspaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryWorksByWorkspaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryWorkspaceRoleConfigResult> QueryWorkspaceRoleConfigOutcome;
|
||||
typedef std::future<QueryWorkspaceRoleConfigOutcome> QueryWorkspaceRoleConfigOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryWorkspaceRoleConfigRequest&, const QueryWorkspaceRoleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryWorkspaceRoleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryWorkspaceUserListResult> QueryWorkspaceUserListOutcome;
|
||||
typedef std::future<QueryWorkspaceUserListOutcome> QueryWorkspaceUserListOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryWorkspaceUserListRequest&, const QueryWorkspaceUserListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryWorkspaceUserListAsyncHandler;
|
||||
@@ -520,6 +555,9 @@ namespace AlibabaCloud
|
||||
CreateTicketOutcome createTicket(const Model::CreateTicketRequest &request)const;
|
||||
void createTicketAsync(const Model::CreateTicketRequest& request, const CreateTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTicketOutcomeCallable createTicketCallable(const Model::CreateTicketRequest& request) const;
|
||||
CreateTicket4CopilotOutcome createTicket4Copilot(const Model::CreateTicket4CopilotRequest &request)const;
|
||||
void createTicket4CopilotAsync(const Model::CreateTicket4CopilotRequest& request, const CreateTicket4CopilotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTicket4CopilotOutcomeCallable createTicket4CopilotCallable(const Model::CreateTicket4CopilotRequest& request) const;
|
||||
CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const;
|
||||
void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const;
|
||||
@@ -574,6 +612,12 @@ namespace AlibabaCloud
|
||||
ListFavoriteReportsOutcome listFavoriteReports(const Model::ListFavoriteReportsRequest &request)const;
|
||||
void listFavoriteReportsAsync(const Model::ListFavoriteReportsRequest& request, const ListFavoriteReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFavoriteReportsOutcomeCallable listFavoriteReportsCallable(const Model::ListFavoriteReportsRequest& request) const;
|
||||
ListOrganizationRoleUsersOutcome listOrganizationRoleUsers(const Model::ListOrganizationRoleUsersRequest &request)const;
|
||||
void listOrganizationRoleUsersAsync(const Model::ListOrganizationRoleUsersRequest& request, const ListOrganizationRoleUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrganizationRoleUsersOutcomeCallable listOrganizationRoleUsersCallable(const Model::ListOrganizationRoleUsersRequest& request) const;
|
||||
ListOrganizationRolesOutcome listOrganizationRoles(const Model::ListOrganizationRolesRequest &request)const;
|
||||
void listOrganizationRolesAsync(const Model::ListOrganizationRolesRequest& request, const ListOrganizationRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrganizationRolesOutcomeCallable listOrganizationRolesCallable(const Model::ListOrganizationRolesRequest& request) const;
|
||||
ListPortalMenuAuthorizationOutcome listPortalMenuAuthorization(const Model::ListPortalMenuAuthorizationRequest &request)const;
|
||||
void listPortalMenuAuthorizationAsync(const Model::ListPortalMenuAuthorizationRequest& request, const ListPortalMenuAuthorizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPortalMenuAuthorizationOutcomeCallable listPortalMenuAuthorizationCallable(const Model::ListPortalMenuAuthorizationRequest& request) const;
|
||||
@@ -589,6 +633,12 @@ namespace AlibabaCloud
|
||||
ListUserGroupsByUserIdOutcome listUserGroupsByUserId(const Model::ListUserGroupsByUserIdRequest &request)const;
|
||||
void listUserGroupsByUserIdAsync(const Model::ListUserGroupsByUserIdRequest& request, const ListUserGroupsByUserIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserGroupsByUserIdOutcomeCallable listUserGroupsByUserIdCallable(const Model::ListUserGroupsByUserIdRequest& request) const;
|
||||
ListWorkspaceRoleUsersOutcome listWorkspaceRoleUsers(const Model::ListWorkspaceRoleUsersRequest &request)const;
|
||||
void listWorkspaceRoleUsersAsync(const Model::ListWorkspaceRoleUsersRequest& request, const ListWorkspaceRoleUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListWorkspaceRoleUsersOutcomeCallable listWorkspaceRoleUsersCallable(const Model::ListWorkspaceRoleUsersRequest& request) const;
|
||||
ListWorkspaceRolesOutcome listWorkspaceRoles(const Model::ListWorkspaceRolesRequest &request)const;
|
||||
void listWorkspaceRolesAsync(const Model::ListWorkspaceRolesRequest& request, const ListWorkspaceRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListWorkspaceRolesOutcomeCallable listWorkspaceRolesCallable(const Model::ListWorkspaceRolesRequest& request) const;
|
||||
ModifyApiDatasourceParametersOutcome modifyApiDatasourceParameters(const Model::ModifyApiDatasourceParametersRequest &request)const;
|
||||
void modifyApiDatasourceParametersAsync(const Model::ModifyApiDatasourceParametersRequest& request, const ModifyApiDatasourceParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyApiDatasourceParametersOutcomeCallable modifyApiDatasourceParametersCallable(const Model::ModifyApiDatasourceParametersRequest& request) const;
|
||||
@@ -622,6 +672,9 @@ namespace AlibabaCloud
|
||||
QueryEmbeddedStatusOutcome queryEmbeddedStatus(const Model::QueryEmbeddedStatusRequest &request)const;
|
||||
void queryEmbeddedStatusAsync(const Model::QueryEmbeddedStatusRequest& request, const QueryEmbeddedStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEmbeddedStatusOutcomeCallable queryEmbeddedStatusCallable(const Model::QueryEmbeddedStatusRequest& request) const;
|
||||
QueryOrganizationRoleConfigOutcome queryOrganizationRoleConfig(const Model::QueryOrganizationRoleConfigRequest &request)const;
|
||||
void queryOrganizationRoleConfigAsync(const Model::QueryOrganizationRoleConfigRequest& request, const QueryOrganizationRoleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryOrganizationRoleConfigOutcomeCallable queryOrganizationRoleConfigCallable(const Model::QueryOrganizationRoleConfigRequest& request) const;
|
||||
QueryOrganizationWorkspaceListOutcome queryOrganizationWorkspaceList(const Model::QueryOrganizationWorkspaceListRequest &request)const;
|
||||
void queryOrganizationWorkspaceListAsync(const Model::QueryOrganizationWorkspaceListRequest& request, const QueryOrganizationWorkspaceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryOrganizationWorkspaceListOutcomeCallable queryOrganizationWorkspaceListCallable(const Model::QueryOrganizationWorkspaceListRequest& request) const;
|
||||
@@ -676,6 +729,9 @@ namespace AlibabaCloud
|
||||
QueryWorksByWorkspaceOutcome queryWorksByWorkspace(const Model::QueryWorksByWorkspaceRequest &request)const;
|
||||
void queryWorksByWorkspaceAsync(const Model::QueryWorksByWorkspaceRequest& request, const QueryWorksByWorkspaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryWorksByWorkspaceOutcomeCallable queryWorksByWorkspaceCallable(const Model::QueryWorksByWorkspaceRequest& request) const;
|
||||
QueryWorkspaceRoleConfigOutcome queryWorkspaceRoleConfig(const Model::QueryWorkspaceRoleConfigRequest &request)const;
|
||||
void queryWorkspaceRoleConfigAsync(const Model::QueryWorkspaceRoleConfigRequest& request, const QueryWorkspaceRoleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryWorkspaceRoleConfigOutcomeCallable queryWorkspaceRoleConfigCallable(const Model::QueryWorkspaceRoleConfigRequest& request) const;
|
||||
QueryWorkspaceUserListOutcome queryWorkspaceUserList(const Model::QueryWorkspaceUserListRequest &request)const;
|
||||
void queryWorkspaceUserListAsync(const Model::QueryWorkspaceUserListRequest& request, const QueryWorkspaceUserListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryWorkspaceUserListOutcomeCallable queryWorkspaceUserListCallable(const Model::QueryWorkspaceUserListRequest& request) const;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT CreateTicket4CopilotRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateTicket4CopilotRequest();
|
||||
~CreateTicket4CopilotRequest();
|
||||
std::string getCopilotId() const;
|
||||
void setCopilotId(const std::string &copilotId);
|
||||
int getExpireTime() const;
|
||||
void setExpireTime(int expireTime);
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
int getAccountType() const;
|
||||
void setAccountType(int accountType);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getUserId() const;
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getAccountName() const;
|
||||
void setAccountName(const std::string &accountName);
|
||||
int getTicketNum() const;
|
||||
void setTicketNum(int ticketNum);
|
||||
|
||||
private:
|
||||
std::string copilotId_;
|
||||
int expireTime_;
|
||||
std::string accessPoint_;
|
||||
int accountType_;
|
||||
std::string signType_;
|
||||
std::string userId_;
|
||||
std::string accountName_;
|
||||
int ticketNum_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT CreateTicket4CopilotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateTicket4CopilotResult();
|
||||
explicit CreateTicket4CopilotResult(const std::string &payload);
|
||||
~CreateTicket4CopilotResult();
|
||||
bool getSuccess()const;
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_CREATETICKET4COPILOTRESULT_H_
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
std::string treeId;
|
||||
std::string workspaceName;
|
||||
bool hasViewAuth;
|
||||
std::string favoriteDate;
|
||||
int publishStatus;
|
||||
bool hasEditAuth;
|
||||
};
|
||||
|
||||
@@ -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_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListOrganizationRoleUsersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListOrganizationRoleUsersRequest();
|
||||
~ListOrganizationRoleUsersRequest();
|
||||
long getRoleId() const;
|
||||
void setRoleId(long roleId);
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
|
||||
private:
|
||||
long roleId_;
|
||||
std::string accessPoint_;
|
||||
int pageSize_;
|
||||
std::string signType_;
|
||||
int pageNum_;
|
||||
std::string keyword_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListOrganizationRoleUsersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct DataItem
|
||||
{
|
||||
std::string userId;
|
||||
std::string nickName;
|
||||
};
|
||||
int totalNum;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<DataItem> data;
|
||||
int totalPages;
|
||||
};
|
||||
|
||||
|
||||
ListOrganizationRoleUsersResult();
|
||||
explicit ListOrganizationRoleUsersResult(const std::string &payload);
|
||||
~ListOrganizationRoleUsersResult();
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLEUSERSRESULT_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_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListOrganizationRolesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListOrganizationRolesRequest();
|
||||
~ListOrganizationRolesRequest();
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
|
||||
private:
|
||||
std::string accessPoint_;
|
||||
std::string signType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESREQUEST_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_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListOrganizationRolesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AuthConfigListItem
|
||||
{
|
||||
std::string authKey;
|
||||
};
|
||||
std::string roleName;
|
||||
bool isSystemRole;
|
||||
long roleId;
|
||||
std::vector<Data::AuthConfigListItem> authConfigList;
|
||||
};
|
||||
|
||||
|
||||
ListOrganizationRolesResult();
|
||||
explicit ListOrganizationRolesResult(const std::string &payload);
|
||||
~ListOrganizationRolesResult();
|
||||
bool getSuccess()const;
|
||||
std::vector<Data> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
std::vector<Data> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTORGANIZATIONROLESRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListWorkspaceRoleUsersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListWorkspaceRoleUsersRequest();
|
||||
~ListWorkspaceRoleUsersRequest();
|
||||
long getRoleId() const;
|
||||
void setRoleId(long roleId);
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
long roleId_;
|
||||
std::string accessPoint_;
|
||||
int pageSize_;
|
||||
std::string signType_;
|
||||
int pageNum_;
|
||||
std::string keyword_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSREQUEST_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_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListWorkspaceRoleUsersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct DataItem
|
||||
{
|
||||
std::string userId;
|
||||
std::string workspaceId;
|
||||
std::string workspaceName;
|
||||
std::string nickName;
|
||||
};
|
||||
int totalNum;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<DataItem> data;
|
||||
int totalPages;
|
||||
};
|
||||
|
||||
|
||||
ListWorkspaceRoleUsersResult();
|
||||
explicit ListWorkspaceRoleUsersResult(const std::string &payload);
|
||||
~ListWorkspaceRoleUsersResult();
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLEUSERSRESULT_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_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListWorkspaceRolesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListWorkspaceRolesRequest();
|
||||
~ListWorkspaceRolesRequest();
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
std::string accessPoint_;
|
||||
std::string signType_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT ListWorkspaceRolesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AuthConfigListItem
|
||||
{
|
||||
std::string authKey;
|
||||
std::vector<std::string> actionAuthKeys;
|
||||
};
|
||||
std::string roleName;
|
||||
bool isSystemRole;
|
||||
long roleId;
|
||||
std::vector<Data::AuthConfigListItem> authConfigList;
|
||||
};
|
||||
|
||||
|
||||
ListWorkspaceRolesResult();
|
||||
explicit ListWorkspaceRolesResult(const std::string &payload);
|
||||
~ListWorkspaceRolesResult();
|
||||
bool getSuccess()const;
|
||||
std::vector<Data> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
std::vector<Data> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_LISTWORKSPACEROLESRESULT_H_
|
||||
@@ -74,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string caption;
|
||||
std::string factColumn;
|
||||
};
|
||||
bool openOfflineAcceleration;
|
||||
std::string ownerName;
|
||||
std::string workspaceId;
|
||||
bool rowLevel;
|
||||
|
||||
@@ -50,17 +50,18 @@ namespace AlibabaCloud
|
||||
std::string name;
|
||||
};
|
||||
std::string modifyTime;
|
||||
bool openOfflineAcceleration;
|
||||
std::string ownerName;
|
||||
std::string description;
|
||||
std::string ownerId;
|
||||
std::string datasetName;
|
||||
std::string createTime;
|
||||
std::string workspaceId;
|
||||
bool rowLevel;
|
||||
std::string workspaceName;
|
||||
DataSource dataSource;
|
||||
Directory directory;
|
||||
std::string datasetId;
|
||||
std::string ownerId;
|
||||
std::string datasetName;
|
||||
std::string workspaceName;
|
||||
Directory directory;
|
||||
};
|
||||
int totalNum;
|
||||
int pageNum;
|
||||
|
||||
@@ -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_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryOrganizationRoleConfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryOrganizationRoleConfigRequest();
|
||||
~QueryOrganizationRoleConfigRequest();
|
||||
long getRoleId() const;
|
||||
void setRoleId(long roleId);
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
|
||||
private:
|
||||
long roleId_;
|
||||
std::string accessPoint_;
|
||||
std::string signType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGREQUEST_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_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryOrganizationRoleConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct AuthConfigListItem
|
||||
{
|
||||
std::string authKey;
|
||||
};
|
||||
std::string roleName;
|
||||
bool isSystemRole;
|
||||
long roleId;
|
||||
std::vector<AuthConfigListItem> authConfigList;
|
||||
};
|
||||
|
||||
|
||||
QueryOrganizationRoleConfigResult();
|
||||
explicit QueryOrganizationRoleConfigResult(const std::string &payload);
|
||||
~QueryOrganizationRoleConfigResult();
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYORGANIZATIONROLECONFIGRESULT_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_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryWorkspaceRoleConfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryWorkspaceRoleConfigRequest();
|
||||
~QueryWorkspaceRoleConfigRequest();
|
||||
long getRoleId() const;
|
||||
void setRoleId(long roleId);
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
|
||||
private:
|
||||
long roleId_;
|
||||
std::string accessPoint_;
|
||||
std::string signType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryWorkspaceRoleConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct AuthConfigListItem
|
||||
{
|
||||
std::string authKey;
|
||||
std::vector<std::string> actionAuthKeys;
|
||||
};
|
||||
std::string roleName;
|
||||
bool isSystemRole;
|
||||
long roleId;
|
||||
std::vector<AuthConfigListItem> authConfigList;
|
||||
};
|
||||
|
||||
|
||||
QueryWorkspaceRoleConfigResult();
|
||||
explicit QueryWorkspaceRoleConfigResult(const std::string &payload);
|
||||
~QueryWorkspaceRoleConfigResult();
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYWORKSPACEROLECONFIGRESULT_H_
|
||||
@@ -699,6 +699,42 @@ Quickbi_publicClient::CreateTicketOutcomeCallable Quickbi_publicClient::createTi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::CreateTicket4CopilotOutcome Quickbi_publicClient::createTicket4Copilot(const CreateTicket4CopilotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTicket4CopilotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTicket4CopilotOutcome(CreateTicket4CopilotResult(outcome.result()));
|
||||
else
|
||||
return CreateTicket4CopilotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::createTicket4CopilotAsync(const CreateTicket4CopilotRequest& request, const CreateTicket4CopilotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTicket4Copilot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::CreateTicket4CopilotOutcomeCallable Quickbi_publicClient::createTicket4CopilotCallable(const CreateTicket4CopilotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTicket4CopilotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTicket4Copilot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::CreateUserGroupOutcome Quickbi_publicClient::createUserGroup(const CreateUserGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1383,78 @@ Quickbi_publicClient::ListFavoriteReportsOutcomeCallable Quickbi_publicClient::l
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListOrganizationRoleUsersOutcome Quickbi_publicClient::listOrganizationRoleUsers(const ListOrganizationRoleUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListOrganizationRoleUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListOrganizationRoleUsersOutcome(ListOrganizationRoleUsersResult(outcome.result()));
|
||||
else
|
||||
return ListOrganizationRoleUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::listOrganizationRoleUsersAsync(const ListOrganizationRoleUsersRequest& request, const ListOrganizationRoleUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listOrganizationRoleUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListOrganizationRoleUsersOutcomeCallable Quickbi_publicClient::listOrganizationRoleUsersCallable(const ListOrganizationRoleUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListOrganizationRoleUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listOrganizationRoleUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListOrganizationRolesOutcome Quickbi_publicClient::listOrganizationRoles(const ListOrganizationRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListOrganizationRolesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListOrganizationRolesOutcome(ListOrganizationRolesResult(outcome.result()));
|
||||
else
|
||||
return ListOrganizationRolesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::listOrganizationRolesAsync(const ListOrganizationRolesRequest& request, const ListOrganizationRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listOrganizationRoles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListOrganizationRolesOutcomeCallable Quickbi_publicClient::listOrganizationRolesCallable(const ListOrganizationRolesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListOrganizationRolesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listOrganizationRoles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListPortalMenuAuthorizationOutcome Quickbi_publicClient::listPortalMenuAuthorization(const ListPortalMenuAuthorizationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1635,78 @@ Quickbi_publicClient::ListUserGroupsByUserIdOutcomeCallable Quickbi_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListWorkspaceRoleUsersOutcome Quickbi_publicClient::listWorkspaceRoleUsers(const ListWorkspaceRoleUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListWorkspaceRoleUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListWorkspaceRoleUsersOutcome(ListWorkspaceRoleUsersResult(outcome.result()));
|
||||
else
|
||||
return ListWorkspaceRoleUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::listWorkspaceRoleUsersAsync(const ListWorkspaceRoleUsersRequest& request, const ListWorkspaceRoleUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listWorkspaceRoleUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListWorkspaceRoleUsersOutcomeCallable Quickbi_publicClient::listWorkspaceRoleUsersCallable(const ListWorkspaceRoleUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListWorkspaceRoleUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listWorkspaceRoleUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListWorkspaceRolesOutcome Quickbi_publicClient::listWorkspaceRoles(const ListWorkspaceRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListWorkspaceRolesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListWorkspaceRolesOutcome(ListWorkspaceRolesResult(outcome.result()));
|
||||
else
|
||||
return ListWorkspaceRolesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::listWorkspaceRolesAsync(const ListWorkspaceRolesRequest& request, const ListWorkspaceRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listWorkspaceRoles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ListWorkspaceRolesOutcomeCallable Quickbi_publicClient::listWorkspaceRolesCallable(const ListWorkspaceRolesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListWorkspaceRolesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listWorkspaceRoles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::ModifyApiDatasourceParametersOutcome Quickbi_publicClient::modifyApiDatasourceParameters(const ModifyApiDatasourceParametersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1923,6 +2103,42 @@ Quickbi_publicClient::QueryEmbeddedStatusOutcomeCallable Quickbi_publicClient::q
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryOrganizationRoleConfigOutcome Quickbi_publicClient::queryOrganizationRoleConfig(const QueryOrganizationRoleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryOrganizationRoleConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryOrganizationRoleConfigOutcome(QueryOrganizationRoleConfigResult(outcome.result()));
|
||||
else
|
||||
return QueryOrganizationRoleConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::queryOrganizationRoleConfigAsync(const QueryOrganizationRoleConfigRequest& request, const QueryOrganizationRoleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryOrganizationRoleConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryOrganizationRoleConfigOutcomeCallable Quickbi_publicClient::queryOrganizationRoleConfigCallable(const QueryOrganizationRoleConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryOrganizationRoleConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryOrganizationRoleConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryOrganizationWorkspaceListOutcome Quickbi_publicClient::queryOrganizationWorkspaceList(const QueryOrganizationWorkspaceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2571,6 +2787,42 @@ Quickbi_publicClient::QueryWorksByWorkspaceOutcomeCallable Quickbi_publicClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryWorkspaceRoleConfigOutcome Quickbi_publicClient::queryWorkspaceRoleConfig(const QueryWorkspaceRoleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryWorkspaceRoleConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryWorkspaceRoleConfigOutcome(QueryWorkspaceRoleConfigResult(outcome.result()));
|
||||
else
|
||||
return QueryWorkspaceRoleConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::queryWorkspaceRoleConfigAsync(const QueryWorkspaceRoleConfigRequest& request, const QueryWorkspaceRoleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryWorkspaceRoleConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryWorkspaceRoleConfigOutcomeCallable Quickbi_publicClient::queryWorkspaceRoleConfigCallable(const QueryWorkspaceRoleConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryWorkspaceRoleConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryWorkspaceRoleConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryWorkspaceUserListOutcome Quickbi_publicClient::queryWorkspaceUserList(const QueryWorkspaceUserListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
99
quickbi-public/src/model/CreateTicket4CopilotRequest.cc
Normal file
99
quickbi-public/src/model/CreateTicket4CopilotRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/CreateTicket4CopilotRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::CreateTicket4CopilotRequest;
|
||||
|
||||
CreateTicket4CopilotRequest::CreateTicket4CopilotRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "CreateTicket4Copilot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTicket4CopilotRequest::~CreateTicket4CopilotRequest() {}
|
||||
|
||||
std::string CreateTicket4CopilotRequest::getCopilotId() const {
|
||||
return copilotId_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setCopilotId(const std::string &copilotId) {
|
||||
copilotId_ = copilotId;
|
||||
setParameter(std::string("CopilotId"), copilotId);
|
||||
}
|
||||
|
||||
int CreateTicket4CopilotRequest::getExpireTime() const {
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setExpireTime(int expireTime) {
|
||||
expireTime_ = expireTime;
|
||||
setParameter(std::string("ExpireTime"), std::to_string(expireTime));
|
||||
}
|
||||
|
||||
std::string CreateTicket4CopilotRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
int CreateTicket4CopilotRequest::getAccountType() const {
|
||||
return accountType_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setAccountType(int accountType) {
|
||||
accountType_ = accountType;
|
||||
setParameter(std::string("AccountType"), std::to_string(accountType));
|
||||
}
|
||||
|
||||
std::string CreateTicket4CopilotRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
std::string CreateTicket4CopilotRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string CreateTicket4CopilotRequest::getAccountName() const {
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setAccountName(const std::string &accountName) {
|
||||
accountName_ = accountName;
|
||||
setParameter(std::string("AccountName"), accountName);
|
||||
}
|
||||
|
||||
int CreateTicket4CopilotRequest::getTicketNum() const {
|
||||
return ticketNum_;
|
||||
}
|
||||
|
||||
void CreateTicket4CopilotRequest::setTicketNum(int ticketNum) {
|
||||
ticketNum_ = ticketNum;
|
||||
setParameter(std::string("TicketNum"), std::to_string(ticketNum));
|
||||
}
|
||||
|
||||
58
quickbi-public/src/model/CreateTicket4CopilotResult.cc
Normal file
58
quickbi-public/src/model/CreateTicket4CopilotResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/CreateTicket4CopilotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
CreateTicket4CopilotResult::CreateTicket4CopilotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTicket4CopilotResult::CreateTicket4CopilotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTicket4CopilotResult::~CreateTicket4CopilotResult()
|
||||
{}
|
||||
|
||||
void CreateTicket4CopilotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateTicket4CopilotResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateTicket4CopilotResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -78,6 +78,8 @@ void ListFavoriteReportsResult::parse(const std::string &payload)
|
||||
dataItemObject.workspaceId = resultNodeDataDataItem["WorkspaceId"].asString();
|
||||
if(!resultNodeDataDataItem["WorkspaceName"].isNull())
|
||||
dataItemObject.workspaceName = resultNodeDataDataItem["WorkspaceName"].asString();
|
||||
if(!resultNodeDataDataItem["FavoriteDate"].isNull())
|
||||
dataItemObject.favoriteDate = resultNodeDataDataItem["FavoriteDate"].asString();
|
||||
result_.data.push_back(dataItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
81
quickbi-public/src/model/ListOrganizationRoleUsersRequest.cc
Normal file
81
quickbi-public/src/model/ListOrganizationRoleUsersRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/ListOrganizationRoleUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::ListOrganizationRoleUsersRequest;
|
||||
|
||||
ListOrganizationRoleUsersRequest::ListOrganizationRoleUsersRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "ListOrganizationRoleUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListOrganizationRoleUsersRequest::~ListOrganizationRoleUsersRequest() {}
|
||||
|
||||
long ListOrganizationRoleUsersRequest::getRoleId() const {
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setRoleId(long roleId) {
|
||||
roleId_ = roleId;
|
||||
setParameter(std::string("RoleId"), std::to_string(roleId));
|
||||
}
|
||||
|
||||
std::string ListOrganizationRoleUsersRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
int ListOrganizationRoleUsersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListOrganizationRoleUsersRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
int ListOrganizationRoleUsersRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListOrganizationRoleUsersRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListOrganizationRoleUsersRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
75
quickbi-public/src/model/ListOrganizationRoleUsersResult.cc
Normal file
75
quickbi-public/src/model/ListOrganizationRoleUsersResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/ListOrganizationRoleUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
ListOrganizationRoleUsersResult::ListOrganizationRoleUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListOrganizationRoleUsersResult::ListOrganizationRoleUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListOrganizationRoleUsersResult::~ListOrganizationRoleUsersResult()
|
||||
{}
|
||||
|
||||
void ListOrganizationRoleUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["TotalNum"].isNull())
|
||||
result_.totalNum = std::stoi(resultNode["TotalNum"].asString());
|
||||
if(!resultNode["TotalPages"].isNull())
|
||||
result_.totalPages = std::stoi(resultNode["TotalPages"].asString());
|
||||
if(!resultNode["PageNum"].isNull())
|
||||
result_.pageNum = std::stoi(resultNode["PageNum"].asString());
|
||||
if(!resultNode["PageSize"].isNull())
|
||||
result_.pageSize = std::stoi(resultNode["PageSize"].asString());
|
||||
auto allDataNode = resultNode["Data"]["DataItem"];
|
||||
for (auto resultNodeDataDataItem : allDataNode)
|
||||
{
|
||||
Result::DataItem dataItemObject;
|
||||
if(!resultNodeDataDataItem["UserId"].isNull())
|
||||
dataItemObject.userId = resultNodeDataDataItem["UserId"].asString();
|
||||
if(!resultNodeDataDataItem["NickName"].isNull())
|
||||
dataItemObject.nickName = resultNodeDataDataItem["NickName"].asString();
|
||||
result_.data.push_back(dataItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ListOrganizationRoleUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
ListOrganizationRoleUsersResult::Result ListOrganizationRoleUsersResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
45
quickbi-public/src/model/ListOrganizationRolesRequest.cc
Normal file
45
quickbi-public/src/model/ListOrganizationRolesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/ListOrganizationRolesRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::ListOrganizationRolesRequest;
|
||||
|
||||
ListOrganizationRolesRequest::ListOrganizationRolesRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "ListOrganizationRoles") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListOrganizationRolesRequest::~ListOrganizationRolesRequest() {}
|
||||
|
||||
std::string ListOrganizationRolesRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void ListOrganizationRolesRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string ListOrganizationRolesRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void ListOrganizationRolesRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
76
quickbi-public/src/model/ListOrganizationRolesResult.cc
Normal file
76
quickbi-public/src/model/ListOrganizationRolesResult.cc
Normal file
@@ -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 <alibabacloud/quickbi-public/model/ListOrganizationRolesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
ListOrganizationRolesResult::ListOrganizationRolesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListOrganizationRolesResult::ListOrganizationRolesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListOrganizationRolesResult::~ListOrganizationRolesResult()
|
||||
{}
|
||||
|
||||
void ListOrganizationRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["Data"];
|
||||
for (auto valueResultData : allResultNode)
|
||||
{
|
||||
Data resultObject;
|
||||
if(!valueResultData["RoleId"].isNull())
|
||||
resultObject.roleId = std::stol(valueResultData["RoleId"].asString());
|
||||
if(!valueResultData["RoleName"].isNull())
|
||||
resultObject.roleName = valueResultData["RoleName"].asString();
|
||||
if(!valueResultData["IsSystemRole"].isNull())
|
||||
resultObject.isSystemRole = valueResultData["IsSystemRole"].asString() == "true";
|
||||
auto allAuthConfigListNode = valueResultData["AuthConfigList"]["authConfigListItem"];
|
||||
for (auto valueResultDataAuthConfigListauthConfigListItem : allAuthConfigListNode)
|
||||
{
|
||||
Data::AuthConfigListItem authConfigListObject;
|
||||
if(!valueResultDataAuthConfigListauthConfigListItem["AuthKey"].isNull())
|
||||
authConfigListObject.authKey = valueResultDataAuthConfigListauthConfigListItem["AuthKey"].asString();
|
||||
resultObject.authConfigList.push_back(authConfigListObject);
|
||||
}
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ListOrganizationRolesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListOrganizationRolesResult::Data> ListOrganizationRolesResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
90
quickbi-public/src/model/ListWorkspaceRoleUsersRequest.cc
Normal file
90
quickbi-public/src/model/ListWorkspaceRoleUsersRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/ListWorkspaceRoleUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::ListWorkspaceRoleUsersRequest;
|
||||
|
||||
ListWorkspaceRoleUsersRequest::ListWorkspaceRoleUsersRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "ListWorkspaceRoleUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListWorkspaceRoleUsersRequest::~ListWorkspaceRoleUsersRequest() {}
|
||||
|
||||
long ListWorkspaceRoleUsersRequest::getRoleId() const {
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setRoleId(long roleId) {
|
||||
roleId_ = roleId;
|
||||
setParameter(std::string("RoleId"), std::to_string(roleId));
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRoleUsersRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
int ListWorkspaceRoleUsersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRoleUsersRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
int ListWorkspaceRoleUsersRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRoleUsersRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRoleUsersRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRoleUsersRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter(std::string("WorkspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
79
quickbi-public/src/model/ListWorkspaceRoleUsersResult.cc
Normal file
79
quickbi-public/src/model/ListWorkspaceRoleUsersResult.cc
Normal file
@@ -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 <alibabacloud/quickbi-public/model/ListWorkspaceRoleUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
ListWorkspaceRoleUsersResult::ListWorkspaceRoleUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListWorkspaceRoleUsersResult::ListWorkspaceRoleUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListWorkspaceRoleUsersResult::~ListWorkspaceRoleUsersResult()
|
||||
{}
|
||||
|
||||
void ListWorkspaceRoleUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["TotalNum"].isNull())
|
||||
result_.totalNum = std::stoi(resultNode["TotalNum"].asString());
|
||||
if(!resultNode["TotalPages"].isNull())
|
||||
result_.totalPages = std::stoi(resultNode["TotalPages"].asString());
|
||||
if(!resultNode["PageNum"].isNull())
|
||||
result_.pageNum = std::stoi(resultNode["PageNum"].asString());
|
||||
if(!resultNode["PageSize"].isNull())
|
||||
result_.pageSize = std::stoi(resultNode["PageSize"].asString());
|
||||
auto allDataNode = resultNode["Data"]["DataItem"];
|
||||
for (auto resultNodeDataDataItem : allDataNode)
|
||||
{
|
||||
Result::DataItem dataItemObject;
|
||||
if(!resultNodeDataDataItem["UserId"].isNull())
|
||||
dataItemObject.userId = resultNodeDataDataItem["UserId"].asString();
|
||||
if(!resultNodeDataDataItem["NickName"].isNull())
|
||||
dataItemObject.nickName = resultNodeDataDataItem["NickName"].asString();
|
||||
if(!resultNodeDataDataItem["WorkspaceName"].isNull())
|
||||
dataItemObject.workspaceName = resultNodeDataDataItem["WorkspaceName"].asString();
|
||||
if(!resultNodeDataDataItem["WorkspaceId"].isNull())
|
||||
dataItemObject.workspaceId = resultNodeDataDataItem["WorkspaceId"].asString();
|
||||
result_.data.push_back(dataItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ListWorkspaceRoleUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
ListWorkspaceRoleUsersResult::Result ListWorkspaceRoleUsersResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
54
quickbi-public/src/model/ListWorkspaceRolesRequest.cc
Normal file
54
quickbi-public/src/model/ListWorkspaceRolesRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/ListWorkspaceRolesRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::ListWorkspaceRolesRequest;
|
||||
|
||||
ListWorkspaceRolesRequest::ListWorkspaceRolesRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "ListWorkspaceRoles") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListWorkspaceRolesRequest::~ListWorkspaceRolesRequest() {}
|
||||
|
||||
std::string ListWorkspaceRolesRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRolesRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRolesRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRolesRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
std::string ListWorkspaceRolesRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListWorkspaceRolesRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter(std::string("WorkspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
79
quickbi-public/src/model/ListWorkspaceRolesResult.cc
Normal file
79
quickbi-public/src/model/ListWorkspaceRolesResult.cc
Normal file
@@ -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 <alibabacloud/quickbi-public/model/ListWorkspaceRolesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
ListWorkspaceRolesResult::ListWorkspaceRolesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListWorkspaceRolesResult::ListWorkspaceRolesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListWorkspaceRolesResult::~ListWorkspaceRolesResult()
|
||||
{}
|
||||
|
||||
void ListWorkspaceRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["Data"];
|
||||
for (auto valueResultData : allResultNode)
|
||||
{
|
||||
Data resultObject;
|
||||
if(!valueResultData["RoleId"].isNull())
|
||||
resultObject.roleId = std::stol(valueResultData["RoleId"].asString());
|
||||
if(!valueResultData["RoleName"].isNull())
|
||||
resultObject.roleName = valueResultData["RoleName"].asString();
|
||||
if(!valueResultData["IsSystemRole"].isNull())
|
||||
resultObject.isSystemRole = valueResultData["IsSystemRole"].asString() == "true";
|
||||
auto allAuthConfigListNode = valueResultData["AuthConfigList"]["authConfigListItem"];
|
||||
for (auto valueResultDataAuthConfigListauthConfigListItem : allAuthConfigListNode)
|
||||
{
|
||||
Data::AuthConfigListItem authConfigListObject;
|
||||
if(!valueResultDataAuthConfigListauthConfigListItem["AuthKey"].isNull())
|
||||
authConfigListObject.authKey = valueResultDataAuthConfigListauthConfigListItem["AuthKey"].asString();
|
||||
auto allActionAuthKeys = value["ActionAuthKeys"]["actionAuthKeys"];
|
||||
for (auto value : allActionAuthKeys)
|
||||
authConfigListObject.actionAuthKeys.push_back(value.asString());
|
||||
resultObject.authConfigList.push_back(authConfigListObject);
|
||||
}
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ListWorkspaceRolesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListWorkspaceRolesResult::Data> ListWorkspaceRolesResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ void QueryDatasetInfoResult::parse(const std::string &payload)
|
||||
result_.dsType = resultNode["DsType"].asString();
|
||||
if(!resultNode["DatasetId"].isNull())
|
||||
result_.datasetId = resultNode["DatasetId"].asString();
|
||||
if(!resultNode["OpenOfflineAcceleration"].isNull())
|
||||
result_.openOfflineAcceleration = resultNode["OpenOfflineAcceleration"].asString() == "true";
|
||||
auto allCubeTableListNode = resultNode["CubeTableList"]["CubeTableListItem"];
|
||||
for (auto resultNodeCubeTableListCubeTableListItem : allCubeTableListNode)
|
||||
{
|
||||
|
||||
@@ -72,6 +72,8 @@ void QueryDatasetListResult::parse(const std::string &payload)
|
||||
dataItemObject.datasetName = resultNodeDataDataItem["DatasetName"].asString();
|
||||
if(!resultNodeDataDataItem["DatasetId"].isNull())
|
||||
dataItemObject.datasetId = resultNodeDataDataItem["DatasetId"].asString();
|
||||
if(!resultNodeDataDataItem["OpenOfflineAcceleration"].isNull())
|
||||
dataItemObject.openOfflineAcceleration = resultNodeDataDataItem["OpenOfflineAcceleration"].asString() == "true";
|
||||
auto dataSourceNode = value["DataSource"];
|
||||
if(!dataSourceNode["DsType"].isNull())
|
||||
dataItemObject.dataSource.dsType = dataSourceNode["DsType"].asString();
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryOrganizationRoleConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::QueryOrganizationRoleConfigRequest;
|
||||
|
||||
QueryOrganizationRoleConfigRequest::QueryOrganizationRoleConfigRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "QueryOrganizationRoleConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryOrganizationRoleConfigRequest::~QueryOrganizationRoleConfigRequest() {}
|
||||
|
||||
long QueryOrganizationRoleConfigRequest::getRoleId() const {
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void QueryOrganizationRoleConfigRequest::setRoleId(long roleId) {
|
||||
roleId_ = roleId;
|
||||
setParameter(std::string("RoleId"), std::to_string(roleId));
|
||||
}
|
||||
|
||||
std::string QueryOrganizationRoleConfigRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void QueryOrganizationRoleConfigRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string QueryOrganizationRoleConfigRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void QueryOrganizationRoleConfigRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryOrganizationRoleConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
QueryOrganizationRoleConfigResult::QueryOrganizationRoleConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryOrganizationRoleConfigResult::QueryOrganizationRoleConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryOrganizationRoleConfigResult::~QueryOrganizationRoleConfigResult()
|
||||
{}
|
||||
|
||||
void QueryOrganizationRoleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["RoleId"].isNull())
|
||||
result_.roleId = std::stol(resultNode["RoleId"].asString());
|
||||
if(!resultNode["RoleName"].isNull())
|
||||
result_.roleName = resultNode["RoleName"].asString();
|
||||
if(!resultNode["IsSystemRole"].isNull())
|
||||
result_.isSystemRole = resultNode["IsSystemRole"].asString() == "true";
|
||||
auto allAuthConfigListNode = resultNode["AuthConfigList"]["authConfigListItem"];
|
||||
for (auto resultNodeAuthConfigListauthConfigListItem : allAuthConfigListNode)
|
||||
{
|
||||
Result::AuthConfigListItem authConfigListItemObject;
|
||||
if(!resultNodeAuthConfigListauthConfigListItem["AuthKey"].isNull())
|
||||
authConfigListItemObject.authKey = resultNodeAuthConfigListauthConfigListItem["AuthKey"].asString();
|
||||
result_.authConfigList.push_back(authConfigListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryOrganizationRoleConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
QueryOrganizationRoleConfigResult::Result QueryOrganizationRoleConfigResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
54
quickbi-public/src/model/QueryWorkspaceRoleConfigRequest.cc
Normal file
54
quickbi-public/src/model/QueryWorkspaceRoleConfigRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryWorkspaceRoleConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::QueryWorkspaceRoleConfigRequest;
|
||||
|
||||
QueryWorkspaceRoleConfigRequest::QueryWorkspaceRoleConfigRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "QueryWorkspaceRoleConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryWorkspaceRoleConfigRequest::~QueryWorkspaceRoleConfigRequest() {}
|
||||
|
||||
long QueryWorkspaceRoleConfigRequest::getRoleId() const {
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void QueryWorkspaceRoleConfigRequest::setRoleId(long roleId) {
|
||||
roleId_ = roleId;
|
||||
setParameter(std::string("RoleId"), std::to_string(roleId));
|
||||
}
|
||||
|
||||
std::string QueryWorkspaceRoleConfigRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void QueryWorkspaceRoleConfigRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string QueryWorkspaceRoleConfigRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void QueryWorkspaceRoleConfigRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
74
quickbi-public/src/model/QueryWorkspaceRoleConfigResult.cc
Normal file
74
quickbi-public/src/model/QueryWorkspaceRoleConfigResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryWorkspaceRoleConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
QueryWorkspaceRoleConfigResult::QueryWorkspaceRoleConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryWorkspaceRoleConfigResult::QueryWorkspaceRoleConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryWorkspaceRoleConfigResult::~QueryWorkspaceRoleConfigResult()
|
||||
{}
|
||||
|
||||
void QueryWorkspaceRoleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["RoleId"].isNull())
|
||||
result_.roleId = std::stol(resultNode["RoleId"].asString());
|
||||
if(!resultNode["RoleName"].isNull())
|
||||
result_.roleName = resultNode["RoleName"].asString();
|
||||
if(!resultNode["IsSystemRole"].isNull())
|
||||
result_.isSystemRole = resultNode["IsSystemRole"].asString() == "true";
|
||||
auto allAuthConfigListNode = resultNode["AuthConfigList"]["authConfigListItem"];
|
||||
for (auto resultNodeAuthConfigListauthConfigListItem : allAuthConfigListNode)
|
||||
{
|
||||
Result::AuthConfigListItem authConfigListItemObject;
|
||||
if(!resultNodeAuthConfigListauthConfigListItem["AuthKey"].isNull())
|
||||
authConfigListItemObject.authKey = resultNodeAuthConfigListauthConfigListItem["AuthKey"].asString();
|
||||
auto allActionAuthKeys = value["ActionAuthKeys"]["actionAuthKeys"];
|
||||
for (auto value : allActionAuthKeys)
|
||||
authConfigListItemObject.actionAuthKeys.push_back(value.asString());
|
||||
result_.authConfigList.push_back(authConfigListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryWorkspaceRoleConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
QueryWorkspaceRoleConfigResult::Result QueryWorkspaceRoleConfigResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user