Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33986d6ed1 | ||
|
|
cb3390b9f5 | ||
|
|
686a7259ce | ||
|
|
273bf64803 | ||
|
|
a1a8ca58a8 | ||
|
|
0d843e2d71 | ||
|
|
58ae8a9ac1 | ||
|
|
c175a0587d | ||
|
|
c5ef4b1c88 | ||
|
|
5a9569e804 | ||
|
|
f0779e31fe | ||
|
|
0831be3ba4 | ||
|
|
0c750a10f5 | ||
|
|
2f32d7f5fd | ||
|
|
2cf121437d | ||
|
|
dd14b71d04 | ||
|
|
85d11c3bba | ||
|
|
bba9532ea7 | ||
|
|
c9f3f1182e | ||
|
|
63f8b47b8d | ||
|
|
e3c9867b49 | ||
|
|
cef7d9d526 | ||
|
|
501fec720e | ||
|
|
031a93374f | ||
|
|
8fe6dfd981 | ||
|
|
0dc8a66e75 | ||
|
|
dcd246f4ed | ||
|
|
82ba7e55bb | ||
|
|
009add7f30 | ||
|
|
032fbad258 | ||
|
|
e5ca2d25d5 |
110
CHANGELOG
110
CHANGELOG
@@ -1,3 +1,113 @@
|
||||
2019-11-08 Version 1.36.167
|
||||
- Add DescribeJobErrorCode.
|
||||
|
||||
2019-11-05 Version 1.36.166
|
||||
- Add OperateBlackNo.
|
||||
|
||||
2019-11-02 Version 1.36.165
|
||||
- Generated 2017-05-25 for `Dyvmsapi`.
|
||||
|
||||
2019-10-31 Version 1.36.164
|
||||
- Initial construction.
|
||||
- Public beta version.
|
||||
- Supported AliyunController for Interface.
|
||||
- Supported ConsoleController for Interface.
|
||||
- Supported AccountController for Interface.
|
||||
|
||||
2019-10-31 Version 1.36.163
|
||||
- Initial construction.
|
||||
- Public beta version.
|
||||
- Supported AliyunController for Interface.
|
||||
- Supported ConsoleController for Interface.
|
||||
- Supported AccountController for Interface.
|
||||
|
||||
2019-10-29 Version 1.36.162
|
||||
- Add a new Alibaba Cloud Bill API named QueryAccountBill.
|
||||
|
||||
2019-10-25 Version 1.36.161
|
||||
- Initial construction.
|
||||
- Public beta version.
|
||||
- Supported AliyunController for Interface.
|
||||
- Supported ConsoleController for Interface.
|
||||
- Supported AccountController for Interface.
|
||||
|
||||
2019-10-25 Version 1.36.160
|
||||
- Supported query push records.
|
||||
|
||||
2019-10-25 Version 1.36.159
|
||||
- Add DescribeDBClusterPerformance, DescribeDBNodePerformance for performance.
|
||||
|
||||
2019-10-24 Version 1.36.158
|
||||
- Generated 2017-12-14 for `BssOpenApi`.
|
||||
|
||||
2019-10-23 Version 1.36.157
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-23 Version 1.36.156
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-23 Version 1.36.155
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-22 Version 1.36.154
|
||||
- RunInstances support AutoSnapshotPolicyId.
|
||||
|
||||
2019-10-22 Version 1.36.153
|
||||
- Supported ExternalId IMM.
|
||||
|
||||
2019-10-21 Version 1.36.152
|
||||
- Release first version.
|
||||
|
||||
2019-10-18 Version 1.36.151
|
||||
- Generated 2019-09-10 for `DnsKnocker`.
|
||||
|
||||
2019-10-16 Version 1.36.150
|
||||
- Add ListTagResources OpenApi.
|
||||
- Add TagResources OpenApi.
|
||||
- Add UntagResources OpenApi.
|
||||
- Add ModifyDBInstanceAutoUpgradeMinorVersion OpenApi.
|
||||
|
||||
2019-10-14 Version 1.36.149
|
||||
- Support continuous pushing.
|
||||
|
||||
2019-10-09 Version 1.36.148
|
||||
- Add VideoCancelScan Api.
|
||||
|
||||
2019-10-09 Version 1.36.147
|
||||
- Support API RecognizeImageColor.
|
||||
- Support API DetectImageElements.
|
||||
- Support API RecolorImage.
|
||||
- Support API SegmentImage.
|
||||
- Support API ChangeImageSize.
|
||||
- Support API ExtendImageStyle.
|
||||
- Support API RecognizeImageStyle.
|
||||
- Support API MakeSuperResolution.
|
||||
|
||||
2019-10-08 Version 1.36.146
|
||||
- Supported Grab Frame IMM.
|
||||
|
||||
2019-10-08 Version 1.36.145
|
||||
- Supported API MassPush for Push Message or Notice.
|
||||
|
||||
2019-10-08 Version 1.36.144
|
||||
- Generated 2016-01-20 for `Kms`.
|
||||
|
||||
2019-09-26 Version 1.36.143
|
||||
- Supported RingConfig for BindAxb,BindAxn,BindAxg,BindAxnExtension.
|
||||
- Add QuerySubsId.
|
||||
|
||||
2019-09-23 Version 1.36.142
|
||||
- Add param, DescribePrice supprot ReservedInstance.
|
||||
|
||||
|
||||
130
aliyuncvc/CMakeLists.txt
Normal file
130
aliyuncvc/CMakeLists.txt
Normal file
@@ -0,0 +1,130 @@
|
||||
#
|
||||
# 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(aliyuncvc_public_header
|
||||
include/alibabacloud/aliyuncvc/AliyuncvcClient.h
|
||||
include/alibabacloud/aliyuncvc/AliyuncvcExport.h )
|
||||
|
||||
set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/ActiveMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ActiveMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateEvaluationRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateEvaluationResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListEvaluationsRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListEvaluationsResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListMembersRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListMembersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListUsersRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListUsersResult.h )
|
||||
|
||||
set(aliyuncvc_src
|
||||
src/AliyuncvcClient.cc
|
||||
src/model/ActiveMeetingRequest.cc
|
||||
src/model/ActiveMeetingResult.cc
|
||||
src/model/CreateEvaluationRequest.cc
|
||||
src/model/CreateEvaluationResult.cc
|
||||
src/model/CreateMeetingRequest.cc
|
||||
src/model/CreateMeetingResult.cc
|
||||
src/model/CreateUserRequest.cc
|
||||
src/model/CreateUserResult.cc
|
||||
src/model/DeleteMeetingRequest.cc
|
||||
src/model/DeleteMeetingResult.cc
|
||||
src/model/DeleteUserRequest.cc
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/GetMeetingRequest.cc
|
||||
src/model/GetMeetingResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/JoinMeetingRequest.cc
|
||||
src/model/JoinMeetingResult.cc
|
||||
src/model/ListEvaluationsRequest.cc
|
||||
src/model/ListEvaluationsResult.cc
|
||||
src/model/ListMembersRequest.cc
|
||||
src/model/ListMembersResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc )
|
||||
|
||||
add_library(aliyuncvc ${LIB_TYPE}
|
||||
${aliyuncvc_public_header}
|
||||
${aliyuncvc_public_header_model}
|
||||
${aliyuncvc_src})
|
||||
|
||||
set_target_properties(aliyuncvc
|
||||
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}aliyuncvc
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aliyuncvc
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ALIYUNCVC_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aliyuncvc
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aliyuncvc
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aliyuncvc
|
||||
jsoncpp)
|
||||
target_include_directories(aliyuncvc
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aliyuncvc
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aliyuncvc
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aliyuncvc
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aliyuncvc
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aliyuncvc_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aliyuncvc)
|
||||
install(FILES ${aliyuncvc_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aliyuncvc/model)
|
||||
install(TARGETS aliyuncvc
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
142
aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h
Normal file
142
aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_ALIYUNCVCCLIENT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_ALIYUNCVCCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AliyuncvcExport.h"
|
||||
#include "model/ActiveMeetingRequest.h"
|
||||
#include "model/ActiveMeetingResult.h"
|
||||
#include "model/CreateEvaluationRequest.h"
|
||||
#include "model/CreateEvaluationResult.h"
|
||||
#include "model/CreateMeetingRequest.h"
|
||||
#include "model/CreateMeetingResult.h"
|
||||
#include "model/CreateUserRequest.h"
|
||||
#include "model/CreateUserResult.h"
|
||||
#include "model/DeleteMeetingRequest.h"
|
||||
#include "model/DeleteMeetingResult.h"
|
||||
#include "model/DeleteUserRequest.h"
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/GetMeetingRequest.h"
|
||||
#include "model/GetMeetingResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/JoinMeetingRequest.h"
|
||||
#include "model/JoinMeetingResult.h"
|
||||
#include "model/ListEvaluationsRequest.h"
|
||||
#include "model/ListEvaluationsResult.h"
|
||||
#include "model/ListMembersRequest.h"
|
||||
#include "model/ListMembersResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT AliyuncvcClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ActiveMeetingResult> ActiveMeetingOutcome;
|
||||
typedef std::future<ActiveMeetingOutcome> ActiveMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ActiveMeetingRequest&, const ActiveMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActiveMeetingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateEvaluationResult> CreateEvaluationOutcome;
|
||||
typedef std::future<CreateEvaluationOutcome> CreateEvaluationOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateEvaluationRequest&, const CreateEvaluationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEvaluationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMeetingResult> CreateMeetingOutcome;
|
||||
typedef std::future<CreateMeetingOutcome> CreateMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateMeetingRequest&, const CreateMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMeetingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUserResult> CreateUserOutcome;
|
||||
typedef std::future<CreateUserOutcome> CreateUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateUserRequest&, const CreateUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMeetingResult> DeleteMeetingOutcome;
|
||||
typedef std::future<DeleteMeetingOutcome> DeleteMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteMeetingRequest&, const DeleteMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMeetingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMeetingResult> GetMeetingOutcome;
|
||||
typedef std::future<GetMeetingOutcome> GetMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetMeetingRequest&, const GetMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMeetingAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::JoinMeetingResult> JoinMeetingOutcome;
|
||||
typedef std::future<JoinMeetingOutcome> JoinMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::JoinMeetingRequest&, const JoinMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JoinMeetingAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListEvaluationsResult> ListEvaluationsOutcome;
|
||||
typedef std::future<ListEvaluationsOutcome> ListEvaluationsOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListEvaluationsRequest&, const ListEvaluationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEvaluationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMembersResult> ListMembersOutcome;
|
||||
typedef std::future<ListMembersOutcome> ListMembersOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListMembersRequest&, const ListMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
|
||||
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
|
||||
|
||||
AliyuncvcClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AliyuncvcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AliyuncvcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AliyuncvcClient();
|
||||
ActiveMeetingOutcome activeMeeting(const Model::ActiveMeetingRequest &request)const;
|
||||
void activeMeetingAsync(const Model::ActiveMeetingRequest& request, const ActiveMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ActiveMeetingOutcomeCallable activeMeetingCallable(const Model::ActiveMeetingRequest& request) const;
|
||||
CreateEvaluationOutcome createEvaluation(const Model::CreateEvaluationRequest &request)const;
|
||||
void createEvaluationAsync(const Model::CreateEvaluationRequest& request, const CreateEvaluationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateEvaluationOutcomeCallable createEvaluationCallable(const Model::CreateEvaluationRequest& request) const;
|
||||
CreateMeetingOutcome createMeeting(const Model::CreateMeetingRequest &request)const;
|
||||
void createMeetingAsync(const Model::CreateMeetingRequest& request, const CreateMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMeetingOutcomeCallable createMeetingCallable(const Model::CreateMeetingRequest& request) const;
|
||||
CreateUserOutcome createUser(const Model::CreateUserRequest &request)const;
|
||||
void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const;
|
||||
DeleteMeetingOutcome deleteMeeting(const Model::DeleteMeetingRequest &request)const;
|
||||
void deleteMeetingAsync(const Model::DeleteMeetingRequest& request, const DeleteMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMeetingOutcomeCallable deleteMeetingCallable(const Model::DeleteMeetingRequest& request) const;
|
||||
DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const;
|
||||
void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const;
|
||||
GetMeetingOutcome getMeeting(const Model::GetMeetingRequest &request)const;
|
||||
void getMeetingAsync(const Model::GetMeetingRequest& request, const GetMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMeetingOutcomeCallable getMeetingCallable(const Model::GetMeetingRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
JoinMeetingOutcome joinMeeting(const Model::JoinMeetingRequest &request)const;
|
||||
void joinMeetingAsync(const Model::JoinMeetingRequest& request, const JoinMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
JoinMeetingOutcomeCallable joinMeetingCallable(const Model::JoinMeetingRequest& request) const;
|
||||
ListEvaluationsOutcome listEvaluations(const Model::ListEvaluationsRequest &request)const;
|
||||
void listEvaluationsAsync(const Model::ListEvaluationsRequest& request, const ListEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListEvaluationsOutcomeCallable listEvaluationsCallable(const Model::ListEvaluationsRequest& request) const;
|
||||
ListMembersOutcome listMembers(const Model::ListMembersRequest &request)const;
|
||||
void listMembersAsync(const Model::ListMembersRequest& request, const ListMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMembersOutcomeCallable listMembersCallable(const Model::ListMembersRequest& request) const;
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_ALIYUNCVCCLIENT_H_
|
||||
32
aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcExport.h
Normal file
32
aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcExport.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_ALIYUNCVC_ALIYUNCVCEXPORT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_ALIYUNCVCEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ALIYUNCVC_LIBRARY)
|
||||
# define ALIBABACLOUD_ALIYUNCVC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ALIYUNCVC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ALIYUNCVC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_ALIYUNCVCEXPORT_H_
|
||||
@@ -14,41 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_ACTIVEMEETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_ACTIVEMEETINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetTagJobRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ActiveMeetingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagJobRequest();
|
||||
~GetTagJobRequest();
|
||||
ActiveMeetingRequest();
|
||||
~ActiveMeetingRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getMeetingCode()const;
|
||||
void setMeetingCode(const std::string& meetingCode);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string jobId_;
|
||||
std::string meetingUUID_;
|
||||
std::string meetingCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ACTIVEMEETINGREQUEST_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_ALIYUNCVC_MODEL_ACTIVEMEETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_ACTIVEMEETINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ActiveMeetingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
std::string meetingCode;
|
||||
long validTime;
|
||||
};
|
||||
|
||||
|
||||
ActiveMeetingResult();
|
||||
explicit ActiveMeetingResult(const std::string &payload);
|
||||
~ActiveMeetingResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ACTIVEMEETINGRESULT_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_ALIYUNCVC_MODEL_CREATEEVALUATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEEVALUATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateEvaluationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateEvaluationRequest();
|
||||
~CreateEvaluationRequest();
|
||||
|
||||
long getCreateTime()const;
|
||||
void setCreateTime(long createTime);
|
||||
std::string getMemo()const;
|
||||
void setMemo(const std::string& memo);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getMemberUUID()const;
|
||||
void setMemberUUID(const std::string& memberUUID);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getEvaluation()const;
|
||||
void setEvaluation(const std::string& evaluation);
|
||||
std::string getScore()const;
|
||||
void setScore(const std::string& score);
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
|
||||
private:
|
||||
long createTime_;
|
||||
std::string memo_;
|
||||
std::string description_;
|
||||
std::string memberUUID_;
|
||||
std::string userId_;
|
||||
std::string evaluation_;
|
||||
std::string score_;
|
||||
std::string meetingUUID_;
|
||||
std::string appId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEEVALUATIONREQUEST_H_
|
||||
@@ -14,36 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEEVALUATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEEVALUATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateEvaluationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeletePhotoProcessTaskResult();
|
||||
explicit DeletePhotoProcessTaskResult(const std::string &payload);
|
||||
~DeletePhotoProcessTaskResult();
|
||||
CreateEvaluationResult();
|
||||
explicit CreateEvaluationResult(const std::string &payload);
|
||||
~CreateEvaluationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEEVALUATIONRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEMEETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEMEETINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateMeetingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMeetingRequest();
|
||||
~CreateMeetingRequest();
|
||||
|
||||
std::string getMeetingName()const;
|
||||
void setMeetingName(const std::string& meetingName);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string meetingName_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEMEETINGREQUEST_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_ALIYUNCVC_MODEL_CREATEMEETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEMEETINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateMeetingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
std::string meetingCode;
|
||||
std::string meetingUUID;
|
||||
};
|
||||
|
||||
|
||||
CreateMeetingResult();
|
||||
explicit CreateMeetingResult(const std::string &payload);
|
||||
~CreateMeetingResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEMEETINGRESULT_H_
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateTagSetRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTagSetRequest();
|
||||
~CreateTagSetRequest();
|
||||
CreateUserRequest();
|
||||
~CreateUserRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getCount()const;
|
||||
void setCount(int count);
|
||||
std::string getUserInfo()const;
|
||||
void setUserInfo(const std::string& userInfo);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
int count_;
|
||||
std::string userInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEUSERREQUEST_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_ALIYUNCVC_MODEL_CREATEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CreateUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateUserResult();
|
||||
explicit CreateUserResult(const std::string &payload);
|
||||
~CreateUserResult();
|
||||
std::string getMessage()const;
|
||||
std::string getUserId()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string userId_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CREATEUSERRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT DeleteMeetingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteMeetingRequest();
|
||||
~DeleteMeetingRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT DeleteMeetingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteMeetingResult();
|
||||
explicit DeleteMeetingResult(const std::string &payload);
|
||||
~DeleteMeetingResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEMEETINGRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT DeleteUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteUserRequest();
|
||||
~DeleteUserRequest();
|
||||
|
||||
int getCount()const;
|
||||
void setCount(int count);
|
||||
std::string getUserInfo()const;
|
||||
void setUserInfo(const std::string& userInfo);
|
||||
|
||||
private:
|
||||
int count_;
|
||||
std::string userInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT DeleteUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteUserResult();
|
||||
explicit DeleteUserResult(const std::string &payload);
|
||||
~DeleteUserResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_DELETEUSERRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetMeetingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMeetingRequest();
|
||||
~GetMeetingRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetMeetingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
struct MemberListItem
|
||||
{
|
||||
std::string status;
|
||||
std::string userName;
|
||||
std::string memberUUID;
|
||||
std::string userId;
|
||||
std::string userAvatarUrl;
|
||||
};
|
||||
std::string meetingCode;
|
||||
std::string meetingUUID;
|
||||
std::vector<MemberListItem> memberList;
|
||||
std::string userId;
|
||||
long createTime;
|
||||
std::string meetingName;
|
||||
long validTime;
|
||||
};
|
||||
|
||||
|
||||
GetMeetingResult();
|
||||
explicit GetMeetingResult(const std::string &payload);
|
||||
~GetMeetingResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEETINGRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetUserRequest();
|
||||
~GetUserRequest();
|
||||
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct UserInfo
|
||||
{
|
||||
std::string groupName;
|
||||
std::string userMobile;
|
||||
std::string userName;
|
||||
std::string userTel;
|
||||
std::string userId;
|
||||
long createTime;
|
||||
std::string userAvatarUrl;
|
||||
std::string userEmail;
|
||||
std::string departName;
|
||||
std::string groupId;
|
||||
std::string departId;
|
||||
};
|
||||
|
||||
|
||||
GetUserResult();
|
||||
explicit GetUserResult(const std::string &payload);
|
||||
~GetUserResult();
|
||||
std::string getMessage()const;
|
||||
UserInfo getUserInfo()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
UserInfo userInfo_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETUSERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT JoinMeetingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
JoinMeetingRequest();
|
||||
~JoinMeetingRequest();
|
||||
|
||||
std::string getMeetingCode()const;
|
||||
void setMeetingCode(const std::string& meetingCode);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string meetingCode_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT JoinMeetingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
struct SlsInfo
|
||||
{
|
||||
std::string project;
|
||||
std::string logstore;
|
||||
std::string logServiceEndpoint;
|
||||
};
|
||||
SlsInfo slsInfo;
|
||||
std::string meetingDomain;
|
||||
std::string meetingCode;
|
||||
std::string memberUUID;
|
||||
std::string meetingUUID;
|
||||
std::string clientAppId;
|
||||
std::string meetingAppId;
|
||||
std::string meetingToken;
|
||||
};
|
||||
|
||||
|
||||
JoinMeetingResult();
|
||||
explicit JoinMeetingResult(const std::string &payload);
|
||||
~JoinMeetingResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_JOINMEETINGRESULT_H_
|
||||
@@ -14,36 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTEVALUATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTEVALUATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DeleteTagSetResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListEvaluationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListEvaluationsRequest();
|
||||
~ListEvaluationsRequest();
|
||||
|
||||
|
||||
DeleteTagSetResult();
|
||||
explicit DeleteTagSetResult(const std::string &payload);
|
||||
~DeleteTagSetResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTEVALUATIONSREQUEST_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_ALIYUNCVC_MODEL_LISTEVALUATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTEVALUATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListEvaluationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListEvaluationsResult();
|
||||
explicit ListEvaluationsResult(const std::string &payload);
|
||||
~ListEvaluationsResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
std::string getUserEvaluation()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
std::string userEvaluation_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTEVALUATIONSRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTMEMBERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTMEMBERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListMembersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMembersRequest();
|
||||
~ListMembersRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTMEMBERSREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_LISTMEMBERSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTMEMBERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListMembersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
struct MemberRecord
|
||||
{
|
||||
std::string status;
|
||||
std::string userName;
|
||||
std::string memberUUID;
|
||||
long endTime;
|
||||
std::string userId;
|
||||
long beginTime;
|
||||
};
|
||||
std::string meetingCode;
|
||||
std::string userName;
|
||||
std::vector<MemberRecord> memberInfos;
|
||||
std::string meetingUUID;
|
||||
std::string userId;
|
||||
long createTime;
|
||||
std::string meetingName;
|
||||
std::string memo;
|
||||
};
|
||||
|
||||
|
||||
ListMembersResult();
|
||||
explicit ListMembersResult(const std::string &payload);
|
||||
~ListMembersResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTMEMBERSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTUSERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTUSERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListUsersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListUsersRequest();
|
||||
~ListUsersRequest();
|
||||
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTUSERSREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_LISTUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTUSERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListUsersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct UserInfo
|
||||
{
|
||||
std::string groupName;
|
||||
std::string userMobile;
|
||||
std::string userName;
|
||||
std::string userTel;
|
||||
long createTime;
|
||||
std::string userAvatarUrl;
|
||||
std::string userEmail;
|
||||
std::string departName;
|
||||
std::string groupId;
|
||||
std::string departId;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<UserInfo> userInfos;
|
||||
};
|
||||
|
||||
|
||||
ListUsersResult();
|
||||
explicit ListUsersResult(const std::string &payload);
|
||||
~ListUsersResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTUSERSRESULT_H_
|
||||
485
aliyuncvc/src/AliyuncvcClient.cc
Normal file
485
aliyuncvc/src/AliyuncvcClient.cc
Normal file
@@ -0,0 +1,485 @@
|
||||
/*
|
||||
* 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/aliyuncvc/AliyuncvcClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "aliyuncvc";
|
||||
}
|
||||
|
||||
AliyuncvcClient::AliyuncvcClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(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, "aliyuncvc");
|
||||
}
|
||||
|
||||
AliyuncvcClient::AliyuncvcClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "aliyuncvc");
|
||||
}
|
||||
|
||||
AliyuncvcClient::AliyuncvcClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(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, "aliyuncvc");
|
||||
}
|
||||
|
||||
AliyuncvcClient::~AliyuncvcClient()
|
||||
{}
|
||||
|
||||
AliyuncvcClient::ActiveMeetingOutcome AliyuncvcClient::activeMeeting(const ActiveMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ActiveMeetingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ActiveMeetingOutcome(ActiveMeetingResult(outcome.result()));
|
||||
else
|
||||
return ActiveMeetingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::activeMeetingAsync(const ActiveMeetingRequest& request, const ActiveMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, activeMeeting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ActiveMeetingOutcomeCallable AliyuncvcClient::activeMeetingCallable(const ActiveMeetingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ActiveMeetingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->activeMeeting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateEvaluationOutcome AliyuncvcClient::createEvaluation(const CreateEvaluationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateEvaluationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateEvaluationOutcome(CreateEvaluationResult(outcome.result()));
|
||||
else
|
||||
return CreateEvaluationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::createEvaluationAsync(const CreateEvaluationRequest& request, const CreateEvaluationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createEvaluation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateEvaluationOutcomeCallable AliyuncvcClient::createEvaluationCallable(const CreateEvaluationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateEvaluationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createEvaluation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateMeetingOutcome AliyuncvcClient::createMeeting(const CreateMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMeetingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMeetingOutcome(CreateMeetingResult(outcome.result()));
|
||||
else
|
||||
return CreateMeetingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::createMeetingAsync(const CreateMeetingRequest& request, const CreateMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMeeting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateMeetingOutcomeCallable AliyuncvcClient::createMeetingCallable(const CreateMeetingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMeetingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMeeting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateUserOutcome AliyuncvcClient::createUser(const CreateUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateUserOutcome(CreateUserResult(outcome.result()));
|
||||
else
|
||||
return CreateUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateUserOutcomeCallable AliyuncvcClient::createUserCallable(const CreateUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteMeetingOutcome AliyuncvcClient::deleteMeeting(const DeleteMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMeetingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMeetingOutcome(DeleteMeetingResult(outcome.result()));
|
||||
else
|
||||
return DeleteMeetingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::deleteMeetingAsync(const DeleteMeetingRequest& request, const DeleteMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMeeting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteMeetingOutcomeCallable AliyuncvcClient::deleteMeetingCallable(const DeleteMeetingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMeetingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMeeting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteUserOutcome AliyuncvcClient::deleteUser(const DeleteUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteUserOutcome(DeleteUserResult(outcome.result()));
|
||||
else
|
||||
return DeleteUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteUserOutcomeCallable AliyuncvcClient::deleteUserCallable(const DeleteUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetMeetingOutcome AliyuncvcClient::getMeeting(const GetMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMeetingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMeetingOutcome(GetMeetingResult(outcome.result()));
|
||||
else
|
||||
return GetMeetingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getMeetingAsync(const GetMeetingRequest& request, const GetMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMeeting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetMeetingOutcomeCallable AliyuncvcClient::getMeetingCallable(const GetMeetingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMeetingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMeeting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetUserOutcome AliyuncvcClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserOutcome(GetUserResult(outcome.result()));
|
||||
else
|
||||
return GetUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetUserOutcomeCallable AliyuncvcClient::getUserCallable(const GetUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::JoinMeetingOutcome AliyuncvcClient::joinMeeting(const JoinMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return JoinMeetingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return JoinMeetingOutcome(JoinMeetingResult(outcome.result()));
|
||||
else
|
||||
return JoinMeetingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::joinMeetingAsync(const JoinMeetingRequest& request, const JoinMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, joinMeeting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::JoinMeetingOutcomeCallable AliyuncvcClient::joinMeetingCallable(const JoinMeetingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<JoinMeetingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->joinMeeting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListEvaluationsOutcome AliyuncvcClient::listEvaluations(const ListEvaluationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListEvaluationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListEvaluationsOutcome(ListEvaluationsResult(outcome.result()));
|
||||
else
|
||||
return ListEvaluationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::listEvaluationsAsync(const ListEvaluationsRequest& request, const ListEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listEvaluations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListEvaluationsOutcomeCallable AliyuncvcClient::listEvaluationsCallable(const ListEvaluationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListEvaluationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listEvaluations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListMembersOutcome AliyuncvcClient::listMembers(const ListMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMembersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMembersOutcome(ListMembersResult(outcome.result()));
|
||||
else
|
||||
return ListMembersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::listMembersAsync(const ListMembersRequest& request, const ListMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMembers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListMembersOutcomeCallable AliyuncvcClient::listMembersCallable(const ListMembersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMembersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMembers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListUsersOutcome AliyuncvcClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUsersOutcome(ListUsersResult(outcome.result()));
|
||||
else
|
||||
return ListUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListUsersOutcomeCallable AliyuncvcClient::listUsersCallable(const ListUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/ActiveMeetingRequest.cc
Normal file
51
aliyuncvc/src/model/ActiveMeetingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ActiveMeetingRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ActiveMeetingRequest;
|
||||
|
||||
ActiveMeetingRequest::ActiveMeetingRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ActiveMeeting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ActiveMeetingRequest::~ActiveMeetingRequest()
|
||||
{}
|
||||
|
||||
std::string ActiveMeetingRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void ActiveMeetingRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setCoreParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string ActiveMeetingRequest::getMeetingCode()const
|
||||
{
|
||||
return meetingCode_;
|
||||
}
|
||||
|
||||
void ActiveMeetingRequest::setMeetingCode(const std::string& meetingCode)
|
||||
{
|
||||
meetingCode_ = meetingCode;
|
||||
setCoreParameter("MeetingCode", meetingCode);
|
||||
}
|
||||
|
||||
75
aliyuncvc/src/model/ActiveMeetingResult.cc
Normal file
75
aliyuncvc/src/model/ActiveMeetingResult.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/aliyuncvc/model/ActiveMeetingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ActiveMeetingResult::ActiveMeetingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ActiveMeetingResult::ActiveMeetingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ActiveMeetingResult::~ActiveMeetingResult()
|
||||
{}
|
||||
|
||||
void ActiveMeetingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["ValidTime"].isNull())
|
||||
meetingInfo_.validTime = std::stol(meetingInfoNode["ValidTime"].asString());
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ActiveMeetingResult::MeetingInfo ActiveMeetingResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string ActiveMeetingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ActiveMeetingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ActiveMeetingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
128
aliyuncvc/src/model/CreateEvaluationRequest.cc
Normal file
128
aliyuncvc/src/model/CreateEvaluationRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/aliyuncvc/model/CreateEvaluationRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CreateEvaluationRequest;
|
||||
|
||||
CreateEvaluationRequest::CreateEvaluationRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CreateEvaluation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEvaluationRequest::~CreateEvaluationRequest()
|
||||
{}
|
||||
|
||||
long CreateEvaluationRequest::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setCreateTime(long createTime)
|
||||
{
|
||||
createTime_ = createTime;
|
||||
setCoreParameter("CreateTime", std::to_string(createTime));
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getMemo()const
|
||||
{
|
||||
return memo_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setMemo(const std::string& memo)
|
||||
{
|
||||
memo_ = memo;
|
||||
setCoreParameter("Memo", memo);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getMemberUUID()const
|
||||
{
|
||||
return memberUUID_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setMemberUUID(const std::string& memberUUID)
|
||||
{
|
||||
memberUUID_ = memberUUID;
|
||||
setCoreParameter("MemberUUID", memberUUID);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getEvaluation()const
|
||||
{
|
||||
return evaluation_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setEvaluation(const std::string& evaluation)
|
||||
{
|
||||
evaluation_ = evaluation;
|
||||
setCoreParameter("Evaluation", evaluation);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getScore()const
|
||||
{
|
||||
return score_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setScore(const std::string& score)
|
||||
{
|
||||
score_ = score;
|
||||
setCoreParameter("Score", score);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setCoreParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string CreateEvaluationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateEvaluationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/CreateEvaluationResult.cc
Normal file
65
aliyuncvc/src/model/CreateEvaluationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CreateEvaluationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CreateEvaluationResult::CreateEvaluationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEvaluationResult::CreateEvaluationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEvaluationResult::~CreateEvaluationResult()
|
||||
{}
|
||||
|
||||
void CreateEvaluationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEvaluationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateEvaluationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateEvaluationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/CreateMeetingRequest.cc
Normal file
51
aliyuncvc/src/model/CreateMeetingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CreateMeetingRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CreateMeetingRequest;
|
||||
|
||||
CreateMeetingRequest::CreateMeetingRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CreateMeeting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMeetingRequest::~CreateMeetingRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMeetingRequest::getMeetingName()const
|
||||
{
|
||||
return meetingName_;
|
||||
}
|
||||
|
||||
void CreateMeetingRequest::setMeetingName(const std::string& meetingName)
|
||||
{
|
||||
meetingName_ = meetingName;
|
||||
setCoreParameter("MeetingName", meetingName);
|
||||
}
|
||||
|
||||
std::string CreateMeetingRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateMeetingRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
75
aliyuncvc/src/model/CreateMeetingResult.cc
Normal file
75
aliyuncvc/src/model/CreateMeetingResult.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/aliyuncvc/model/CreateMeetingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CreateMeetingResult::CreateMeetingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMeetingResult::CreateMeetingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMeetingResult::~CreateMeetingResult()
|
||||
{}
|
||||
|
||||
void CreateMeetingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!meetingInfoNode["MeetingUUID"].isNull())
|
||||
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CreateMeetingResult::MeetingInfo CreateMeetingResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string CreateMeetingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateMeetingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateMeetingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/CreateUserRequest.cc
Normal file
51
aliyuncvc/src/model/CreateUserRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CreateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CreateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
int CreateUserRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserInfo()const
|
||||
{
|
||||
return userInfo_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserInfo(const std::string& userInfo)
|
||||
{
|
||||
userInfo_ = userInfo;
|
||||
setCoreParameter("UserInfo", userInfo);
|
||||
}
|
||||
|
||||
72
aliyuncvc/src/model/CreateUserResult.cc
Normal file
72
aliyuncvc/src/model/CreateUserResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CreateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CreateUserResult::CreateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserResult::CreateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserResult::~CreateUserResult()
|
||||
{}
|
||||
|
||||
void CreateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = value["UserId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
int CreateUserResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/DeleteMeetingRequest.cc
Normal file
40
aliyuncvc/src/model/DeleteMeetingRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/DeleteMeetingRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::DeleteMeetingRequest;
|
||||
|
||||
DeleteMeetingRequest::DeleteMeetingRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "DeleteMeeting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMeetingRequest::~DeleteMeetingRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMeetingRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void DeleteMeetingRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setCoreParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/DeleteMeetingResult.cc
Normal file
65
aliyuncvc/src/model/DeleteMeetingResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/DeleteMeetingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
DeleteMeetingResult::DeleteMeetingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMeetingResult::DeleteMeetingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMeetingResult::~DeleteMeetingResult()
|
||||
{}
|
||||
|
||||
void DeleteMeetingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteMeetingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteMeetingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteMeetingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/DeleteUserRequest.cc
Normal file
51
aliyuncvc/src/model/DeleteUserRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "DeleteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
|
||||
int DeleteUserRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getUserInfo()const
|
||||
{
|
||||
return userInfo_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setUserInfo(const std::string& userInfo)
|
||||
{
|
||||
userInfo_ = userInfo;
|
||||
setCoreParameter("UserInfo", userInfo);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/DeleteUserResult.cc
Normal file
65
aliyuncvc/src/model/DeleteUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/DeleteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
DeleteUserResult::DeleteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserResult::DeleteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserResult::~DeleteUserResult()
|
||||
{}
|
||||
|
||||
void DeleteUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteUserResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/GetMeetingRequest.cc
Normal file
40
aliyuncvc/src/model/GetMeetingRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetMeetingRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetMeetingRequest;
|
||||
|
||||
GetMeetingRequest::GetMeetingRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "GetMeeting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMeetingRequest::~GetMeetingRequest()
|
||||
{}
|
||||
|
||||
std::string GetMeetingRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void GetMeetingRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setCoreParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
99
aliyuncvc/src/model/GetMeetingResult.cc
Normal file
99
aliyuncvc/src/model/GetMeetingResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetMeetingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetMeetingResult::GetMeetingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMeetingResult::GetMeetingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMeetingResult::~GetMeetingResult()
|
||||
{}
|
||||
|
||||
void GetMeetingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["MeetingName"].isNull())
|
||||
meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString();
|
||||
if(!meetingInfoNode["ValidTime"].isNull())
|
||||
meetingInfo_.validTime = std::stol(meetingInfoNode["ValidTime"].asString());
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!meetingInfoNode["CreateTime"].isNull())
|
||||
meetingInfo_.createTime = std::stol(meetingInfoNode["CreateTime"].asString());
|
||||
if(!meetingInfoNode["UserId"].isNull())
|
||||
meetingInfo_.userId = meetingInfoNode["UserId"].asString();
|
||||
if(!meetingInfoNode["MeetingUUID"].isNull())
|
||||
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
|
||||
auto allMemberListNode = meetingInfoNode["MemberList"]["MemberListItem"];
|
||||
for (auto meetingInfoNodeMemberListMemberListItem : allMemberListNode)
|
||||
{
|
||||
MeetingInfo::MemberListItem memberListItemObject;
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].isNull())
|
||||
memberListItemObject.userAvatarUrl = meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["MemberUUID"].isNull())
|
||||
memberListItemObject.memberUUID = meetingInfoNodeMemberListMemberListItem["MemberUUID"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserName"].isNull())
|
||||
memberListItemObject.userName = meetingInfoNodeMemberListMemberListItem["UserName"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserId"].isNull())
|
||||
memberListItemObject.userId = meetingInfoNodeMemberListMemberListItem["UserId"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["Status"].isNull())
|
||||
memberListItemObject.status = meetingInfoNodeMemberListMemberListItem["Status"].asString();
|
||||
meetingInfo_.memberList.push_back(memberListItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetMeetingResult::MeetingInfo GetMeetingResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string GetMeetingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetMeetingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetMeetingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/GetUserRequest.cc
Normal file
40
aliyuncvc/src/model/GetUserRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetUserRequest;
|
||||
|
||||
GetUserRequest::GetUserRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "GetUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserRequest::~GetUserRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
93
aliyuncvc/src/model/GetUserResult.cc
Normal file
93
aliyuncvc/src/model/GetUserResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/aliyuncvc/model/GetUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetUserResult::GetUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserResult::GetUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserResult::~GetUserResult()
|
||||
{}
|
||||
|
||||
void GetUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userInfoNode = value["UserInfo"];
|
||||
if(!userInfoNode["UserName"].isNull())
|
||||
userInfo_.userName = userInfoNode["UserName"].asString();
|
||||
if(!userInfoNode["CreateTime"].isNull())
|
||||
userInfo_.createTime = std::stol(userInfoNode["CreateTime"].asString());
|
||||
if(!userInfoNode["GroupId"].isNull())
|
||||
userInfo_.groupId = userInfoNode["GroupId"].asString();
|
||||
if(!userInfoNode["GroupName"].isNull())
|
||||
userInfo_.groupName = userInfoNode["GroupName"].asString();
|
||||
if(!userInfoNode["UserId"].isNull())
|
||||
userInfo_.userId = userInfoNode["UserId"].asString();
|
||||
if(!userInfoNode["UserTel"].isNull())
|
||||
userInfo_.userTel = userInfoNode["UserTel"].asString();
|
||||
if(!userInfoNode["UserEmail"].isNull())
|
||||
userInfo_.userEmail = userInfoNode["UserEmail"].asString();
|
||||
if(!userInfoNode["UserMobile"].isNull())
|
||||
userInfo_.userMobile = userInfoNode["UserMobile"].asString();
|
||||
if(!userInfoNode["UserAvatarUrl"].isNull())
|
||||
userInfo_.userAvatarUrl = userInfoNode["UserAvatarUrl"].asString();
|
||||
if(!userInfoNode["DepartId"].isNull())
|
||||
userInfo_.departId = userInfoNode["DepartId"].asString();
|
||||
if(!userInfoNode["DepartName"].isNull())
|
||||
userInfo_.departName = userInfoNode["DepartName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetUserResult::UserInfo GetUserResult::getUserInfo()const
|
||||
{
|
||||
return userInfo_;
|
||||
}
|
||||
|
||||
int GetUserResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/JoinMeetingRequest.cc
Normal file
51
aliyuncvc/src/model/JoinMeetingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/JoinMeetingRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::JoinMeetingRequest;
|
||||
|
||||
JoinMeetingRequest::JoinMeetingRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "JoinMeeting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
JoinMeetingRequest::~JoinMeetingRequest()
|
||||
{}
|
||||
|
||||
std::string JoinMeetingRequest::getMeetingCode()const
|
||||
{
|
||||
return meetingCode_;
|
||||
}
|
||||
|
||||
void JoinMeetingRequest::setMeetingCode(const std::string& meetingCode)
|
||||
{
|
||||
meetingCode_ = meetingCode;
|
||||
setCoreParameter("MeetingCode", meetingCode);
|
||||
}
|
||||
|
||||
std::string JoinMeetingRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void JoinMeetingRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
92
aliyuncvc/src/model/JoinMeetingResult.cc
Normal file
92
aliyuncvc/src/model/JoinMeetingResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/JoinMeetingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
JoinMeetingResult::JoinMeetingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
JoinMeetingResult::JoinMeetingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
JoinMeetingResult::~JoinMeetingResult()
|
||||
{}
|
||||
|
||||
void JoinMeetingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["MeetingDomain"].isNull())
|
||||
meetingInfo_.meetingDomain = meetingInfoNode["MeetingDomain"].asString();
|
||||
if(!meetingInfoNode["MeetingToken"].isNull())
|
||||
meetingInfo_.meetingToken = meetingInfoNode["MeetingToken"].asString();
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!meetingInfoNode["MemberUUID"].isNull())
|
||||
meetingInfo_.memberUUID = meetingInfoNode["MemberUUID"].asString();
|
||||
if(!meetingInfoNode["ClientAppId"].isNull())
|
||||
meetingInfo_.clientAppId = meetingInfoNode["ClientAppId"].asString();
|
||||
if(!meetingInfoNode["MeetingUUID"].isNull())
|
||||
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
|
||||
if(!meetingInfoNode["MeetingAppId"].isNull())
|
||||
meetingInfo_.meetingAppId = meetingInfoNode["MeetingAppId"].asString();
|
||||
auto slsInfoNode = meetingInfoNode["SlsInfo"];
|
||||
if(!slsInfoNode["LogServiceEndpoint"].isNull())
|
||||
meetingInfo_.slsInfo.logServiceEndpoint = slsInfoNode["LogServiceEndpoint"].asString();
|
||||
if(!slsInfoNode["Logstore"].isNull())
|
||||
meetingInfo_.slsInfo.logstore = slsInfoNode["Logstore"].asString();
|
||||
if(!slsInfoNode["Project"].isNull())
|
||||
meetingInfo_.slsInfo.project = slsInfoNode["Project"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
JoinMeetingResult::MeetingInfo JoinMeetingResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string JoinMeetingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int JoinMeetingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool JoinMeetingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
29
aliyuncvc/src/model/ListEvaluationsRequest.cc
Normal file
29
aliyuncvc/src/model/ListEvaluationsRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/aliyuncvc/model/ListEvaluationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ListEvaluationsRequest;
|
||||
|
||||
ListEvaluationsRequest::ListEvaluationsRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ListEvaluations")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListEvaluationsRequest::~ListEvaluationsRequest()
|
||||
{}
|
||||
|
||||
72
aliyuncvc/src/model/ListEvaluationsResult.cc
Normal file
72
aliyuncvc/src/model/ListEvaluationsResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ListEvaluationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ListEvaluationsResult::ListEvaluationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListEvaluationsResult::ListEvaluationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListEvaluationsResult::~ListEvaluationsResult()
|
||||
{}
|
||||
|
||||
void ListEvaluationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UserEvaluation"].isNull())
|
||||
userEvaluation_ = value["UserEvaluation"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListEvaluationsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListEvaluationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListEvaluationsResult::getUserEvaluation()const
|
||||
{
|
||||
return userEvaluation_;
|
||||
}
|
||||
|
||||
bool ListEvaluationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/ListMembersRequest.cc
Normal file
40
aliyuncvc/src/model/ListMembersRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ListMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ListMembersRequest;
|
||||
|
||||
ListMembersRequest::ListMembersRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ListMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMembersRequest::~ListMembersRequest()
|
||||
{}
|
||||
|
||||
std::string ListMembersRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void ListMembersRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setCoreParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
103
aliyuncvc/src/model/ListMembersResult.cc
Normal file
103
aliyuncvc/src/model/ListMembersResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/aliyuncvc/model/ListMembersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ListMembersResult::ListMembersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMembersResult::ListMembersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMembersResult::~ListMembersResult()
|
||||
{}
|
||||
|
||||
void ListMembersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["MeetingName"].isNull())
|
||||
meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString();
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!meetingInfoNode["Memo"].isNull())
|
||||
meetingInfo_.memo = meetingInfoNode["Memo"].asString();
|
||||
if(!meetingInfoNode["UserName"].isNull())
|
||||
meetingInfo_.userName = meetingInfoNode["UserName"].asString();
|
||||
if(!meetingInfoNode["CreateTime"].isNull())
|
||||
meetingInfo_.createTime = std::stol(meetingInfoNode["CreateTime"].asString());
|
||||
if(!meetingInfoNode["UserId"].isNull())
|
||||
meetingInfo_.userId = meetingInfoNode["UserId"].asString();
|
||||
if(!meetingInfoNode["MeetingUUID"].isNull())
|
||||
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
|
||||
auto allMemberInfosNode = meetingInfoNode["MemberInfos"]["MemberRecord"];
|
||||
for (auto meetingInfoNodeMemberInfosMemberRecord : allMemberInfosNode)
|
||||
{
|
||||
MeetingInfo::MemberRecord memberRecordObject;
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["MemberUUID"].isNull())
|
||||
memberRecordObject.memberUUID = meetingInfoNodeMemberInfosMemberRecord["MemberUUID"].asString();
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["UserId"].isNull())
|
||||
memberRecordObject.userId = meetingInfoNodeMemberInfosMemberRecord["UserId"].asString();
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["Status"].isNull())
|
||||
memberRecordObject.status = meetingInfoNodeMemberInfosMemberRecord["Status"].asString();
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["BeginTime"].isNull())
|
||||
memberRecordObject.beginTime = std::stol(meetingInfoNodeMemberInfosMemberRecord["BeginTime"].asString());
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["EndTime"].isNull())
|
||||
memberRecordObject.endTime = std::stol(meetingInfoNodeMemberInfosMemberRecord["EndTime"].asString());
|
||||
if(!meetingInfoNodeMemberInfosMemberRecord["UserName"].isNull())
|
||||
memberRecordObject.userName = meetingInfoNodeMemberInfosMemberRecord["UserName"].asString();
|
||||
meetingInfo_.memberInfos.push_back(memberRecordObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ListMembersResult::MeetingInfo ListMembersResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string ListMembersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListMembersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListMembersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/ListUsersRequest.cc
Normal file
51
aliyuncvc/src/model/ListUsersRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ListUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ListUsersRequest;
|
||||
|
||||
ListUsersRequest::ListUsersRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ListUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUsersRequest::~ListUsersRequest()
|
||||
{}
|
||||
|
||||
int ListUsersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListUsersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
103
aliyuncvc/src/model/ListUsersResult.cc
Normal file
103
aliyuncvc/src/model/ListUsersResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/aliyuncvc/model/ListUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ListUsersResult::ListUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUsersResult::ListUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUsersResult::~ListUsersResult()
|
||||
{}
|
||||
|
||||
void ListUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allUserInfosNode = dataNode["UserInfos"]["UserInfo"];
|
||||
for (auto dataNodeUserInfosUserInfo : allUserInfosNode)
|
||||
{
|
||||
Data::UserInfo userInfoObject;
|
||||
if(!dataNodeUserInfosUserInfo["CreateTime"].isNull())
|
||||
userInfoObject.createTime = std::stol(dataNodeUserInfosUserInfo["CreateTime"].asString());
|
||||
if(!dataNodeUserInfosUserInfo["GroupName"].isNull())
|
||||
userInfoObject.groupName = dataNodeUserInfosUserInfo["GroupName"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["UserName"].isNull())
|
||||
userInfoObject.userName = dataNodeUserInfosUserInfo["UserName"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["GroupId"].isNull())
|
||||
userInfoObject.groupId = dataNodeUserInfosUserInfo["GroupId"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["DepartName"].isNull())
|
||||
userInfoObject.departName = dataNodeUserInfosUserInfo["DepartName"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["DepartId"].isNull())
|
||||
userInfoObject.departId = dataNodeUserInfosUserInfo["DepartId"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["UserEmail"].isNull())
|
||||
userInfoObject.userEmail = dataNodeUserInfosUserInfo["UserEmail"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["UserTel"].isNull())
|
||||
userInfoObject.userTel = dataNodeUserInfosUserInfo["UserTel"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["UserMobile"].isNull())
|
||||
userInfoObject.userMobile = dataNodeUserInfosUserInfo["UserMobile"].asString();
|
||||
if(!dataNodeUserInfosUserInfo["UserAvatarUrl"].isNull())
|
||||
userInfoObject.userAvatarUrl = dataNodeUserInfosUserInfo["UserAvatarUrl"].asString();
|
||||
data_.userInfos.push_back(userInfoObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListUsersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListUsersResult::Data ListUsersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ set(bssopenapi_public_header
|
||||
include/alibabacloud/bssopenapi/BssOpenApiExport.h )
|
||||
|
||||
set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderRequest.h
|
||||
@@ -33,16 +33,16 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h
|
||||
@@ -61,12 +61,14 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||
@@ -77,14 +79,14 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h
|
||||
@@ -132,8 +134,8 @@ set(bssopenapi_public_header_model
|
||||
|
||||
set(bssopenapi_src
|
||||
src/BssOpenApiClient.cc
|
||||
src/model/AllocateFinanceUnitResourceRequest.cc
|
||||
src/model/AllocateFinanceUnitResourceResult.cc
|
||||
src/model/AllocateCostUnitResourceRequest.cc
|
||||
src/model/AllocateCostUnitResourceResult.cc
|
||||
src/model/ApplyInvoiceRequest.cc
|
||||
src/model/ApplyInvoiceResult.cc
|
||||
src/model/CancelOrderRequest.cc
|
||||
@@ -144,16 +146,16 @@ set(bssopenapi_src
|
||||
src/model/ConvertChargeTypeResult.cc
|
||||
src/model/CreateAgAccountRequest.cc
|
||||
src/model/CreateAgAccountResult.cc
|
||||
src/model/CreateFinanceUnitRequest.cc
|
||||
src/model/CreateFinanceUnitResult.cc
|
||||
src/model/CreateCostUnitRequest.cc
|
||||
src/model/CreateCostUnitResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateResellerUserQuotaRequest.cc
|
||||
src/model/CreateResellerUserQuotaResult.cc
|
||||
src/model/CreateResourcePackageRequest.cc
|
||||
src/model/CreateResourcePackageResult.cc
|
||||
src/model/DeleteFinanceUnitRequest.cc
|
||||
src/model/DeleteFinanceUnitResult.cc
|
||||
src/model/DeleteCostUnitRequest.cc
|
||||
src/model/DeleteCostUnitResult.cc
|
||||
src/model/DescribePricingModuleRequest.cc
|
||||
src/model/DescribePricingModuleResult.cc
|
||||
src/model/DescribeResourcePackageProductRequest.cc
|
||||
@@ -172,12 +174,14 @@ set(bssopenapi_src
|
||||
src/model/GetResourcePackagePriceResult.cc
|
||||
src/model/GetSubscriptionPriceRequest.cc
|
||||
src/model/GetSubscriptionPriceResult.cc
|
||||
src/model/ModifyFinanceUnitRequest.cc
|
||||
src/model/ModifyFinanceUnitResult.cc
|
||||
src/model/ModifyCostUnitRequest.cc
|
||||
src/model/ModifyCostUnitResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
src/model/ModifyInstanceResult.cc
|
||||
src/model/QueryAccountBalanceRequest.cc
|
||||
src/model/QueryAccountBalanceResult.cc
|
||||
src/model/QueryAccountBillRequest.cc
|
||||
src/model/QueryAccountBillResult.cc
|
||||
src/model/QueryAccountTransactionsRequest.cc
|
||||
src/model/QueryAccountTransactionsResult.cc
|
||||
src/model/QueryAvailableInstancesRequest.cc
|
||||
@@ -188,14 +192,14 @@ set(bssopenapi_src
|
||||
src/model/QueryBillOverviewResult.cc
|
||||
src/model/QueryCashCouponsRequest.cc
|
||||
src/model/QueryCashCouponsResult.cc
|
||||
src/model/QueryCostUnitRequest.cc
|
||||
src/model/QueryCostUnitResult.cc
|
||||
src/model/QueryCostUnitResourceRequest.cc
|
||||
src/model/QueryCostUnitResourceResult.cc
|
||||
src/model/QueryCustomerAddressListRequest.cc
|
||||
src/model/QueryCustomerAddressListResult.cc
|
||||
src/model/QueryEvaluateListRequest.cc
|
||||
src/model/QueryEvaluateListResult.cc
|
||||
src/model/QueryFinanceUnitRequest.cc
|
||||
src/model/QueryFinanceUnitResult.cc
|
||||
src/model/QueryFinanceUnitResourceRequest.cc
|
||||
src/model/QueryFinanceUnitResourceResult.cc
|
||||
src/model/QueryInstanceBillRequest.cc
|
||||
src/model/QueryInstanceBillResult.cc
|
||||
src/model/QueryInstanceGaapCostRequest.cc
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "BssOpenApiExport.h"
|
||||
#include "model/AllocateFinanceUnitResourceRequest.h"
|
||||
#include "model/AllocateFinanceUnitResourceResult.h"
|
||||
#include "model/AllocateCostUnitResourceRequest.h"
|
||||
#include "model/AllocateCostUnitResourceResult.h"
|
||||
#include "model/ApplyInvoiceRequest.h"
|
||||
#include "model/ApplyInvoiceResult.h"
|
||||
#include "model/CancelOrderRequest.h"
|
||||
@@ -34,16 +34,16 @@
|
||||
#include "model/ConvertChargeTypeResult.h"
|
||||
#include "model/CreateAgAccountRequest.h"
|
||||
#include "model/CreateAgAccountResult.h"
|
||||
#include "model/CreateFinanceUnitRequest.h"
|
||||
#include "model/CreateFinanceUnitResult.h"
|
||||
#include "model/CreateCostUnitRequest.h"
|
||||
#include "model/CreateCostUnitResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateResellerUserQuotaRequest.h"
|
||||
#include "model/CreateResellerUserQuotaResult.h"
|
||||
#include "model/CreateResourcePackageRequest.h"
|
||||
#include "model/CreateResourcePackageResult.h"
|
||||
#include "model/DeleteFinanceUnitRequest.h"
|
||||
#include "model/DeleteFinanceUnitResult.h"
|
||||
#include "model/DeleteCostUnitRequest.h"
|
||||
#include "model/DeleteCostUnitResult.h"
|
||||
#include "model/DescribePricingModuleRequest.h"
|
||||
#include "model/DescribePricingModuleResult.h"
|
||||
#include "model/DescribeResourcePackageProductRequest.h"
|
||||
@@ -62,12 +62,14 @@
|
||||
#include "model/GetResourcePackagePriceResult.h"
|
||||
#include "model/GetSubscriptionPriceRequest.h"
|
||||
#include "model/GetSubscriptionPriceResult.h"
|
||||
#include "model/ModifyFinanceUnitRequest.h"
|
||||
#include "model/ModifyFinanceUnitResult.h"
|
||||
#include "model/ModifyCostUnitRequest.h"
|
||||
#include "model/ModifyCostUnitResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/QueryAccountBalanceRequest.h"
|
||||
#include "model/QueryAccountBalanceResult.h"
|
||||
#include "model/QueryAccountBillRequest.h"
|
||||
#include "model/QueryAccountBillResult.h"
|
||||
#include "model/QueryAccountTransactionsRequest.h"
|
||||
#include "model/QueryAccountTransactionsResult.h"
|
||||
#include "model/QueryAvailableInstancesRequest.h"
|
||||
@@ -78,14 +80,14 @@
|
||||
#include "model/QueryBillOverviewResult.h"
|
||||
#include "model/QueryCashCouponsRequest.h"
|
||||
#include "model/QueryCashCouponsResult.h"
|
||||
#include "model/QueryCostUnitRequest.h"
|
||||
#include "model/QueryCostUnitResult.h"
|
||||
#include "model/QueryCostUnitResourceRequest.h"
|
||||
#include "model/QueryCostUnitResourceResult.h"
|
||||
#include "model/QueryCustomerAddressListRequest.h"
|
||||
#include "model/QueryCustomerAddressListResult.h"
|
||||
#include "model/QueryEvaluateListRequest.h"
|
||||
#include "model/QueryEvaluateListResult.h"
|
||||
#include "model/QueryFinanceUnitRequest.h"
|
||||
#include "model/QueryFinanceUnitResult.h"
|
||||
#include "model/QueryFinanceUnitResourceRequest.h"
|
||||
#include "model/QueryFinanceUnitResourceResult.h"
|
||||
#include "model/QueryInstanceBillRequest.h"
|
||||
#include "model/QueryInstanceBillResult.h"
|
||||
#include "model/QueryInstanceGaapCostRequest.h"
|
||||
@@ -139,9 +141,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT BssOpenApiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AllocateFinanceUnitResourceResult> AllocateFinanceUnitResourceOutcome;
|
||||
typedef std::future<AllocateFinanceUnitResourceOutcome> AllocateFinanceUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::AllocateFinanceUnitResourceRequest&, const AllocateFinanceUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateFinanceUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AllocateCostUnitResourceResult> AllocateCostUnitResourceOutcome;
|
||||
typedef std::future<AllocateCostUnitResourceOutcome> AllocateCostUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::AllocateCostUnitResourceRequest&, const AllocateCostUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateCostUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyInvoiceResult> ApplyInvoiceOutcome;
|
||||
typedef std::future<ApplyInvoiceOutcome> ApplyInvoiceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ApplyInvoiceRequest&, const ApplyInvoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyInvoiceAsyncHandler;
|
||||
@@ -157,9 +159,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAgAccountResult> CreateAgAccountOutcome;
|
||||
typedef std::future<CreateAgAccountOutcome> CreateAgAccountOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateAgAccountRequest&, const CreateAgAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAgAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFinanceUnitResult> CreateFinanceUnitOutcome;
|
||||
typedef std::future<CreateFinanceUnitOutcome> CreateFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateFinanceUnitRequest&, const CreateFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCostUnitResult> CreateCostUnitOutcome;
|
||||
typedef std::future<CreateCostUnitOutcome> CreateCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateCostUnitRequest&, const CreateCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
@@ -169,9 +171,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateResourcePackageResult> CreateResourcePackageOutcome;
|
||||
typedef std::future<CreateResourcePackageOutcome> CreateResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateResourcePackageRequest&, const CreateResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourcePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFinanceUnitResult> DeleteFinanceUnitOutcome;
|
||||
typedef std::future<DeleteFinanceUnitOutcome> DeleteFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DeleteFinanceUnitRequest&, const DeleteFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCostUnitResult> DeleteCostUnitOutcome;
|
||||
typedef std::future<DeleteCostUnitOutcome> DeleteCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DeleteCostUnitRequest&, const DeleteCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePricingModuleResult> DescribePricingModuleOutcome;
|
||||
typedef std::future<DescribePricingModuleOutcome> DescribePricingModuleOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribePricingModuleRequest&, const DescribePricingModuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePricingModuleAsyncHandler;
|
||||
@@ -199,15 +201,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetSubscriptionPriceResult> GetSubscriptionPriceOutcome;
|
||||
typedef std::future<GetSubscriptionPriceOutcome> GetSubscriptionPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetSubscriptionPriceRequest&, const GetSubscriptionPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubscriptionPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyFinanceUnitResult> ModifyFinanceUnitOutcome;
|
||||
typedef std::future<ModifyFinanceUnitOutcome> ModifyFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyFinanceUnitRequest&, const ModifyFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyCostUnitResult> ModifyCostUnitOutcome;
|
||||
typedef std::future<ModifyCostUnitOutcome> ModifyCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyCostUnitRequest&, const ModifyCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBalanceResult> QueryAccountBalanceOutcome;
|
||||
typedef std::future<QueryAccountBalanceOutcome> QueryAccountBalanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBalanceRequest&, const QueryAccountBalanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBalanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
|
||||
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
|
||||
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
|
||||
@@ -223,18 +228,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryCashCouponsResult> QueryCashCouponsOutcome;
|
||||
typedef std::future<QueryCashCouponsOutcome> QueryCashCouponsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCashCouponsRequest&, const QueryCashCouponsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCashCouponsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCostUnitResult> QueryCostUnitOutcome;
|
||||
typedef std::future<QueryCostUnitOutcome> QueryCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCostUnitRequest&, const QueryCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCostUnitResourceResult> QueryCostUnitResourceOutcome;
|
||||
typedef std::future<QueryCostUnitResourceOutcome> QueryCostUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCostUnitResourceRequest&, const QueryCostUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCostUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCustomerAddressListResult> QueryCustomerAddressListOutcome;
|
||||
typedef std::future<QueryCustomerAddressListOutcome> QueryCustomerAddressListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCustomerAddressListRequest&, const QueryCustomerAddressListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerAddressListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryEvaluateListResult> QueryEvaluateListOutcome;
|
||||
typedef std::future<QueryEvaluateListOutcome> QueryEvaluateListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryEvaluateListRequest&, const QueryEvaluateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEvaluateListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryFinanceUnitResult> QueryFinanceUnitOutcome;
|
||||
typedef std::future<QueryFinanceUnitOutcome> QueryFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryFinanceUnitRequest&, const QueryFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryFinanceUnitResourceResult> QueryFinanceUnitResourceOutcome;
|
||||
typedef std::future<QueryFinanceUnitResourceOutcome> QueryFinanceUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryFinanceUnitResourceRequest&, const QueryFinanceUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFinanceUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInstanceBillResult> QueryInstanceBillOutcome;
|
||||
typedef std::future<QueryInstanceBillOutcome> QueryInstanceBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInstanceBillRequest&, const QueryInstanceBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceBillAsyncHandler;
|
||||
@@ -306,9 +311,9 @@ namespace AlibabaCloud
|
||||
BssOpenApiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
BssOpenApiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~BssOpenApiClient();
|
||||
AllocateFinanceUnitResourceOutcome allocateFinanceUnitResource(const Model::AllocateFinanceUnitResourceRequest &request)const;
|
||||
void allocateFinanceUnitResourceAsync(const Model::AllocateFinanceUnitResourceRequest& request, const AllocateFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocateFinanceUnitResourceOutcomeCallable allocateFinanceUnitResourceCallable(const Model::AllocateFinanceUnitResourceRequest& request) const;
|
||||
AllocateCostUnitResourceOutcome allocateCostUnitResource(const Model::AllocateCostUnitResourceRequest &request)const;
|
||||
void allocateCostUnitResourceAsync(const Model::AllocateCostUnitResourceRequest& request, const AllocateCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocateCostUnitResourceOutcomeCallable allocateCostUnitResourceCallable(const Model::AllocateCostUnitResourceRequest& request) const;
|
||||
ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const;
|
||||
void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const;
|
||||
@@ -324,9 +329,9 @@ namespace AlibabaCloud
|
||||
CreateAgAccountOutcome createAgAccount(const Model::CreateAgAccountRequest &request)const;
|
||||
void createAgAccountAsync(const Model::CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAgAccountOutcomeCallable createAgAccountCallable(const Model::CreateAgAccountRequest& request) const;
|
||||
CreateFinanceUnitOutcome createFinanceUnit(const Model::CreateFinanceUnitRequest &request)const;
|
||||
void createFinanceUnitAsync(const Model::CreateFinanceUnitRequest& request, const CreateFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFinanceUnitOutcomeCallable createFinanceUnitCallable(const Model::CreateFinanceUnitRequest& request) const;
|
||||
CreateCostUnitOutcome createCostUnit(const Model::CreateCostUnitRequest &request)const;
|
||||
void createCostUnitAsync(const Model::CreateCostUnitRequest& request, const CreateCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCostUnitOutcomeCallable createCostUnitCallable(const Model::CreateCostUnitRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
@@ -336,9 +341,9 @@ namespace AlibabaCloud
|
||||
CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const;
|
||||
void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const;
|
||||
DeleteFinanceUnitOutcome deleteFinanceUnit(const Model::DeleteFinanceUnitRequest &request)const;
|
||||
void deleteFinanceUnitAsync(const Model::DeleteFinanceUnitRequest& request, const DeleteFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFinanceUnitOutcomeCallable deleteFinanceUnitCallable(const Model::DeleteFinanceUnitRequest& request) const;
|
||||
DeleteCostUnitOutcome deleteCostUnit(const Model::DeleteCostUnitRequest &request)const;
|
||||
void deleteCostUnitAsync(const Model::DeleteCostUnitRequest& request, const DeleteCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCostUnitOutcomeCallable deleteCostUnitCallable(const Model::DeleteCostUnitRequest& request) const;
|
||||
DescribePricingModuleOutcome describePricingModule(const Model::DescribePricingModuleRequest &request)const;
|
||||
void describePricingModuleAsync(const Model::DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePricingModuleOutcomeCallable describePricingModuleCallable(const Model::DescribePricingModuleRequest& request) const;
|
||||
@@ -366,15 +371,18 @@ namespace AlibabaCloud
|
||||
GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const;
|
||||
void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const;
|
||||
ModifyFinanceUnitOutcome modifyFinanceUnit(const Model::ModifyFinanceUnitRequest &request)const;
|
||||
void modifyFinanceUnitAsync(const Model::ModifyFinanceUnitRequest& request, const ModifyFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyFinanceUnitOutcomeCallable modifyFinanceUnitCallable(const Model::ModifyFinanceUnitRequest& request) const;
|
||||
ModifyCostUnitOutcome modifyCostUnit(const Model::ModifyCostUnitRequest &request)const;
|
||||
void modifyCostUnitAsync(const Model::ModifyCostUnitRequest& request, const ModifyCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyCostUnitOutcomeCallable modifyCostUnitCallable(const Model::ModifyCostUnitRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
QueryAccountBalanceOutcome queryAccountBalance(const Model::QueryAccountBalanceRequest &request)const;
|
||||
void queryAccountBalanceAsync(const Model::QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBalanceOutcomeCallable queryAccountBalanceCallable(const Model::QueryAccountBalanceRequest& request) const;
|
||||
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
|
||||
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
|
||||
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
|
||||
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;
|
||||
@@ -390,18 +398,18 @@ namespace AlibabaCloud
|
||||
QueryCashCouponsOutcome queryCashCoupons(const Model::QueryCashCouponsRequest &request)const;
|
||||
void queryCashCouponsAsync(const Model::QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCashCouponsOutcomeCallable queryCashCouponsCallable(const Model::QueryCashCouponsRequest& request) const;
|
||||
QueryCostUnitOutcome queryCostUnit(const Model::QueryCostUnitRequest &request)const;
|
||||
void queryCostUnitAsync(const Model::QueryCostUnitRequest& request, const QueryCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCostUnitOutcomeCallable queryCostUnitCallable(const Model::QueryCostUnitRequest& request) const;
|
||||
QueryCostUnitResourceOutcome queryCostUnitResource(const Model::QueryCostUnitResourceRequest &request)const;
|
||||
void queryCostUnitResourceAsync(const Model::QueryCostUnitResourceRequest& request, const QueryCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCostUnitResourceOutcomeCallable queryCostUnitResourceCallable(const Model::QueryCostUnitResourceRequest& request) const;
|
||||
QueryCustomerAddressListOutcome queryCustomerAddressList(const Model::QueryCustomerAddressListRequest &request)const;
|
||||
void queryCustomerAddressListAsync(const Model::QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomerAddressListOutcomeCallable queryCustomerAddressListCallable(const Model::QueryCustomerAddressListRequest& request) const;
|
||||
QueryEvaluateListOutcome queryEvaluateList(const Model::QueryEvaluateListRequest &request)const;
|
||||
void queryEvaluateListAsync(const Model::QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEvaluateListOutcomeCallable queryEvaluateListCallable(const Model::QueryEvaluateListRequest& request) const;
|
||||
QueryFinanceUnitOutcome queryFinanceUnit(const Model::QueryFinanceUnitRequest &request)const;
|
||||
void queryFinanceUnitAsync(const Model::QueryFinanceUnitRequest& request, const QueryFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryFinanceUnitOutcomeCallable queryFinanceUnitCallable(const Model::QueryFinanceUnitRequest& request) const;
|
||||
QueryFinanceUnitResourceOutcome queryFinanceUnitResource(const Model::QueryFinanceUnitResourceRequest &request)const;
|
||||
void queryFinanceUnitResourceAsync(const Model::QueryFinanceUnitResourceRequest& request, const QueryFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryFinanceUnitResourceOutcomeCallable queryFinanceUnitResourceCallable(const Model::QueryFinanceUnitResourceRequest& request) const;
|
||||
QueryInstanceBillOutcome queryInstanceBill(const Model::QueryInstanceBillRequest &request)const;
|
||||
void queryInstanceBillAsync(const Model::QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceBillOutcomeCallable queryInstanceBillCallable(const Model::QueryInstanceBillRequest& request) const;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,39 +28,39 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateFinanceUnitResourceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
struct ResourceInstanceList
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
struct ResourceInstanceList
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
|
||||
public:
|
||||
AllocateFinanceUnitResourceRequest();
|
||||
~AllocateFinanceUnitResourceRequest();
|
||||
AllocateCostUnitResourceRequest();
|
||||
~AllocateCostUnitResourceRequest();
|
||||
|
||||
std::vector<ResourceInstanceList> getResourceInstanceList()const;
|
||||
void setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList);
|
||||
long getFromUnitId()const;
|
||||
void setFromUnitId(long fromUnitId);
|
||||
long getToUnitId()const;
|
||||
void setToUnitId(long toUnitId);
|
||||
long getFromUnitUserId()const;
|
||||
void setFromUnitUserId(long fromUnitUserId);
|
||||
long getToUnitUserId()const;
|
||||
void setToUnitUserId(long toUnitUserId);
|
||||
std::vector<ResourceInstanceList> getResourceInstanceList()const;
|
||||
void setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList);
|
||||
long getFromUnitId()const;
|
||||
void setFromUnitId(long fromUnitId);
|
||||
long getToUnitId()const;
|
||||
void setToUnitId(long toUnitId);
|
||||
long getFromUnitUserId()const;
|
||||
void setFromUnitUserId(long fromUnitUserId);
|
||||
long getToUnitUserId()const;
|
||||
void setToUnitUserId(long toUnitUserId);
|
||||
|
||||
private:
|
||||
std::vector<ResourceInstanceList> resourceInstanceList_;
|
||||
long fromUnitId_;
|
||||
long toUnitId_;
|
||||
long fromUnitUserId_;
|
||||
long toUnitUserId_;
|
||||
std::vector<ResourceInstanceList> resourceInstanceList_;
|
||||
long fromUnitId_;
|
||||
long toUnitId_;
|
||||
long fromUnitUserId_;
|
||||
long toUnitUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateFinanceUnitResourceResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
AllocateFinanceUnitResourceResult();
|
||||
explicit AllocateFinanceUnitResourceResult(const std::string &payload);
|
||||
~AllocateFinanceUnitResourceResult();
|
||||
AllocateCostUnitResourceResult();
|
||||
explicit AllocateCostUnitResourceResult(const std::string &payload);
|
||||
~AllocateCostUnitResourceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
};
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
};
|
||||
|
||||
public:
|
||||
CreateFinanceUnitRequest();
|
||||
~CreateFinanceUnitRequest();
|
||||
CreateCostUnitRequest();
|
||||
~CreateCostUnitRequest();
|
||||
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
|
||||
private:
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,25 +29,25 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnitDtoListItem
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
std::string unitName;
|
||||
};
|
||||
std::vector<FinanceUnitDtoListItem> financeUnitDtoList;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
CreateFinanceUnitResult();
|
||||
explicit CreateFinanceUnitResult(const std::string &payload);
|
||||
~CreateFinanceUnitResult();
|
||||
CreateCostUnitResult();
|
||||
explicit CreateCostUnitResult(const std::string &payload);
|
||||
~CreateCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -65,4 +65,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,24 +28,24 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteFinanceUnitRequest();
|
||||
~DeleteFinanceUnitRequest();
|
||||
DeleteCostUnitRequest();
|
||||
~DeleteCostUnitRequest();
|
||||
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
DeleteFinanceUnitResult();
|
||||
explicit DeleteFinanceUnitResult(const std::string &payload);
|
||||
~DeleteFinanceUnitResult();
|
||||
DeleteCostUnitResult();
|
||||
explicit DeleteCostUnitResult(const std::string &payload);
|
||||
~DeleteCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
};
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string newUnitName;
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
};
|
||||
|
||||
public:
|
||||
ModifyFinanceUnitRequest();
|
||||
~ModifyFinanceUnitRequest();
|
||||
ModifyCostUnitRequest();
|
||||
~ModifyCostUnitRequest();
|
||||
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
|
||||
private:
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
ModifyFinanceUnitResult();
|
||||
explicit ModifyFinanceUnitResult(const std::string &payload);
|
||||
~ModifyFinanceUnitResult();
|
||||
ModifyCostUnitResult();
|
||||
explicit ModifyCostUnitResult(const std::string &payload);
|
||||
~ModifyCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_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_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBillRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryAccountBillRequest();
|
||||
~QueryAccountBillRequest();
|
||||
|
||||
std::string getBillingCycle()const;
|
||||
void setBillingCycle(const std::string& billingCycle);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getOwnerID()const;
|
||||
void setOwnerID(long ownerID);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string billingCycle_;
|
||||
int pageNum_;
|
||||
long ownerID_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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_BSSOPENAPI_MODEL_QUERYACCOUNTBILLRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBillResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
float pretaxGrossAmount;
|
||||
float deductedByCoupons;
|
||||
std::string ownerName;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
std::string currency;
|
||||
float deductedByCashCoupons;
|
||||
float outstandingAmount;
|
||||
std::string costUnit;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
float invoiceDiscount;
|
||||
};
|
||||
std::string billingCycle;
|
||||
int totalCount;
|
||||
std::string accountID;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<Item> items;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
QueryAccountBillResult();
|
||||
explicit QueryAccountBillResult(const std::string &payload);
|
||||
~QueryAccountBillResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,30 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResourceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryFinanceUnitResourceRequest();
|
||||
~QueryFinanceUnitResourceRequest();
|
||||
QueryCostUnitRequest();
|
||||
~QueryCostUnitRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
long getParentUnitId()const;
|
||||
void setParentUnitId(long parentUnitId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
long parentUnitId_;
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,30 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryFinanceUnitRequest();
|
||||
~QueryFinanceUnitRequest();
|
||||
QueryCostUnitResourceRequest();
|
||||
~QueryCostUnitResourceRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,19 +29,19 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResourceResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnit
|
||||
struct CostUnit
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
std::string unitName;
|
||||
};
|
||||
struct FinanceUnitStatisInfo
|
||||
struct CostUnitStatisInfo
|
||||
{
|
||||
long subUnitCount;
|
||||
long totalResourceCount;
|
||||
@@ -70,15 +70,15 @@ namespace AlibabaCloud
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
FinanceUnit financeUnit;
|
||||
FinanceUnitStatisInfo financeUnitStatisInfo;
|
||||
CostUnit costUnit;
|
||||
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
||||
CostUnitStatisInfo costUnitStatisInfo;
|
||||
};
|
||||
|
||||
|
||||
QueryFinanceUnitResourceResult();
|
||||
explicit QueryFinanceUnitResourceResult(const std::string &payload);
|
||||
~QueryFinanceUnitResourceResult();
|
||||
QueryCostUnitResourceResult();
|
||||
explicit QueryCostUnitResourceResult(const std::string &payload);
|
||||
~QueryCostUnitResourceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -96,4 +96,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,12 +29,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnitDtoListItem
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
@@ -44,13 +44,13 @@ namespace AlibabaCloud
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<FinanceUnitDtoListItem> financeUnitDtoList;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
QueryFinanceUnitResult();
|
||||
explicit QueryFinanceUnitResult(const std::string &payload);
|
||||
~QueryFinanceUnitResult();
|
||||
QueryCostUnitResult();
|
||||
explicit QueryCostUnitResult(const std::string &payload);
|
||||
~QueryCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -68,4 +68,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
@@ -31,56 +31,56 @@ BssOpenApiClient::BssOpenApiClient(const Credentials &credentials, const ClientC
|
||||
RpcServiceClient(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, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(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, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::~BssOpenApiClient()
|
||||
{}
|
||||
|
||||
BssOpenApiClient::AllocateFinanceUnitResourceOutcome BssOpenApiClient::allocateFinanceUnitResource(const AllocateFinanceUnitResourceRequest &request) const
|
||||
BssOpenApiClient::AllocateCostUnitResourceOutcome BssOpenApiClient::allocateCostUnitResource(const AllocateCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AllocateFinanceUnitResourceOutcome(endpointOutcome.error());
|
||||
return AllocateCostUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AllocateFinanceUnitResourceOutcome(AllocateFinanceUnitResourceResult(outcome.result()));
|
||||
return AllocateCostUnitResourceOutcome(AllocateCostUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return AllocateFinanceUnitResourceOutcome(outcome.error());
|
||||
return AllocateCostUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::allocateFinanceUnitResourceAsync(const AllocateFinanceUnitResourceRequest& request, const AllocateFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::allocateCostUnitResourceAsync(const AllocateCostUnitResourceRequest& request, const AllocateCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, allocateFinanceUnitResource(request), context);
|
||||
handler(this, request, allocateCostUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::AllocateFinanceUnitResourceOutcomeCallable BssOpenApiClient::allocateFinanceUnitResourceCallable(const AllocateFinanceUnitResourceRequest &request) const
|
||||
BssOpenApiClient::AllocateCostUnitResourceOutcomeCallable BssOpenApiClient::allocateCostUnitResourceCallable(const AllocateCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AllocateFinanceUnitResourceOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<AllocateCostUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->allocateFinanceUnitResource(request);
|
||||
return this->allocateCostUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -267,36 +267,36 @@ BssOpenApiClient::CreateAgAccountOutcomeCallable BssOpenApiClient::createAgAccou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateFinanceUnitOutcome BssOpenApiClient::createFinanceUnit(const CreateFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::CreateCostUnitOutcome BssOpenApiClient::createCostUnit(const CreateCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFinanceUnitOutcome(endpointOutcome.error());
|
||||
return CreateCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFinanceUnitOutcome(CreateFinanceUnitResult(outcome.result()));
|
||||
return CreateCostUnitOutcome(CreateCostUnitResult(outcome.result()));
|
||||
else
|
||||
return CreateFinanceUnitOutcome(outcome.error());
|
||||
return CreateCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createFinanceUnitAsync(const CreateFinanceUnitRequest& request, const CreateFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::createCostUnitAsync(const CreateCostUnitRequest& request, const CreateCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFinanceUnit(request), context);
|
||||
handler(this, request, createCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateFinanceUnitOutcomeCallable BssOpenApiClient::createFinanceUnitCallable(const CreateFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::CreateCostUnitOutcomeCallable BssOpenApiClient::createCostUnitCallable(const CreateCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CreateCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFinanceUnit(request);
|
||||
return this->createCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -411,36 +411,36 @@ BssOpenApiClient::CreateResourcePackageOutcomeCallable BssOpenApiClient::createR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DeleteFinanceUnitOutcome BssOpenApiClient::deleteFinanceUnit(const DeleteFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::DeleteCostUnitOutcome BssOpenApiClient::deleteCostUnit(const DeleteCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFinanceUnitOutcome(endpointOutcome.error());
|
||||
return DeleteCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFinanceUnitOutcome(DeleteFinanceUnitResult(outcome.result()));
|
||||
return DeleteCostUnitOutcome(DeleteCostUnitResult(outcome.result()));
|
||||
else
|
||||
return DeleteFinanceUnitOutcome(outcome.error());
|
||||
return DeleteCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::deleteFinanceUnitAsync(const DeleteFinanceUnitRequest& request, const DeleteFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::deleteCostUnitAsync(const DeleteCostUnitRequest& request, const DeleteCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFinanceUnit(request), context);
|
||||
handler(this, request, deleteCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::DeleteFinanceUnitOutcomeCallable BssOpenApiClient::deleteFinanceUnitCallable(const DeleteFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::DeleteCostUnitOutcomeCallable BssOpenApiClient::deleteCostUnitCallable(const DeleteCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFinanceUnit(request);
|
||||
return this->deleteCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -771,36 +771,36 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyFinanceUnitOutcome BssOpenApiClient::modifyFinanceUnit(const ModifyFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::ModifyCostUnitOutcome BssOpenApiClient::modifyCostUnit(const ModifyCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFinanceUnitOutcome(endpointOutcome.error());
|
||||
return ModifyCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFinanceUnitOutcome(ModifyFinanceUnitResult(outcome.result()));
|
||||
return ModifyCostUnitOutcome(ModifyCostUnitResult(outcome.result()));
|
||||
else
|
||||
return ModifyFinanceUnitOutcome(outcome.error());
|
||||
return ModifyCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::modifyFinanceUnitAsync(const ModifyFinanceUnitRequest& request, const ModifyFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::modifyCostUnitAsync(const ModifyCostUnitRequest& request, const ModifyCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFinanceUnit(request), context);
|
||||
handler(this, request, modifyCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyFinanceUnitOutcomeCallable BssOpenApiClient::modifyFinanceUnitCallable(const ModifyFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::ModifyCostUnitOutcomeCallable BssOpenApiClient::modifyCostUnitCallable(const ModifyCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFinanceUnit(request);
|
||||
return this->modifyCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -879,6 +879,42 @@ BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAcco
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBillOutcome BssOpenApiClient::queryAccountBill(const QueryAccountBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountBillOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountBillOutcome(QueryAccountBillResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountBillOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountBillAsync(const QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountBill(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBillOutcomeCallable BssOpenApiClient::queryAccountBillCallable(const QueryAccountBillRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountBillOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountBill(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1095,78 @@ BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitOutcome BssOpenApiClient::queryCostUnit(const QueryCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCostUnitOutcome(QueryCostUnitResult(outcome.result()));
|
||||
else
|
||||
return QueryCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryCostUnitAsync(const QueryCostUnitRequest& request, const QueryCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitOutcomeCallable BssOpenApiClient::queryCostUnitCallable(const QueryCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitResourceOutcome BssOpenApiClient::queryCostUnitResource(const QueryCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCostUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCostUnitResourceOutcome(QueryCostUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return QueryCostUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryCostUnitResourceAsync(const QueryCostUnitResourceRequest& request, const QueryCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCostUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitResourceOutcomeCallable BssOpenApiClient::queryCostUnitResourceCallable(const QueryCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCostUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCostUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCustomerAddressListOutcome BssOpenApiClient::queryCustomerAddressList(const QueryCustomerAddressListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,78 +1239,6 @@ BssOpenApiClient::QueryEvaluateListOutcomeCallable BssOpenApiClient::queryEvalua
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitOutcome BssOpenApiClient::queryFinanceUnit(const QueryFinanceUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryFinanceUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryFinanceUnitOutcome(QueryFinanceUnitResult(outcome.result()));
|
||||
else
|
||||
return QueryFinanceUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryFinanceUnitAsync(const QueryFinanceUnitRequest& request, const QueryFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryFinanceUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitOutcomeCallable BssOpenApiClient::queryFinanceUnitCallable(const QueryFinanceUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryFinanceUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryFinanceUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitResourceOutcome BssOpenApiClient::queryFinanceUnitResource(const QueryFinanceUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryFinanceUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryFinanceUnitResourceOutcome(QueryFinanceUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return QueryFinanceUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryFinanceUnitResourceAsync(const QueryFinanceUnitResourceRequest& request, const QueryFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryFinanceUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitResourceOutcomeCallable BssOpenApiClient::queryFinanceUnitResourceCallable(const QueryFinanceUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryFinanceUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryFinanceUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceBillOutcome BssOpenApiClient::queryInstanceBill(const QueryInstanceBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -14,76 +14,78 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::AllocateFinanceUnitResourceRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::AllocateCostUnitResourceRequest;
|
||||
|
||||
AllocateFinanceUnitResourceRequest::AllocateFinanceUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateFinanceUnitResource")
|
||||
AllocateCostUnitResourceRequest::AllocateCostUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateCostUnitResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AllocateCostUnitResourceRequest::~AllocateCostUnitResourceRequest()
|
||||
{}
|
||||
|
||||
AllocateFinanceUnitResourceRequest::~AllocateFinanceUnitResourceRequest()
|
||||
{}
|
||||
|
||||
std::vector<AllocateFinanceUnitResourceRequest::ResourceInstanceList> AllocateFinanceUnitResourceRequest::getResourceInstanceList()const
|
||||
{
|
||||
return resourceInstanceList_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList)
|
||||
{
|
||||
resourceInstanceList_ = resourceInstanceList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resourceInstanceList.size(); i++) {
|
||||
auto obj = resourceInstanceList.at(i);
|
||||
std::string str ="ResourceInstanceList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
setCoreParameter(str + ".CommodityCode", obj.commodityCode);
|
||||
setCoreParameter(str + ".ResourceUserId", std::to_string(obj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getFromUnitId()const
|
||||
{
|
||||
return fromUnitId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setFromUnitId(long fromUnitId)
|
||||
{
|
||||
fromUnitId_ = fromUnitId;
|
||||
setCoreParameter("FromUnitId", std::to_string(fromUnitId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getToUnitId()const
|
||||
{
|
||||
return toUnitId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setToUnitId(long toUnitId)
|
||||
{
|
||||
toUnitId_ = toUnitId;
|
||||
setCoreParameter("ToUnitId", std::to_string(toUnitId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getFromUnitUserId()const
|
||||
{
|
||||
return fromUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setFromUnitUserId(long fromUnitUserId)
|
||||
{
|
||||
fromUnitUserId_ = fromUnitUserId;
|
||||
setCoreParameter("FromUnitUserId", std::to_string(fromUnitUserId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getToUnitUserId()const
|
||||
{
|
||||
return toUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setToUnitUserId(long toUnitUserId)
|
||||
{
|
||||
toUnitUserId_ = toUnitUserId;
|
||||
setCoreParameter("ToUnitUserId", std::to_string(toUnitUserId));
|
||||
}
|
||||
|
||||
std::vector<AllocateCostUnitResourceRequest::ResourceInstanceList> AllocateCostUnitResourceRequest::getResourceInstanceList()const
|
||||
{
|
||||
return resourceInstanceList_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList)
|
||||
{
|
||||
resourceInstanceList_ = resourceInstanceList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resourceInstanceList.size(); i++) {
|
||||
auto obj = resourceInstanceList.at(i);
|
||||
std::string str ="ResourceInstanceList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
setCoreParameter(str + ".CommodityCode", obj.commodityCode);
|
||||
setCoreParameter(str + ".ResourceUserId", std::to_string(obj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getFromUnitId()const
|
||||
{
|
||||
return fromUnitId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setFromUnitId(long fromUnitId)
|
||||
{
|
||||
fromUnitId_ = fromUnitId;
|
||||
setCoreParameter("FromUnitId", std::to_string(fromUnitId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getToUnitId()const
|
||||
{
|
||||
return toUnitId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setToUnitId(long toUnitId)
|
||||
{
|
||||
toUnitId_ = toUnitId;
|
||||
setCoreParameter("ToUnitId", std::to_string(toUnitId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getFromUnitUserId()const
|
||||
{
|
||||
return fromUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setFromUnitUserId(long fromUnitUserId)
|
||||
{
|
||||
fromUnitUserId_ = fromUnitUserId;
|
||||
setCoreParameter("FromUnitUserId", std::to_string(fromUnitUserId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getToUnitUserId()const
|
||||
{
|
||||
return toUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setToUnitUserId(long toUnitUserId)
|
||||
{
|
||||
toUnitUserId_ = toUnitUserId;
|
||||
setCoreParameter("ToUnitUserId", std::to_string(toUnitUserId));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/AllocateCostUnitResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
AllocateFinanceUnitResourceResult::AllocateFinanceUnitResourceResult() :
|
||||
AllocateCostUnitResourceResult::AllocateCostUnitResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateFinanceUnitResourceResult::AllocateFinanceUnitResourceResult(const std::string &payload) :
|
||||
AllocateCostUnitResourceResult::AllocateCostUnitResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateFinanceUnitResourceResult::~AllocateFinanceUnitResourceResult()
|
||||
AllocateCostUnitResourceResult::~AllocateCostUnitResourceResult()
|
||||
{}
|
||||
|
||||
void AllocateFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
void AllocateCostUnitResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -55,22 +55,22 @@ void AllocateFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateFinanceUnitResourceResult::getMessage()const
|
||||
std::string AllocateCostUnitResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AllocateFinanceUnitResourceResult::Data AllocateFinanceUnitResourceResult::getData()const
|
||||
AllocateCostUnitResourceResult::Data AllocateCostUnitResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AllocateFinanceUnitResourceResult::getCode()const
|
||||
std::string AllocateCostUnitResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AllocateFinanceUnitResourceResult::getSuccess()const
|
||||
bool AllocateCostUnitResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest;
|
||||
|
||||
ApplyInvoiceRequest::ApplyInvoiceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyInvoiceRequest::~ApplyInvoiceRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::CancelOrderRequest;
|
||||
|
||||
CancelOrderRequest::CancelOrderRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOrderRequest::~CancelOrderRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::ChangeResellerConsumeAmountRequest;
|
||||
|
||||
ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest;
|
||||
|
||||
ConvertChargeTypeRequest::ConvertChargeTypeRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConvertChargeTypeRequest::~ConvertChargeTypeRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::CreateAgAccountRequest;
|
||||
|
||||
CreateAgAccountRequest::CreateAgAccountRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAgAccountRequest::~CreateAgAccountRequest()
|
||||
{}
|
||||
|
||||
@@ -14,32 +14,34 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/CreateFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/CreateCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateCostUnitRequest;
|
||||
|
||||
CreateFinanceUnitRequest::CreateFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateFinanceUnit")
|
||||
{}
|
||||
|
||||
CreateFinanceUnitRequest::~CreateFinanceUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<CreateFinanceUnitRequest::UnitEntityList> CreateFinanceUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
CreateCostUnitRequest::CreateCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateCostUnit")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateFinanceUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".ParentUnitId", std::to_string(obj.parentUnitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
CreateCostUnitRequest::~CreateCostUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<CreateCostUnitRequest::UnitEntityList> CreateCostUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void CreateCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".ParentUnitId", std::to_string(obj.parentUnitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
85
bssopenapi/src/model/CreateCostUnitResult.cc
Normal file
85
bssopenapi/src/model/CreateCostUnitResult.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/bssopenapi/model/CreateCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateCostUnitResult::CreateCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCostUnitResult::CreateCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCostUnitResult::~CreateCostUnitResult()
|
||||
{}
|
||||
|
||||
void CreateCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"];
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateCostUnitResult::Data CreateCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/CreateFinanceUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateFinanceUnitResult::CreateFinanceUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFinanceUnitResult::CreateFinanceUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFinanceUnitResult::~CreateFinanceUnitResult()
|
||||
{}
|
||||
|
||||
void CreateFinanceUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allFinanceUnitDtoListNode = dataNode["FinanceUnitDtoList"]["FinanceUnitDtoListItem"];
|
||||
for (auto dataNodeFinanceUnitDtoListFinanceUnitDtoListItem : allFinanceUnitDtoListNode)
|
||||
{
|
||||
Data::FinanceUnitDtoListItem financeUnitDtoListItemObject;
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].isNull())
|
||||
financeUnitDtoListItemObject.ownerUid = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].isNull())
|
||||
financeUnitDtoListItemObject.parentUnitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].isNull())
|
||||
financeUnitDtoListItemObject.unitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].isNull())
|
||||
financeUnitDtoListItemObject.unitName = dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].asString();
|
||||
data_.financeUnitDtoList.push_back(financeUnitDtoListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFinanceUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateFinanceUnitResult::Data CreateFinanceUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateFinanceUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateFinanceUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::CreateResellerUserQuotaRequest;
|
||||
|
||||
CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest;
|
||||
|
||||
CreateResourcePackageRequest::CreateResourcePackageRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourcePackageRequest::~CreateResourcePackageRequest()
|
||||
{}
|
||||
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/DeleteFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::DeleteFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::DeleteCostUnitRequest;
|
||||
|
||||
DeleteFinanceUnitRequest::DeleteFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteFinanceUnit")
|
||||
DeleteCostUnitRequest::DeleteCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteCostUnit")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCostUnitRequest::~DeleteCostUnitRequest()
|
||||
{}
|
||||
|
||||
DeleteFinanceUnitRequest::~DeleteFinanceUnitRequest()
|
||||
{}
|
||||
|
||||
long DeleteFinanceUnitRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void DeleteFinanceUnitRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long DeleteFinanceUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void DeleteFinanceUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
long DeleteCostUnitRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void DeleteCostUnitRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long DeleteCostUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void DeleteCostUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/DeleteFinanceUnitResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/DeleteCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
DeleteFinanceUnitResult::DeleteFinanceUnitResult() :
|
||||
DeleteCostUnitResult::DeleteCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFinanceUnitResult::DeleteFinanceUnitResult(const std::string &payload) :
|
||||
DeleteCostUnitResult::DeleteCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFinanceUnitResult::~DeleteFinanceUnitResult()
|
||||
DeleteCostUnitResult::~DeleteCostUnitResult()
|
||||
{}
|
||||
|
||||
void DeleteFinanceUnitResult::parse(const std::string &payload)
|
||||
void DeleteCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -55,22 +55,22 @@ void DeleteFinanceUnitResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFinanceUnitResult::getMessage()const
|
||||
std::string DeleteCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteFinanceUnitResult::Data DeleteFinanceUnitResult::getData()const
|
||||
DeleteCostUnitResult::Data DeleteCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteFinanceUnitResult::getCode()const
|
||||
std::string DeleteCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteFinanceUnitResult::getSuccess()const
|
||||
bool DeleteCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::DescribePricingModuleRequest;
|
||||
|
||||
DescribePricingModuleRequest::DescribePricingModuleRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePricingModuleRequest::~DescribePricingModuleRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::DescribeResourcePackageProductRequest;
|
||||
|
||||
DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::EnableBillGenerationRequest;
|
||||
|
||||
EnableBillGenerationRequest::EnableBillGenerationRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
EnableBillGenerationRequest::~EnableBillGenerationRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest;
|
||||
|
||||
GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest;
|
||||
|
||||
GetCustomerListRequest::GetCustomerListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCustomerListRequest::~GetCustomerListRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetOrderDetailRequest;
|
||||
|
||||
GetOrderDetailRequest::GetOrderDetailRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOrderDetailRequest::~GetOrderDetailRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetPayAsYouGoPriceRequest;
|
||||
|
||||
GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest;
|
||||
|
||||
GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest;
|
||||
|
||||
GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest()
|
||||
{}
|
||||
|
||||
@@ -14,32 +14,34 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/ModifyFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::ModifyFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::ModifyCostUnitRequest;
|
||||
|
||||
ModifyFinanceUnitRequest::ModifyFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyFinanceUnit")
|
||||
{}
|
||||
|
||||
ModifyFinanceUnitRequest::~ModifyFinanceUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<ModifyFinanceUnitRequest::UnitEntityList> ModifyFinanceUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
ModifyCostUnitRequest::ModifyCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyCostUnit")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ModifyFinanceUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".UnitId", std::to_string(obj.unitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
ModifyCostUnitRequest::~ModifyCostUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<ModifyCostUnitRequest::UnitEntityList> ModifyCostUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void ModifyCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".NewUnitName", obj.newUnitName);
|
||||
setCoreParameter(str + ".UnitId", std::to_string(obj.unitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/ModifyFinanceUnitResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/ModifyCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
ModifyFinanceUnitResult::ModifyFinanceUnitResult() :
|
||||
ModifyCostUnitResult::ModifyCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyFinanceUnitResult::ModifyFinanceUnitResult(const std::string &payload) :
|
||||
ModifyCostUnitResult::ModifyCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyFinanceUnitResult::~ModifyFinanceUnitResult()
|
||||
ModifyCostUnitResult::~ModifyCostUnitResult()
|
||||
{}
|
||||
|
||||
void ModifyFinanceUnitResult::parse(const std::string &payload)
|
||||
void ModifyCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -60,22 +60,22 @@ void ModifyFinanceUnitResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyFinanceUnitResult::getMessage()const
|
||||
std::string ModifyCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ModifyFinanceUnitResult::DataItem> ModifyFinanceUnitResult::getData()const
|
||||
std::vector<ModifyCostUnitResult::DataItem> ModifyCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyFinanceUnitResult::getCode()const
|
||||
std::string ModifyCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyFinanceUnitResult::getSuccess()const
|
||||
bool ModifyCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::ModifyInstanceRequest;
|
||||
|
||||
ModifyInstanceRequest::ModifyInstanceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceRequest::~ModifyInstanceRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest;
|
||||
|
||||
QueryAccountBalanceRequest::QueryAccountBalanceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccountBalanceRequest::~QueryAccountBalanceRequest()
|
||||
{}
|
||||
|
||||
73
bssopenapi/src/model/QueryAccountBillRequest.cc
Normal file
73
bssopenapi/src/model/QueryAccountBillRequest.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/bssopenapi/model/QueryAccountBillRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAccountBillRequest;
|
||||
|
||||
QueryAccountBillRequest::QueryAccountBillRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBill")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccountBillRequest::~QueryAccountBillRequest()
|
||||
{}
|
||||
|
||||
std::string QueryAccountBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
int QueryAccountBillRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QueryAccountBillRequest::getOwnerID()const
|
||||
{
|
||||
return ownerID_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setOwnerID(long ownerID)
|
||||
{
|
||||
ownerID_ = ownerID;
|
||||
setCoreParameter("OwnerID", std::to_string(ownerID));
|
||||
}
|
||||
|
||||
int QueryAccountBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user