First build.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2020-07-24 Version: 1.36.535
|
||||||
|
- First build.
|
||||||
|
|
||||||
2020-07-23 Version: 1.36.534
|
2020-07-23 Version: 1.36.534
|
||||||
- Supported CloudGame.
|
- Supported CloudGame.
|
||||||
|
|
||||||
|
|||||||
154
codeup/CMakeLists.txt
Normal file
154
codeup/CMakeLists.txt
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||||
|
|
||||||
|
set(codeup_public_header
|
||||||
|
include/alibabacloud/codeup/CodeupClient.h
|
||||||
|
include/alibabacloud/codeup/CodeupExport.h )
|
||||||
|
|
||||||
|
set(codeup_public_header_model
|
||||||
|
include/alibabacloud/codeup/model/AddGroupMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/AddGroupMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/AddRepositoryMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/AddRepositoryMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/CreateFileRequest.h
|
||||||
|
include/alibabacloud/codeup/model/CreateFileResult.h
|
||||||
|
include/alibabacloud/codeup/model/CreateRepositoryRequest.h
|
||||||
|
include/alibabacloud/codeup/model/CreateRepositoryResult.h
|
||||||
|
include/alibabacloud/codeup/model/CreateRepositoryGroupRequest.h
|
||||||
|
include/alibabacloud/codeup/model/CreateRepositoryGroupResult.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteFileRequest.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteFileResult.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteGroupMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteGroupMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryRequest.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryResult.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryGroupRequest.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryGroupResult.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/DeleteRepositoryMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||||
|
include/alibabacloud/codeup/model/GetCodeupOrganizationResult.h
|
||||||
|
include/alibabacloud/codeup/model/GetFileBlobsRequest.h
|
||||||
|
include/alibabacloud/codeup/model/GetFileBlobsResult.h
|
||||||
|
include/alibabacloud/codeup/model/ListGroupMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/ListGroupMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
|
||||||
|
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateFileRequest.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateFileResult.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateGroupMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateGroupMemberResult.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateRepositoryMemberRequest.h
|
||||||
|
include/alibabacloud/codeup/model/UpdateRepositoryMemberResult.h )
|
||||||
|
|
||||||
|
set(codeup_src
|
||||||
|
src/CodeupClient.cc
|
||||||
|
src/model/AddGroupMemberRequest.cc
|
||||||
|
src/model/AddGroupMemberResult.cc
|
||||||
|
src/model/AddRepositoryMemberRequest.cc
|
||||||
|
src/model/AddRepositoryMemberResult.cc
|
||||||
|
src/model/CreateFileRequest.cc
|
||||||
|
src/model/CreateFileResult.cc
|
||||||
|
src/model/CreateRepositoryRequest.cc
|
||||||
|
src/model/CreateRepositoryResult.cc
|
||||||
|
src/model/CreateRepositoryGroupRequest.cc
|
||||||
|
src/model/CreateRepositoryGroupResult.cc
|
||||||
|
src/model/DeleteFileRequest.cc
|
||||||
|
src/model/DeleteFileResult.cc
|
||||||
|
src/model/DeleteGroupMemberRequest.cc
|
||||||
|
src/model/DeleteGroupMemberResult.cc
|
||||||
|
src/model/DeleteRepositoryRequest.cc
|
||||||
|
src/model/DeleteRepositoryResult.cc
|
||||||
|
src/model/DeleteRepositoryGroupRequest.cc
|
||||||
|
src/model/DeleteRepositoryGroupResult.cc
|
||||||
|
src/model/DeleteRepositoryMemberRequest.cc
|
||||||
|
src/model/DeleteRepositoryMemberResult.cc
|
||||||
|
src/model/GetCodeupOrganizationRequest.cc
|
||||||
|
src/model/GetCodeupOrganizationResult.cc
|
||||||
|
src/model/GetFileBlobsRequest.cc
|
||||||
|
src/model/GetFileBlobsResult.cc
|
||||||
|
src/model/ListGroupMemberRequest.cc
|
||||||
|
src/model/ListGroupMemberResult.cc
|
||||||
|
src/model/ListRepositoryMemberRequest.cc
|
||||||
|
src/model/ListRepositoryMemberResult.cc
|
||||||
|
src/model/ListRepositoryTreeRequest.cc
|
||||||
|
src/model/ListRepositoryTreeResult.cc
|
||||||
|
src/model/UpdateFileRequest.cc
|
||||||
|
src/model/UpdateFileResult.cc
|
||||||
|
src/model/UpdateGroupMemberRequest.cc
|
||||||
|
src/model/UpdateGroupMemberResult.cc
|
||||||
|
src/model/UpdateRepositoryMemberRequest.cc
|
||||||
|
src/model/UpdateRepositoryMemberResult.cc )
|
||||||
|
|
||||||
|
add_library(codeup ${LIB_TYPE}
|
||||||
|
${codeup_public_header}
|
||||||
|
${codeup_public_header_model}
|
||||||
|
${codeup_src})
|
||||||
|
|
||||||
|
set_target_properties(codeup
|
||||||
|
PROPERTIES
|
||||||
|
LINKER_LANGUAGE CXX
|
||||||
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||||
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||||
|
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}codeup
|
||||||
|
)
|
||||||
|
|
||||||
|
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||||
|
set_target_properties(codeup
|
||||||
|
PROPERTIES
|
||||||
|
DEFINE_SYMBOL ALIBABACLOUD_CODEUP_LIBRARY)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(codeup
|
||||||
|
PRIVATE include
|
||||||
|
${CMAKE_SOURCE_DIR}/core/include
|
||||||
|
)
|
||||||
|
target_link_libraries(codeup
|
||||||
|
core)
|
||||||
|
|
||||||
|
if(CMAKE_HOST_WIN32)
|
||||||
|
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||||
|
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||||
|
add_dependencies(codeup
|
||||||
|
jsoncpp)
|
||||||
|
target_include_directories(codeup
|
||||||
|
PRIVATE ${jsoncpp_install_dir}/include)
|
||||||
|
target_link_libraries(codeup
|
||||||
|
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||||
|
set_target_properties(codeup
|
||||||
|
PROPERTIES
|
||||||
|
COMPILE_OPTIONS "/bigobj")
|
||||||
|
else()
|
||||||
|
target_include_directories(codeup
|
||||||
|
PRIVATE /usr/include/jsoncpp)
|
||||||
|
target_link_libraries(codeup
|
||||||
|
jsoncpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES ${codeup_public_header}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/codeup)
|
||||||
|
install(FILES ${codeup_public_header_model}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/codeup/model)
|
||||||
|
install(TARGETS codeup
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
)
|
||||||
190
codeup/include/alibabacloud/codeup/CodeupClient.h
Normal file
190
codeup/include/alibabacloud/codeup/CodeupClient.h
Normal file
@@ -0,0 +1,190 @@
|
|||||||
|
/*
|
||||||
|
* 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_CODEUP_CODEUPCLIENT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_CODEUPCLIENT_H_
|
||||||
|
|
||||||
|
#include <future>
|
||||||
|
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||||
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
|
#include <alibabacloud/core/RoaServiceClient.h>
|
||||||
|
#include "CodeupExport.h"
|
||||||
|
#include "model/AddGroupMemberRequest.h"
|
||||||
|
#include "model/AddGroupMemberResult.h"
|
||||||
|
#include "model/AddRepositoryMemberRequest.h"
|
||||||
|
#include "model/AddRepositoryMemberResult.h"
|
||||||
|
#include "model/CreateFileRequest.h"
|
||||||
|
#include "model/CreateFileResult.h"
|
||||||
|
#include "model/CreateRepositoryRequest.h"
|
||||||
|
#include "model/CreateRepositoryResult.h"
|
||||||
|
#include "model/CreateRepositoryGroupRequest.h"
|
||||||
|
#include "model/CreateRepositoryGroupResult.h"
|
||||||
|
#include "model/DeleteFileRequest.h"
|
||||||
|
#include "model/DeleteFileResult.h"
|
||||||
|
#include "model/DeleteGroupMemberRequest.h"
|
||||||
|
#include "model/DeleteGroupMemberResult.h"
|
||||||
|
#include "model/DeleteRepositoryRequest.h"
|
||||||
|
#include "model/DeleteRepositoryResult.h"
|
||||||
|
#include "model/DeleteRepositoryGroupRequest.h"
|
||||||
|
#include "model/DeleteRepositoryGroupResult.h"
|
||||||
|
#include "model/DeleteRepositoryMemberRequest.h"
|
||||||
|
#include "model/DeleteRepositoryMemberResult.h"
|
||||||
|
#include "model/GetCodeupOrganizationRequest.h"
|
||||||
|
#include "model/GetCodeupOrganizationResult.h"
|
||||||
|
#include "model/GetFileBlobsRequest.h"
|
||||||
|
#include "model/GetFileBlobsResult.h"
|
||||||
|
#include "model/ListGroupMemberRequest.h"
|
||||||
|
#include "model/ListGroupMemberResult.h"
|
||||||
|
#include "model/ListRepositoryMemberRequest.h"
|
||||||
|
#include "model/ListRepositoryMemberResult.h"
|
||||||
|
#include "model/ListRepositoryTreeRequest.h"
|
||||||
|
#include "model/ListRepositoryTreeResult.h"
|
||||||
|
#include "model/UpdateFileRequest.h"
|
||||||
|
#include "model/UpdateFileResult.h"
|
||||||
|
#include "model/UpdateGroupMemberRequest.h"
|
||||||
|
#include "model/UpdateGroupMemberResult.h"
|
||||||
|
#include "model/UpdateRepositoryMemberRequest.h"
|
||||||
|
#include "model/UpdateRepositoryMemberResult.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CodeupClient : public RoaServiceClient
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef Outcome<Error, Model::AddGroupMemberResult> AddGroupMemberOutcome;
|
||||||
|
typedef std::future<AddGroupMemberOutcome> AddGroupMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::AddGroupMemberRequest&, const AddGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGroupMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::AddRepositoryMemberResult> AddRepositoryMemberOutcome;
|
||||||
|
typedef std::future<AddRepositoryMemberOutcome> AddRepositoryMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::AddRepositoryMemberRequest&, const AddRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddRepositoryMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateFileResult> CreateFileOutcome;
|
||||||
|
typedef std::future<CreateFileOutcome> CreateFileOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::CreateFileRequest&, const CreateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateRepositoryResult> CreateRepositoryOutcome;
|
||||||
|
typedef std::future<CreateRepositoryOutcome> CreateRepositoryOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryRequest&, const CreateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateRepositoryGroupResult> CreateRepositoryGroupOutcome;
|
||||||
|
typedef std::future<CreateRepositoryGroupOutcome> CreateRepositoryGroupOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryGroupRequest&, const CreateRepositoryGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryGroupAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteFileResult> DeleteFileOutcome;
|
||||||
|
typedef std::future<DeleteFileOutcome> DeleteFileOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::DeleteFileRequest&, const DeleteFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFileAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteGroupMemberResult> DeleteGroupMemberOutcome;
|
||||||
|
typedef std::future<DeleteGroupMemberOutcome> DeleteGroupMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::DeleteGroupMemberRequest&, const DeleteGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGroupMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteRepositoryResult> DeleteRepositoryOutcome;
|
||||||
|
typedef std::future<DeleteRepositoryOutcome> DeleteRepositoryOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryRequest&, const DeleteRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteRepositoryGroupResult> DeleteRepositoryGroupOutcome;
|
||||||
|
typedef std::future<DeleteRepositoryGroupOutcome> DeleteRepositoryGroupOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryGroupRequest&, const DeleteRepositoryGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryGroupAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteRepositoryMemberResult> DeleteRepositoryMemberOutcome;
|
||||||
|
typedef std::future<DeleteRepositoryMemberOutcome> DeleteRepositoryMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryMemberRequest&, const DeleteRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetCodeupOrganizationResult> GetCodeupOrganizationOutcome;
|
||||||
|
typedef std::future<GetCodeupOrganizationOutcome> GetCodeupOrganizationOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::GetCodeupOrganizationRequest&, const GetCodeupOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCodeupOrganizationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetFileBlobsResult> GetFileBlobsOutcome;
|
||||||
|
typedef std::future<GetFileBlobsOutcome> GetFileBlobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::GetFileBlobsRequest&, const GetFileBlobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileBlobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
|
||||||
|
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
|
||||||
|
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
|
||||||
|
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateFileResult> UpdateFileOutcome;
|
||||||
|
typedef std::future<UpdateFileOutcome> UpdateFileOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::UpdateFileRequest&, const UpdateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFileAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateGroupMemberResult> UpdateGroupMemberOutcome;
|
||||||
|
typedef std::future<UpdateGroupMemberOutcome> UpdateGroupMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::UpdateGroupMemberRequest&, const UpdateGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGroupMemberAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateRepositoryMemberResult> UpdateRepositoryMemberOutcome;
|
||||||
|
typedef std::future<UpdateRepositoryMemberOutcome> UpdateRepositoryMemberOutcomeCallable;
|
||||||
|
typedef std::function<void(const CodeupClient*, const Model::UpdateRepositoryMemberRequest&, const UpdateRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRepositoryMemberAsyncHandler;
|
||||||
|
|
||||||
|
CodeupClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
|
CodeupClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
|
CodeupClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
|
~CodeupClient();
|
||||||
|
AddGroupMemberOutcome addGroupMember(const Model::AddGroupMemberRequest &request)const;
|
||||||
|
void addGroupMemberAsync(const Model::AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
AddGroupMemberOutcomeCallable addGroupMemberCallable(const Model::AddGroupMemberRequest& request) const;
|
||||||
|
AddRepositoryMemberOutcome addRepositoryMember(const Model::AddRepositoryMemberRequest &request)const;
|
||||||
|
void addRepositoryMemberAsync(const Model::AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
AddRepositoryMemberOutcomeCallable addRepositoryMemberCallable(const Model::AddRepositoryMemberRequest& request) const;
|
||||||
|
CreateFileOutcome createFile(const Model::CreateFileRequest &request)const;
|
||||||
|
void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const;
|
||||||
|
CreateRepositoryOutcome createRepository(const Model::CreateRepositoryRequest &request)const;
|
||||||
|
void createRepositoryAsync(const Model::CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateRepositoryOutcomeCallable createRepositoryCallable(const Model::CreateRepositoryRequest& request) const;
|
||||||
|
CreateRepositoryGroupOutcome createRepositoryGroup(const Model::CreateRepositoryGroupRequest &request)const;
|
||||||
|
void createRepositoryGroupAsync(const Model::CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateRepositoryGroupOutcomeCallable createRepositoryGroupCallable(const Model::CreateRepositoryGroupRequest& request) const;
|
||||||
|
DeleteFileOutcome deleteFile(const Model::DeleteFileRequest &request)const;
|
||||||
|
void deleteFileAsync(const Model::DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteFileOutcomeCallable deleteFileCallable(const Model::DeleteFileRequest& request) const;
|
||||||
|
DeleteGroupMemberOutcome deleteGroupMember(const Model::DeleteGroupMemberRequest &request)const;
|
||||||
|
void deleteGroupMemberAsync(const Model::DeleteGroupMemberRequest& request, const DeleteGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteGroupMemberOutcomeCallable deleteGroupMemberCallable(const Model::DeleteGroupMemberRequest& request) const;
|
||||||
|
DeleteRepositoryOutcome deleteRepository(const Model::DeleteRepositoryRequest &request)const;
|
||||||
|
void deleteRepositoryAsync(const Model::DeleteRepositoryRequest& request, const DeleteRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteRepositoryOutcomeCallable deleteRepositoryCallable(const Model::DeleteRepositoryRequest& request) const;
|
||||||
|
DeleteRepositoryGroupOutcome deleteRepositoryGroup(const Model::DeleteRepositoryGroupRequest &request)const;
|
||||||
|
void deleteRepositoryGroupAsync(const Model::DeleteRepositoryGroupRequest& request, const DeleteRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteRepositoryGroupOutcomeCallable deleteRepositoryGroupCallable(const Model::DeleteRepositoryGroupRequest& request) const;
|
||||||
|
DeleteRepositoryMemberOutcome deleteRepositoryMember(const Model::DeleteRepositoryMemberRequest &request)const;
|
||||||
|
void deleteRepositoryMemberAsync(const Model::DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteRepositoryMemberOutcomeCallable deleteRepositoryMemberCallable(const Model::DeleteRepositoryMemberRequest& request) const;
|
||||||
|
GetCodeupOrganizationOutcome getCodeupOrganization(const Model::GetCodeupOrganizationRequest &request)const;
|
||||||
|
void getCodeupOrganizationAsync(const Model::GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetCodeupOrganizationOutcomeCallable getCodeupOrganizationCallable(const Model::GetCodeupOrganizationRequest& request) const;
|
||||||
|
GetFileBlobsOutcome getFileBlobs(const Model::GetFileBlobsRequest &request)const;
|
||||||
|
void getFileBlobsAsync(const Model::GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetFileBlobsOutcomeCallable getFileBlobsCallable(const Model::GetFileBlobsRequest& request) const;
|
||||||
|
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
|
||||||
|
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
|
||||||
|
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
|
||||||
|
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
|
||||||
|
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
|
||||||
|
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;
|
||||||
|
UpdateFileOutcome updateFile(const Model::UpdateFileRequest &request)const;
|
||||||
|
void updateFileAsync(const Model::UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateFileOutcomeCallable updateFileCallable(const Model::UpdateFileRequest& request) const;
|
||||||
|
UpdateGroupMemberOutcome updateGroupMember(const Model::UpdateGroupMemberRequest &request)const;
|
||||||
|
void updateGroupMemberAsync(const Model::UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateGroupMemberOutcomeCallable updateGroupMemberCallable(const Model::UpdateGroupMemberRequest& request) const;
|
||||||
|
UpdateRepositoryMemberOutcome updateRepositoryMember(const Model::UpdateRepositoryMemberRequest &request)const;
|
||||||
|
void updateRepositoryMemberAsync(const Model::UpdateRepositoryMemberRequest& request, const UpdateRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateRepositoryMemberOutcomeCallable updateRepositoryMemberCallable(const Model::UpdateRepositoryMemberRequest& request) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_CODEUPCLIENT_H_
|
||||||
32
codeup/include/alibabacloud/codeup/CodeupExport.h
Normal file
32
codeup/include/alibabacloud/codeup/CodeupExport.h
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* 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_CODEUP_CODEUPEXPORT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_CODEUPEXPORT_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/core/Global.h>
|
||||||
|
|
||||||
|
#if defined(ALIBABACLOUD_SHARED)
|
||||||
|
# if defined(ALIBABACLOUD_CODEUP_LIBRARY)
|
||||||
|
# define ALIBABACLOUD_CODEUP_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||||
|
# else
|
||||||
|
# define ALIBABACLOUD_CODEUP_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define ALIBABACLOUD_CODEUP_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_CODEUPEXPORT_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_CODEUP_MODEL_ADDGROUPMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_ADDGROUPMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT AddGroupMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
AddGroupMemberRequest();
|
||||||
|
~AddGroupMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
long getGroupId()const;
|
||||||
|
void setGroupId(long groupId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string clientToken_;
|
||||||
|
long groupId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDGROUPMEMBERREQUEST_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_CODEUP_MODEL_ADDGROUPMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_ADDGROUPMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT AddGroupMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultItem
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
AddGroupMemberResult();
|
||||||
|
explicit AddGroupMemberResult(const std::string &payload);
|
||||||
|
~AddGroupMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::vector<ResultItem> getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
std::vector<ResultItem> result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDGROUPMEMBERRESULT_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_CODEUP_MODEL_ADDREPOSITORYMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_ADDREPOSITORYMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT AddRepositoryMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
AddRepositoryMemberRequest();
|
||||||
|
~AddRepositoryMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string clientToken_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDREPOSITORYMEMBERREQUEST_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_CODEUP_MODEL_ADDREPOSITORYMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_ADDREPOSITORYMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT AddRepositoryMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultItem
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
AddRepositoryMemberResult();
|
||||||
|
explicit AddRepositoryMemberResult(const std::string &payload);
|
||||||
|
~AddRepositoryMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::vector<ResultItem> getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
std::vector<ResultItem> result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDREPOSITORYMEMBERRESULT_H_
|
||||||
60
codeup/include/alibabacloud/codeup/model/CreateFileRequest.h
Normal file
60
codeup/include/alibabacloud/codeup/model/CreateFileRequest.h
Normal file
@@ -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_CODEUP_MODEL_CREATEFILEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEFILEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateFileRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateFileRequest();
|
||||||
|
~CreateFileRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string clientToken_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEFILEREQUEST_H_
|
||||||
62
codeup/include/alibabacloud/codeup/model/CreateFileResult.h
Normal file
62
codeup/include/alibabacloud/codeup/model/CreateFileResult.h
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATEFILERESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEFILERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateFileResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string filePath;
|
||||||
|
std::string branchName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateFileResult();
|
||||||
|
explicit CreateFileResult(const std::string &payload);
|
||||||
|
~CreateFileResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEFILERESULT_H_
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateRepositoryGroupRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateRepositoryGroupRequest();
|
||||||
|
~CreateRepositoryGroupRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string clientToken_;
|
||||||
|
std::string accessToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPREQUEST_H_
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateRepositoryGroupResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string path;
|
||||||
|
std::string pathWithNamespace;
|
||||||
|
long parentId;
|
||||||
|
std::string type;
|
||||||
|
std::string description;
|
||||||
|
std::string avatarUrl;
|
||||||
|
long ownerId;
|
||||||
|
std::string webUrl;
|
||||||
|
std::string nameWithNamespace;
|
||||||
|
std::string visibilityLevel;
|
||||||
|
long id;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateRepositoryGroupResult();
|
||||||
|
explicit CreateRepositoryGroupResult(const std::string &payload);
|
||||||
|
~CreateRepositoryGroupResult();
|
||||||
|
int getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYGROUPRESULT_H_
|
||||||
@@ -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_CODEUP_MODEL_CREATEREPOSITORYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateRepositoryRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateRepositoryRequest();
|
||||||
|
~CreateRepositoryRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
bool getSync()const;
|
||||||
|
void setSync(bool sync);
|
||||||
|
bool getCreateParentPath()const;
|
||||||
|
void setCreateParentPath(bool createParentPath);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string clientToken_;
|
||||||
|
std::string accessToken_;
|
||||||
|
bool sync_;
|
||||||
|
bool createParentPath_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYREQUEST_H_
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT CreateRepositoryResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
struct _Namespace
|
||||||
|
{
|
||||||
|
std::string path;
|
||||||
|
std::string description;
|
||||||
|
long ownerId;
|
||||||
|
std::string state;
|
||||||
|
std::string createdAt;
|
||||||
|
bool _public;
|
||||||
|
std::string visibilityLevel;
|
||||||
|
long id;
|
||||||
|
std::string updatedAt;
|
||||||
|
std::string avatar;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
std::string httpUrlToRepo;
|
||||||
|
std::string description;
|
||||||
|
bool archive;
|
||||||
|
std::string createdAt;
|
||||||
|
bool issuesEnableStatus;
|
||||||
|
std::string visibilityLevel;
|
||||||
|
bool mergeRequestEnableStatus;
|
||||||
|
bool buildsEnableStatus;
|
||||||
|
bool snippetsEnableStatus;
|
||||||
|
std::string name;
|
||||||
|
std::string avatarUrl;
|
||||||
|
bool demoProjectStatus;
|
||||||
|
std::vector<std::string> tagList;
|
||||||
|
std::string defaultBranch;
|
||||||
|
std::string path;
|
||||||
|
std::string pathWithNamespace;
|
||||||
|
std::string lastActivityAt;
|
||||||
|
long creatorId;
|
||||||
|
std::string webUrl;
|
||||||
|
std::string nameWithNamespace;
|
||||||
|
_Namespace _namespace;
|
||||||
|
std::string sshUrlToRepo;
|
||||||
|
bool wikiEnableStatus;
|
||||||
|
bool _public;
|
||||||
|
long id;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateRepositoryResult();
|
||||||
|
explicit CreateRepositoryResult(const std::string &payload);
|
||||||
|
~CreateRepositoryResult();
|
||||||
|
int getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_
|
||||||
66
codeup/include/alibabacloud/codeup/model/DeleteFileRequest.h
Normal file
66
codeup/include/alibabacloud/codeup/model/DeleteFileRequest.h
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEFILEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEFILEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteFileRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteFileRequest();
|
||||||
|
~DeleteFileRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getFilePath()const;
|
||||||
|
void setFilePath(const std::string& filePath);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
std::string getCommitMessage()const;
|
||||||
|
void setCommitMessage(const std::string& commitMessage);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
std::string getBranchName()const;
|
||||||
|
void setBranchName(const std::string& branchName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string filePath_;
|
||||||
|
std::string accessToken_;
|
||||||
|
std::string commitMessage_;
|
||||||
|
long projectId_;
|
||||||
|
std::string branchName_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEFILEREQUEST_H_
|
||||||
62
codeup/include/alibabacloud/codeup/model/DeleteFileResult.h
Normal file
62
codeup/include/alibabacloud/codeup/model/DeleteFileResult.h
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEFILERESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEFILERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteFileResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string filePath;
|
||||||
|
std::string branchName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DeleteFileResult();
|
||||||
|
explicit DeleteFileResult(const std::string &payload);
|
||||||
|
~DeleteFileResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEFILERESULT_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_CODEUP_MODEL_DELETEGROUPMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEGROUPMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteGroupMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteGroupMemberRequest();
|
||||||
|
~DeleteGroupMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
long getGroupId()const;
|
||||||
|
void setGroupId(long groupId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getUserId()const;
|
||||||
|
void setUserId(long userId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
long groupId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long userId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEGROUPMEMBERREQUEST_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_CODEUP_MODEL_DELETEGROUPMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEGROUPMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteGroupMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DeleteGroupMemberResult();
|
||||||
|
explicit DeleteGroupMemberResult(const std::string &payload);
|
||||||
|
~DeleteGroupMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEGROUPMEMBERRESULT_H_
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYGROUPREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYGROUPREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryGroupRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteRepositoryGroupRequest();
|
||||||
|
~DeleteRepositoryGroupRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
long getGroupId()const;
|
||||||
|
void setGroupId(long groupId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
long groupId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYGROUPREQUEST_H_
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* 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_CODEUP_MODEL_DELETEREPOSITORYGROUPRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYGROUPRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryGroupResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
bool result;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DeleteRepositoryGroupResult();
|
||||||
|
explicit DeleteRepositoryGroupResult(const std::string &payload);
|
||||||
|
~DeleteRepositoryGroupResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYGROUPRESULT_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_CODEUP_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteRepositoryMemberRequest();
|
||||||
|
~DeleteRepositoryMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
long getUserId()const;
|
||||||
|
void setUserId(long userId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
long userId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string message;
|
||||||
|
long userId;
|
||||||
|
std::string createdAt;
|
||||||
|
long sourceId;
|
||||||
|
std::string sourceType;
|
||||||
|
int notificationLevel;
|
||||||
|
long id;
|
||||||
|
std::string updatedAt;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DeleteRepositoryMemberResult();
|
||||||
|
explicit DeleteRepositoryMemberResult(const std::string &payload);
|
||||||
|
~DeleteRepositoryMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYMEMBERRESULT_H_
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteRepositoryRequest();
|
||||||
|
~DeleteRepositoryRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYREQUEST_H_
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* 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_CODEUP_MODEL_DELETEREPOSITORYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
bool result;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DeleteRepositoryResult();
|
||||||
|
explicit DeleteRepositoryResult(const std::string &payload);
|
||||||
|
~DeleteRepositoryResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYRESULT_H_
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETCODEUPORGANIZATIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_GETCODEUPORGANIZATIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT GetCodeupOrganizationRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetCodeupOrganizationRequest();
|
||||||
|
~GetCodeupOrganizationRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getOrganizationIdentity()const;
|
||||||
|
void setOrganizationIdentity(const std::string& organizationIdentity);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string organizationIdentity_;
|
||||||
|
std::string accessToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETCODEUPORGANIZATIONREQUEST_H_
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* 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_CODEUP_MODEL_GETCODEUPORGANIZATIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_GETCODEUPORGANIZATIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT GetCodeupOrganizationResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string path;
|
||||||
|
std::string userRole;
|
||||||
|
std::string createdAt;
|
||||||
|
long id;
|
||||||
|
std::string organizationId;
|
||||||
|
long namespaceId;
|
||||||
|
std::string updatedAt;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetCodeupOrganizationResult();
|
||||||
|
explicit GetCodeupOrganizationResult(const std::string &payload);
|
||||||
|
~GetCodeupOrganizationResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETCODEUPORGANIZATIONRESULT_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT GetFileBlobsRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetFileBlobsRequest();
|
||||||
|
~GetFileBlobsRequest();
|
||||||
|
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getRef()const;
|
||||||
|
void setRef(const std::string& ref);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getFilePath()const;
|
||||||
|
void setFilePath(const std::string& filePath);
|
||||||
|
long getFrom()const;
|
||||||
|
void setFrom(long from);
|
||||||
|
long getTo()const;
|
||||||
|
void setTo(long to);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessToken_;
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string ref_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string filePath_;
|
||||||
|
long from_;
|
||||||
|
long to_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSREQUEST_H_
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT GetFileBlobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string content;
|
||||||
|
int totalLines;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetFileBlobsResult();
|
||||||
|
explicit GetFileBlobsResult(const std::string &payload);
|
||||||
|
~GetFileBlobsResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETFILEBLOBSRESULT_H_
|
||||||
@@ -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_CODEUP_MODEL_LISTGROUPMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListGroupMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListGroupMemberRequest();
|
||||||
|
~ListGroupMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
long getGroupId()const;
|
||||||
|
void setGroupId(long groupId);
|
||||||
|
long getPageSize()const;
|
||||||
|
void setPageSize(long pageSize);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getPage()const;
|
||||||
|
void setPage(long page);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
long groupId_;
|
||||||
|
long pageSize_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long page_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPMEMBERREQUEST_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_CODEUP_MODEL_LISTGROUPMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListGroupMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultItem
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListGroupMemberResult();
|
||||||
|
explicit ListGroupMemberResult(const std::string &payload);
|
||||||
|
~ListGroupMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::vector<ResultItem> getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
std::vector<ResultItem> result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPMEMBERRESULT_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_CODEUP_MODEL_LISTREPOSITORYMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListRepositoryMemberRequest();
|
||||||
|
~ListRepositoryMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getQuery()const;
|
||||||
|
void setQuery(const std::string& query);
|
||||||
|
long getPageSize()const;
|
||||||
|
void setPageSize(long pageSize);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getPage()const;
|
||||||
|
void setPage(long page);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string query_;
|
||||||
|
long pageSize_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long page_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYMEMBERREQUEST_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_CODEUP_MODEL_LISTREPOSITORYMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultItem
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListRepositoryMemberResult();
|
||||||
|
explicit ListRepositoryMemberResult(const std::string &payload);
|
||||||
|
~ListRepositoryMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::vector<ResultItem> getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
std::vector<ResultItem> result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYMEMBERRESULT_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_CODEUP_MODEL_LISTREPOSITORYTREEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTREEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTreeRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListRepositoryTreeRequest();
|
||||||
|
~ListRepositoryTreeRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getPath()const;
|
||||||
|
void setPath(const std::string& path);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
std::string getType()const;
|
||||||
|
void setType(const std::string& type);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
std::string getRefName()const;
|
||||||
|
void setRefName(const std::string& refName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string path_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
std::string type_;
|
||||||
|
long projectId_;
|
||||||
|
std::string refName_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTREEREQUEST_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_CODEUP_MODEL_LISTREPOSITORYTREERESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTREERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTreeResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultItem
|
||||||
|
{
|
||||||
|
std::string path;
|
||||||
|
std::string type;
|
||||||
|
std::string mode;
|
||||||
|
std::string id;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListRepositoryTreeResult();
|
||||||
|
explicit ListRepositoryTreeResult(const std::string &payload);
|
||||||
|
~ListRepositoryTreeResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::vector<ResultItem> getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
std::vector<ResultItem> result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTREERESULT_H_
|
||||||
57
codeup/include/alibabacloud/codeup/model/UpdateFileRequest.h
Normal file
57
codeup/include/alibabacloud/codeup/model/UpdateFileRequest.h
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_UPDATEFILEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEFILEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateFileRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
UpdateFileRequest();
|
||||||
|
~UpdateFileRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEFILEREQUEST_H_
|
||||||
62
codeup/include/alibabacloud/codeup/model/UpdateFileResult.h
Normal file
62
codeup/include/alibabacloud/codeup/model/UpdateFileResult.h
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CODEUP_MODEL_UPDATEFILERESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEFILERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateFileResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string filePath;
|
||||||
|
std::string branchName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
UpdateFileResult();
|
||||||
|
explicit UpdateFileResult(const std::string &payload);
|
||||||
|
~UpdateFileResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEFILERESULT_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_CODEUP_MODEL_UPDATEGROUPMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEGROUPMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateGroupMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
UpdateGroupMemberRequest();
|
||||||
|
~UpdateGroupMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
long getGroupId()const;
|
||||||
|
void setGroupId(long groupId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getUserId()const;
|
||||||
|
void setUserId(long userId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
long groupId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long userId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEGROUPMEMBERREQUEST_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_CODEUP_MODEL_UPDATEGROUPMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEGROUPMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateGroupMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
UpdateGroupMemberResult();
|
||||||
|
explicit UpdateGroupMemberResult(const std::string &payload);
|
||||||
|
~UpdateGroupMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEGROUPMEMBERRESULT_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_CODEUP_MODEL_UPDATEREPOSITORYMEMBERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYMEMBERREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateRepositoryMemberRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
UpdateRepositoryMemberRequest();
|
||||||
|
~UpdateRepositoryMemberRequest();
|
||||||
|
|
||||||
|
std::string getOrganizationId()const;
|
||||||
|
void setOrganizationId(const std::string& organizationId);
|
||||||
|
std::string getSubUserId()const;
|
||||||
|
void setSubUserId(const std::string& subUserId);
|
||||||
|
std::string getAccessToken()const;
|
||||||
|
void setAccessToken(const std::string& accessToken);
|
||||||
|
long getProjectId()const;
|
||||||
|
void setProjectId(long projectId);
|
||||||
|
long getUserId()const;
|
||||||
|
void setUserId(long userId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string organizationId_;
|
||||||
|
std::string subUserId_;
|
||||||
|
std::string accessToken_;
|
||||||
|
long projectId_;
|
||||||
|
long userId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYMEMBERREQUEST_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_CODEUP_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/codeup/CodeupExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Codeup
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CODEUP_EXPORT UpdateRepositoryMemberResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Result
|
||||||
|
{
|
||||||
|
std::string avatarUrl;
|
||||||
|
std::string email;
|
||||||
|
std::string state;
|
||||||
|
std::string externUserId;
|
||||||
|
long id;
|
||||||
|
int accessLevel;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
UpdateRepositoryMemberResult();
|
||||||
|
explicit UpdateRepositoryMemberResult(const std::string &payload);
|
||||||
|
~UpdateRepositoryMemberResult();
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
Result getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
bool success_;
|
||||||
|
Result result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_
|
||||||
701
codeup/src/CodeupClient.cc
Normal file
701
codeup/src/CodeupClient.cc
Normal file
@@ -0,0 +1,701 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/CodeupClient.h>
|
||||||
|
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud;
|
||||||
|
using namespace AlibabaCloud::Location;
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
const std::string SERVICE_NAME = "codeup";
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CodeupClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||||
|
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CodeupClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
|
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CodeupClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
|
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::~CodeupClient()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CodeupClient::AddGroupMemberOutcome CodeupClient::addGroupMember(const AddGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return AddGroupMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return AddGroupMemberOutcome(AddGroupMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return AddGroupMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::addGroupMemberAsync(const AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, addGroupMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::AddGroupMemberOutcomeCallable CodeupClient::addGroupMemberCallable(const AddGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<AddGroupMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->addGroupMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::AddRepositoryMemberOutcome CodeupClient::addRepositoryMember(const AddRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return AddRepositoryMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return AddRepositoryMemberOutcome(AddRepositoryMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return AddRepositoryMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::addRepositoryMemberAsync(const AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, addRepositoryMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::AddRepositoryMemberOutcomeCallable CodeupClient::addRepositoryMemberCallable(const AddRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<AddRepositoryMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->addRepositoryMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateFileOutcome CodeupClient::createFile(const CreateFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateFileOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateFileOutcome(CreateFileResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateFileOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::createFileAsync(const CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createFile(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateFileOutcomeCallable CodeupClient::createFileCallable(const CreateFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateFileOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createFile(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateRepositoryOutcome CodeupClient::createRepository(const CreateRepositoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateRepositoryOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateRepositoryOutcome(CreateRepositoryResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateRepositoryOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::createRepositoryAsync(const CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createRepository(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateRepositoryOutcomeCallable CodeupClient::createRepositoryCallable(const CreateRepositoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateRepositoryOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createRepository(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateRepositoryGroupOutcome CodeupClient::createRepositoryGroup(const CreateRepositoryGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateRepositoryGroupOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateRepositoryGroupOutcome(CreateRepositoryGroupResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateRepositoryGroupOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::createRepositoryGroupAsync(const CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createRepositoryGroup(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::CreateRepositoryGroupOutcomeCallable CodeupClient::createRepositoryGroupCallable(const CreateRepositoryGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateRepositoryGroupOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createRepositoryGroup(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteFileOutcome CodeupClient::deleteFile(const DeleteFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteFileOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteFileOutcome(DeleteFileResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteFileOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::deleteFileAsync(const DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteFile(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteFileOutcomeCallable CodeupClient::deleteFileCallable(const DeleteFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteFileOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteFile(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteGroupMemberOutcome CodeupClient::deleteGroupMember(const DeleteGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteGroupMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteGroupMemberOutcome(DeleteGroupMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteGroupMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::deleteGroupMemberAsync(const DeleteGroupMemberRequest& request, const DeleteGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteGroupMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteGroupMemberOutcomeCallable CodeupClient::deleteGroupMemberCallable(const DeleteGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteGroupMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteGroupMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryOutcome CodeupClient::deleteRepository(const DeleteRepositoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteRepositoryOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteRepositoryOutcome(DeleteRepositoryResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteRepositoryOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::deleteRepositoryAsync(const DeleteRepositoryRequest& request, const DeleteRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteRepository(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryOutcomeCallable CodeupClient::deleteRepositoryCallable(const DeleteRepositoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteRepositoryOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteRepository(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryGroupOutcome CodeupClient::deleteRepositoryGroup(const DeleteRepositoryGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteRepositoryGroupOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteRepositoryGroupOutcome(DeleteRepositoryGroupResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteRepositoryGroupOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::deleteRepositoryGroupAsync(const DeleteRepositoryGroupRequest& request, const DeleteRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteRepositoryGroup(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryGroupOutcomeCallable CodeupClient::deleteRepositoryGroupCallable(const DeleteRepositoryGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteRepositoryGroupOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteRepositoryGroup(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryMemberOutcome CodeupClient::deleteRepositoryMember(const DeleteRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteRepositoryMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteRepositoryMemberOutcome(DeleteRepositoryMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteRepositoryMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::deleteRepositoryMemberAsync(const DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteRepositoryMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::DeleteRepositoryMemberOutcomeCallable CodeupClient::deleteRepositoryMemberCallable(const DeleteRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteRepositoryMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteRepositoryMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::GetCodeupOrganizationOutcome CodeupClient::getCodeupOrganization(const GetCodeupOrganizationRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetCodeupOrganizationOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetCodeupOrganizationOutcome(GetCodeupOrganizationResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetCodeupOrganizationOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::getCodeupOrganizationAsync(const GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getCodeupOrganization(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::GetCodeupOrganizationOutcomeCallable CodeupClient::getCodeupOrganizationCallable(const GetCodeupOrganizationRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetCodeupOrganizationOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getCodeupOrganization(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::GetFileBlobsOutcome CodeupClient::getFileBlobs(const GetFileBlobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetFileBlobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetFileBlobsOutcome(GetFileBlobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetFileBlobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::getFileBlobsAsync(const GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getFileBlobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::GetFileBlobsOutcomeCallable CodeupClient::getFileBlobsCallable(const GetFileBlobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetFileBlobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getFileBlobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListGroupMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListGroupMemberOutcome(ListGroupMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListGroupMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::listGroupMemberAsync(const ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listGroupMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListGroupMemberOutcomeCallable CodeupClient::listGroupMemberCallable(const ListGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListGroupMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listGroupMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListRepositoryMemberOutcome CodeupClient::listRepositoryMember(const ListRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListRepositoryMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListRepositoryMemberOutcome(ListRepositoryMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListRepositoryMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::listRepositoryMemberAsync(const ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listRepositoryMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListRepositoryMemberOutcomeCallable CodeupClient::listRepositoryMemberCallable(const ListRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListRepositoryMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listRepositoryMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListRepositoryTreeOutcome CodeupClient::listRepositoryTree(const ListRepositoryTreeRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListRepositoryTreeOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListRepositoryTreeOutcome(ListRepositoryTreeResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListRepositoryTreeOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::listRepositoryTreeAsync(const ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listRepositoryTree(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::ListRepositoryTreeOutcomeCallable CodeupClient::listRepositoryTreeCallable(const ListRepositoryTreeRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListRepositoryTreeOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listRepositoryTree(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateFileOutcome CodeupClient::updateFile(const UpdateFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateFileOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateFileOutcome(UpdateFileResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateFileOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::updateFileAsync(const UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateFile(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateFileOutcomeCallable CodeupClient::updateFileCallable(const UpdateFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateFileOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateFile(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateGroupMemberOutcome CodeupClient::updateGroupMember(const UpdateGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateGroupMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateGroupMemberOutcome(UpdateGroupMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateGroupMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::updateGroupMemberAsync(const UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateGroupMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateGroupMemberOutcomeCallable CodeupClient::updateGroupMemberCallable(const UpdateGroupMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateGroupMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateGroupMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateRepositoryMemberOutcome CodeupClient::updateRepositoryMember(const UpdateRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateRepositoryMemberOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateRepositoryMemberOutcome(UpdateRepositoryMemberResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateRepositoryMemberOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CodeupClient::updateRepositoryMemberAsync(const UpdateRepositoryMemberRequest& request, const UpdateRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateRepositoryMember(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeupClient::UpdateRepositoryMemberOutcomeCallable CodeupClient::updateRepositoryMemberCallable(const UpdateRepositoryMemberRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateRepositoryMemberOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateRepositoryMember(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/AddGroupMemberRequest.cc
Normal file
85
codeup/src/model/AddGroupMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/AddGroupMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::AddGroupMemberRequest;
|
||||||
|
|
||||||
|
AddGroupMemberRequest::AddGroupMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/groups/[GroupId]/members");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
AddGroupMemberRequest::~AddGroupMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string AddGroupMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddGroupMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddGroupMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddGroupMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddGroupMemberRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddGroupMemberRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long AddGroupMemberRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddGroupMemberRequest::setGroupId(long groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", std::to_string(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddGroupMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddGroupMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
88
codeup/src/model/AddGroupMemberResult.cc
Normal file
88
codeup/src/model/AddGroupMemberResult.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/AddGroupMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
AddGroupMemberResult::AddGroupMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
AddGroupMemberResult::AddGroupMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
AddGroupMemberResult::~AddGroupMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void AddGroupMemberResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResultNode = value["Result"]["ResultItem"];
|
||||||
|
for (auto valueResultResultItem : allResultNode)
|
||||||
|
{
|
||||||
|
ResultItem resultObject;
|
||||||
|
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||||
|
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||||
|
if(!valueResultResultItem["ExternUserId"].isNull())
|
||||||
|
resultObject.externUserId = valueResultResultItem["ExternUserId"].asString();
|
||||||
|
if(!valueResultResultItem["Id"].isNull())
|
||||||
|
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||||
|
if(!valueResultResultItem["State"].isNull())
|
||||||
|
resultObject.state = valueResultResultItem["State"].asString();
|
||||||
|
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||||
|
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||||
|
if(!valueResultResultItem["Email"].isNull())
|
||||||
|
resultObject.email = valueResultResultItem["Email"].asString();
|
||||||
|
result_.push_back(resultObject);
|
||||||
|
}
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddGroupMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddGroupMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AddGroupMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<AddGroupMemberResult::ResultItem> AddGroupMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/AddRepositoryMemberRequest.cc
Normal file
85
codeup/src/model/AddRepositoryMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/AddRepositoryMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::AddRepositoryMemberRequest;
|
||||||
|
|
||||||
|
AddRepositoryMemberRequest::AddRepositoryMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/projects/[ProjectId]/members");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
AddRepositoryMemberRequest::~AddRepositoryMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddRepositoryMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddRepositoryMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddRepositoryMemberRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddRepositoryMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long AddRepositoryMemberRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddRepositoryMemberRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
88
codeup/src/model/AddRepositoryMemberResult.cc
Normal file
88
codeup/src/model/AddRepositoryMemberResult.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/AddRepositoryMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
AddRepositoryMemberResult::AddRepositoryMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
AddRepositoryMemberResult::AddRepositoryMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
AddRepositoryMemberResult::~AddRepositoryMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void AddRepositoryMemberResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResultNode = value["Result"]["ResultItem"];
|
||||||
|
for (auto valueResultResultItem : allResultNode)
|
||||||
|
{
|
||||||
|
ResultItem resultObject;
|
||||||
|
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||||
|
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||||
|
if(!valueResultResultItem["ExternUserId"].isNull())
|
||||||
|
resultObject.externUserId = valueResultResultItem["ExternUserId"].asString();
|
||||||
|
if(!valueResultResultItem["Id"].isNull())
|
||||||
|
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||||
|
if(!valueResultResultItem["State"].isNull())
|
||||||
|
resultObject.state = valueResultResultItem["State"].asString();
|
||||||
|
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||||
|
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||||
|
if(!valueResultResultItem["Email"].isNull())
|
||||||
|
resultObject.email = valueResultResultItem["Email"].asString();
|
||||||
|
result_.push_back(resultObject);
|
||||||
|
}
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AddRepositoryMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AddRepositoryMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<AddRepositoryMemberResult::ResultItem> AddRepositoryMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/CreateFileRequest.cc
Normal file
85
codeup/src/model/CreateFileRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/CreateFileRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::CreateFileRequest;
|
||||||
|
|
||||||
|
CreateFileRequest::CreateFileRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/repository/files");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFileRequest::~CreateFileRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateFileRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFileRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFileRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFileRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFileRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFileRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFileRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFileRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long CreateFileRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFileRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
75
codeup/src/model/CreateFileResult.cc
Normal file
75
codeup/src/model/CreateFileResult.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/codeup/model/CreateFileResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
CreateFileResult::CreateFileResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateFileResult::CreateFileResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFileResult::~CreateFileResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateFileResult::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["BranchName"].isNull())
|
||||||
|
result_.branchName = resultNode["BranchName"].asString();
|
||||||
|
if(!resultNode["FilePath"].isNull())
|
||||||
|
result_.filePath = resultNode["FilePath"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFileResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFileResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateFileResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFileResult::Result CreateFileResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
74
codeup/src/model/CreateRepositoryGroupRequest.cc
Normal file
74
codeup/src/model/CreateRepositoryGroupRequest.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/codeup/model/CreateRepositoryGroupRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::CreateRepositoryGroupRequest;
|
||||||
|
|
||||||
|
CreateRepositoryGroupRequest::CreateRepositoryGroupRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/groups");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryGroupRequest::~CreateRepositoryGroupRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateRepositoryGroupRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryGroupRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryGroupRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryGroupRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryGroupRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryGroupRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryGroupRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryGroupRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
95
codeup/src/model/CreateRepositoryGroupResult.cc
Normal file
95
codeup/src/model/CreateRepositoryGroupResult.cc
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/CreateRepositoryGroupResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
CreateRepositoryGroupResult::CreateRepositoryGroupResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateRepositoryGroupResult::CreateRepositoryGroupResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryGroupResult::~CreateRepositoryGroupResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateRepositoryGroupResult::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["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["Description"].isNull())
|
||||||
|
result_.description = resultNode["Description"].asString();
|
||||||
|
if(!resultNode["VisibilityLevel"].isNull())
|
||||||
|
result_.visibilityLevel = resultNode["VisibilityLevel"].asString();
|
||||||
|
if(!resultNode["WebUrl"].isNull())
|
||||||
|
result_.webUrl = resultNode["WebUrl"].asString();
|
||||||
|
if(!resultNode["Name"].isNull())
|
||||||
|
result_.name = resultNode["Name"].asString();
|
||||||
|
if(!resultNode["NameWithNamespace"].isNull())
|
||||||
|
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||||
|
if(!resultNode["Path"].isNull())
|
||||||
|
result_.path = resultNode["Path"].asString();
|
||||||
|
if(!resultNode["PathWithNamespace"].isNull())
|
||||||
|
result_.pathWithNamespace = resultNode["PathWithNamespace"].asString();
|
||||||
|
if(!resultNode["ParentId"].isNull())
|
||||||
|
result_.parentId = std::stol(resultNode["ParentId"].asString());
|
||||||
|
if(!resultNode["OwnerId"].isNull())
|
||||||
|
result_.ownerId = std::stol(resultNode["OwnerId"].asString());
|
||||||
|
if(!resultNode["AvatarUrl"].isNull())
|
||||||
|
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||||
|
if(!resultNode["Type"].isNull())
|
||||||
|
result_.type = resultNode["Type"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int CreateRepositoryGroupResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryGroupResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateRepositoryGroupResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryGroupResult::Result CreateRepositoryGroupResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
96
codeup/src/model/CreateRepositoryRequest.cc
Normal file
96
codeup/src/model/CreateRepositoryRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/CreateRepositoryRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::CreateRepositoryRequest;
|
||||||
|
|
||||||
|
CreateRepositoryRequest::CreateRepositoryRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryRequest::~CreateRepositoryRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateRepositoryRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateRepositoryRequest::getSync()const
|
||||||
|
{
|
||||||
|
return sync_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setSync(bool sync)
|
||||||
|
{
|
||||||
|
sync_ = sync;
|
||||||
|
setParameter("Sync", sync ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateRepositoryRequest::getCreateParentPath()const
|
||||||
|
{
|
||||||
|
return createParentPath_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateRepositoryRequest::setCreateParentPath(bool createParentPath)
|
||||||
|
{
|
||||||
|
createParentPath_ = createParentPath;
|
||||||
|
setParameter("CreateParentPath", createParentPath ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
143
codeup/src/model/CreateRepositoryResult.cc
Normal file
143
codeup/src/model/CreateRepositoryResult.cc
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/codeup/model/CreateRepositoryResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
CreateRepositoryResult::CreateRepositoryResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateRepositoryResult::CreateRepositoryResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryResult::~CreateRepositoryResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateRepositoryResult::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["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["SshUrlToRepo"].isNull())
|
||||||
|
result_.sshUrlToRepo = resultNode["SshUrlToRepo"].asString();
|
||||||
|
if(!resultNode["Description"].isNull())
|
||||||
|
result_.description = resultNode["Description"].asString();
|
||||||
|
if(!resultNode["DefaultBranch"].isNull())
|
||||||
|
result_.defaultBranch = resultNode["DefaultBranch"].asString();
|
||||||
|
if(!resultNode["Public"].isNull())
|
||||||
|
result_._public = resultNode["Public"].asString() == "true";
|
||||||
|
if(!resultNode["VisibilityLevel"].isNull())
|
||||||
|
result_.visibilityLevel = resultNode["VisibilityLevel"].asString();
|
||||||
|
if(!resultNode["HttpUrlToRepo"].isNull())
|
||||||
|
result_.httpUrlToRepo = resultNode["HttpUrlToRepo"].asString();
|
||||||
|
if(!resultNode["WebUrl"].isNull())
|
||||||
|
result_.webUrl = resultNode["WebUrl"].asString();
|
||||||
|
if(!resultNode["Name"].isNull())
|
||||||
|
result_.name = resultNode["Name"].asString();
|
||||||
|
if(!resultNode["NameWithNamespace"].isNull())
|
||||||
|
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||||
|
if(!resultNode["Path"].isNull())
|
||||||
|
result_.path = resultNode["Path"].asString();
|
||||||
|
if(!resultNode["PathWithNamespace"].isNull())
|
||||||
|
result_.pathWithNamespace = resultNode["PathWithNamespace"].asString();
|
||||||
|
if(!resultNode["IssuesEnableStatus"].isNull())
|
||||||
|
result_.issuesEnableStatus = resultNode["IssuesEnableStatus"].asString() == "true";
|
||||||
|
if(!resultNode["MergeRequestEnableStatus"].isNull())
|
||||||
|
result_.mergeRequestEnableStatus = resultNode["MergeRequestEnableStatus"].asString() == "true";
|
||||||
|
if(!resultNode["BuildsEnableStatus"].isNull())
|
||||||
|
result_.buildsEnableStatus = resultNode["BuildsEnableStatus"].asString() == "true";
|
||||||
|
if(!resultNode["WikiEnableStatus"].isNull())
|
||||||
|
result_.wikiEnableStatus = resultNode["WikiEnableStatus"].asString() == "true";
|
||||||
|
if(!resultNode["SnippetsEnableStatus"].isNull())
|
||||||
|
result_.snippetsEnableStatus = resultNode["SnippetsEnableStatus"].asString() == "true";
|
||||||
|
if(!resultNode["CreatedAt"].isNull())
|
||||||
|
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||||
|
if(!resultNode["LastActivityAt"].isNull())
|
||||||
|
result_.lastActivityAt = resultNode["LastActivityAt"].asString();
|
||||||
|
if(!resultNode["CreatorId"].isNull())
|
||||||
|
result_.creatorId = std::stol(resultNode["CreatorId"].asString());
|
||||||
|
if(!resultNode["Archive"].isNull())
|
||||||
|
result_.archive = resultNode["Archive"].asString() == "true";
|
||||||
|
if(!resultNode["AvatarUrl"].isNull())
|
||||||
|
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||||
|
if(!resultNode["DemoProjectStatus"].isNull())
|
||||||
|
result_.demoProjectStatus = resultNode["DemoProjectStatus"].asString() == "true";
|
||||||
|
auto _namespaceNode = resultNode["Namespace"];
|
||||||
|
if(!_namespaceNode["Id"].isNull())
|
||||||
|
result_._namespace.id = std::stol(_namespaceNode["Id"].asString());
|
||||||
|
if(!_namespaceNode["Name"].isNull())
|
||||||
|
result_._namespace.name = _namespaceNode["Name"].asString();
|
||||||
|
if(!_namespaceNode["Path"].isNull())
|
||||||
|
result_._namespace.path = _namespaceNode["Path"].asString();
|
||||||
|
if(!_namespaceNode["OwnerId"].isNull())
|
||||||
|
result_._namespace.ownerId = std::stol(_namespaceNode["OwnerId"].asString());
|
||||||
|
if(!_namespaceNode["CreatedAt"].isNull())
|
||||||
|
result_._namespace.createdAt = _namespaceNode["CreatedAt"].asString();
|
||||||
|
if(!_namespaceNode["UpdatedAt"].isNull())
|
||||||
|
result_._namespace.updatedAt = _namespaceNode["UpdatedAt"].asString();
|
||||||
|
if(!_namespaceNode["Description"].isNull())
|
||||||
|
result_._namespace.description = _namespaceNode["Description"].asString();
|
||||||
|
if(!_namespaceNode["State"].isNull())
|
||||||
|
result_._namespace.state = _namespaceNode["State"].asString();
|
||||||
|
if(!_namespaceNode["Avatar"].isNull())
|
||||||
|
result_._namespace.avatar = _namespaceNode["Avatar"].asString();
|
||||||
|
if(!_namespaceNode["Public"].isNull())
|
||||||
|
result_._namespace._public = _namespaceNode["Public"].asString() == "true";
|
||||||
|
if(!_namespaceNode["VisibilityLevel"].isNull())
|
||||||
|
result_._namespace.visibilityLevel = _namespaceNode["VisibilityLevel"].asString();
|
||||||
|
auto allTagList = resultNode["TagList"]["TagList"];
|
||||||
|
for (auto value : allTagList)
|
||||||
|
result_.tagList.push_back(value.asString());
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int CreateRepositoryResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateRepositoryResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateRepositoryResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateRepositoryResult::Result CreateRepositoryResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
107
codeup/src/model/DeleteFileRequest.cc
Normal file
107
codeup/src/model/DeleteFileRequest.cc
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/DeleteFileRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::DeleteFileRequest;
|
||||||
|
|
||||||
|
DeleteFileRequest::DeleteFileRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/repository/files");
|
||||||
|
setMethod(HttpRequest::Method::Delete);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteFileRequest::~DeleteFileRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getFilePath()const
|
||||||
|
{
|
||||||
|
return filePath_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setFilePath(const std::string& filePath)
|
||||||
|
{
|
||||||
|
filePath_ = filePath;
|
||||||
|
setParameter("FilePath", filePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getCommitMessage()const
|
||||||
|
{
|
||||||
|
return commitMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setCommitMessage(const std::string& commitMessage)
|
||||||
|
{
|
||||||
|
commitMessage_ = commitMessage;
|
||||||
|
setParameter("CommitMessage", commitMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteFileRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileRequest::getBranchName()const
|
||||||
|
{
|
||||||
|
return branchName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteFileRequest::setBranchName(const std::string& branchName)
|
||||||
|
{
|
||||||
|
branchName_ = branchName;
|
||||||
|
setParameter("BranchName", branchName);
|
||||||
|
}
|
||||||
|
|
||||||
75
codeup/src/model/DeleteFileResult.cc
Normal file
75
codeup/src/model/DeleteFileResult.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/codeup/model/DeleteFileResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
DeleteFileResult::DeleteFileResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteFileResult::DeleteFileResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteFileResult::~DeleteFileResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteFileResult::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["BranchName"].isNull())
|
||||||
|
result_.branchName = resultNode["BranchName"].asString();
|
||||||
|
if(!resultNode["FilePath"].isNull())
|
||||||
|
result_.filePath = resultNode["FilePath"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteFileResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteFileResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteFileResult::Result DeleteFileResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/DeleteGroupMemberRequest.cc
Normal file
85
codeup/src/model/DeleteGroupMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/DeleteGroupMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::DeleteGroupMemberRequest;
|
||||||
|
|
||||||
|
DeleteGroupMemberRequest::DeleteGroupMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/groups/[GroupId]/members/[UserId]");
|
||||||
|
setMethod(HttpRequest::Method::Delete);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteGroupMemberRequest::~DeleteGroupMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteGroupMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteGroupMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteGroupMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteGroupMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteGroupMemberRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteGroupMemberRequest::setGroupId(long groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", std::to_string(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteGroupMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteGroupMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteGroupMemberRequest::getUserId()const
|
||||||
|
{
|
||||||
|
return userId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteGroupMemberRequest::setUserId(long userId)
|
||||||
|
{
|
||||||
|
userId_ = userId;
|
||||||
|
setParameter("UserId", std::to_string(userId));
|
||||||
|
}
|
||||||
|
|
||||||
83
codeup/src/model/DeleteGroupMemberResult.cc
Normal file
83
codeup/src/model/DeleteGroupMemberResult.cc
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/DeleteGroupMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
DeleteGroupMemberResult::DeleteGroupMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteGroupMemberResult::DeleteGroupMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteGroupMemberResult::~DeleteGroupMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteGroupMemberResult::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["AccessLevel"].isNull())
|
||||||
|
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||||
|
if(!resultNode["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["ExternUserId"].isNull())
|
||||||
|
result_.externUserId = resultNode["ExternUserId"].asString();
|
||||||
|
if(!resultNode["State"].isNull())
|
||||||
|
result_.state = resultNode["State"].asString();
|
||||||
|
if(!resultNode["AvatarUrl"].isNull())
|
||||||
|
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||||
|
if(!resultNode["Email"].isNull())
|
||||||
|
result_.email = resultNode["Email"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteGroupMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteGroupMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteGroupMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteGroupMemberResult::Result DeleteGroupMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
74
codeup/src/model/DeleteRepositoryGroupRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryGroupRequest.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/codeup/model/DeleteRepositoryGroupRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::DeleteRepositoryGroupRequest;
|
||||||
|
|
||||||
|
DeleteRepositoryGroupRequest::DeleteRepositoryGroupRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/groups/[GroupId]");
|
||||||
|
setMethod(HttpRequest::Method::Delete);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryGroupRequest::~DeleteRepositoryGroupRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryGroupRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryGroupRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryGroupRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryGroupRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteRepositoryGroupRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryGroupRequest::setGroupId(long groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", std::to_string(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryGroupRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryGroupRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
73
codeup/src/model/DeleteRepositoryGroupResult.cc
Normal file
73
codeup/src/model/DeleteRepositoryGroupResult.cc
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/codeup/model/DeleteRepositoryGroupResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
DeleteRepositoryGroupResult::DeleteRepositoryGroupResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteRepositoryGroupResult::DeleteRepositoryGroupResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryGroupResult::~DeleteRepositoryGroupResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteRepositoryGroupResult::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["Result"].isNull())
|
||||||
|
result_.result = resultNode["Result"].asString() == "true";
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryGroupResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryGroupResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteRepositoryGroupResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryGroupResult::Result DeleteRepositoryGroupResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/DeleteRepositoryMemberRequest.cc
Normal file
85
codeup/src/model/DeleteRepositoryMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/DeleteRepositoryMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::DeleteRepositoryMemberRequest;
|
||||||
|
|
||||||
|
DeleteRepositoryMemberRequest::DeleteRepositoryMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/members/[UserId]");
|
||||||
|
setMethod(HttpRequest::Method::Delete);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryMemberRequest::~DeleteRepositoryMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteRepositoryMemberRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteRepositoryMemberRequest::getUserId()const
|
||||||
|
{
|
||||||
|
return userId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberRequest::setUserId(long userId)
|
||||||
|
{
|
||||||
|
userId_ = userId;
|
||||||
|
setParameter("UserId", std::to_string(userId));
|
||||||
|
}
|
||||||
|
|
||||||
89
codeup/src/model/DeleteRepositoryMemberResult.cc
Normal file
89
codeup/src/model/DeleteRepositoryMemberResult.cc
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/DeleteRepositoryMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
DeleteRepositoryMemberResult::DeleteRepositoryMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteRepositoryMemberResult::DeleteRepositoryMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryMemberResult::~DeleteRepositoryMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteRepositoryMemberResult::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["AccessLevel"].isNull())
|
||||||
|
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||||
|
if(!resultNode["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["CreatedAt"].isNull())
|
||||||
|
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||||
|
if(!resultNode["UpdatedAt"].isNull())
|
||||||
|
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||||
|
if(!resultNode["SourceId"].isNull())
|
||||||
|
result_.sourceId = std::stol(resultNode["SourceId"].asString());
|
||||||
|
if(!resultNode["SourceType"].isNull())
|
||||||
|
result_.sourceType = resultNode["SourceType"].asString();
|
||||||
|
if(!resultNode["UserId"].isNull())
|
||||||
|
result_.userId = std::stol(resultNode["UserId"].asString());
|
||||||
|
if(!resultNode["NotificationLevel"].isNull())
|
||||||
|
result_.notificationLevel = std::stoi(resultNode["NotificationLevel"].asString());
|
||||||
|
if(!resultNode["Message"].isNull())
|
||||||
|
result_.message = resultNode["Message"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteRepositoryMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryMemberResult::Result DeleteRepositoryMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
74
codeup/src/model/DeleteRepositoryRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryRequest.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/codeup/model/DeleteRepositoryRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::DeleteRepositoryRequest;
|
||||||
|
|
||||||
|
DeleteRepositoryRequest::DeleteRepositoryRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/remove");
|
||||||
|
setMethod(HttpRequest::Method::Delete);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryRequest::~DeleteRepositoryRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long DeleteRepositoryRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteRepositoryRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
73
codeup/src/model/DeleteRepositoryResult.cc
Normal file
73
codeup/src/model/DeleteRepositoryResult.cc
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/codeup/model/DeleteRepositoryResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
DeleteRepositoryResult::DeleteRepositoryResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteRepositoryResult::DeleteRepositoryResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryResult::~DeleteRepositoryResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteRepositoryResult::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["Result"].isNull())
|
||||||
|
result_.result = resultNode["Result"].asString() == "true";
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteRepositoryResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteRepositoryResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteRepositoryResult::Result DeleteRepositoryResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
74
codeup/src/model/GetCodeupOrganizationRequest.cc
Normal file
74
codeup/src/model/GetCodeupOrganizationRequest.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/codeup/model/GetCodeupOrganizationRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::GetCodeupOrganizationRequest;
|
||||||
|
|
||||||
|
GetCodeupOrganizationRequest::GetCodeupOrganizationRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/organization/[OrganizationIdentity]");
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetCodeupOrganizationRequest::~GetCodeupOrganizationRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetCodeupOrganizationRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetCodeupOrganizationRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationRequest::getOrganizationIdentity()const
|
||||||
|
{
|
||||||
|
return organizationIdentity_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetCodeupOrganizationRequest::setOrganizationIdentity(const std::string& organizationIdentity)
|
||||||
|
{
|
||||||
|
organizationIdentity_ = organizationIdentity;
|
||||||
|
setParameter("OrganizationIdentity", organizationIdentity);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetCodeupOrganizationRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/GetCodeupOrganizationResult.cc
Normal file
85
codeup/src/model/GetCodeupOrganizationResult.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/GetCodeupOrganizationResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
GetCodeupOrganizationResult::GetCodeupOrganizationResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetCodeupOrganizationResult::GetCodeupOrganizationResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetCodeupOrganizationResult::~GetCodeupOrganizationResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetCodeupOrganizationResult::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["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["OrganizationId"].isNull())
|
||||||
|
result_.organizationId = resultNode["OrganizationId"].asString();
|
||||||
|
if(!resultNode["Path"].isNull())
|
||||||
|
result_.path = resultNode["Path"].asString();
|
||||||
|
if(!resultNode["CreatedAt"].isNull())
|
||||||
|
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||||
|
if(!resultNode["UpdatedAt"].isNull())
|
||||||
|
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||||
|
if(!resultNode["NamespaceId"].isNull())
|
||||||
|
result_.namespaceId = std::stol(resultNode["NamespaceId"].asString());
|
||||||
|
if(!resultNode["UserRole"].isNull())
|
||||||
|
result_.userRole = resultNode["UserRole"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetCodeupOrganizationResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetCodeupOrganizationResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
GetCodeupOrganizationResult::Result GetCodeupOrganizationResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
118
codeup/src/model/GetFileBlobsRequest.cc
Normal file
118
codeup/src/model/GetFileBlobsRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/GetFileBlobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::GetFileBlobsRequest;
|
||||||
|
|
||||||
|
GetFileBlobsRequest::GetFileBlobsRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/projects/[ProjectId]/repository/blobs");
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetFileBlobsRequest::~GetFileBlobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetFileBlobsRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsRequest::getRef()const
|
||||||
|
{
|
||||||
|
return ref_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setRef(const std::string& ref)
|
||||||
|
{
|
||||||
|
ref_ = ref;
|
||||||
|
setParameter("Ref", ref);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsRequest::getFilePath()const
|
||||||
|
{
|
||||||
|
return filePath_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setFilePath(const std::string& filePath)
|
||||||
|
{
|
||||||
|
filePath_ = filePath;
|
||||||
|
setParameter("FilePath", filePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
long GetFileBlobsRequest::getFrom()const
|
||||||
|
{
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setFrom(long from)
|
||||||
|
{
|
||||||
|
from_ = from;
|
||||||
|
setParameter("From", std::to_string(from));
|
||||||
|
}
|
||||||
|
|
||||||
|
long GetFileBlobsRequest::getTo()const
|
||||||
|
{
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setTo(long to)
|
||||||
|
{
|
||||||
|
to_ = to;
|
||||||
|
setParameter("To", std::to_string(to));
|
||||||
|
}
|
||||||
|
|
||||||
|
long GetFileBlobsRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetFileBlobsRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
75
codeup/src/model/GetFileBlobsResult.cc
Normal file
75
codeup/src/model/GetFileBlobsResult.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/codeup/model/GetFileBlobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
GetFileBlobsResult::GetFileBlobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetFileBlobsResult::GetFileBlobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetFileBlobsResult::~GetFileBlobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetFileBlobsResult::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["Content"].isNull())
|
||||||
|
result_.content = resultNode["Content"].asString();
|
||||||
|
if(!resultNode["TotalLines"].isNull())
|
||||||
|
result_.totalLines = std::stoi(resultNode["TotalLines"].asString());
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetFileBlobsResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetFileBlobsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
GetFileBlobsResult::Result GetFileBlobsResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
96
codeup/src/model/ListGroupMemberRequest.cc
Normal file
96
codeup/src/model/ListGroupMemberRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListGroupMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::ListGroupMemberRequest;
|
||||||
|
|
||||||
|
ListGroupMemberRequest::ListGroupMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/groups/[GroupId]/members");
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListGroupMemberRequest::~ListGroupMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListGroupMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListGroupMemberRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setGroupId(long groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", std::to_string(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListGroupMemberRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setPageSize(long pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListGroupMemberRequest::getPage()const
|
||||||
|
{
|
||||||
|
return page_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupMemberRequest::setPage(long page)
|
||||||
|
{
|
||||||
|
page_ = page;
|
||||||
|
setParameter("Page", std::to_string(page));
|
||||||
|
}
|
||||||
|
|
||||||
88
codeup/src/model/ListGroupMemberResult.cc
Normal file
88
codeup/src/model/ListGroupMemberResult.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListGroupMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
ListGroupMemberResult::ListGroupMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListGroupMemberResult::ListGroupMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListGroupMemberResult::~ListGroupMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListGroupMemberResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResultNode = value["Result"]["ResultItem"];
|
||||||
|
for (auto valueResultResultItem : allResultNode)
|
||||||
|
{
|
||||||
|
ResultItem resultObject;
|
||||||
|
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||||
|
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||||
|
if(!valueResultResultItem["ExternUserId"].isNull())
|
||||||
|
resultObject.externUserId = valueResultResultItem["ExternUserId"].asString();
|
||||||
|
if(!valueResultResultItem["Id"].isNull())
|
||||||
|
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||||
|
if(!valueResultResultItem["State"].isNull())
|
||||||
|
resultObject.state = valueResultResultItem["State"].asString();
|
||||||
|
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||||
|
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||||
|
if(!valueResultResultItem["Email"].isNull())
|
||||||
|
resultObject.email = valueResultResultItem["Email"].asString();
|
||||||
|
result_.push_back(resultObject);
|
||||||
|
}
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListGroupMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListGroupMemberResult::ResultItem> ListGroupMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
107
codeup/src/model/ListRepositoryMemberRequest.cc
Normal file
107
codeup/src/model/ListRepositoryMemberRequest.cc
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListRepositoryMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::ListRepositoryMemberRequest;
|
||||||
|
|
||||||
|
ListRepositoryMemberRequest::ListRepositoryMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/members");
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListRepositoryMemberRequest::~ListRepositoryMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberRequest::getQuery()const
|
||||||
|
{
|
||||||
|
return query_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setQuery(const std::string& query)
|
||||||
|
{
|
||||||
|
query_ = query;
|
||||||
|
setParameter("Query", query);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListRepositoryMemberRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setPageSize(long pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListRepositoryMemberRequest::getPage()const
|
||||||
|
{
|
||||||
|
return page_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setPage(long page)
|
||||||
|
{
|
||||||
|
page_ = page;
|
||||||
|
setParameter("Page", std::to_string(page));
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListRepositoryMemberRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryMemberRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
88
codeup/src/model/ListRepositoryMemberResult.cc
Normal file
88
codeup/src/model/ListRepositoryMemberResult.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListRepositoryMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
ListRepositoryMemberResult::ListRepositoryMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListRepositoryMemberResult::ListRepositoryMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListRepositoryMemberResult::~ListRepositoryMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListRepositoryMemberResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResultNode = value["Result"]["ResultItem"];
|
||||||
|
for (auto valueResultResultItem : allResultNode)
|
||||||
|
{
|
||||||
|
ResultItem resultObject;
|
||||||
|
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||||
|
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||||
|
if(!valueResultResultItem["ExternUserId"].isNull())
|
||||||
|
resultObject.externUserId = valueResultResultItem["ExternUserId"].asString();
|
||||||
|
if(!valueResultResultItem["Id"].isNull())
|
||||||
|
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||||
|
if(!valueResultResultItem["State"].isNull())
|
||||||
|
resultObject.state = valueResultResultItem["State"].asString();
|
||||||
|
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||||
|
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||||
|
if(!valueResultResultItem["Email"].isNull())
|
||||||
|
resultObject.email = valueResultResultItem["Email"].asString();
|
||||||
|
result_.push_back(resultObject);
|
||||||
|
}
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListRepositoryMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListRepositoryMemberResult::ResultItem> ListRepositoryMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
107
codeup/src/model/ListRepositoryTreeRequest.cc
Normal file
107
codeup/src/model/ListRepositoryTreeRequest.cc
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListRepositoryTreeRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::ListRepositoryTreeRequest;
|
||||||
|
|
||||||
|
ListRepositoryTreeRequest::ListRepositoryTreeRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/projects/[ProjectId]/repository/tree");
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListRepositoryTreeRequest::~ListRepositoryTreeRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getPath()const
|
||||||
|
{
|
||||||
|
return path_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setPath(const std::string& path)
|
||||||
|
{
|
||||||
|
path_ = path;
|
||||||
|
setParameter("Path", path);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListRepositoryTreeRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeRequest::getRefName()const
|
||||||
|
{
|
||||||
|
return refName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListRepositoryTreeRequest::setRefName(const std::string& refName)
|
||||||
|
{
|
||||||
|
refName_ = refName;
|
||||||
|
setParameter("RefName", refName);
|
||||||
|
}
|
||||||
|
|
||||||
86
codeup/src/model/ListRepositoryTreeResult.cc
Normal file
86
codeup/src/model/ListRepositoryTreeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/ListRepositoryTreeResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
ListRepositoryTreeResult::ListRepositoryTreeResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListRepositoryTreeResult::ListRepositoryTreeResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListRepositoryTreeResult::~ListRepositoryTreeResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListRepositoryTreeResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResultNode = value["Result"]["ResultItem"];
|
||||||
|
for (auto valueResultResultItem : allResultNode)
|
||||||
|
{
|
||||||
|
ResultItem resultObject;
|
||||||
|
if(!valueResultResultItem["Path"].isNull())
|
||||||
|
resultObject.path = valueResultResultItem["Path"].asString();
|
||||||
|
if(!valueResultResultItem["Id"].isNull())
|
||||||
|
resultObject.id = valueResultResultItem["Id"].asString();
|
||||||
|
if(!valueResultResultItem["Name"].isNull())
|
||||||
|
resultObject.name = valueResultResultItem["Name"].asString();
|
||||||
|
if(!valueResultResultItem["Mode"].isNull())
|
||||||
|
resultObject.mode = valueResultResultItem["Mode"].asString();
|
||||||
|
if(!valueResultResultItem["Type"].isNull())
|
||||||
|
resultObject.type = valueResultResultItem["Type"].asString();
|
||||||
|
result_.push_back(resultObject);
|
||||||
|
}
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListRepositoryTreeResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListRepositoryTreeResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListRepositoryTreeResult::ResultItem> ListRepositoryTreeResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
74
codeup/src/model/UpdateFileRequest.cc
Normal file
74
codeup/src/model/UpdateFileRequest.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/codeup/model/UpdateFileRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::UpdateFileRequest;
|
||||||
|
|
||||||
|
UpdateFileRequest::UpdateFileRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v4/projects/[ProjectId]/repository/files");
|
||||||
|
setMethod(HttpRequest::Method::Put);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateFileRequest::~UpdateFileRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string UpdateFileRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFileRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFileRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFileRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFileRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFileRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateFileRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFileRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
75
codeup/src/model/UpdateFileResult.cc
Normal file
75
codeup/src/model/UpdateFileResult.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/codeup/model/UpdateFileResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
UpdateFileResult::UpdateFileResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateFileResult::UpdateFileResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateFileResult::~UpdateFileResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateFileResult::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["BranchName"].isNull())
|
||||||
|
result_.branchName = resultNode["BranchName"].asString();
|
||||||
|
if(!resultNode["FilePath"].isNull())
|
||||||
|
result_.filePath = resultNode["FilePath"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFileResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFileResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UpdateFileResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateFileResult::Result UpdateFileResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/UpdateGroupMemberRequest.cc
Normal file
85
codeup/src/model/UpdateGroupMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/UpdateGroupMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::UpdateGroupMemberRequest;
|
||||||
|
|
||||||
|
UpdateGroupMemberRequest::UpdateGroupMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/groups/[GroupId]/members/[UserId]");
|
||||||
|
setMethod(HttpRequest::Method::Put);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateGroupMemberRequest::~UpdateGroupMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string UpdateGroupMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateGroupMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateGroupMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateGroupMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateGroupMemberRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateGroupMemberRequest::setGroupId(long groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", std::to_string(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateGroupMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateGroupMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateGroupMemberRequest::getUserId()const
|
||||||
|
{
|
||||||
|
return userId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateGroupMemberRequest::setUserId(long userId)
|
||||||
|
{
|
||||||
|
userId_ = userId;
|
||||||
|
setParameter("UserId", std::to_string(userId));
|
||||||
|
}
|
||||||
|
|
||||||
83
codeup/src/model/UpdateGroupMemberResult.cc
Normal file
83
codeup/src/model/UpdateGroupMemberResult.cc
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/UpdateGroupMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
UpdateGroupMemberResult::UpdateGroupMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateGroupMemberResult::UpdateGroupMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateGroupMemberResult::~UpdateGroupMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateGroupMemberResult::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["AccessLevel"].isNull())
|
||||||
|
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||||
|
if(!resultNode["ExternUserId"].isNull())
|
||||||
|
result_.externUserId = resultNode["ExternUserId"].asString();
|
||||||
|
if(!resultNode["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["State"].isNull())
|
||||||
|
result_.state = resultNode["State"].asString();
|
||||||
|
if(!resultNode["AvatarUrl"].isNull())
|
||||||
|
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||||
|
if(!resultNode["Email"].isNull())
|
||||||
|
result_.email = resultNode["Email"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateGroupMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateGroupMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UpdateGroupMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateGroupMemberResult::Result UpdateGroupMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
85
codeup/src/model/UpdateRepositoryMemberRequest.cc
Normal file
85
codeup/src/model/UpdateRepositoryMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/UpdateRepositoryMemberRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Codeup::Model::UpdateRepositoryMemberRequest;
|
||||||
|
|
||||||
|
UpdateRepositoryMemberRequest::UpdateRepositoryMemberRequest() :
|
||||||
|
RoaServiceRequest("codeup", "2020-04-14")
|
||||||
|
{
|
||||||
|
setResourcePath("/api/v3/projects/[ProjectId]/members/[UserId]");
|
||||||
|
setMethod(HttpRequest::Method::Put);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateRepositoryMemberRequest::~UpdateRepositoryMemberRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string UpdateRepositoryMemberRequest::getOrganizationId()const
|
||||||
|
{
|
||||||
|
return organizationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||||
|
{
|
||||||
|
organizationId_ = organizationId;
|
||||||
|
setParameter("OrganizationId", organizationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateRepositoryMemberRequest::getSubUserId()const
|
||||||
|
{
|
||||||
|
return subUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberRequest::setSubUserId(const std::string& subUserId)
|
||||||
|
{
|
||||||
|
subUserId_ = subUserId;
|
||||||
|
setParameter("SubUserId", subUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateRepositoryMemberRequest::getAccessToken()const
|
||||||
|
{
|
||||||
|
return accessToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberRequest::setAccessToken(const std::string& accessToken)
|
||||||
|
{
|
||||||
|
accessToken_ = accessToken;
|
||||||
|
setParameter("AccessToken", accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateRepositoryMemberRequest::getProjectId()const
|
||||||
|
{
|
||||||
|
return projectId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberRequest::setProjectId(long projectId)
|
||||||
|
{
|
||||||
|
projectId_ = projectId;
|
||||||
|
setParameter("ProjectId", std::to_string(projectId));
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpdateRepositoryMemberRequest::getUserId()const
|
||||||
|
{
|
||||||
|
return userId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberRequest::setUserId(long userId)
|
||||||
|
{
|
||||||
|
userId_ = userId;
|
||||||
|
setParameter("UserId", std::to_string(userId));
|
||||||
|
}
|
||||||
|
|
||||||
83
codeup/src/model/UpdateRepositoryMemberResult.cc
Normal file
83
codeup/src/model/UpdateRepositoryMemberResult.cc
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
* 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/codeup/model/UpdateRepositoryMemberResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Codeup;
|
||||||
|
using namespace AlibabaCloud::Codeup::Model;
|
||||||
|
|
||||||
|
UpdateRepositoryMemberResult::UpdateRepositoryMemberResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateRepositoryMemberResult::UpdateRepositoryMemberResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateRepositoryMemberResult::~UpdateRepositoryMemberResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateRepositoryMemberResult::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["AccessLevel"].isNull())
|
||||||
|
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||||
|
if(!resultNode["ExternUserId"].isNull())
|
||||||
|
result_.externUserId = resultNode["ExternUserId"].asString();
|
||||||
|
if(!resultNode["Id"].isNull())
|
||||||
|
result_.id = std::stol(resultNode["Id"].asString());
|
||||||
|
if(!resultNode["State"].isNull())
|
||||||
|
result_.state = resultNode["State"].asString();
|
||||||
|
if(!resultNode["AvatarUrl"].isNull())
|
||||||
|
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||||
|
if(!resultNode["Email"].isNull())
|
||||||
|
result_.email = resultNode["Email"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateRepositoryMemberResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateRepositoryMemberResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UpdateRepositoryMemberResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateRepositoryMemberResult::Result UpdateRepositoryMemberResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user