Compare commits
63 Commits
cloudesl-p
...
Httpdns-pa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2e912302d | ||
|
|
70ddae4685 | ||
|
|
b1e826e6d7 | ||
|
|
aca0a3efa8 | ||
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 | ||
|
|
a3f2125666 | ||
|
|
2a0fc860e2 | ||
|
|
4dea5b58b8 | ||
|
|
d6ea0cf35d | ||
|
|
f66ec181b6 | ||
|
|
db4cdcbeb0 | ||
|
|
80fbf35ea7 | ||
|
|
5c14e9a77f | ||
|
|
528d90a5e0 | ||
|
|
fb8137a8d3 | ||
|
|
e54c1961cb | ||
|
|
e7b81546c4 | ||
|
|
7f711be94a | ||
|
|
b5e667c1d7 | ||
|
|
2d9dc66719 | ||
|
|
97fa00faef | ||
|
|
630656ce24 | ||
|
|
f3b00eade0 | ||
|
|
02122aa7ea | ||
|
|
67d6a5f9d4 | ||
|
|
a15a171b2d | ||
|
|
9d980b6731 | ||
|
|
d6aeb545bc | ||
|
|
6217773578 | ||
|
|
cb2d0e9b5d | ||
|
|
2ee11b248a | ||
|
|
28e491ccfd | ||
|
|
5fa60dfc8c | ||
|
|
653f3e596c | ||
|
|
9e171f2b3a | ||
|
|
9dfe90ab37 | ||
|
|
5f619b53a5 | ||
|
|
32c8bd10fc | ||
|
|
7855593ebb | ||
|
|
87515e7ea9 | ||
|
|
a3d771af9b | ||
|
|
445d5ca242 | ||
|
|
bb42c9c351 | ||
|
|
5f2a993b52 | ||
|
|
7fd0c7bf01 | ||
|
|
f76139580d | ||
|
|
444bea3a37 | ||
|
|
6a7977923c | ||
|
|
b4903d0fd0 | ||
|
|
838459913d |
195
CHANGELOG
195
CHANGELOG
@@ -1,3 +1,198 @@
|
|||||||
|
2020-11-23 Version: patch
|
||||||
|
- Supported multiple Language.
|
||||||
|
|
||||||
|
2020-11-23 Version: patch
|
||||||
|
- Add LivenessDetect API.
|
||||||
|
|
||||||
|
2020-11-22 Version: patch
|
||||||
|
- DescribeClusterConnection.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Support ListExecutions with filter functionality.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Public beta version.
|
||||||
|
- Add Api Overseas.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Update DetectFace.
|
||||||
|
- Update RecognizeFace.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Add a new interface for asynchronous image translation.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Generated 2019-09-10 for `waf-openapi`.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update DescribeDedicatedClusterInstanceList return data.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update data API.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update data API.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update GenerateHumanAnimeStyle.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update SegmentBody.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Supported backend interface for ICBU.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- DescribeInstance support coldStorageSize.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Update DescribeDedicatedClusterInstanceList InstanceStatus type.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Generated 2018-01-11 for `rtc`.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Supported webpage scan.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Support event type in timeline of resource properties.
|
||||||
|
- Support resourceOwnerId in evaluation result.
|
||||||
|
- Support resource directory in config rule scene.
|
||||||
|
- Fix terraform related bugs.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Support ModifyDBClusterPrimaryZone.
|
||||||
|
- Support DescribeGlobalDatabaseNetworks.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Supported International-26888 Sites Region Endpoints.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Supported International-26888 Sites Region Endpoints.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Nat public IP supports the ISP attribute.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Add a new interface for asynchronous image translation.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videoenhan.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videoseg.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videorecog.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update objectdet.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update imgsearch.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update imagerecog.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update goodstech.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Update Imageaudit.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Add DeccribeEngineVersion DescribeTasks DescribeInstanceConfig and more APIs.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Fix GetBranchInfo and DeleteBranch API 404 error.
|
||||||
|
- Add ListRepositoryBranches and GetGroupDetail API.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release ErasePerson.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release DetectCardScreenshot RecognizePoiName.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release GenerateHumanAnimeStyle CountCrowd.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release SegmentHDSky SegmentHDCommonImage.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support drm.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Generated 2019-06-01 for `smc`.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Update new version.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support DescribeDBClusterTDE.
|
||||||
|
- Support ModifyDBClusterTDE.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Supported Open Api.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support OpenAPI.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Update DescribeTrails Response.
|
||||||
|
|
||||||
|
2020-11-05 Version: patch
|
||||||
|
- Support modifyInstnaceType.
|
||||||
|
|
||||||
|
2020-11-04 Version: patch
|
||||||
|
- Generated 2019-01-01 for `Cassandra`.
|
||||||
|
|
||||||
|
2020-11-04 Version: patch
|
||||||
|
- Support modifyInstnaceType.
|
||||||
|
|
||||||
|
2020-11-04 Version: patch
|
||||||
|
- Generated 2019-01-01 for `Cassandra`.
|
||||||
|
|
||||||
|
2020-11-04 Version: patch
|
||||||
|
- Support modifyInstnaceType.
|
||||||
|
|
||||||
|
2020-11-03 Version: patch
|
||||||
|
- Minor update for r-kvstore.
|
||||||
|
|
||||||
|
2020-11-03 Version: patch
|
||||||
|
- Update data API.
|
||||||
|
|
||||||
|
2020-11-02 Version: patch
|
||||||
|
- Support create serverless by day price type.
|
||||||
|
|
||||||
|
2020-11-01 Version: patch
|
||||||
|
- Supported All Console APIs.
|
||||||
|
|
||||||
|
2020-10-28 Version: patch
|
||||||
|
- Support GetParameters, GetParametersByPath, GetSecretParameters, GetSecretParametersByPath.
|
||||||
|
|
||||||
|
2020-10-28 Version: patch
|
||||||
|
- Supported all language sdk.
|
||||||
|
- Fixed some bugs for polardbx.
|
||||||
|
|
||||||
|
2020-10-28 Version: patch
|
||||||
|
- Supported golang sdk.
|
||||||
|
- Fixed some bugs for drds.
|
||||||
|
|
||||||
|
2020-10-27 Version: patch
|
||||||
|
- Support DescribePendingMaintenanceAction.
|
||||||
|
- Support ModifyPendingMaintenanceAction.
|
||||||
|
- Support DescribePendingMaintenanceActions.
|
||||||
|
|
||||||
|
2020-10-27 Version: patch
|
||||||
|
- Generated 2020-05-18 for `dataworks-public`.
|
||||||
|
|
||||||
|
2020-10-27 Version: patch
|
||||||
|
- Support Sampling for jaeger.
|
||||||
|
|
||||||
|
2020-10-27 Version: patch
|
||||||
|
- Fix bug.
|
||||||
|
|
||||||
2020-10-27 Version: patch
|
2020-10-27 Version: patch
|
||||||
- Add role authority management.
|
- Add role authority management.
|
||||||
|
|
||||||
|
|||||||
118
actiontrail/CMakeLists.txt
Normal file
118
actiontrail/CMakeLists.txt
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||||
|
|
||||||
|
set(actiontrail_public_header
|
||||||
|
include/alibabacloud/actiontrail/ActiontrailClient.h
|
||||||
|
include/alibabacloud/actiontrail/ActiontrailExport.h )
|
||||||
|
|
||||||
|
set(actiontrail_public_header_model
|
||||||
|
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/CreateTrailResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/DescribeRegionsResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/LookupEventsResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/StartLoggingResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/StopLoggingRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/StopLoggingResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/UpdateTrailRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/UpdateTrailResult.h )
|
||||||
|
|
||||||
|
set(actiontrail_src
|
||||||
|
src/ActiontrailClient.cc
|
||||||
|
src/model/CreateTrailRequest.cc
|
||||||
|
src/model/CreateTrailResult.cc
|
||||||
|
src/model/DeleteTrailRequest.cc
|
||||||
|
src/model/DeleteTrailResult.cc
|
||||||
|
src/model/DescribeRegionsRequest.cc
|
||||||
|
src/model/DescribeRegionsResult.cc
|
||||||
|
src/model/DescribeTrailsRequest.cc
|
||||||
|
src/model/DescribeTrailsResult.cc
|
||||||
|
src/model/GetTrailStatusRequest.cc
|
||||||
|
src/model/GetTrailStatusResult.cc
|
||||||
|
src/model/LookupEventsRequest.cc
|
||||||
|
src/model/LookupEventsResult.cc
|
||||||
|
src/model/StartLoggingRequest.cc
|
||||||
|
src/model/StartLoggingResult.cc
|
||||||
|
src/model/StopLoggingRequest.cc
|
||||||
|
src/model/StopLoggingResult.cc
|
||||||
|
src/model/UpdateTrailRequest.cc
|
||||||
|
src/model/UpdateTrailResult.cc )
|
||||||
|
|
||||||
|
add_library(actiontrail ${LIB_TYPE}
|
||||||
|
${actiontrail_public_header}
|
||||||
|
${actiontrail_public_header_model}
|
||||||
|
${actiontrail_src})
|
||||||
|
|
||||||
|
set_target_properties(actiontrail
|
||||||
|
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}actiontrail
|
||||||
|
)
|
||||||
|
|
||||||
|
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||||
|
set_target_properties(actiontrail
|
||||||
|
PROPERTIES
|
||||||
|
DEFINE_SYMBOL ALIBABACLOUD_ACTIONTRAIL_LIBRARY)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(actiontrail
|
||||||
|
PRIVATE include
|
||||||
|
${CMAKE_SOURCE_DIR}/core/include
|
||||||
|
)
|
||||||
|
target_link_libraries(actiontrail
|
||||||
|
core)
|
||||||
|
|
||||||
|
if(CMAKE_HOST_WIN32)
|
||||||
|
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||||
|
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||||
|
add_dependencies(actiontrail
|
||||||
|
jsoncpp)
|
||||||
|
target_include_directories(actiontrail
|
||||||
|
PRIVATE ${jsoncpp_install_dir}/include)
|
||||||
|
target_link_libraries(actiontrail
|
||||||
|
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||||
|
set_target_properties(actiontrail
|
||||||
|
PROPERTIES
|
||||||
|
COMPILE_OPTIONS "/bigobj")
|
||||||
|
else()
|
||||||
|
target_include_directories(actiontrail
|
||||||
|
PRIVATE /usr/include/jsoncpp)
|
||||||
|
target_link_libraries(actiontrail
|
||||||
|
jsoncpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES ${actiontrail_public_header}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/actiontrail)
|
||||||
|
install(FILES ${actiontrail_public_header_model}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/actiontrail/model)
|
||||||
|
install(TARGETS actiontrail
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
)
|
||||||
118
actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h
Normal file
118
actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||||
|
|
||||||
|
#include <future>
|
||||||
|
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||||
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
|
#include "ActiontrailExport.h"
|
||||||
|
#include "model/CreateTrailRequest.h"
|
||||||
|
#include "model/CreateTrailResult.h"
|
||||||
|
#include "model/DeleteTrailRequest.h"
|
||||||
|
#include "model/DeleteTrailResult.h"
|
||||||
|
#include "model/DescribeRegionsRequest.h"
|
||||||
|
#include "model/DescribeRegionsResult.h"
|
||||||
|
#include "model/DescribeTrailsRequest.h"
|
||||||
|
#include "model/DescribeTrailsResult.h"
|
||||||
|
#include "model/GetTrailStatusRequest.h"
|
||||||
|
#include "model/GetTrailStatusResult.h"
|
||||||
|
#include "model/LookupEventsRequest.h"
|
||||||
|
#include "model/LookupEventsResult.h"
|
||||||
|
#include "model/StartLoggingRequest.h"
|
||||||
|
#include "model/StartLoggingResult.h"
|
||||||
|
#include "model/StopLoggingRequest.h"
|
||||||
|
#include "model/StopLoggingResult.h"
|
||||||
|
#include "model/UpdateTrailRequest.h"
|
||||||
|
#include "model/UpdateTrailResult.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
|
||||||
|
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
|
||||||
|
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||||
|
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeTrailsResult> DescribeTrailsOutcome;
|
||||||
|
typedef std::future<DescribeTrailsOutcome> DescribeTrailsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::DescribeTrailsRequest&, const DescribeTrailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTrailsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
||||||
|
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
|
||||||
|
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::StartLoggingResult> StartLoggingOutcome;
|
||||||
|
typedef std::future<StartLoggingOutcome> StartLoggingOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::StartLoggingRequest&, const StartLoggingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartLoggingAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::StopLoggingResult> StopLoggingOutcome;
|
||||||
|
typedef std::future<StopLoggingOutcome> StopLoggingOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::StopLoggingRequest&, const StopLoggingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopLoggingAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateTrailResult> UpdateTrailOutcome;
|
||||||
|
typedef std::future<UpdateTrailOutcome> UpdateTrailOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::UpdateTrailRequest&, const UpdateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTrailAsyncHandler;
|
||||||
|
|
||||||
|
ActiontrailClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
|
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
|
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
|
~ActiontrailClient();
|
||||||
|
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
|
||||||
|
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
|
||||||
|
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
|
||||||
|
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& request) const;
|
||||||
|
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||||
|
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||||
|
DescribeTrailsOutcome describeTrails(const Model::DescribeTrailsRequest &request)const;
|
||||||
|
void describeTrailsAsync(const Model::DescribeTrailsRequest& request, const DescribeTrailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeTrailsOutcomeCallable describeTrailsCallable(const Model::DescribeTrailsRequest& request) const;
|
||||||
|
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
||||||
|
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
||||||
|
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
|
||||||
|
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;
|
||||||
|
StartLoggingOutcome startLogging(const Model::StartLoggingRequest &request)const;
|
||||||
|
void startLoggingAsync(const Model::StartLoggingRequest& request, const StartLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
StartLoggingOutcomeCallable startLoggingCallable(const Model::StartLoggingRequest& request) const;
|
||||||
|
StopLoggingOutcome stopLogging(const Model::StopLoggingRequest &request)const;
|
||||||
|
void stopLoggingAsync(const Model::StopLoggingRequest& request, const StopLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
StopLoggingOutcomeCallable stopLoggingCallable(const Model::StopLoggingRequest& request) const;
|
||||||
|
UpdateTrailOutcome updateTrail(const Model::UpdateTrailRequest &request)const;
|
||||||
|
void updateTrailAsync(const Model::UpdateTrailRequest& request, const UpdateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateTrailOutcomeCallable updateTrailCallable(const Model::UpdateTrailRequest& request) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||||
@@ -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_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/core/Global.h>
|
||||||
|
|
||||||
|
#if defined(ALIBABACLOUD_SHARED)
|
||||||
|
# if defined(ALIBABACLOUD_ACTIONTRAIL_LIBRARY)
|
||||||
|
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||||
|
# else
|
||||||
|
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateTrailRequest();
|
||||||
|
~CreateTrailRequest();
|
||||||
|
|
||||||
|
std::string getSlsProjectArn()const;
|
||||||
|
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getSlsWriteRoleArn()const;
|
||||||
|
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||||
|
bool getIsOrganizationTrail()const;
|
||||||
|
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||||
|
std::string getOssKeyPrefix()const;
|
||||||
|
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||||
|
std::string getMnsTopicArn()const;
|
||||||
|
void setMnsTopicArn(const std::string& mnsTopicArn);
|
||||||
|
std::string getRoleName()const;
|
||||||
|
void setRoleName(const std::string& roleName);
|
||||||
|
std::string getEventRW()const;
|
||||||
|
void setEventRW(const std::string& eventRW);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
std::string getOssBucketName()const;
|
||||||
|
void setOssBucketName(const std::string& ossBucketName);
|
||||||
|
std::string getTrailRegion()const;
|
||||||
|
void setTrailRegion(const std::string& trailRegion);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string slsProjectArn_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string slsWriteRoleArn_;
|
||||||
|
bool isOrganizationTrail_;
|
||||||
|
std::string ossKeyPrefix_;
|
||||||
|
std::string mnsTopicArn_;
|
||||||
|
std::string roleName_;
|
||||||
|
std::string eventRW_;
|
||||||
|
std::string name_;
|
||||||
|
std::string ossBucketName_;
|
||||||
|
std::string trailRegion_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CreateTrailResult();
|
||||||
|
explicit CreateTrailResult(const std::string &payload);
|
||||||
|
~CreateTrailResult();
|
||||||
|
std::string getSlsProjectArn()const;
|
||||||
|
std::string getMnsTopicArn()const;
|
||||||
|
std::string getRoleName()const;
|
||||||
|
std::string getEventRW()const;
|
||||||
|
std::string getHomeRegion()const;
|
||||||
|
std::string getOssKeyPrefix()const;
|
||||||
|
std::string getOssBucketName()const;
|
||||||
|
std::string getSlsWriteRoleArn()const;
|
||||||
|
std::string getTrailRegion()const;
|
||||||
|
std::string getName()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string slsProjectArn_;
|
||||||
|
std::string mnsTopicArn_;
|
||||||
|
std::string roleName_;
|
||||||
|
std::string eventRW_;
|
||||||
|
std::string homeRegion_;
|
||||||
|
std::string ossKeyPrefix_;
|
||||||
|
std::string ossBucketName_;
|
||||||
|
std::string slsWriteRoleArn_;
|
||||||
|
std::string trailRegion_;
|
||||||
|
std::string name_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILRESULT_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_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteTrailRequest();
|
||||||
|
~DeleteTrailRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string name_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DeleteTrailResult();
|
||||||
|
explicit DeleteTrailResult(const std::string &payload);
|
||||||
|
~DeleteTrailResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILRESULT_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_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DescribeRegionsRequest();
|
||||||
|
~DescribeRegionsRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Regions
|
||||||
|
{
|
||||||
|
struct RegionItem
|
||||||
|
{
|
||||||
|
std::string regionId;
|
||||||
|
};
|
||||||
|
std::vector<RegionItem> region;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeRegionsResult();
|
||||||
|
explicit DescribeRegionsResult(const std::string &payload);
|
||||||
|
~DescribeRegionsResult();
|
||||||
|
Regions getRegions()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
Regions regions_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DescribeTrailsRequest();
|
||||||
|
~DescribeTrailsRequest();
|
||||||
|
|
||||||
|
bool getIncludeShadowTrails()const;
|
||||||
|
void setIncludeShadowTrails(bool includeShadowTrails);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getNameList()const;
|
||||||
|
void setNameList(const std::string& nameList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool includeShadowTrails_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string nameList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct TrailListItem
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
std::string mnsTopicArn;
|
||||||
|
std::string homeRegion;
|
||||||
|
std::string createTime;
|
||||||
|
std::string startLoggingTime;
|
||||||
|
std::string stopLoggingTime;
|
||||||
|
std::string slsWriteRoleArn;
|
||||||
|
std::string trailRegion;
|
||||||
|
std::string name;
|
||||||
|
bool isOrganizationTrail;
|
||||||
|
std::string slsProjectArn;
|
||||||
|
std::string roleName;
|
||||||
|
std::string eventRW;
|
||||||
|
std::string ossKeyPrefix;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string ossBucketName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeTrailsResult();
|
||||||
|
explicit DescribeTrailsResult(const std::string &payload);
|
||||||
|
~DescribeTrailsResult();
|
||||||
|
std::vector<TrailListItem> getTrailList()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<TrailListItem> trailList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_H_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetTrailStatusRequest();
|
||||||
|
~GetTrailStatusRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
bool getIsOrganizationTrail()const;
|
||||||
|
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string name_;
|
||||||
|
bool isOrganizationTrail_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetTrailStatusResult();
|
||||||
|
explicit GetTrailStatusResult(const std::string &payload);
|
||||||
|
~GetTrailStatusResult();
|
||||||
|
std::string getStartLoggingTime()const;
|
||||||
|
std::string getLatestDeliveryError()const;
|
||||||
|
std::string getStopLoggingTime()const;
|
||||||
|
bool getIsLogging()const;
|
||||||
|
std::string getLatestDeliveryTime()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string startLoggingTime_;
|
||||||
|
std::string latestDeliveryError_;
|
||||||
|
std::string stopLoggingTime_;
|
||||||
|
bool isLogging_;
|
||||||
|
std::string latestDeliveryTime_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
LookupEventsRequest();
|
||||||
|
~LookupEventsRequest();
|
||||||
|
|
||||||
|
std::string getRequest()const;
|
||||||
|
void setRequest(const std::string& request);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getEventName()const;
|
||||||
|
void setEventName(const std::string& eventName);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getNextToken()const;
|
||||||
|
void setNextToken(const std::string& nextToken);
|
||||||
|
std::string getServiceName()const;
|
||||||
|
void setServiceName(const std::string& serviceName);
|
||||||
|
std::string getEvent()const;
|
||||||
|
void setEvent(const std::string& event);
|
||||||
|
std::string getEventAccessKeyId()const;
|
||||||
|
void setEventAccessKeyId(const std::string& eventAccessKeyId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getEventRW()const;
|
||||||
|
void setEventRW(const std::string& eventRW);
|
||||||
|
std::string getResourceType()const;
|
||||||
|
void setResourceType(const std::string& resourceType);
|
||||||
|
std::string getMaxResults()const;
|
||||||
|
void setMaxResults(const std::string& maxResults);
|
||||||
|
std::string getEventType()const;
|
||||||
|
void setEventType(const std::string& eventType);
|
||||||
|
std::string getResourceName()const;
|
||||||
|
void setResourceName(const std::string& resourceName);
|
||||||
|
std::string getUser()const;
|
||||||
|
void setUser(const std::string& user);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string request_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string eventName_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::string serviceName_;
|
||||||
|
std::string event_;
|
||||||
|
std::string eventAccessKeyId_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::string eventRW_;
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string maxResults_;
|
||||||
|
std::string eventType_;
|
||||||
|
std::string resourceName_;
|
||||||
|
std::string user_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_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_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
LookupEventsResult();
|
||||||
|
explicit LookupEventsResult(const std::string &payload);
|
||||||
|
~LookupEventsResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::string getEndTime()const;
|
||||||
|
std::vector<std::string> getEvents()const;
|
||||||
|
std::string getStartTime()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::vector<std::string> events_;
|
||||||
|
std::string startTime_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_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_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
StartLoggingRequest();
|
||||||
|
~StartLoggingRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string name_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
StartLoggingResult();
|
||||||
|
explicit StartLoggingResult(const std::string &payload);
|
||||||
|
~StartLoggingResult();
|
||||||
|
std::string getParam()const;
|
||||||
|
std::string getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string param_;
|
||||||
|
std::string result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_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_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
StopLoggingRequest();
|
||||||
|
~StopLoggingRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string name_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
StopLoggingResult();
|
||||||
|
explicit StopLoggingResult(const std::string &payload);
|
||||||
|
~StopLoggingResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_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_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
UpdateTrailRequest();
|
||||||
|
~UpdateTrailRequest();
|
||||||
|
|
||||||
|
std::string getSlsProjectArn()const;
|
||||||
|
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getSlsWriteRoleArn()const;
|
||||||
|
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||||
|
std::string getOssKeyPrefix()const;
|
||||||
|
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||||
|
std::string getMnsTopicArn()const;
|
||||||
|
void setMnsTopicArn(const std::string& mnsTopicArn);
|
||||||
|
std::string getRoleName()const;
|
||||||
|
void setRoleName(const std::string& roleName);
|
||||||
|
std::string getEventRW()const;
|
||||||
|
void setEventRW(const std::string& eventRW);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
std::string getOssBucketName()const;
|
||||||
|
void setOssBucketName(const std::string& ossBucketName);
|
||||||
|
std::string getTrailRegion()const;
|
||||||
|
void setTrailRegion(const std::string& trailRegion);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string slsProjectArn_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string slsWriteRoleArn_;
|
||||||
|
std::string ossKeyPrefix_;
|
||||||
|
std::string mnsTopicArn_;
|
||||||
|
std::string roleName_;
|
||||||
|
std::string eventRW_;
|
||||||
|
std::string name_;
|
||||||
|
std::string ossBucketName_;
|
||||||
|
std::string trailRegion_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
UpdateTrailResult();
|
||||||
|
explicit UpdateTrailResult(const std::string &payload);
|
||||||
|
~UpdateTrailResult();
|
||||||
|
std::string getSlsProjectArn()const;
|
||||||
|
std::string getMnsTopicArn()const;
|
||||||
|
std::string getRoleName()const;
|
||||||
|
std::string getEventRW()const;
|
||||||
|
std::string getHomeRegion()const;
|
||||||
|
std::string getOssKeyPrefix()const;
|
||||||
|
std::string getOssBucketName()const;
|
||||||
|
std::string getSlsWriteRoleArn()const;
|
||||||
|
std::string getTrailRegion()const;
|
||||||
|
std::string getName()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string slsProjectArn_;
|
||||||
|
std::string mnsTopicArn_;
|
||||||
|
std::string roleName_;
|
||||||
|
std::string eventRW_;
|
||||||
|
std::string homeRegion_;
|
||||||
|
std::string ossKeyPrefix_;
|
||||||
|
std::string ossBucketName_;
|
||||||
|
std::string slsWriteRoleArn_;
|
||||||
|
std::string trailRegion_;
|
||||||
|
std::string name_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||||
377
actiontrail/src/ActiontrailClient.cc
Normal file
377
actiontrail/src/ActiontrailClient.cc
Normal file
@@ -0,0 +1,377 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/ActiontrailClient.h>
|
||||||
|
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud;
|
||||||
|
using namespace AlibabaCloud::Location;
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
const std::string SERVICE_NAME = "Actiontrail";
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::ActiontrailClient(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, "actiontrail");
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::ActiontrailClient(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, "actiontrail");
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::ActiontrailClient(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, "actiontrail");
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::~ActiontrailClient()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateTrailOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateTrailOutcome(CreateTrailResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateTrailOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::createTrailAsync(const CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createTrail(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::CreateTrailOutcomeCallable ActiontrailClient::createTrailCallable(const CreateTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateTrailOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createTrail(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteTrailOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteTrailOutcome(DeleteTrailResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteTrailOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::deleteTrailAsync(const DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteTrail(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DeleteTrailOutcomeCallable ActiontrailClient::deleteTrailCallable(const DeleteTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteTrailOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteTrail(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DescribeRegionsOutcome ActiontrailClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeRegionsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeRegions(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DescribeRegionsOutcomeCallable ActiontrailClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeRegions(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DescribeTrailsOutcome ActiontrailClient::describeTrails(const DescribeTrailsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeTrailsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeTrailsOutcome(DescribeTrailsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeTrailsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::describeTrailsAsync(const DescribeTrailsRequest& request, const DescribeTrailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeTrails(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DescribeTrailsOutcomeCallable ActiontrailClient::describeTrailsCallable(const DescribeTrailsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeTrailsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeTrails(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::GetTrailStatusOutcome ActiontrailClient::getTrailStatus(const GetTrailStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetTrailStatusOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetTrailStatusOutcome(GetTrailStatusResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetTrailStatusOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::getTrailStatusAsync(const GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getTrailStatus(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::GetTrailStatusOutcomeCallable ActiontrailClient::getTrailStatusCallable(const GetTrailStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetTrailStatusOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getTrailStatus(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return LookupEventsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return LookupEventsOutcome(LookupEventsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return LookupEventsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::lookupEventsAsync(const LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, lookupEvents(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::LookupEventsOutcomeCallable ActiontrailClient::lookupEventsCallable(const LookupEventsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<LookupEventsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->lookupEvents(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::StartLoggingOutcome ActiontrailClient::startLogging(const StartLoggingRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return StartLoggingOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return StartLoggingOutcome(StartLoggingResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return StartLoggingOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::startLoggingAsync(const StartLoggingRequest& request, const StartLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, startLogging(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::StartLoggingOutcomeCallable ActiontrailClient::startLoggingCallable(const StartLoggingRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<StartLoggingOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->startLogging(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::StopLoggingOutcome ActiontrailClient::stopLogging(const StopLoggingRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return StopLoggingOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return StopLoggingOutcome(StopLoggingResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return StopLoggingOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::stopLoggingAsync(const StopLoggingRequest& request, const StopLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, stopLogging(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::StopLoggingOutcomeCallable ActiontrailClient::stopLoggingCallable(const StopLoggingRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<StopLoggingOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->stopLogging(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::UpdateTrailOutcome ActiontrailClient::updateTrail(const UpdateTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateTrailOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateTrailOutcome(UpdateTrailResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateTrailOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::updateTrailAsync(const UpdateTrailRequest& request, const UpdateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateTrail(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::UpdateTrailOutcomeCallable ActiontrailClient::updateTrailCallable(const UpdateTrailRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateTrailOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateTrail(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
150
actiontrail/src/model/CreateTrailRequest.cc
Normal file
150
actiontrail/src/model/CreateTrailRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/model/CreateTrailRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
|
||||||
|
|
||||||
|
CreateTrailRequest::CreateTrailRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "CreateTrail")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateTrailRequest::~CreateTrailRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getSlsProjectArn()const
|
||||||
|
{
|
||||||
|
return slsProjectArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||||
|
{
|
||||||
|
slsProjectArn_ = slsProjectArn;
|
||||||
|
setParameter("SlsProjectArn", slsProjectArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getSlsWriteRoleArn()const
|
||||||
|
{
|
||||||
|
return slsWriteRoleArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||||
|
{
|
||||||
|
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||||
|
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateTrailRequest::getIsOrganizationTrail()const
|
||||||
|
{
|
||||||
|
return isOrganizationTrail_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||||
|
{
|
||||||
|
isOrganizationTrail_ = isOrganizationTrail;
|
||||||
|
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getOssKeyPrefix()const
|
||||||
|
{
|
||||||
|
return ossKeyPrefix_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||||
|
{
|
||||||
|
ossKeyPrefix_ = ossKeyPrefix;
|
||||||
|
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getMnsTopicArn()const
|
||||||
|
{
|
||||||
|
return mnsTopicArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setMnsTopicArn(const std::string& mnsTopicArn)
|
||||||
|
{
|
||||||
|
mnsTopicArn_ = mnsTopicArn;
|
||||||
|
setParameter("MnsTopicArn", mnsTopicArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getRoleName()const
|
||||||
|
{
|
||||||
|
return roleName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setRoleName(const std::string& roleName)
|
||||||
|
{
|
||||||
|
roleName_ = roleName;
|
||||||
|
setParameter("RoleName", roleName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getEventRW()const
|
||||||
|
{
|
||||||
|
return eventRW_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setEventRW(const std::string& eventRW)
|
||||||
|
{
|
||||||
|
eventRW_ = eventRW;
|
||||||
|
setParameter("EventRW", eventRW);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getOssBucketName()const
|
||||||
|
{
|
||||||
|
return ossBucketName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||||
|
{
|
||||||
|
ossBucketName_ = ossBucketName;
|
||||||
|
setParameter("OssBucketName", ossBucketName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailRequest::getTrailRegion()const
|
||||||
|
{
|
||||||
|
return trailRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||||
|
{
|
||||||
|
trailRegion_ = trailRegion;
|
||||||
|
setParameter("TrailRegion", trailRegion);
|
||||||
|
}
|
||||||
|
|
||||||
114
actiontrail/src/model/CreateTrailResult.cc
Normal file
114
actiontrail/src/model/CreateTrailResult.cc
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/model/CreateTrailResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
CreateTrailResult::CreateTrailResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateTrailResult::CreateTrailResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateTrailResult::~CreateTrailResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateTrailResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Name"].isNull())
|
||||||
|
name_ = value["Name"].asString();
|
||||||
|
if(!value["HomeRegion"].isNull())
|
||||||
|
homeRegion_ = value["HomeRegion"].asString();
|
||||||
|
if(!value["OssBucketName"].isNull())
|
||||||
|
ossBucketName_ = value["OssBucketName"].asString();
|
||||||
|
if(!value["OssKeyPrefix"].isNull())
|
||||||
|
ossKeyPrefix_ = value["OssKeyPrefix"].asString();
|
||||||
|
if(!value["RoleName"].isNull())
|
||||||
|
roleName_ = value["RoleName"].asString();
|
||||||
|
if(!value["SlsProjectArn"].isNull())
|
||||||
|
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||||
|
if(!value["SlsWriteRoleArn"].isNull())
|
||||||
|
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||||
|
if(!value["EventRW"].isNull())
|
||||||
|
eventRW_ = value["EventRW"].asString();
|
||||||
|
if(!value["TrailRegion"].isNull())
|
||||||
|
trailRegion_ = value["TrailRegion"].asString();
|
||||||
|
if(!value["MnsTopicArn"].isNull())
|
||||||
|
mnsTopicArn_ = value["MnsTopicArn"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getSlsProjectArn()const
|
||||||
|
{
|
||||||
|
return slsProjectArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getMnsTopicArn()const
|
||||||
|
{
|
||||||
|
return mnsTopicArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getRoleName()const
|
||||||
|
{
|
||||||
|
return roleName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getEventRW()const
|
||||||
|
{
|
||||||
|
return eventRW_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getHomeRegion()const
|
||||||
|
{
|
||||||
|
return homeRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getOssKeyPrefix()const
|
||||||
|
{
|
||||||
|
return ossKeyPrefix_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getOssBucketName()const
|
||||||
|
{
|
||||||
|
return ossBucketName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getSlsWriteRoleArn()const
|
||||||
|
{
|
||||||
|
return slsWriteRoleArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getTrailRegion()const
|
||||||
|
{
|
||||||
|
return trailRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTrailResult::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
51
actiontrail/src/model/DeleteTrailRequest.cc
Normal file
51
actiontrail/src/model/DeleteTrailRequest.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/actiontrail/model/DeleteTrailRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::DeleteTrailRequest;
|
||||||
|
|
||||||
|
DeleteTrailRequest::DeleteTrailRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "DeleteTrail")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteTrailRequest::~DeleteTrailRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DeleteTrailRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteTrailRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteTrailRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
44
actiontrail/src/model/DeleteTrailResult.cc
Normal file
44
actiontrail/src/model/DeleteTrailResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/DeleteTrailResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
DeleteTrailResult::DeleteTrailResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteTrailResult::DeleteTrailResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteTrailResult::~DeleteTrailResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteTrailResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,27 +14,27 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/dataworks-public/model/ListEmrHiveDatabasesRequest.h>
|
#include <alibabacloud/actiontrail/model/DescribeRegionsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Dataworks_public::Model::ListEmrHiveDatabasesRequest;
|
using AlibabaCloud::Actiontrail::Model::DescribeRegionsRequest;
|
||||||
|
|
||||||
ListEmrHiveDatabasesRequest::ListEmrHiveDatabasesRequest() :
|
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||||
RpcServiceRequest("dataworks-public", "2018-06-01", "ListEmrHiveDatabases")
|
RpcServiceRequest("actiontrail", "2017-12-04", "DescribeRegions")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|
||||||
ListEmrHiveDatabasesRequest::~ListEmrHiveDatabasesRequest()
|
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string ListEmrHiveDatabasesRequest::getClusterId()const
|
std::string DescribeRegionsRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return clusterId_;
|
return accessKeyId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListEmrHiveDatabasesRequest::setClusterId(const std::string& clusterId)
|
void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
{
|
{
|
||||||
clusterId_ = clusterId;
|
accessKeyId_ = accessKeyId;
|
||||||
setParameter("ClusterId", clusterId);
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
}
|
}
|
||||||
|
|
||||||
58
actiontrail/src/model/DescribeRegionsResult.cc
Normal file
58
actiontrail/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/DescribeRegionsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
DescribeRegionsResult::DescribeRegionsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeRegionsResult::~DescribeRegionsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeRegionsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto regionsNode = value["Regions"];
|
||||||
|
auto allRegionNode = regionsNode["Region"]["RegionItem"];
|
||||||
|
for (auto regionsNodeRegionRegionItem : allRegionNode)
|
||||||
|
{
|
||||||
|
Regions::RegionItem regionItemObject;
|
||||||
|
if(!regionsNodeRegionRegionItem["RegionId"].isNull())
|
||||||
|
regionItemObject.regionId = regionsNodeRegionRegionItem["RegionId"].asString();
|
||||||
|
regions_.region.push_back(regionItemObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const
|
||||||
|
{
|
||||||
|
return regions_;
|
||||||
|
}
|
||||||
|
|
||||||
62
actiontrail/src/model/DescribeTrailsRequest.cc
Normal file
62
actiontrail/src/model/DescribeTrailsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
|
||||||
|
|
||||||
|
DescribeTrailsRequest::DescribeTrailsRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "DescribeTrails")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeTrailsRequest::~DescribeTrailsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
bool DescribeTrailsRequest::getIncludeShadowTrails()const
|
||||||
|
{
|
||||||
|
return includeShadowTrails_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails)
|
||||||
|
{
|
||||||
|
includeShadowTrails_ = includeShadowTrails;
|
||||||
|
setParameter("IncludeShadowTrails", includeShadowTrails ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeTrailsRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeTrailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeTrailsRequest::getNameList()const
|
||||||
|
{
|
||||||
|
return nameList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeTrailsRequest::setNameList(const std::string& nameList)
|
||||||
|
{
|
||||||
|
nameList_ = nameList;
|
||||||
|
setParameter("NameList", nameList);
|
||||||
|
}
|
||||||
|
|
||||||
87
actiontrail/src/model/DescribeTrailsResult.cc
Normal file
87
actiontrail/src/model/DescribeTrailsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/DescribeTrailsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
DescribeTrailsResult::DescribeTrailsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeTrailsResult::DescribeTrailsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeTrailsResult::~DescribeTrailsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeTrailsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allTrailListNode = value["TrailList"]["TrailListItem"];
|
||||||
|
for (auto valueTrailListTrailListItem : allTrailListNode)
|
||||||
|
{
|
||||||
|
TrailListItem trailListObject;
|
||||||
|
if(!valueTrailListTrailListItem["Name"].isNull())
|
||||||
|
trailListObject.name = valueTrailListTrailListItem["Name"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["HomeRegion"].isNull())
|
||||||
|
trailListObject.homeRegion = valueTrailListTrailListItem["HomeRegion"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["RoleName"].isNull())
|
||||||
|
trailListObject.roleName = valueTrailListTrailListItem["RoleName"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["OssBucketName"].isNull())
|
||||||
|
trailListObject.ossBucketName = valueTrailListTrailListItem["OssBucketName"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["OssKeyPrefix"].isNull())
|
||||||
|
trailListObject.ossKeyPrefix = valueTrailListTrailListItem["OssKeyPrefix"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["EventRW"].isNull())
|
||||||
|
trailListObject.eventRW = valueTrailListTrailListItem["EventRW"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["SlsWriteRoleArn"].isNull())
|
||||||
|
trailListObject.slsWriteRoleArn = valueTrailListTrailListItem["SlsWriteRoleArn"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["SlsProjectArn"].isNull())
|
||||||
|
trailListObject.slsProjectArn = valueTrailListTrailListItem["SlsProjectArn"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["Status"].isNull())
|
||||||
|
trailListObject.status = valueTrailListTrailListItem["Status"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["TrailRegion"].isNull())
|
||||||
|
trailListObject.trailRegion = valueTrailListTrailListItem["TrailRegion"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["CreateTime"].isNull())
|
||||||
|
trailListObject.createTime = valueTrailListTrailListItem["CreateTime"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["UpdateTime"].isNull())
|
||||||
|
trailListObject.updateTime = valueTrailListTrailListItem["UpdateTime"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["StartLoggingTime"].isNull())
|
||||||
|
trailListObject.startLoggingTime = valueTrailListTrailListItem["StartLoggingTime"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["StopLoggingTime"].isNull())
|
||||||
|
trailListObject.stopLoggingTime = valueTrailListTrailListItem["StopLoggingTime"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["MnsTopicArn"].isNull())
|
||||||
|
trailListObject.mnsTopicArn = valueTrailListTrailListItem["MnsTopicArn"].asString();
|
||||||
|
if(!valueTrailListTrailListItem["IsOrganizationTrail"].isNull())
|
||||||
|
trailListObject.isOrganizationTrail = valueTrailListTrailListItem["IsOrganizationTrail"].asString() == "true";
|
||||||
|
trailList_.push_back(trailListObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DescribeTrailsResult::TrailListItem> DescribeTrailsResult::getTrailList()const
|
||||||
|
{
|
||||||
|
return trailList_;
|
||||||
|
}
|
||||||
|
|
||||||
62
actiontrail/src/model/GetTrailStatusRequest.cc
Normal file
62
actiontrail/src/model/GetTrailStatusRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/GetTrailStatusRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
|
||||||
|
|
||||||
|
GetTrailStatusRequest::GetTrailStatusRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "GetTrailStatus")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetTrailStatusRequest::~GetTrailStatusRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetTrailStatusRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTrailStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTrailStatusRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTrailStatusRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetTrailStatusRequest::getIsOrganizationTrail()const
|
||||||
|
{
|
||||||
|
return isOrganizationTrail_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||||
|
{
|
||||||
|
isOrganizationTrail_ = isOrganizationTrail;
|
||||||
|
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
79
actiontrail/src/model/GetTrailStatusResult.cc
Normal file
79
actiontrail/src/model/GetTrailStatusResult.cc
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/GetTrailStatusResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
GetTrailStatusResult::GetTrailStatusResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetTrailStatusResult::GetTrailStatusResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetTrailStatusResult::~GetTrailStatusResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetTrailStatusResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["IsLogging"].isNull())
|
||||||
|
isLogging_ = value["IsLogging"].asString() == "true";
|
||||||
|
if(!value["LatestDeliveryError"].isNull())
|
||||||
|
latestDeliveryError_ = value["LatestDeliveryError"].asString();
|
||||||
|
if(!value["LatestDeliveryTime"].isNull())
|
||||||
|
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
|
||||||
|
if(!value["StartLoggingTime"].isNull())
|
||||||
|
startLoggingTime_ = value["StartLoggingTime"].asString();
|
||||||
|
if(!value["StopLoggingTime"].isNull())
|
||||||
|
stopLoggingTime_ = value["StopLoggingTime"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTrailStatusResult::getStartLoggingTime()const
|
||||||
|
{
|
||||||
|
return startLoggingTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTrailStatusResult::getLatestDeliveryError()const
|
||||||
|
{
|
||||||
|
return latestDeliveryError_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTrailStatusResult::getStopLoggingTime()const
|
||||||
|
{
|
||||||
|
return stopLoggingTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetTrailStatusResult::getIsLogging()const
|
||||||
|
{
|
||||||
|
return isLogging_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTrailStatusResult::getLatestDeliveryTime()const
|
||||||
|
{
|
||||||
|
return latestDeliveryTime_;
|
||||||
|
}
|
||||||
|
|
||||||
194
actiontrail/src/model/LookupEventsRequest.cc
Normal file
194
actiontrail/src/model/LookupEventsRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/model/LookupEventsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
||||||
|
|
||||||
|
LookupEventsRequest::LookupEventsRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "LookupEvents")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
LookupEventsRequest::~LookupEventsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getRequest()const
|
||||||
|
{
|
||||||
|
return request_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setRequest(const std::string& request)
|
||||||
|
{
|
||||||
|
request_ = request;
|
||||||
|
setParameter("Request", request);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEventName()const
|
||||||
|
{
|
||||||
|
return eventName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEventName(const std::string& eventName)
|
||||||
|
{
|
||||||
|
eventName_ = eventName;
|
||||||
|
setParameter("EventName", eventName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setNextToken(const std::string& nextToken)
|
||||||
|
{
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter("NextToken", nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getServiceName()const
|
||||||
|
{
|
||||||
|
return serviceName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setServiceName(const std::string& serviceName)
|
||||||
|
{
|
||||||
|
serviceName_ = serviceName;
|
||||||
|
setParameter("ServiceName", serviceName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEvent()const
|
||||||
|
{
|
||||||
|
return event_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEvent(const std::string& event)
|
||||||
|
{
|
||||||
|
event_ = event;
|
||||||
|
setParameter("Event", event);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEventAccessKeyId()const
|
||||||
|
{
|
||||||
|
return eventAccessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEventAccessKeyId(const std::string& eventAccessKeyId)
|
||||||
|
{
|
||||||
|
eventAccessKeyId_ = eventAccessKeyId;
|
||||||
|
setParameter("EventAccessKeyId", eventAccessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEventRW()const
|
||||||
|
{
|
||||||
|
return eventRW_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEventRW(const std::string& eventRW)
|
||||||
|
{
|
||||||
|
eventRW_ = eventRW;
|
||||||
|
setParameter("EventRW", eventRW);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getResourceType()const
|
||||||
|
{
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setResourceType(const std::string& resourceType)
|
||||||
|
{
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter("ResourceType", resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getMaxResults()const
|
||||||
|
{
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setMaxResults(const std::string& maxResults)
|
||||||
|
{
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter("MaxResults", maxResults);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getEventType()const
|
||||||
|
{
|
||||||
|
return eventType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setEventType(const std::string& eventType)
|
||||||
|
{
|
||||||
|
eventType_ = eventType;
|
||||||
|
setParameter("EventType", eventType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getResourceName()const
|
||||||
|
{
|
||||||
|
return resourceName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setResourceName(const std::string& resourceName)
|
||||||
|
{
|
||||||
|
resourceName_ = resourceName;
|
||||||
|
setParameter("ResourceName", resourceName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsRequest::getUser()const
|
||||||
|
{
|
||||||
|
return user_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookupEventsRequest::setUser(const std::string& user)
|
||||||
|
{
|
||||||
|
user_ = user;
|
||||||
|
setParameter("User", user);
|
||||||
|
}
|
||||||
|
|
||||||
73
actiontrail/src/model/LookupEventsResult.cc
Normal file
73
actiontrail/src/model/LookupEventsResult.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/actiontrail/model/LookupEventsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
LookupEventsResult::LookupEventsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
LookupEventsResult::LookupEventsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
LookupEventsResult::~LookupEventsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void LookupEventsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allEvents = value["Events"]["Events"];
|
||||||
|
for (const auto &item : allEvents)
|
||||||
|
events_.push_back(item.asString());
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
if(!value["StartTime"].isNull())
|
||||||
|
startTime_ = value["StartTime"].asString();
|
||||||
|
if(!value["EndTime"].isNull())
|
||||||
|
endTime_ = value["EndTime"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsResult::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> LookupEventsResult::getEvents()const
|
||||||
|
{
|
||||||
|
return events_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LookupEventsResult::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
51
actiontrail/src/model/StartLoggingRequest.cc
Normal file
51
actiontrail/src/model/StartLoggingRequest.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/actiontrail/model/StartLoggingRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::StartLoggingRequest;
|
||||||
|
|
||||||
|
StartLoggingRequest::StartLoggingRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "StartLogging")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
StartLoggingRequest::~StartLoggingRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string StartLoggingRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartLoggingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string StartLoggingRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartLoggingRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
58
actiontrail/src/model/StartLoggingResult.cc
Normal file
58
actiontrail/src/model/StartLoggingResult.cc
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/StartLoggingResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
StartLoggingResult::StartLoggingResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
StartLoggingResult::StartLoggingResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
StartLoggingResult::~StartLoggingResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void StartLoggingResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Param"].isNull())
|
||||||
|
param_ = value["Param"].asString();
|
||||||
|
if(!value["Result"].isNull())
|
||||||
|
result_ = value["Result"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string StartLoggingResult::getParam()const
|
||||||
|
{
|
||||||
|
return param_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string StartLoggingResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
51
actiontrail/src/model/StopLoggingRequest.cc
Normal file
51
actiontrail/src/model/StopLoggingRequest.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/actiontrail/model/StopLoggingRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
|
||||||
|
|
||||||
|
StopLoggingRequest::StopLoggingRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "StopLogging")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
StopLoggingRequest::~StopLoggingRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string StopLoggingRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StopLoggingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string StopLoggingRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StopLoggingRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
44
actiontrail/src/model/StopLoggingResult.cc
Normal file
44
actiontrail/src/model/StopLoggingResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/StopLoggingResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
StopLoggingResult::StopLoggingResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
StopLoggingResult::StopLoggingResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
StopLoggingResult::~StopLoggingResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void StopLoggingResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
139
actiontrail/src/model/UpdateTrailRequest.cc
Normal file
139
actiontrail/src/model/UpdateTrailRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/model/UpdateTrailRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
|
||||||
|
|
||||||
|
UpdateTrailRequest::UpdateTrailRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2017-12-04", "UpdateTrail")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateTrailRequest::~UpdateTrailRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getSlsProjectArn()const
|
||||||
|
{
|
||||||
|
return slsProjectArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||||
|
{
|
||||||
|
slsProjectArn_ = slsProjectArn;
|
||||||
|
setParameter("SlsProjectArn", slsProjectArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getSlsWriteRoleArn()const
|
||||||
|
{
|
||||||
|
return slsWriteRoleArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||||
|
{
|
||||||
|
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||||
|
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getOssKeyPrefix()const
|
||||||
|
{
|
||||||
|
return ossKeyPrefix_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||||
|
{
|
||||||
|
ossKeyPrefix_ = ossKeyPrefix;
|
||||||
|
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getMnsTopicArn()const
|
||||||
|
{
|
||||||
|
return mnsTopicArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setMnsTopicArn(const std::string& mnsTopicArn)
|
||||||
|
{
|
||||||
|
mnsTopicArn_ = mnsTopicArn;
|
||||||
|
setParameter("MnsTopicArn", mnsTopicArn);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getRoleName()const
|
||||||
|
{
|
||||||
|
return roleName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setRoleName(const std::string& roleName)
|
||||||
|
{
|
||||||
|
roleName_ = roleName;
|
||||||
|
setParameter("RoleName", roleName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getEventRW()const
|
||||||
|
{
|
||||||
|
return eventRW_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setEventRW(const std::string& eventRW)
|
||||||
|
{
|
||||||
|
eventRW_ = eventRW;
|
||||||
|
setParameter("EventRW", eventRW);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getOssBucketName()const
|
||||||
|
{
|
||||||
|
return ossBucketName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||||
|
{
|
||||||
|
ossBucketName_ = ossBucketName;
|
||||||
|
setParameter("OssBucketName", ossBucketName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailRequest::getTrailRegion()const
|
||||||
|
{
|
||||||
|
return trailRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||||
|
{
|
||||||
|
trailRegion_ = trailRegion;
|
||||||
|
setParameter("TrailRegion", trailRegion);
|
||||||
|
}
|
||||||
|
|
||||||
114
actiontrail/src/model/UpdateTrailResult.cc
Normal file
114
actiontrail/src/model/UpdateTrailResult.cc
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
/*
|
||||||
|
* 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/actiontrail/model/UpdateTrailResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
UpdateTrailResult::UpdateTrailResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateTrailResult::UpdateTrailResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateTrailResult::~UpdateTrailResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateTrailResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Name"].isNull())
|
||||||
|
name_ = value["Name"].asString();
|
||||||
|
if(!value["HomeRegion"].isNull())
|
||||||
|
homeRegion_ = value["HomeRegion"].asString();
|
||||||
|
if(!value["OssBucketName"].isNull())
|
||||||
|
ossBucketName_ = value["OssBucketName"].asString();
|
||||||
|
if(!value["OssKeyPrefix"].isNull())
|
||||||
|
ossKeyPrefix_ = value["OssKeyPrefix"].asString();
|
||||||
|
if(!value["RoleName"].isNull())
|
||||||
|
roleName_ = value["RoleName"].asString();
|
||||||
|
if(!value["SlsProjectArn"].isNull())
|
||||||
|
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||||
|
if(!value["SlsWriteRoleArn"].isNull())
|
||||||
|
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||||
|
if(!value["EventRW"].isNull())
|
||||||
|
eventRW_ = value["EventRW"].asString();
|
||||||
|
if(!value["TrailRegion"].isNull())
|
||||||
|
trailRegion_ = value["TrailRegion"].asString();
|
||||||
|
if(!value["MnsTopicArn"].isNull())
|
||||||
|
mnsTopicArn_ = value["MnsTopicArn"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getSlsProjectArn()const
|
||||||
|
{
|
||||||
|
return slsProjectArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getMnsTopicArn()const
|
||||||
|
{
|
||||||
|
return mnsTopicArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getRoleName()const
|
||||||
|
{
|
||||||
|
return roleName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getEventRW()const
|
||||||
|
{
|
||||||
|
return eventRW_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getHomeRegion()const
|
||||||
|
{
|
||||||
|
return homeRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getOssKeyPrefix()const
|
||||||
|
{
|
||||||
|
return ossKeyPrefix_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getOssBucketName()const
|
||||||
|
{
|
||||||
|
return ossBucketName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getSlsWriteRoleArn()const
|
||||||
|
{
|
||||||
|
return slsWriteRoleArn_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getTrailRegion()const
|
||||||
|
{
|
||||||
|
return trailRegion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateTrailResult::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -41,6 +41,8 @@ set(alimt_public_header_model
|
|||||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||||
|
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
|
||||||
|
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
|
||||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||||
include/alibabacloud/alimt/model/TranslateResult.h
|
include/alibabacloud/alimt/model/TranslateResult.h
|
||||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||||
@@ -72,6 +74,8 @@ set(alimt_src
|
|||||||
src/model/GetTitleGenerateResult.cc
|
src/model/GetTitleGenerateResult.cc
|
||||||
src/model/GetTitleIntelligenceRequest.cc
|
src/model/GetTitleIntelligenceRequest.cc
|
||||||
src/model/GetTitleIntelligenceResult.cc
|
src/model/GetTitleIntelligenceResult.cc
|
||||||
|
src/model/OpenAlimtServiceRequest.cc
|
||||||
|
src/model/OpenAlimtServiceResult.cc
|
||||||
src/model/TranslateRequest.cc
|
src/model/TranslateRequest.cc
|
||||||
src/model/TranslateResult.cc
|
src/model/TranslateResult.cc
|
||||||
src/model/TranslateCertificateRequest.cc
|
src/model/TranslateCertificateRequest.cc
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
#include "model/GetTitleGenerateResult.h"
|
#include "model/GetTitleGenerateResult.h"
|
||||||
#include "model/GetTitleIntelligenceRequest.h"
|
#include "model/GetTitleIntelligenceRequest.h"
|
||||||
#include "model/GetTitleIntelligenceResult.h"
|
#include "model/GetTitleIntelligenceResult.h"
|
||||||
|
#include "model/OpenAlimtServiceRequest.h"
|
||||||
|
#include "model/OpenAlimtServiceResult.h"
|
||||||
#include "model/TranslateRequest.h"
|
#include "model/TranslateRequest.h"
|
||||||
#include "model/TranslateResult.h"
|
#include "model/TranslateResult.h"
|
||||||
#include "model/TranslateCertificateRequest.h"
|
#include "model/TranslateCertificateRequest.h"
|
||||||
@@ -89,6 +91,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
|
||||||
|
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
|
||||||
|
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||||
@@ -136,6 +141,9 @@ namespace AlibabaCloud
|
|||||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||||
|
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
|
||||||
|
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
|
||||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
|||||||
struct Data
|
struct Data
|
||||||
{
|
{
|
||||||
std::string orc;
|
std::string orc;
|
||||||
|
std::string pictureEditor;
|
||||||
std::string url;
|
std::string url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -14,41 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/rtc/RtcExport.h>
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rtc
|
namespace Alimt
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeMAURuleRequest();
|
OpenAlimtServiceRequest();
|
||||||
~DescribeMAURuleRequest();
|
~OpenAlimtServiceRequest();
|
||||||
|
|
||||||
std::string getShowLog()const;
|
|
||||||
void setShowLog(const std::string& showLog);
|
|
||||||
long getOwnerId()const;
|
long getOwnerId()const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
std::string getAppId()const;
|
std::string getType()const;
|
||||||
void setAppId(const std::string& appId);
|
void setType(const std::string& type);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string showLog_;
|
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string appId_;
|
std::string type_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_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_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Alimt
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
OpenAlimtServiceResult();
|
||||||
|
explicit OpenAlimtServiceResult(const std::string &payload);
|
||||||
|
~OpenAlimtServiceResult();
|
||||||
|
std::string getOrderId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string orderId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
@@ -411,6 +411,42 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return OpenAlimtServiceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return OpenAlimtServiceOutcome(OpenAlimtServiceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return OpenAlimtServiceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void AlimtClient::openAlimtServiceAsync(const OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, openAlimtService(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
AlimtClient::OpenAlimtServiceOutcomeCallable AlimtClient::openAlimtServiceCallable(const OpenAlimtServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<OpenAlimtServiceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->openAlimtService(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ void GetImageTranslateResult::parse(const std::string &payload)
|
|||||||
data_.url = dataNode["Url"].asString();
|
data_.url = dataNode["Url"].asString();
|
||||||
if(!dataNode["Orc"].isNull())
|
if(!dataNode["Orc"].isNull())
|
||||||
data_.orc = dataNode["Orc"].asString();
|
data_.orc = dataNode["Orc"].asString();
|
||||||
|
if(!dataNode["PictureEditor"].isNull())
|
||||||
|
data_.pictureEditor = dataNode["PictureEditor"].asString();
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
code_ = std::stoi(value["Code"].asString());
|
code_ = std::stoi(value["Code"].asString());
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
|
|||||||
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal file
51
alimt/src/model/OpenAlimtServiceRequest.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/alimt/model/OpenAlimtServiceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
|
||||||
|
|
||||||
|
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
|
||||||
|
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long OpenAlimtServiceRequest::getOwnerId()const
|
||||||
|
{
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
|
||||||
|
{
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter("OwnerId", std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenAlimtServiceRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenAlimtServiceRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
51
alimt/src/model/OpenAlimtServiceResult.cc
Normal file
51
alimt/src/model/OpenAlimtServiceResult.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/alimt/model/OpenAlimtServiceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Alimt;
|
||||||
|
using namespace AlibabaCloud::Alimt::Model;
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::OpenAlimtServiceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::~OpenAlimtServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void OpenAlimtServiceResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["OrderId"].isNull())
|
||||||
|
orderId_ = value["OrderId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenAlimtServiceResult::getOrderId()const
|
||||||
|
{
|
||||||
|
return orderId_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
|||||||
explicit DescribeRefreshQuotaResult(const std::string &payload);
|
explicit DescribeRefreshQuotaResult(const std::string &payload);
|
||||||
~DescribeRefreshQuotaResult();
|
~DescribeRefreshQuotaResult();
|
||||||
std::string getUrlRemain()const;
|
std::string getUrlRemain()const;
|
||||||
|
std::string getPreloadEdgeRemain()const;
|
||||||
std::string getPreloadRemain()const;
|
std::string getPreloadRemain()const;
|
||||||
std::string getBlockRemain()const;
|
std::string getBlockRemain()const;
|
||||||
std::string getRegexRemain()const;
|
std::string getRegexRemain()const;
|
||||||
@@ -47,11 +48,13 @@ namespace AlibabaCloud
|
|||||||
std::string getUrlQuota()const;
|
std::string getUrlQuota()const;
|
||||||
std::string getDirQuota()const;
|
std::string getDirQuota()const;
|
||||||
std::string getPreloadQuota()const;
|
std::string getPreloadQuota()const;
|
||||||
|
std::string getPreloadEdgeQuota()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string urlRemain_;
|
std::string urlRemain_;
|
||||||
|
std::string preloadEdgeRemain_;
|
||||||
std::string preloadRemain_;
|
std::string preloadRemain_;
|
||||||
std::string blockRemain_;
|
std::string blockRemain_;
|
||||||
std::string regexRemain_;
|
std::string regexRemain_;
|
||||||
@@ -61,6 +64,7 @@ namespace AlibabaCloud
|
|||||||
std::string urlQuota_;
|
std::string urlQuota_;
|
||||||
std::string dirQuota_;
|
std::string dirQuota_;
|
||||||
std::string preloadQuota_;
|
std::string preloadQuota_;
|
||||||
|
std::string preloadEdgeQuota_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainConfigsResult::parse(const std::string &payload)
|
|||||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
DomainConfig::FunctionArg functionArgsObject;
|
DomainConfig::FunctionArg functionArgsObject;
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
domainConfigs_.push_back(domainConfigsObject);
|
domainConfigs_.push_back(domainConfigsObject);
|
||||||
|
|||||||
@@ -47,32 +47,32 @@ void DescribeCdnDomainLogsResult::parse(const std::string &payload)
|
|||||||
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
|
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
|
||||||
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
||||||
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
||||||
auto allPageInfosNode = allDomainLogDetailsNode["PageInfos"]["PageInfoDetail"];
|
auto allPageInfosNode = valueDomainLogDetailsDomainLogDetail["PageInfos"]["PageInfoDetail"];
|
||||||
for (auto allDomainLogDetailsNodePageInfosPageInfoDetail : allPageInfosNode)
|
for (auto valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail : allPageInfosNode)
|
||||||
{
|
{
|
||||||
DomainLogDetail::PageInfoDetail pageInfosObject;
|
DomainLogDetail::PageInfoDetail pageInfosObject;
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].isNull())
|
||||||
pageInfosObject.pageIndex = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].asString());
|
pageInfosObject.pageIndex = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].asString());
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].isNull())
|
||||||
pageInfosObject.pageSize = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].asString());
|
pageInfosObject.pageSize = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].asString());
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].isNull())
|
||||||
pageInfosObject.total = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].asString());
|
pageInfosObject.total = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].asString());
|
||||||
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
|
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
|
||||||
}
|
}
|
||||||
auto allLogInfosNode = allDomainLogDetailsNode["LogInfos"]["LogInfoDetail"];
|
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
|
||||||
for (auto allDomainLogDetailsNodeLogInfosLogInfoDetail : allLogInfosNode)
|
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
|
||||||
{
|
{
|
||||||
DomainLogDetail::LogInfoDetail logInfosObject;
|
DomainLogDetail::LogInfoDetail logInfosObject;
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
|
||||||
logInfosObject.logName = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].asString();
|
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
|
||||||
logInfosObject.logPath = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].asString();
|
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||||
logInfosObject.logSize = std::stol(allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].asString());
|
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||||
logInfosObject.startTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].asString();
|
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
|
||||||
logInfosObject.endTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].asString();
|
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
|
||||||
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
||||||
}
|
}
|
||||||
domainLogDetails_.push_back(domainLogDetailsObject);
|
domainLogDetails_.push_back(domainLogDetailsObject);
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainStagingConfigResult::parse(const std::string &payload)
|
|||||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
DomainConfig::FunctionArg functionArgsObject;
|
DomainConfig::FunctionArg functionArgsObject;
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
domainConfigs_.push_back(domainConfigsObject);
|
domainConfigs_.push_back(domainConfigsObject);
|
||||||
|
|||||||
@@ -49,20 +49,20 @@ void DescribeCdnUserBillHistoryResult::parse(const std::string &payload)
|
|||||||
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
||||||
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
||||||
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
||||||
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
|
auto allBillingDataNode = valueBillHistoryDataBillHistoryDataItem["BillingData"]["BillingDataItem"];
|
||||||
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
|
for (auto valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem : allBillingDataNode)
|
||||||
{
|
{
|
||||||
BillHistoryDataItem::BillingDataItem billingDataObject;
|
BillHistoryDataItem::BillingDataItem billingDataObject;
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].isNull())
|
||||||
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
|
billingDataObject.chargeType = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].asString();
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||||
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
|
billingDataObject.cdnRegion = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].asString();
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||||
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
|
billingDataObject.bandwidth = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].asString());
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].isNull())
|
||||||
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
|
billingDataObject.flow = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].asString());
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].isNull())
|
||||||
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
|
billingDataObject.count = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].asString());
|
||||||
billHistoryDataObject.billingData.push_back(billingDataObject);
|
billHistoryDataObject.billingData.push_back(billingDataObject);
|
||||||
}
|
}
|
||||||
billHistoryData_.push_back(billHistoryDataObject);
|
billHistoryData_.push_back(billHistoryDataObject);
|
||||||
|
|||||||
@@ -63,20 +63,20 @@ void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
|||||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||||
{
|
{
|
||||||
PageData::Source sourcesObject;
|
PageData::Source sourcesObject;
|
||||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||||
domainsObject.sources.push_back(sourcesObject);
|
domainsObject.sources.push_back(sourcesObject);
|
||||||
}
|
}
|
||||||
domains_.push_back(domainsObject);
|
domains_.push_back(domainsObject);
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeConfigOfVersionResult::parse(const std::string &payload)
|
|||||||
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
|
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
|
||||||
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
|
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
|
||||||
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
|
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
|
||||||
auto allFunctionArgsNode = allVersionConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueVersionConfigsVersionConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allVersionConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueVersionConfigsVersionConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
VersionConfig::FunctionArg functionArgsObject;
|
VersionConfig::FunctionArg functionArgsObject;
|
||||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
versionConfigsObject.functionArgs.push_back(functionArgsObject);
|
versionConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
versionConfigs_.push_back(versionConfigsObject);
|
versionConfigs_.push_back(versionConfigsObject);
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payloa
|
|||||||
UsageData fileSizeProportionDataIntervalObject;
|
UsageData fileSizeProportionDataIntervalObject;
|
||||||
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
|
||||||
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
|
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allFileSizeProportionDataIntervalNode["Value"]["FileSizeProportionData"];
|
auto allValueNode = valueFileSizeProportionDataIntervalUsageData["Value"]["FileSizeProportionData"];
|
||||||
for (auto allFileSizeProportionDataIntervalNodeValueFileSizeProportionData : allValueNode)
|
for (auto valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::FileSizeProportionData valueObject;
|
UsageData::FileSizeProportionData valueObject;
|
||||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].isNull())
|
||||||
valueObject.fileSize = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].asString();
|
valueObject.fileSize = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].asString();
|
||||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].asString();
|
valueObject.proportion = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].asString();
|
||||||
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData httpCodeDataObject;
|
UsageData httpCodeDataObject;
|
||||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::CodeProportionData valueObject;
|
UsageData::CodeProportionData valueObject;
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||||
httpCodeDataObject.value.push_back(valueObject);
|
httpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
httpCodeData_.push_back(httpCodeDataObject);
|
httpCodeData_.push_back(httpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData realTimeHttpCodeDataObject;
|
UsageData realTimeHttpCodeDataObject;
|
||||||
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
|
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allRealTimeHttpCodeDataNode["Value"]["RealTimeCodeProportionData"];
|
auto allValueNode = valueRealTimeHttpCodeDataUsageData["Value"]["RealTimeCodeProportionData"];
|
||||||
for (auto allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData : allValueNode)
|
for (auto valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::RealTimeCodeProportionData valueObject;
|
UsageData::RealTimeCodeProportionData valueObject;
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].asString();
|
valueObject.code = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].asString();
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].asString();
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].asString();
|
valueObject.count = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].asString();
|
||||||
realTimeHttpCodeDataObject.value.push_back(valueObject);
|
realTimeHttpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);
|
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeSrcHttpCodeDataResult::parse(const std::string &paylo
|
|||||||
UsageData realTimeSrcHttpCodeDataObject;
|
UsageData realTimeSrcHttpCodeDataObject;
|
||||||
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
|
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allRealTimeSrcHttpCodeDataNode["Value"]["RealTimeSrcCodeProportionData"];
|
auto allValueNode = valueRealTimeSrcHttpCodeDataUsageData["Value"]["RealTimeSrcCodeProportionData"];
|
||||||
for (auto allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData : allValueNode)
|
for (auto valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::RealTimeSrcCodeProportionData valueObject;
|
UsageData::RealTimeSrcCodeProportionData valueObject;
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].asString();
|
valueObject.code = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].asString();
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].asString();
|
valueObject.count = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].asString();
|
||||||
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
|
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);
|
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainSrcHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData httpCodeDataObject;
|
UsageData httpCodeDataObject;
|
||||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::CodeProportionData valueObject;
|
UsageData::CodeProportionData valueObject;
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||||
httpCodeDataObject.value.push_back(valueObject);
|
httpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
httpCodeData_.push_back(httpCodeDataObject);
|
httpCodeData_.push_back(httpCodeDataObject);
|
||||||
|
|||||||
@@ -45,20 +45,20 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
|
|||||||
DomainsData domainsListObject;
|
DomainsData domainsListObject;
|
||||||
if(!valueDomainsListDomainsData["Source"].isNull())
|
if(!valueDomainsListDomainsData["Source"].isNull())
|
||||||
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
|
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
|
||||||
auto allDomainInfosNode = allDomainsListNode["DomainInfos"]["domainInfo"];
|
auto allDomainInfosNode = valueDomainsListDomainsData["DomainInfos"]["domainInfo"];
|
||||||
for (auto allDomainsListNodeDomainInfosdomainInfo : allDomainInfosNode)
|
for (auto valueDomainsListDomainsDataDomainInfosdomainInfo : allDomainInfosNode)
|
||||||
{
|
{
|
||||||
DomainsData::DomainInfo domainInfosObject;
|
DomainsData::DomainInfo domainInfosObject;
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainName"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].isNull())
|
||||||
domainInfosObject.domainName = allDomainsListNodeDomainInfosdomainInfo["DomainName"].asString();
|
domainInfosObject.domainName = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainCname"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].isNull())
|
||||||
domainInfosObject.domainCname = allDomainsListNodeDomainInfosdomainInfo["DomainCname"].asString();
|
domainInfosObject.domainCname = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["CreateTime"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].isNull())
|
||||||
domainInfosObject.createTime = allDomainsListNodeDomainInfosdomainInfo["CreateTime"].asString();
|
domainInfosObject.createTime = valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].isNull())
|
||||||
domainInfosObject.updateTime = allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].asString();
|
domainInfosObject.updateTime = valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["Status"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].isNull())
|
||||||
domainInfosObject.status = allDomainsListNodeDomainInfosdomainInfo["Status"].asString();
|
domainInfosObject.status = valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].asString();
|
||||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||||
}
|
}
|
||||||
auto allDomains = value["Domains"]["domainNames"];
|
auto allDomains = value["Domains"]["domainNames"];
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ void DescribeRefreshQuotaResult::parse(const std::string &payload)
|
|||||||
regexQuota_ = value["RegexQuota"].asString();
|
regexQuota_ = value["RegexQuota"].asString();
|
||||||
if(!value["RegexRemain"].isNull())
|
if(!value["RegexRemain"].isNull())
|
||||||
regexRemain_ = value["RegexRemain"].asString();
|
regexRemain_ = value["RegexRemain"].asString();
|
||||||
|
if(!value["PreloadEdgeQuota"].isNull())
|
||||||
|
preloadEdgeQuota_ = value["PreloadEdgeQuota"].asString();
|
||||||
|
if(!value["PreloadEdgeRemain"].isNull())
|
||||||
|
preloadEdgeRemain_ = value["PreloadEdgeRemain"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,6 +71,11 @@ std::string DescribeRefreshQuotaResult::getUrlRemain()const
|
|||||||
return urlRemain_;
|
return urlRemain_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeRefreshQuotaResult::getPreloadEdgeRemain()const
|
||||||
|
{
|
||||||
|
return preloadEdgeRemain_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
|
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
|
||||||
{
|
{
|
||||||
return preloadRemain_;
|
return preloadRemain_;
|
||||||
@@ -112,3 +121,8 @@ std::string DescribeRefreshQuotaResult::getPreloadQuota()const
|
|||||||
return preloadQuota_;
|
return preloadQuota_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeRefreshQuotaResult::getPreloadEdgeQuota()const
|
||||||
|
{
|
||||||
|
return preloadEdgeQuota_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ void DescribeTagResourcesResult::parse(const std::string &payload)
|
|||||||
TagResource tagResourcesObject;
|
TagResource tagResourcesObject;
|
||||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||||
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
|
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
|
||||||
for (auto allTagResourcesNodeTagTagItem : allTagNode)
|
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
|
||||||
{
|
{
|
||||||
TagResource::TagItem tagObject;
|
TagResource::TagItem tagObject;
|
||||||
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
|
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
|
||||||
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
|
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
|
||||||
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
|
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
|
||||||
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
|
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
|
||||||
tagResourcesObject.tag.push_back(tagObject);
|
tagResourcesObject.tag.push_back(tagObject);
|
||||||
}
|
}
|
||||||
tagResources_.push_back(tagResourcesObject);
|
tagResources_.push_back(tagResourcesObject);
|
||||||
|
|||||||
@@ -65,20 +65,20 @@ void DescribeUserDomainsResult::parse(const std::string &payload)
|
|||||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||||
if(!valueDomainsPageData["Coverage"].isNull())
|
if(!valueDomainsPageData["Coverage"].isNull())
|
||||||
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
||||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||||
{
|
{
|
||||||
PageData::Source sourcesObject;
|
PageData::Source sourcesObject;
|
||||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||||
domainsObject.sources.push_back(sourcesObject);
|
domainsObject.sources.push_back(sourcesObject);
|
||||||
}
|
}
|
||||||
domains_.push_back(domainsObject);
|
domains_.push_back(domainsObject);
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ set(cloudauth_public_header_model
|
|||||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
||||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||||
|
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
|
||||||
|
include/alibabacloud/cloudauth/model/CreateFaceConfigResult.h
|
||||||
include/alibabacloud/cloudauth/model/CreateRPSDKRequest.h
|
include/alibabacloud/cloudauth/model/CreateRPSDKRequest.h
|
||||||
include/alibabacloud/cloudauth/model/CreateRPSDKResult.h
|
include/alibabacloud/cloudauth/model/CreateRPSDKResult.h
|
||||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||||
@@ -39,6 +41,8 @@ set(cloudauth_public_header_model
|
|||||||
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
||||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||||
|
include/alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h
|
||||||
|
include/alibabacloud/cloudauth/model/DescribeFaceConfigResult.h
|
||||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
|
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
|
||||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
|
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
|
||||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
|
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
|
||||||
@@ -71,6 +75,8 @@ set(cloudauth_public_header_model
|
|||||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||||
|
include/alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h
|
||||||
|
include/alibabacloud/cloudauth/model/ElementSmartVerifyResult.h
|
||||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||||
@@ -83,6 +89,8 @@ set(cloudauth_public_header_model
|
|||||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||||
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
|
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
|
||||||
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
|
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
|
||||||
|
include/alibabacloud/cloudauth/model/LivenessDetectRequest.h
|
||||||
|
include/alibabacloud/cloudauth/model/LivenessDetectResult.h
|
||||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
||||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
||||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||||
@@ -93,6 +101,8 @@ set(cloudauth_public_header_model
|
|||||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||||
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
|
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
|
||||||
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
|
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
|
||||||
|
include/alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h
|
||||||
|
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
|
||||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
||||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
||||||
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
||||||
@@ -110,6 +120,8 @@ set(cloudauth_src
|
|||||||
src/model/ContrastFaceVerifyResult.cc
|
src/model/ContrastFaceVerifyResult.cc
|
||||||
src/model/CreateAuthKeyRequest.cc
|
src/model/CreateAuthKeyRequest.cc
|
||||||
src/model/CreateAuthKeyResult.cc
|
src/model/CreateAuthKeyResult.cc
|
||||||
|
src/model/CreateFaceConfigRequest.cc
|
||||||
|
src/model/CreateFaceConfigResult.cc
|
||||||
src/model/CreateRPSDKRequest.cc
|
src/model/CreateRPSDKRequest.cc
|
||||||
src/model/CreateRPSDKResult.cc
|
src/model/CreateRPSDKResult.cc
|
||||||
src/model/CreateVerifySDKRequest.cc
|
src/model/CreateVerifySDKRequest.cc
|
||||||
@@ -120,6 +132,8 @@ set(cloudauth_src
|
|||||||
src/model/DescribeAppInfoResult.cc
|
src/model/DescribeAppInfoResult.cc
|
||||||
src/model/DescribeDeviceInfoRequest.cc
|
src/model/DescribeDeviceInfoRequest.cc
|
||||||
src/model/DescribeDeviceInfoResult.cc
|
src/model/DescribeDeviceInfoResult.cc
|
||||||
|
src/model/DescribeFaceConfigRequest.cc
|
||||||
|
src/model/DescribeFaceConfigResult.cc
|
||||||
src/model/DescribeFaceUsageRequest.cc
|
src/model/DescribeFaceUsageRequest.cc
|
||||||
src/model/DescribeFaceUsageResult.cc
|
src/model/DescribeFaceUsageResult.cc
|
||||||
src/model/DescribeFaceVerifyRequest.cc
|
src/model/DescribeFaceVerifyRequest.cc
|
||||||
@@ -152,6 +166,8 @@ set(cloudauth_src
|
|||||||
src/model/DescribeVerifyUsageResult.cc
|
src/model/DescribeVerifyUsageResult.cc
|
||||||
src/model/DetectFaceAttributesRequest.cc
|
src/model/DetectFaceAttributesRequest.cc
|
||||||
src/model/DetectFaceAttributesResult.cc
|
src/model/DetectFaceAttributesResult.cc
|
||||||
|
src/model/ElementSmartVerifyRequest.cc
|
||||||
|
src/model/ElementSmartVerifyResult.cc
|
||||||
src/model/GetMaterialsRequest.cc
|
src/model/GetMaterialsRequest.cc
|
||||||
src/model/GetMaterialsResult.cc
|
src/model/GetMaterialsResult.cc
|
||||||
src/model/GetStatusRequest.cc
|
src/model/GetStatusRequest.cc
|
||||||
@@ -164,6 +180,8 @@ set(cloudauth_src
|
|||||||
src/model/InitFaceVerifyResult.cc
|
src/model/InitFaceVerifyResult.cc
|
||||||
src/model/InitSmartVerifyRequest.cc
|
src/model/InitSmartVerifyRequest.cc
|
||||||
src/model/InitSmartVerifyResult.cc
|
src/model/InitSmartVerifyResult.cc
|
||||||
|
src/model/LivenessDetectRequest.cc
|
||||||
|
src/model/LivenessDetectResult.cc
|
||||||
src/model/LivenessFaceVerifyRequest.cc
|
src/model/LivenessFaceVerifyRequest.cc
|
||||||
src/model/LivenessFaceVerifyResult.cc
|
src/model/LivenessFaceVerifyResult.cc
|
||||||
src/model/ModifyDeviceInfoRequest.cc
|
src/model/ModifyDeviceInfoRequest.cc
|
||||||
@@ -174,6 +192,8 @@ set(cloudauth_src
|
|||||||
src/model/SubmitVerificationResult.cc
|
src/model/SubmitVerificationResult.cc
|
||||||
src/model/UpdateAppPackageRequest.cc
|
src/model/UpdateAppPackageRequest.cc
|
||||||
src/model/UpdateAppPackageResult.cc
|
src/model/UpdateAppPackageResult.cc
|
||||||
|
src/model/UpdateFaceConfigRequest.cc
|
||||||
|
src/model/UpdateFaceConfigResult.cc
|
||||||
src/model/UpdateVerifySettingRequest.cc
|
src/model/UpdateVerifySettingRequest.cc
|
||||||
src/model/UpdateVerifySettingResult.cc
|
src/model/UpdateVerifySettingResult.cc
|
||||||
src/model/VerifyDeviceRequest.cc
|
src/model/VerifyDeviceRequest.cc
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
#include "model/ContrastFaceVerifyResult.h"
|
#include "model/ContrastFaceVerifyResult.h"
|
||||||
#include "model/CreateAuthKeyRequest.h"
|
#include "model/CreateAuthKeyRequest.h"
|
||||||
#include "model/CreateAuthKeyResult.h"
|
#include "model/CreateAuthKeyResult.h"
|
||||||
|
#include "model/CreateFaceConfigRequest.h"
|
||||||
|
#include "model/CreateFaceConfigResult.h"
|
||||||
#include "model/CreateRPSDKRequest.h"
|
#include "model/CreateRPSDKRequest.h"
|
||||||
#include "model/CreateRPSDKResult.h"
|
#include "model/CreateRPSDKResult.h"
|
||||||
#include "model/CreateVerifySDKRequest.h"
|
#include "model/CreateVerifySDKRequest.h"
|
||||||
@@ -40,6 +42,8 @@
|
|||||||
#include "model/DescribeAppInfoResult.h"
|
#include "model/DescribeAppInfoResult.h"
|
||||||
#include "model/DescribeDeviceInfoRequest.h"
|
#include "model/DescribeDeviceInfoRequest.h"
|
||||||
#include "model/DescribeDeviceInfoResult.h"
|
#include "model/DescribeDeviceInfoResult.h"
|
||||||
|
#include "model/DescribeFaceConfigRequest.h"
|
||||||
|
#include "model/DescribeFaceConfigResult.h"
|
||||||
#include "model/DescribeFaceUsageRequest.h"
|
#include "model/DescribeFaceUsageRequest.h"
|
||||||
#include "model/DescribeFaceUsageResult.h"
|
#include "model/DescribeFaceUsageResult.h"
|
||||||
#include "model/DescribeFaceVerifyRequest.h"
|
#include "model/DescribeFaceVerifyRequest.h"
|
||||||
@@ -72,6 +76,8 @@
|
|||||||
#include "model/DescribeVerifyUsageResult.h"
|
#include "model/DescribeVerifyUsageResult.h"
|
||||||
#include "model/DetectFaceAttributesRequest.h"
|
#include "model/DetectFaceAttributesRequest.h"
|
||||||
#include "model/DetectFaceAttributesResult.h"
|
#include "model/DetectFaceAttributesResult.h"
|
||||||
|
#include "model/ElementSmartVerifyRequest.h"
|
||||||
|
#include "model/ElementSmartVerifyResult.h"
|
||||||
#include "model/GetMaterialsRequest.h"
|
#include "model/GetMaterialsRequest.h"
|
||||||
#include "model/GetMaterialsResult.h"
|
#include "model/GetMaterialsResult.h"
|
||||||
#include "model/GetStatusRequest.h"
|
#include "model/GetStatusRequest.h"
|
||||||
@@ -84,6 +90,8 @@
|
|||||||
#include "model/InitFaceVerifyResult.h"
|
#include "model/InitFaceVerifyResult.h"
|
||||||
#include "model/InitSmartVerifyRequest.h"
|
#include "model/InitSmartVerifyRequest.h"
|
||||||
#include "model/InitSmartVerifyResult.h"
|
#include "model/InitSmartVerifyResult.h"
|
||||||
|
#include "model/LivenessDetectRequest.h"
|
||||||
|
#include "model/LivenessDetectResult.h"
|
||||||
#include "model/LivenessFaceVerifyRequest.h"
|
#include "model/LivenessFaceVerifyRequest.h"
|
||||||
#include "model/LivenessFaceVerifyResult.h"
|
#include "model/LivenessFaceVerifyResult.h"
|
||||||
#include "model/ModifyDeviceInfoRequest.h"
|
#include "model/ModifyDeviceInfoRequest.h"
|
||||||
@@ -94,6 +102,8 @@
|
|||||||
#include "model/SubmitVerificationResult.h"
|
#include "model/SubmitVerificationResult.h"
|
||||||
#include "model/UpdateAppPackageRequest.h"
|
#include "model/UpdateAppPackageRequest.h"
|
||||||
#include "model/UpdateAppPackageResult.h"
|
#include "model/UpdateAppPackageResult.h"
|
||||||
|
#include "model/UpdateFaceConfigRequest.h"
|
||||||
|
#include "model/UpdateFaceConfigResult.h"
|
||||||
#include "model/UpdateVerifySettingRequest.h"
|
#include "model/UpdateVerifySettingRequest.h"
|
||||||
#include "model/UpdateVerifySettingResult.h"
|
#include "model/UpdateVerifySettingResult.h"
|
||||||
#include "model/VerifyDeviceRequest.h"
|
#include "model/VerifyDeviceRequest.h"
|
||||||
@@ -121,6 +131,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateFaceConfigResult> CreateFaceConfigOutcome;
|
||||||
|
typedef std::future<CreateFaceConfigOutcome> CreateFaceConfigOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudauthClient*, const Model::CreateFaceConfigRequest&, const CreateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceConfigAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
|
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
|
||||||
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
|
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
|
||||||
@@ -136,6 +149,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeFaceConfigResult> DescribeFaceConfigOutcome;
|
||||||
|
typedef std::future<DescribeFaceConfigOutcome> DescribeFaceConfigOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceConfigRequest&, const DescribeFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceConfigAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
|
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
|
||||||
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
|
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
|
||||||
@@ -184,6 +200,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ElementSmartVerifyResult> ElementSmartVerifyOutcome;
|
||||||
|
typedef std::future<ElementSmartVerifyOutcome> ElementSmartVerifyOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudauthClient*, const Model::ElementSmartVerifyRequest&, const ElementSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ElementSmartVerifyAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||||
@@ -202,6 +221,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
|
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
|
||||||
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
|
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::LivenessDetectResult> LivenessDetectOutcome;
|
||||||
|
typedef std::future<LivenessDetectOutcome> LivenessDetectOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudauthClient*, const Model::LivenessDetectRequest&, const LivenessDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessDetectAsyncHandler;
|
||||||
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
|
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
|
||||||
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
|
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
|
||||||
@@ -217,6 +239,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
|
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
|
||||||
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
|
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateFaceConfigResult> UpdateFaceConfigOutcome;
|
||||||
|
typedef std::future<UpdateFaceConfigOutcome> UpdateFaceConfigOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudauthClient*, const Model::UpdateFaceConfigRequest&, const UpdateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceConfigAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
||||||
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
||||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
||||||
@@ -243,6 +268,9 @@ namespace AlibabaCloud
|
|||||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||||
|
CreateFaceConfigOutcome createFaceConfig(const Model::CreateFaceConfigRequest &request)const;
|
||||||
|
void createFaceConfigAsync(const Model::CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateFaceConfigOutcomeCallable createFaceConfigCallable(const Model::CreateFaceConfigRequest& request) const;
|
||||||
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
|
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
|
||||||
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
|
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
|
||||||
@@ -258,6 +286,9 @@ namespace AlibabaCloud
|
|||||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
||||||
|
DescribeFaceConfigOutcome describeFaceConfig(const Model::DescribeFaceConfigRequest &request)const;
|
||||||
|
void describeFaceConfigAsync(const Model::DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeFaceConfigOutcomeCallable describeFaceConfigCallable(const Model::DescribeFaceConfigRequest& request) const;
|
||||||
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
|
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
|
||||||
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
|
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
|
||||||
@@ -306,6 +337,9 @@ namespace AlibabaCloud
|
|||||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||||
|
ElementSmartVerifyOutcome elementSmartVerify(const Model::ElementSmartVerifyRequest &request)const;
|
||||||
|
void elementSmartVerifyAsync(const Model::ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ElementSmartVerifyOutcomeCallable elementSmartVerifyCallable(const Model::ElementSmartVerifyRequest& request) const;
|
||||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||||
@@ -324,6 +358,9 @@ namespace AlibabaCloud
|
|||||||
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
|
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
|
||||||
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
|
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
|
||||||
|
LivenessDetectOutcome livenessDetect(const Model::LivenessDetectRequest &request)const;
|
||||||
|
void livenessDetectAsync(const Model::LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
LivenessDetectOutcomeCallable livenessDetectCallable(const Model::LivenessDetectRequest& request) const;
|
||||||
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
|
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
|
||||||
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
|
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
|
||||||
@@ -339,6 +376,9 @@ namespace AlibabaCloud
|
|||||||
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
|
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
|
||||||
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
|
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
|
||||||
|
UpdateFaceConfigOutcome updateFaceConfig(const Model::UpdateFaceConfigRequest &request)const;
|
||||||
|
void updateFaceConfigAsync(const Model::UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateFaceConfigOutcomeCallable updateFaceConfigCallable(const Model::UpdateFaceConfigRequest& request) const;
|
||||||
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
||||||
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
||||||
|
|||||||
@@ -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_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateFaceConfigRequest();
|
||||||
|
~CreateFaceConfigRequest();
|
||||||
|
|
||||||
|
std::string getBizName()const;
|
||||||
|
void setBizName(const std::string& bizName);
|
||||||
|
std::string getBizType()const;
|
||||||
|
void setBizType(const std::string& bizType);
|
||||||
|
std::string getSourceIp()const;
|
||||||
|
void setSourceIp(const std::string& sourceIp);
|
||||||
|
std::string getLang()const;
|
||||||
|
void setLang(const std::string& lang);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string bizName_;
|
||||||
|
std::string bizType_;
|
||||||
|
std::string sourceIp_;
|
||||||
|
std::string lang_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CreateFaceConfigResult();
|
||||||
|
explicit CreateFaceConfigResult(const std::string &payload);
|
||||||
|
~CreateFaceConfigResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||||
@@ -14,38 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSREQUEST_H_
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSREQUEST_H_
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Cloudesl
|
namespace Cloudauth
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT DescribeRoleActionsRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeRoleActionsRequest();
|
DescribeFaceConfigRequest();
|
||||||
~DescribeRoleActionsRequest();
|
~DescribeFaceConfigRequest();
|
||||||
|
|
||||||
std::string getRoleCode()const;
|
std::string getSourceIp()const;
|
||||||
void setRoleCode(const std::string& roleCode);
|
void setSourceIp(const std::string& sourceIp);
|
||||||
std::string getExtraParams()const;
|
std::string getLang()const;
|
||||||
void setExtraParams(const std::string& extraParams);
|
void setLang(const std::string& lang);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string roleCode_;
|
std::string sourceIp_;
|
||||||
std::string extraParams_;
|
std::string lang_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSREQUEST_H_
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_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_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ItemsItem
|
||||||
|
{
|
||||||
|
long gmtUpdated;
|
||||||
|
std::string bizType;
|
||||||
|
std::string bizName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeFaceConfigResult();
|
||||||
|
explicit DescribeFaceConfigResult(const std::string &payload);
|
||||||
|
~DescribeFaceConfigResult();
|
||||||
|
std::vector<ItemsItem> getItems()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ItemsItem> items_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ElementSmartVerifyRequest();
|
||||||
|
~ElementSmartVerifyRequest();
|
||||||
|
|
||||||
|
std::string getCertFile()const;
|
||||||
|
void setCertFile(const std::string& certFile);
|
||||||
|
std::string getCertName()const;
|
||||||
|
void setCertName(const std::string& certName);
|
||||||
|
std::string getMode()const;
|
||||||
|
void setMode(const std::string& mode);
|
||||||
|
std::string getCertNo()const;
|
||||||
|
void setCertNo(const std::string& certNo);
|
||||||
|
std::string getOuterOrderNo()const;
|
||||||
|
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||||
|
std::string getCertUrl()const;
|
||||||
|
void setCertUrl(const std::string& certUrl);
|
||||||
|
std::string getCertType()const;
|
||||||
|
void setCertType(const std::string& certType);
|
||||||
|
long getSceneId()const;
|
||||||
|
void setSceneId(long sceneId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string certFile_;
|
||||||
|
std::string certName_;
|
||||||
|
std::string mode_;
|
||||||
|
std::string certNo_;
|
||||||
|
std::string outerOrderNo_;
|
||||||
|
std::string certUrl_;
|
||||||
|
std::string certType_;
|
||||||
|
long sceneId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultObject
|
||||||
|
{
|
||||||
|
std::string passed;
|
||||||
|
std::string materialInfo;
|
||||||
|
std::string subCode;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ElementSmartVerifyResult();
|
||||||
|
explicit ElementSmartVerifyResult(const std::string &payload);
|
||||||
|
~ElementSmartVerifyResult();
|
||||||
|
ResultObject getResultObject()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResultObject resultObject_;
|
||||||
|
std::string message_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
LivenessDetectRequest();
|
||||||
|
~LivenessDetectRequest();
|
||||||
|
|
||||||
|
std::string getMediaCategory()const;
|
||||||
|
void setMediaCategory(const std::string& mediaCategory);
|
||||||
|
std::string getMediaUrl()const;
|
||||||
|
void setMediaUrl(const std::string& mediaUrl);
|
||||||
|
std::string getBizType()const;
|
||||||
|
void setBizType(const std::string& bizType);
|
||||||
|
std::string getBizId()const;
|
||||||
|
void setBizId(const std::string& bizId);
|
||||||
|
std::string getMediaFile()const;
|
||||||
|
void setMediaFile(const std::string& mediaFile);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mediaCategory_;
|
||||||
|
std::string mediaUrl_;
|
||||||
|
std::string bizType_;
|
||||||
|
std::string bizId_;
|
||||||
|
std::string mediaFile_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResultObject
|
||||||
|
{
|
||||||
|
std::string passed;
|
||||||
|
float score;
|
||||||
|
std::string frameUrl;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
LivenessDetectResult();
|
||||||
|
explicit LivenessDetectResult(const std::string &payload);
|
||||||
|
~LivenessDetectResult();
|
||||||
|
ResultObject getResultObject()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResultObject resultObject_;
|
||||||
|
std::string message_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_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_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
UpdateFaceConfigRequest();
|
||||||
|
~UpdateFaceConfigRequest();
|
||||||
|
|
||||||
|
std::string getBizName()const;
|
||||||
|
void setBizName(const std::string& bizName);
|
||||||
|
std::string getBizType()const;
|
||||||
|
void setBizType(const std::string& bizType);
|
||||||
|
std::string getSourceIp()const;
|
||||||
|
void setSourceIp(const std::string& sourceIp);
|
||||||
|
std::string getLang()const;
|
||||||
|
void setLang(const std::string& lang);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string bizName_;
|
||||||
|
std::string bizType_;
|
||||||
|
std::string sourceIp_;
|
||||||
|
std::string lang_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Cloudauth
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
UpdateFaceConfigResult();
|
||||||
|
explicit UpdateFaceConfigResult(const std::string &payload);
|
||||||
|
~UpdateFaceConfigResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||||
@@ -195,6 +195,42 @@ CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCall
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloudauthClient::CreateFaceConfigOutcome CloudauthClient::createFaceConfig(const CreateFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateFaceConfigOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateFaceConfigOutcome(CreateFaceConfigResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateFaceConfigOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CloudauthClient::createFaceConfigAsync(const CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createFaceConfig(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CloudauthClient::CreateFaceConfigOutcomeCallable CloudauthClient::createFaceConfigCallable(const CreateFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateFaceConfigOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createFaceConfig(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
|
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -375,6 +411,42 @@ CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDevi
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloudauthClient::DescribeFaceConfigOutcome CloudauthClient::describeFaceConfig(const DescribeFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeFaceConfigOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeFaceConfigOutcome(DescribeFaceConfigResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeFaceConfigOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CloudauthClient::describeFaceConfigAsync(const DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeFaceConfig(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CloudauthClient::DescribeFaceConfigOutcomeCallable CloudauthClient::describeFaceConfigCallable(const DescribeFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeFaceConfigOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeFaceConfig(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
|
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -951,6 +1023,42 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloudauthClient::ElementSmartVerifyOutcome CloudauthClient::elementSmartVerify(const ElementSmartVerifyRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ElementSmartVerifyOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ElementSmartVerifyOutcome(ElementSmartVerifyResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ElementSmartVerifyOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CloudauthClient::elementSmartVerifyAsync(const ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, elementSmartVerify(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CloudauthClient::ElementSmartVerifyOutcomeCallable CloudauthClient::elementSmartVerifyCallable(const ElementSmartVerifyRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ElementSmartVerifyOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->elementSmartVerify(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1167,6 +1275,42 @@ CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerify
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloudauthClient::LivenessDetectOutcome CloudauthClient::livenessDetect(const LivenessDetectRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return LivenessDetectOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return LivenessDetectOutcome(LivenessDetectResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return LivenessDetectOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CloudauthClient::livenessDetectAsync(const LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, livenessDetect(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CloudauthClient::LivenessDetectOutcomeCallable CloudauthClient::livenessDetectCallable(const LivenessDetectRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<LivenessDetectOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->livenessDetect(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
|
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1347,6 +1491,42 @@ CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPacka
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloudauthClient::UpdateFaceConfigOutcome CloudauthClient::updateFaceConfig(const UpdateFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateFaceConfigOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateFaceConfigOutcome(UpdateFaceConfigResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateFaceConfigOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CloudauthClient::updateFaceConfigAsync(const UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateFaceConfig(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CloudauthClient::UpdateFaceConfigOutcomeCallable CloudauthClient::updateFaceConfigCallable(const UpdateFaceConfigRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateFaceConfigOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateFaceConfig(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
|
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
73
cloudauth/src/model/CreateFaceConfigRequest.cc
Normal file
73
cloudauth/src/model/CreateFaceConfigRequest.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/cloudauth/model/CreateFaceConfigRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Cloudauth::Model::CreateFaceConfigRequest;
|
||||||
|
|
||||||
|
CreateFaceConfigRequest::CreateFaceConfigRequest() :
|
||||||
|
RpcServiceRequest("cloudauth", "2019-03-07", "CreateFaceConfig")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFaceConfigRequest::~CreateFaceConfigRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateFaceConfigRequest::getBizName()const
|
||||||
|
{
|
||||||
|
return bizName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFaceConfigRequest::setBizName(const std::string& bizName)
|
||||||
|
{
|
||||||
|
bizName_ = bizName;
|
||||||
|
setParameter("BizName", bizName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFaceConfigRequest::getBizType()const
|
||||||
|
{
|
||||||
|
return bizType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFaceConfigRequest::setBizType(const std::string& bizType)
|
||||||
|
{
|
||||||
|
bizType_ = bizType;
|
||||||
|
setParameter("BizType", bizType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFaceConfigRequest::getSourceIp()const
|
||||||
|
{
|
||||||
|
return sourceIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||||
|
{
|
||||||
|
sourceIp_ = sourceIp;
|
||||||
|
setParameter("SourceIp", sourceIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateFaceConfigRequest::getLang()const
|
||||||
|
{
|
||||||
|
return lang_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateFaceConfigRequest::setLang(const std::string& lang)
|
||||||
|
{
|
||||||
|
lang_ = lang;
|
||||||
|
setParameter("Lang", lang);
|
||||||
|
}
|
||||||
|
|
||||||
44
cloudauth/src/model/CreateFaceConfigResult.cc
Normal file
44
cloudauth/src/model/CreateFaceConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cloudauth/model/CreateFaceConfigResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Cloudauth;
|
||||||
|
using namespace AlibabaCloud::Cloudauth::Model;
|
||||||
|
|
||||||
|
CreateFaceConfigResult::CreateFaceConfigResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateFaceConfigResult::CreateFaceConfigResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFaceConfigResult::~CreateFaceConfigResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateFaceConfigResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
51
cloudauth/src/model/DescribeFaceConfigRequest.cc
Normal file
51
cloudauth/src/model/DescribeFaceConfigRequest.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/cloudauth/model/DescribeFaceConfigRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Cloudauth::Model::DescribeFaceConfigRequest;
|
||||||
|
|
||||||
|
DescribeFaceConfigRequest::DescribeFaceConfigRequest() :
|
||||||
|
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceConfig")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeFaceConfigRequest::~DescribeFaceConfigRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DescribeFaceConfigRequest::getSourceIp()const
|
||||||
|
{
|
||||||
|
return sourceIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||||
|
{
|
||||||
|
sourceIp_ = sourceIp;
|
||||||
|
setParameter("SourceIp", sourceIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeFaceConfigRequest::getLang()const
|
||||||
|
{
|
||||||
|
return lang_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeFaceConfigRequest::setLang(const std::string& lang)
|
||||||
|
{
|
||||||
|
lang_ = lang;
|
||||||
|
setParameter("Lang", lang);
|
||||||
|
}
|
||||||
|
|
||||||
61
cloudauth/src/model/DescribeFaceConfigResult.cc
Normal file
61
cloudauth/src/model/DescribeFaceConfigResult.cc
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cloudauth/model/DescribeFaceConfigResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Cloudauth;
|
||||||
|
using namespace AlibabaCloud::Cloudauth::Model;
|
||||||
|
|
||||||
|
DescribeFaceConfigResult::DescribeFaceConfigResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeFaceConfigResult::DescribeFaceConfigResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeFaceConfigResult::~DescribeFaceConfigResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeFaceConfigResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allItemsNode = value["Items"]["ItemsItem"];
|
||||||
|
for (auto valueItemsItemsItem : allItemsNode)
|
||||||
|
{
|
||||||
|
ItemsItem itemsObject;
|
||||||
|
if(!valueItemsItemsItem["BizType"].isNull())
|
||||||
|
itemsObject.bizType = valueItemsItemsItem["BizType"].asString();
|
||||||
|
if(!valueItemsItemsItem["BizName"].isNull())
|
||||||
|
itemsObject.bizName = valueItemsItemsItem["BizName"].asString();
|
||||||
|
if(!valueItemsItemsItem["GmtUpdated"].isNull())
|
||||||
|
itemsObject.gmtUpdated = std::stol(valueItemsItemsItem["GmtUpdated"].asString());
|
||||||
|
items_.push_back(itemsObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DescribeFaceConfigResult::ItemsItem> DescribeFaceConfigResult::getItems()const
|
||||||
|
{
|
||||||
|
return items_;
|
||||||
|
}
|
||||||
|
|
||||||
117
cloudauth/src/model/ElementSmartVerifyRequest.cc
Normal file
117
cloudauth/src/model/ElementSmartVerifyRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* 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/cloudauth/model/ElementSmartVerifyRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Cloudauth::Model::ElementSmartVerifyRequest;
|
||||||
|
|
||||||
|
ElementSmartVerifyRequest::ElementSmartVerifyRequest() :
|
||||||
|
RpcServiceRequest("cloudauth", "2020-06-18", "ElementSmartVerify")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ElementSmartVerifyRequest::~ElementSmartVerifyRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getCertFile()const
|
||||||
|
{
|
||||||
|
return certFile_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setCertFile(const std::string& certFile)
|
||||||
|
{
|
||||||
|
certFile_ = certFile;
|
||||||
|
setBodyParameter("CertFile", certFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getCertName()const
|
||||||
|
{
|
||||||
|
return certName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setCertName(const std::string& certName)
|
||||||
|
{
|
||||||
|
certName_ = certName;
|
||||||
|
setBodyParameter("CertName", certName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getMode()const
|
||||||
|
{
|
||||||
|
return mode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setMode(const std::string& mode)
|
||||||
|
{
|
||||||
|
mode_ = mode;
|
||||||
|
setBodyParameter("Mode", mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getCertNo()const
|
||||||
|
{
|
||||||
|
return certNo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||||
|
{
|
||||||
|
certNo_ = certNo;
|
||||||
|
setBodyParameter("CertNo", certNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getOuterOrderNo()const
|
||||||
|
{
|
||||||
|
return outerOrderNo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||||
|
{
|
||||||
|
outerOrderNo_ = outerOrderNo;
|
||||||
|
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getCertUrl()const
|
||||||
|
{
|
||||||
|
return certUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setCertUrl(const std::string& certUrl)
|
||||||
|
{
|
||||||
|
certUrl_ = certUrl;
|
||||||
|
setBodyParameter("CertUrl", certUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyRequest::getCertType()const
|
||||||
|
{
|
||||||
|
return certType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setCertType(const std::string& certType)
|
||||||
|
{
|
||||||
|
certType_ = certType;
|
||||||
|
setBodyParameter("CertType", certType);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ElementSmartVerifyRequest::getSceneId()const
|
||||||
|
{
|
||||||
|
return sceneId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ElementSmartVerifyRequest::setSceneId(long sceneId)
|
||||||
|
{
|
||||||
|
sceneId_ = sceneId;
|
||||||
|
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||||
|
}
|
||||||
|
|
||||||
70
cloudauth/src/model/ElementSmartVerifyResult.cc
Normal file
70
cloudauth/src/model/ElementSmartVerifyResult.cc
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cloudauth/model/ElementSmartVerifyResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Cloudauth;
|
||||||
|
using namespace AlibabaCloud::Cloudauth::Model;
|
||||||
|
|
||||||
|
ElementSmartVerifyResult::ElementSmartVerifyResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ElementSmartVerifyResult::ElementSmartVerifyResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ElementSmartVerifyResult::~ElementSmartVerifyResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ElementSmartVerifyResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resultObjectNode = value["ResultObject"];
|
||||||
|
if(!resultObjectNode["Passed"].isNull())
|
||||||
|
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||||
|
if(!resultObjectNode["SubCode"].isNull())
|
||||||
|
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||||
|
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||||
|
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ElementSmartVerifyResult::ResultObject ElementSmartVerifyResult::getResultObject()const
|
||||||
|
{
|
||||||
|
return resultObject_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ElementSmartVerifyResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
84
cloudauth/src/model/LivenessDetectRequest.cc
Normal file
84
cloudauth/src/model/LivenessDetectRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/*
|
||||||
|
* 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/cloudauth/model/LivenessDetectRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Cloudauth::Model::LivenessDetectRequest;
|
||||||
|
|
||||||
|
LivenessDetectRequest::LivenessDetectRequest() :
|
||||||
|
RpcServiceRequest("cloudauth", "2020-11-12", "LivenessDetect")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
LivenessDetectRequest::~LivenessDetectRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string LivenessDetectRequest::getMediaCategory()const
|
||||||
|
{
|
||||||
|
return mediaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LivenessDetectRequest::setMediaCategory(const std::string& mediaCategory)
|
||||||
|
{
|
||||||
|
mediaCategory_ = mediaCategory;
|
||||||
|
setBodyParameter("MediaCategory", mediaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectRequest::getMediaUrl()const
|
||||||
|
{
|
||||||
|
return mediaUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LivenessDetectRequest::setMediaUrl(const std::string& mediaUrl)
|
||||||
|
{
|
||||||
|
mediaUrl_ = mediaUrl;
|
||||||
|
setBodyParameter("MediaUrl", mediaUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectRequest::getBizType()const
|
||||||
|
{
|
||||||
|
return bizType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LivenessDetectRequest::setBizType(const std::string& bizType)
|
||||||
|
{
|
||||||
|
bizType_ = bizType;
|
||||||
|
setBodyParameter("BizType", bizType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectRequest::getBizId()const
|
||||||
|
{
|
||||||
|
return bizId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LivenessDetectRequest::setBizId(const std::string& bizId)
|
||||||
|
{
|
||||||
|
bizId_ = bizId;
|
||||||
|
setBodyParameter("BizId", bizId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectRequest::getMediaFile()const
|
||||||
|
{
|
||||||
|
return mediaFile_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LivenessDetectRequest::setMediaFile(const std::string& mediaFile)
|
||||||
|
{
|
||||||
|
mediaFile_ = mediaFile;
|
||||||
|
setBodyParameter("MediaFile", mediaFile);
|
||||||
|
}
|
||||||
|
|
||||||
70
cloudauth/src/model/LivenessDetectResult.cc
Normal file
70
cloudauth/src/model/LivenessDetectResult.cc
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cloudauth/model/LivenessDetectResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Cloudauth;
|
||||||
|
using namespace AlibabaCloud::Cloudauth::Model;
|
||||||
|
|
||||||
|
LivenessDetectResult::LivenessDetectResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
LivenessDetectResult::LivenessDetectResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
LivenessDetectResult::~LivenessDetectResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void LivenessDetectResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resultObjectNode = value["ResultObject"];
|
||||||
|
if(!resultObjectNode["Passed"].isNull())
|
||||||
|
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||||
|
if(!resultObjectNode["Score"].isNull())
|
||||||
|
resultObject_.score = std::stof(resultObjectNode["Score"].asString());
|
||||||
|
if(!resultObjectNode["FrameUrl"].isNull())
|
||||||
|
resultObject_.frameUrl = resultObjectNode["FrameUrl"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
LivenessDetectResult::ResultObject LivenessDetectResult::getResultObject()const
|
||||||
|
{
|
||||||
|
return resultObject_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string LivenessDetectResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
73
cloudauth/src/model/UpdateFaceConfigRequest.cc
Normal file
73
cloudauth/src/model/UpdateFaceConfigRequest.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/cloudauth/model/UpdateFaceConfigRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Cloudauth::Model::UpdateFaceConfigRequest;
|
||||||
|
|
||||||
|
UpdateFaceConfigRequest::UpdateFaceConfigRequest() :
|
||||||
|
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateFaceConfig")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateFaceConfigRequest::~UpdateFaceConfigRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string UpdateFaceConfigRequest::getBizName()const
|
||||||
|
{
|
||||||
|
return bizName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFaceConfigRequest::setBizName(const std::string& bizName)
|
||||||
|
{
|
||||||
|
bizName_ = bizName;
|
||||||
|
setParameter("BizName", bizName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFaceConfigRequest::getBizType()const
|
||||||
|
{
|
||||||
|
return bizType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFaceConfigRequest::setBizType(const std::string& bizType)
|
||||||
|
{
|
||||||
|
bizType_ = bizType;
|
||||||
|
setParameter("BizType", bizType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFaceConfigRequest::getSourceIp()const
|
||||||
|
{
|
||||||
|
return sourceIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||||
|
{
|
||||||
|
sourceIp_ = sourceIp;
|
||||||
|
setParameter("SourceIp", sourceIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateFaceConfigRequest::getLang()const
|
||||||
|
{
|
||||||
|
return lang_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateFaceConfigRequest::setLang(const std::string& lang)
|
||||||
|
{
|
||||||
|
lang_ = lang;
|
||||||
|
setParameter("Lang", lang);
|
||||||
|
}
|
||||||
|
|
||||||
44
cloudauth/src/model/UpdateFaceConfigResult.cc
Normal file
44
cloudauth/src/model/UpdateFaceConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cloudauth/model/UpdateFaceConfigResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Cloudauth;
|
||||||
|
using namespace AlibabaCloud::Cloudauth::Model;
|
||||||
|
|
||||||
|
UpdateFaceConfigResult::UpdateFaceConfigResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateFaceConfigResult::UpdateFaceConfigResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateFaceConfigResult::~UpdateFaceConfigResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateFaceConfigResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -21,165 +21,101 @@ set(cloudesl_public_header
|
|||||||
include/alibabacloud/cloudesl/CloudeslExport.h )
|
include/alibabacloud/cloudesl/CloudeslExport.h )
|
||||||
|
|
||||||
set(cloudesl_public_header_model
|
set(cloudesl_public_header_model
|
||||||
include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h
|
include/alibabacloud/cloudesl/model/ActivateApServiceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/ActivateApDeviceResult.h
|
include/alibabacloud/cloudesl/model/ActivateApServiceResult.h
|
||||||
include/alibabacloud/cloudesl/model/AddApDeviceRequest.h
|
include/alibabacloud/cloudesl/model/ActivateApService2Request.h
|
||||||
include/alibabacloud/cloudesl/model/AddApDeviceResult.h
|
include/alibabacloud/cloudesl/model/ActivateApService2Result.h
|
||||||
include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/AddRoleActionsRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/AddRoleActionsResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/AddUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/AddUserResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/AssignUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/AssignUserResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/AssociatePlanogramRailResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h
|
include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h
|
||||||
include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h
|
include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h
|
||||||
|
include/alibabacloud/cloudesl/model/BindApStoreServiceRequest.h
|
||||||
|
include/alibabacloud/cloudesl/model/BindApStoreServiceResult.h
|
||||||
include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h
|
include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/BindEslDeviceResult.h
|
include/alibabacloud/cloudesl/model/BindEslDeviceResult.h
|
||||||
include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h
|
include/alibabacloud/cloudesl/model/BindEslDeviceShelfRequest.h
|
||||||
include/alibabacloud/cloudesl/model/ComposePlanogramPositionsResult.h
|
include/alibabacloud/cloudesl/model/BindEslDeviceShelfResult.h
|
||||||
include/alibabacloud/cloudesl/model/CreateStoreRequest.h
|
include/alibabacloud/cloudesl/model/CreateStoreRequest.h
|
||||||
include/alibabacloud/cloudesl/model/CreateStoreResult.h
|
include/alibabacloud/cloudesl/model/CreateStoreResult.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h
|
include/alibabacloud/cloudesl/model/DeleteApServiceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteApDeviceResult.h
|
include/alibabacloud/cloudesl/model/DeleteApServiceResult.h
|
||||||
include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h
|
include/alibabacloud/cloudesl/model/DeleteEslDeviceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h
|
include/alibabacloud/cloudesl/model/DeleteEslDeviceResult.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteRoleActionsRequest.h
|
include/alibabacloud/cloudesl/model/DeleteItemRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteRoleActionsResult.h
|
include/alibabacloud/cloudesl/model/DeleteItemResult.h
|
||||||
|
include/alibabacloud/cloudesl/model/DeleteItemBySkuIdRequest.h
|
||||||
|
include/alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteStoreRequest.h
|
include/alibabacloud/cloudesl/model/DeleteStoreRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteStoreResult.h
|
include/alibabacloud/cloudesl/model/DeleteStoreResult.h
|
||||||
include/alibabacloud/cloudesl/model/DeleteUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DeleteUserResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h
|
include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h
|
include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h
|
include/alibabacloud/cloudesl/model/DescribeCompanyRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h
|
include/alibabacloud/cloudesl/model/DescribeCompanyResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeBindersRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeBindersResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeClientPackageRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeClientPackageResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h
|
include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h
|
include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeItemsRequest.h
|
include/alibabacloud/cloudesl/model/DescribeItemsRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeItemsResult.h
|
include/alibabacloud/cloudesl/model/DescribeItemsResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeRoleActionsRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeRoleActionsResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/DescribeStoresRequest.h
|
include/alibabacloud/cloudesl/model/DescribeStoresRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeStoresResult.h
|
include/alibabacloud/cloudesl/model/DescribeStoresResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h
|
include/alibabacloud/cloudesl/model/DescribeUserOperationLogRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeUserLogResult.h
|
include/alibabacloud/cloudesl/model/DescribeUserOperationLogResult.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeUsersRequest.h
|
include/alibabacloud/cloudesl/model/DescribeUserRamPolicyRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DescribeUsersResult.h
|
include/alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h
|
||||||
include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h
|
include/alibabacloud/cloudesl/model/SearchApServiceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/DissociatePlanogramRailResult.h
|
include/alibabacloud/cloudesl/model/SearchApServiceResult.h
|
||||||
include/alibabacloud/cloudesl/model/GetUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/GetUserResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/UnassignUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/UnassignUserResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h
|
include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h
|
||||||
include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h
|
include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h
|
||||||
include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h
|
include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfRequest.h
|
||||||
include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h
|
include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.h
|
||||||
include/alibabacloud/cloudesl/model/UpdateStoreRequest.h
|
include/alibabacloud/cloudesl/model/UpdateStoreRequest.h
|
||||||
include/alibabacloud/cloudesl/model/UpdateStoreResult.h
|
include/alibabacloud/cloudesl/model/UpdateStoreResult.h )
|
||||||
include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h
|
|
||||||
include/alibabacloud/cloudesl/model/UpdateUserRequest.h
|
|
||||||
include/alibabacloud/cloudesl/model/UpdateUserResult.h )
|
|
||||||
|
|
||||||
set(cloudesl_src
|
set(cloudesl_src
|
||||||
src/CloudeslClient.cc
|
src/CloudeslClient.cc
|
||||||
src/model/ActivateApDeviceRequest.cc
|
src/model/ActivateApServiceRequest.cc
|
||||||
src/model/ActivateApDeviceResult.cc
|
src/model/ActivateApServiceResult.cc
|
||||||
src/model/AddApDeviceRequest.cc
|
src/model/ActivateApService2Request.cc
|
||||||
src/model/AddApDeviceResult.cc
|
src/model/ActivateApService2Result.cc
|
||||||
src/model/AddPlanogramShelfRequest.cc
|
|
||||||
src/model/AddPlanogramShelfResult.cc
|
|
||||||
src/model/AddRoleActionsRequest.cc
|
|
||||||
src/model/AddRoleActionsResult.cc
|
|
||||||
src/model/AddUserRequest.cc
|
|
||||||
src/model/AddUserResult.cc
|
|
||||||
src/model/AssignUserRequest.cc
|
|
||||||
src/model/AssignUserResult.cc
|
|
||||||
src/model/AssociatePlanogramRailRequest.cc
|
|
||||||
src/model/AssociatePlanogramRailResult.cc
|
|
||||||
src/model/BatchInsertItemsRequest.cc
|
src/model/BatchInsertItemsRequest.cc
|
||||||
src/model/BatchInsertItemsResult.cc
|
src/model/BatchInsertItemsResult.cc
|
||||||
|
src/model/BindApStoreServiceRequest.cc
|
||||||
|
src/model/BindApStoreServiceResult.cc
|
||||||
src/model/BindEslDeviceRequest.cc
|
src/model/BindEslDeviceRequest.cc
|
||||||
src/model/BindEslDeviceResult.cc
|
src/model/BindEslDeviceResult.cc
|
||||||
src/model/ComposePlanogramPositionsRequest.cc
|
src/model/BindEslDeviceShelfRequest.cc
|
||||||
src/model/ComposePlanogramPositionsResult.cc
|
src/model/BindEslDeviceShelfResult.cc
|
||||||
src/model/CreateStoreRequest.cc
|
src/model/CreateStoreRequest.cc
|
||||||
src/model/CreateStoreResult.cc
|
src/model/CreateStoreResult.cc
|
||||||
src/model/DeleteApDeviceRequest.cc
|
src/model/DeleteApServiceRequest.cc
|
||||||
src/model/DeleteApDeviceResult.cc
|
src/model/DeleteApServiceResult.cc
|
||||||
src/model/DeletePlanogramShelfRequest.cc
|
src/model/DeleteEslDeviceRequest.cc
|
||||||
src/model/DeletePlanogramShelfResult.cc
|
src/model/DeleteEslDeviceResult.cc
|
||||||
src/model/DeleteRoleActionsRequest.cc
|
src/model/DeleteItemRequest.cc
|
||||||
src/model/DeleteRoleActionsResult.cc
|
src/model/DeleteItemResult.cc
|
||||||
|
src/model/DeleteItemBySkuIdRequest.cc
|
||||||
|
src/model/DeleteItemBySkuIdResult.cc
|
||||||
src/model/DeleteStoreRequest.cc
|
src/model/DeleteStoreRequest.cc
|
||||||
src/model/DeleteStoreResult.cc
|
src/model/DeleteStoreResult.cc
|
||||||
src/model/DeleteUserRequest.cc
|
|
||||||
src/model/DeleteUserResult.cc
|
|
||||||
src/model/DescribeAlarmsRequest.cc
|
src/model/DescribeAlarmsRequest.cc
|
||||||
src/model/DescribeAlarmsResult.cc
|
src/model/DescribeAlarmsResult.cc
|
||||||
src/model/DescribeApDevicesRequest.cc
|
src/model/DescribeCompanyRequest.cc
|
||||||
src/model/DescribeApDevicesResult.cc
|
src/model/DescribeCompanyResult.cc
|
||||||
src/model/DescribeBindersRequest.cc
|
|
||||||
src/model/DescribeBindersResult.cc
|
|
||||||
src/model/DescribeClientPackageRequest.cc
|
|
||||||
src/model/DescribeClientPackageResult.cc
|
|
||||||
src/model/DescribeEslDevicesRequest.cc
|
src/model/DescribeEslDevicesRequest.cc
|
||||||
src/model/DescribeEslDevicesResult.cc
|
src/model/DescribeEslDevicesResult.cc
|
||||||
src/model/DescribeItemsRequest.cc
|
src/model/DescribeItemsRequest.cc
|
||||||
src/model/DescribeItemsResult.cc
|
src/model/DescribeItemsResult.cc
|
||||||
src/model/DescribePlanogramEslDevicesRequest.cc
|
|
||||||
src/model/DescribePlanogramEslDevicesResult.cc
|
|
||||||
src/model/DescribePlanogramPositionsRequest.cc
|
|
||||||
src/model/DescribePlanogramPositionsResult.cc
|
|
||||||
src/model/DescribePlanogramRailsRequest.cc
|
|
||||||
src/model/DescribePlanogramRailsResult.cc
|
|
||||||
src/model/DescribePlanogramShelvesRequest.cc
|
|
||||||
src/model/DescribePlanogramShelvesResult.cc
|
|
||||||
src/model/DescribeRoleActionsRequest.cc
|
|
||||||
src/model/DescribeRoleActionsResult.cc
|
|
||||||
src/model/DescribeStoreConfigRequest.cc
|
|
||||||
src/model/DescribeStoreConfigResult.cc
|
|
||||||
src/model/DescribeStoresRequest.cc
|
src/model/DescribeStoresRequest.cc
|
||||||
src/model/DescribeStoresResult.cc
|
src/model/DescribeStoresResult.cc
|
||||||
src/model/DescribeUserLogRequest.cc
|
src/model/DescribeUserOperationLogRequest.cc
|
||||||
src/model/DescribeUserLogResult.cc
|
src/model/DescribeUserOperationLogResult.cc
|
||||||
src/model/DescribeUsersRequest.cc
|
src/model/DescribeUserRamPolicyRequest.cc
|
||||||
src/model/DescribeUsersResult.cc
|
src/model/DescribeUserRamPolicyResult.cc
|
||||||
src/model/DissociatePlanogramRailRequest.cc
|
src/model/SearchApServiceRequest.cc
|
||||||
src/model/DissociatePlanogramRailResult.cc
|
src/model/SearchApServiceResult.cc
|
||||||
src/model/GetUserRequest.cc
|
|
||||||
src/model/GetUserResult.cc
|
|
||||||
src/model/UnassignUserRequest.cc
|
|
||||||
src/model/UnassignUserResult.cc
|
|
||||||
src/model/UnbindEslDeviceRequest.cc
|
src/model/UnbindEslDeviceRequest.cc
|
||||||
src/model/UnbindEslDeviceResult.cc
|
src/model/UnbindEslDeviceResult.cc
|
||||||
src/model/UpdateEslDeviceLightRequest.cc
|
src/model/UnbindEslDeviceShelfRequest.cc
|
||||||
src/model/UpdateEslDeviceLightResult.cc
|
src/model/UnbindEslDeviceShelfResult.cc
|
||||||
src/model/UpdateStoreRequest.cc
|
src/model/UpdateStoreRequest.cc
|
||||||
src/model/UpdateStoreResult.cc
|
src/model/UpdateStoreResult.cc )
|
||||||
src/model/UpdateStoreConfigRequest.cc
|
|
||||||
src/model/UpdateStoreConfigResult.cc
|
|
||||||
src/model/UpdateUserRequest.cc
|
|
||||||
src/model/UpdateUserResult.cc )
|
|
||||||
|
|
||||||
add_library(cloudesl ${LIB_TYPE}
|
add_library(cloudesl ${LIB_TYPE}
|
||||||
${cloudesl_public_header}
|
${cloudesl_public_header}
|
||||||
|
|||||||
@@ -22,84 +22,52 @@
|
|||||||
#include <alibabacloud/core/EndpointProvider.h>
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
#include <alibabacloud/core/RpcServiceClient.h>
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
#include "CloudeslExport.h"
|
#include "CloudeslExport.h"
|
||||||
#include "model/ActivateApDeviceRequest.h"
|
#include "model/ActivateApServiceRequest.h"
|
||||||
#include "model/ActivateApDeviceResult.h"
|
#include "model/ActivateApServiceResult.h"
|
||||||
#include "model/AddApDeviceRequest.h"
|
#include "model/ActivateApService2Request.h"
|
||||||
#include "model/AddApDeviceResult.h"
|
#include "model/ActivateApService2Result.h"
|
||||||
#include "model/AddPlanogramShelfRequest.h"
|
|
||||||
#include "model/AddPlanogramShelfResult.h"
|
|
||||||
#include "model/AddRoleActionsRequest.h"
|
|
||||||
#include "model/AddRoleActionsResult.h"
|
|
||||||
#include "model/AddUserRequest.h"
|
|
||||||
#include "model/AddUserResult.h"
|
|
||||||
#include "model/AssignUserRequest.h"
|
|
||||||
#include "model/AssignUserResult.h"
|
|
||||||
#include "model/AssociatePlanogramRailRequest.h"
|
|
||||||
#include "model/AssociatePlanogramRailResult.h"
|
|
||||||
#include "model/BatchInsertItemsRequest.h"
|
#include "model/BatchInsertItemsRequest.h"
|
||||||
#include "model/BatchInsertItemsResult.h"
|
#include "model/BatchInsertItemsResult.h"
|
||||||
|
#include "model/BindApStoreServiceRequest.h"
|
||||||
|
#include "model/BindApStoreServiceResult.h"
|
||||||
#include "model/BindEslDeviceRequest.h"
|
#include "model/BindEslDeviceRequest.h"
|
||||||
#include "model/BindEslDeviceResult.h"
|
#include "model/BindEslDeviceResult.h"
|
||||||
#include "model/ComposePlanogramPositionsRequest.h"
|
#include "model/BindEslDeviceShelfRequest.h"
|
||||||
#include "model/ComposePlanogramPositionsResult.h"
|
#include "model/BindEslDeviceShelfResult.h"
|
||||||
#include "model/CreateStoreRequest.h"
|
#include "model/CreateStoreRequest.h"
|
||||||
#include "model/CreateStoreResult.h"
|
#include "model/CreateStoreResult.h"
|
||||||
#include "model/DeleteApDeviceRequest.h"
|
#include "model/DeleteApServiceRequest.h"
|
||||||
#include "model/DeleteApDeviceResult.h"
|
#include "model/DeleteApServiceResult.h"
|
||||||
#include "model/DeletePlanogramShelfRequest.h"
|
#include "model/DeleteEslDeviceRequest.h"
|
||||||
#include "model/DeletePlanogramShelfResult.h"
|
#include "model/DeleteEslDeviceResult.h"
|
||||||
#include "model/DeleteRoleActionsRequest.h"
|
#include "model/DeleteItemRequest.h"
|
||||||
#include "model/DeleteRoleActionsResult.h"
|
#include "model/DeleteItemResult.h"
|
||||||
|
#include "model/DeleteItemBySkuIdRequest.h"
|
||||||
|
#include "model/DeleteItemBySkuIdResult.h"
|
||||||
#include "model/DeleteStoreRequest.h"
|
#include "model/DeleteStoreRequest.h"
|
||||||
#include "model/DeleteStoreResult.h"
|
#include "model/DeleteStoreResult.h"
|
||||||
#include "model/DeleteUserRequest.h"
|
|
||||||
#include "model/DeleteUserResult.h"
|
|
||||||
#include "model/DescribeAlarmsRequest.h"
|
#include "model/DescribeAlarmsRequest.h"
|
||||||
#include "model/DescribeAlarmsResult.h"
|
#include "model/DescribeAlarmsResult.h"
|
||||||
#include "model/DescribeApDevicesRequest.h"
|
#include "model/DescribeCompanyRequest.h"
|
||||||
#include "model/DescribeApDevicesResult.h"
|
#include "model/DescribeCompanyResult.h"
|
||||||
#include "model/DescribeBindersRequest.h"
|
|
||||||
#include "model/DescribeBindersResult.h"
|
|
||||||
#include "model/DescribeClientPackageRequest.h"
|
|
||||||
#include "model/DescribeClientPackageResult.h"
|
|
||||||
#include "model/DescribeEslDevicesRequest.h"
|
#include "model/DescribeEslDevicesRequest.h"
|
||||||
#include "model/DescribeEslDevicesResult.h"
|
#include "model/DescribeEslDevicesResult.h"
|
||||||
#include "model/DescribeItemsRequest.h"
|
#include "model/DescribeItemsRequest.h"
|
||||||
#include "model/DescribeItemsResult.h"
|
#include "model/DescribeItemsResult.h"
|
||||||
#include "model/DescribePlanogramEslDevicesRequest.h"
|
|
||||||
#include "model/DescribePlanogramEslDevicesResult.h"
|
|
||||||
#include "model/DescribePlanogramPositionsRequest.h"
|
|
||||||
#include "model/DescribePlanogramPositionsResult.h"
|
|
||||||
#include "model/DescribePlanogramRailsRequest.h"
|
|
||||||
#include "model/DescribePlanogramRailsResult.h"
|
|
||||||
#include "model/DescribePlanogramShelvesRequest.h"
|
|
||||||
#include "model/DescribePlanogramShelvesResult.h"
|
|
||||||
#include "model/DescribeRoleActionsRequest.h"
|
|
||||||
#include "model/DescribeRoleActionsResult.h"
|
|
||||||
#include "model/DescribeStoreConfigRequest.h"
|
|
||||||
#include "model/DescribeStoreConfigResult.h"
|
|
||||||
#include "model/DescribeStoresRequest.h"
|
#include "model/DescribeStoresRequest.h"
|
||||||
#include "model/DescribeStoresResult.h"
|
#include "model/DescribeStoresResult.h"
|
||||||
#include "model/DescribeUserLogRequest.h"
|
#include "model/DescribeUserOperationLogRequest.h"
|
||||||
#include "model/DescribeUserLogResult.h"
|
#include "model/DescribeUserOperationLogResult.h"
|
||||||
#include "model/DescribeUsersRequest.h"
|
#include "model/DescribeUserRamPolicyRequest.h"
|
||||||
#include "model/DescribeUsersResult.h"
|
#include "model/DescribeUserRamPolicyResult.h"
|
||||||
#include "model/DissociatePlanogramRailRequest.h"
|
#include "model/SearchApServiceRequest.h"
|
||||||
#include "model/DissociatePlanogramRailResult.h"
|
#include "model/SearchApServiceResult.h"
|
||||||
#include "model/GetUserRequest.h"
|
|
||||||
#include "model/GetUserResult.h"
|
|
||||||
#include "model/UnassignUserRequest.h"
|
|
||||||
#include "model/UnassignUserResult.h"
|
|
||||||
#include "model/UnbindEslDeviceRequest.h"
|
#include "model/UnbindEslDeviceRequest.h"
|
||||||
#include "model/UnbindEslDeviceResult.h"
|
#include "model/UnbindEslDeviceResult.h"
|
||||||
#include "model/UpdateEslDeviceLightRequest.h"
|
#include "model/UnbindEslDeviceShelfRequest.h"
|
||||||
#include "model/UpdateEslDeviceLightResult.h"
|
#include "model/UnbindEslDeviceShelfResult.h"
|
||||||
#include "model/UpdateStoreRequest.h"
|
#include "model/UpdateStoreRequest.h"
|
||||||
#include "model/UpdateStoreResult.h"
|
#include "model/UpdateStoreResult.h"
|
||||||
#include "model/UpdateStoreConfigRequest.h"
|
|
||||||
#include "model/UpdateStoreConfigResult.h"
|
|
||||||
#include "model/UpdateUserRequest.h"
|
|
||||||
#include "model/UpdateUserResult.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
@@ -109,245 +77,149 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_CLOUDESL_EXPORT CloudeslClient : public RpcServiceClient
|
class ALIBABACLOUD_CLOUDESL_EXPORT CloudeslClient : public RpcServiceClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Outcome<Error, Model::ActivateApDeviceResult> ActivateApDeviceOutcome;
|
typedef Outcome<Error, Model::ActivateApServiceResult> ActivateApServiceOutcome;
|
||||||
typedef std::future<ActivateApDeviceOutcome> ActivateApDeviceOutcomeCallable;
|
typedef std::future<ActivateApServiceOutcome> ActivateApServiceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::ActivateApDeviceRequest&, const ActivateApDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivateApDeviceAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::ActivateApServiceRequest&, const ActivateApServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivateApServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::AddApDeviceResult> AddApDeviceOutcome;
|
typedef Outcome<Error, Model::ActivateApService2Result> ActivateApService2Outcome;
|
||||||
typedef std::future<AddApDeviceOutcome> AddApDeviceOutcomeCallable;
|
typedef std::future<ActivateApService2Outcome> ActivateApService2OutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AddApDeviceRequest&, const AddApDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddApDeviceAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::ActivateApService2Request&, const ActivateApService2Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivateApService2AsyncHandler;
|
||||||
typedef Outcome<Error, Model::AddPlanogramShelfResult> AddPlanogramShelfOutcome;
|
|
||||||
typedef std::future<AddPlanogramShelfOutcome> AddPlanogramShelfOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AddPlanogramShelfRequest&, const AddPlanogramShelfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPlanogramShelfAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::AddRoleActionsResult> AddRoleActionsOutcome;
|
|
||||||
typedef std::future<AddRoleActionsOutcome> AddRoleActionsOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AddRoleActionsRequest&, const AddRoleActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddRoleActionsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::AddUserResult> AddUserOutcome;
|
|
||||||
typedef std::future<AddUserOutcome> AddUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AddUserRequest&, const AddUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUserAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::AssignUserResult> AssignUserOutcome;
|
|
||||||
typedef std::future<AssignUserOutcome> AssignUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AssignUserRequest&, const AssignUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssignUserAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::AssociatePlanogramRailResult> AssociatePlanogramRailOutcome;
|
|
||||||
typedef std::future<AssociatePlanogramRailOutcome> AssociatePlanogramRailOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::AssociatePlanogramRailRequest&, const AssociatePlanogramRailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociatePlanogramRailAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::BatchInsertItemsResult> BatchInsertItemsOutcome;
|
typedef Outcome<Error, Model::BatchInsertItemsResult> BatchInsertItemsOutcome;
|
||||||
typedef std::future<BatchInsertItemsOutcome> BatchInsertItemsOutcomeCallable;
|
typedef std::future<BatchInsertItemsOutcome> BatchInsertItemsOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::BatchInsertItemsRequest&, const BatchInsertItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchInsertItemsAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::BatchInsertItemsRequest&, const BatchInsertItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchInsertItemsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::BindApStoreServiceResult> BindApStoreServiceOutcome;
|
||||||
|
typedef std::future<BindApStoreServiceOutcome> BindApStoreServiceOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudeslClient*, const Model::BindApStoreServiceRequest&, const BindApStoreServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindApStoreServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::BindEslDeviceResult> BindEslDeviceOutcome;
|
typedef Outcome<Error, Model::BindEslDeviceResult> BindEslDeviceOutcome;
|
||||||
typedef std::future<BindEslDeviceOutcome> BindEslDeviceOutcomeCallable;
|
typedef std::future<BindEslDeviceOutcome> BindEslDeviceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::BindEslDeviceRequest&, const BindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindEslDeviceAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::BindEslDeviceRequest&, const BindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindEslDeviceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ComposePlanogramPositionsResult> ComposePlanogramPositionsOutcome;
|
typedef Outcome<Error, Model::BindEslDeviceShelfResult> BindEslDeviceShelfOutcome;
|
||||||
typedef std::future<ComposePlanogramPositionsOutcome> ComposePlanogramPositionsOutcomeCallable;
|
typedef std::future<BindEslDeviceShelfOutcome> BindEslDeviceShelfOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::ComposePlanogramPositionsRequest&, const ComposePlanogramPositionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ComposePlanogramPositionsAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::BindEslDeviceShelfRequest&, const BindEslDeviceShelfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindEslDeviceShelfAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateStoreResult> CreateStoreOutcome;
|
typedef Outcome<Error, Model::CreateStoreResult> CreateStoreOutcome;
|
||||||
typedef std::future<CreateStoreOutcome> CreateStoreOutcomeCallable;
|
typedef std::future<CreateStoreOutcome> CreateStoreOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::CreateStoreRequest&, const CreateStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStoreAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::CreateStoreRequest&, const CreateStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStoreAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteApDeviceResult> DeleteApDeviceOutcome;
|
typedef Outcome<Error, Model::DeleteApServiceResult> DeleteApServiceOutcome;
|
||||||
typedef std::future<DeleteApDeviceOutcome> DeleteApDeviceOutcomeCallable;
|
typedef std::future<DeleteApServiceOutcome> DeleteApServiceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteApDeviceRequest&, const DeleteApDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteApDeviceAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DeleteApServiceRequest&, const DeleteApServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteApServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeletePlanogramShelfResult> DeletePlanogramShelfOutcome;
|
typedef Outcome<Error, Model::DeleteEslDeviceResult> DeleteEslDeviceOutcome;
|
||||||
typedef std::future<DeletePlanogramShelfOutcome> DeletePlanogramShelfOutcomeCallable;
|
typedef std::future<DeleteEslDeviceOutcome> DeleteEslDeviceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DeletePlanogramShelfRequest&, const DeletePlanogramShelfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePlanogramShelfAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DeleteEslDeviceRequest&, const DeleteEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEslDeviceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteRoleActionsResult> DeleteRoleActionsOutcome;
|
typedef Outcome<Error, Model::DeleteItemResult> DeleteItemOutcome;
|
||||||
typedef std::future<DeleteRoleActionsOutcome> DeleteRoleActionsOutcomeCallable;
|
typedef std::future<DeleteItemOutcome> DeleteItemOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteRoleActionsRequest&, const DeleteRoleActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRoleActionsAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DeleteItemRequest&, const DeleteItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteItemAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteItemBySkuIdResult> DeleteItemBySkuIdOutcome;
|
||||||
|
typedef std::future<DeleteItemBySkuIdOutcome> DeleteItemBySkuIdOutcomeCallable;
|
||||||
|
typedef std::function<void(const CloudeslClient*, const Model::DeleteItemBySkuIdRequest&, const DeleteItemBySkuIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteItemBySkuIdAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteStoreResult> DeleteStoreOutcome;
|
typedef Outcome<Error, Model::DeleteStoreResult> DeleteStoreOutcome;
|
||||||
typedef std::future<DeleteStoreOutcome> DeleteStoreOutcomeCallable;
|
typedef std::future<DeleteStoreOutcome> DeleteStoreOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteStoreRequest&, const DeleteStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStoreAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DeleteStoreRequest&, const DeleteStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStoreAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
|
||||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeAlarmsResult> DescribeAlarmsOutcome;
|
typedef Outcome<Error, Model::DescribeAlarmsResult> DescribeAlarmsOutcome;
|
||||||
typedef std::future<DescribeAlarmsOutcome> DescribeAlarmsOutcomeCallable;
|
typedef std::future<DescribeAlarmsOutcome> DescribeAlarmsOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeAlarmsRequest&, const DescribeAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmsAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeAlarmsRequest&, const DescribeAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeApDevicesResult> DescribeApDevicesOutcome;
|
typedef Outcome<Error, Model::DescribeCompanyResult> DescribeCompanyOutcome;
|
||||||
typedef std::future<DescribeApDevicesOutcome> DescribeApDevicesOutcomeCallable;
|
typedef std::future<DescribeCompanyOutcome> DescribeCompanyOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeApDevicesRequest&, const DescribeApDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeApDevicesAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeCompanyRequest&, const DescribeCompanyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCompanyAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeBindersResult> DescribeBindersOutcome;
|
|
||||||
typedef std::future<DescribeBindersOutcome> DescribeBindersOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeBindersRequest&, const DescribeBindersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBindersAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeClientPackageResult> DescribeClientPackageOutcome;
|
|
||||||
typedef std::future<DescribeClientPackageOutcome> DescribeClientPackageOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeClientPackageRequest&, const DescribeClientPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClientPackageAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeEslDevicesResult> DescribeEslDevicesOutcome;
|
typedef Outcome<Error, Model::DescribeEslDevicesResult> DescribeEslDevicesOutcome;
|
||||||
typedef std::future<DescribeEslDevicesOutcome> DescribeEslDevicesOutcomeCallable;
|
typedef std::future<DescribeEslDevicesOutcome> DescribeEslDevicesOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeEslDevicesRequest&, const DescribeEslDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEslDevicesAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeEslDevicesRequest&, const DescribeEslDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEslDevicesAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeItemsResult> DescribeItemsOutcome;
|
typedef Outcome<Error, Model::DescribeItemsResult> DescribeItemsOutcome;
|
||||||
typedef std::future<DescribeItemsOutcome> DescribeItemsOutcomeCallable;
|
typedef std::future<DescribeItemsOutcome> DescribeItemsOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeItemsRequest&, const DescribeItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeItemsAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeItemsRequest&, const DescribeItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeItemsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribePlanogramEslDevicesResult> DescribePlanogramEslDevicesOutcome;
|
|
||||||
typedef std::future<DescribePlanogramEslDevicesOutcome> DescribePlanogramEslDevicesOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribePlanogramEslDevicesRequest&, const DescribePlanogramEslDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePlanogramEslDevicesAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribePlanogramPositionsResult> DescribePlanogramPositionsOutcome;
|
|
||||||
typedef std::future<DescribePlanogramPositionsOutcome> DescribePlanogramPositionsOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribePlanogramPositionsRequest&, const DescribePlanogramPositionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePlanogramPositionsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribePlanogramRailsResult> DescribePlanogramRailsOutcome;
|
|
||||||
typedef std::future<DescribePlanogramRailsOutcome> DescribePlanogramRailsOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribePlanogramRailsRequest&, const DescribePlanogramRailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePlanogramRailsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribePlanogramShelvesResult> DescribePlanogramShelvesOutcome;
|
|
||||||
typedef std::future<DescribePlanogramShelvesOutcome> DescribePlanogramShelvesOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribePlanogramShelvesRequest&, const DescribePlanogramShelvesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePlanogramShelvesAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeRoleActionsResult> DescribeRoleActionsOutcome;
|
|
||||||
typedef std::future<DescribeRoleActionsOutcome> DescribeRoleActionsOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeRoleActionsRequest&, const DescribeRoleActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRoleActionsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeStoreConfigResult> DescribeStoreConfigOutcome;
|
|
||||||
typedef std::future<DescribeStoreConfigOutcome> DescribeStoreConfigOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeStoreConfigRequest&, const DescribeStoreConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStoreConfigAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeStoresResult> DescribeStoresOutcome;
|
typedef Outcome<Error, Model::DescribeStoresResult> DescribeStoresOutcome;
|
||||||
typedef std::future<DescribeStoresOutcome> DescribeStoresOutcomeCallable;
|
typedef std::future<DescribeStoresOutcome> DescribeStoresOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeStoresRequest&, const DescribeStoresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStoresAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeStoresRequest&, const DescribeStoresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStoresAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeUserLogResult> DescribeUserLogOutcome;
|
typedef Outcome<Error, Model::DescribeUserOperationLogResult> DescribeUserOperationLogOutcome;
|
||||||
typedef std::future<DescribeUserLogOutcome> DescribeUserLogOutcomeCallable;
|
typedef std::future<DescribeUserOperationLogOutcome> DescribeUserOperationLogOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeUserLogRequest&, const DescribeUserLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserLogAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeUserOperationLogRequest&, const DescribeUserOperationLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserOperationLogAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeUsersResult> DescribeUsersOutcome;
|
typedef Outcome<Error, Model::DescribeUserRamPolicyResult> DescribeUserRamPolicyOutcome;
|
||||||
typedef std::future<DescribeUsersOutcome> DescribeUsersOutcomeCallable;
|
typedef std::future<DescribeUserRamPolicyOutcome> DescribeUserRamPolicyOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DescribeUsersRequest&, const DescribeUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUsersAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::DescribeUserRamPolicyRequest&, const DescribeUserRamPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserRamPolicyAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DissociatePlanogramRailResult> DissociatePlanogramRailOutcome;
|
typedef Outcome<Error, Model::SearchApServiceResult> SearchApServiceOutcome;
|
||||||
typedef std::future<DissociatePlanogramRailOutcome> DissociatePlanogramRailOutcomeCallable;
|
typedef std::future<SearchApServiceOutcome> SearchApServiceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::DissociatePlanogramRailRequest&, const DissociatePlanogramRailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DissociatePlanogramRailAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::SearchApServiceRequest&, const SearchApServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchApServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
|
||||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::UnassignUserResult> UnassignUserOutcome;
|
|
||||||
typedef std::future<UnassignUserOutcome> UnassignUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UnassignUserRequest&, const UnassignUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnassignUserAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::UnbindEslDeviceResult> UnbindEslDeviceOutcome;
|
typedef Outcome<Error, Model::UnbindEslDeviceResult> UnbindEslDeviceOutcome;
|
||||||
typedef std::future<UnbindEslDeviceOutcome> UnbindEslDeviceOutcomeCallable;
|
typedef std::future<UnbindEslDeviceOutcome> UnbindEslDeviceOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UnbindEslDeviceRequest&, const UnbindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindEslDeviceAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::UnbindEslDeviceRequest&, const UnbindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindEslDeviceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateEslDeviceLightResult> UpdateEslDeviceLightOutcome;
|
typedef Outcome<Error, Model::UnbindEslDeviceShelfResult> UnbindEslDeviceShelfOutcome;
|
||||||
typedef std::future<UpdateEslDeviceLightOutcome> UpdateEslDeviceLightOutcomeCallable;
|
typedef std::future<UnbindEslDeviceShelfOutcome> UnbindEslDeviceShelfOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateEslDeviceLightRequest&, const UpdateEslDeviceLightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateEslDeviceLightAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::UnbindEslDeviceShelfRequest&, const UnbindEslDeviceShelfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindEslDeviceShelfAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateStoreResult> UpdateStoreOutcome;
|
typedef Outcome<Error, Model::UpdateStoreResult> UpdateStoreOutcome;
|
||||||
typedef std::future<UpdateStoreOutcome> UpdateStoreOutcomeCallable;
|
typedef std::future<UpdateStoreOutcome> UpdateStoreOutcomeCallable;
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateStoreRequest&, const UpdateStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStoreAsyncHandler;
|
typedef std::function<void(const CloudeslClient*, const Model::UpdateStoreRequest&, const UpdateStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStoreAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateStoreConfigResult> UpdateStoreConfigOutcome;
|
|
||||||
typedef std::future<UpdateStoreConfigOutcome> UpdateStoreConfigOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateStoreConfigRequest&, const UpdateStoreConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStoreConfigAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::UpdateUserResult> UpdateUserOutcome;
|
|
||||||
typedef std::future<UpdateUserOutcome> UpdateUserOutcomeCallable;
|
|
||||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateUserRequest&, const UpdateUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateUserAsyncHandler;
|
|
||||||
|
|
||||||
CloudeslClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
CloudeslClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
CloudeslClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
CloudeslClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
CloudeslClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
CloudeslClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
~CloudeslClient();
|
~CloudeslClient();
|
||||||
ActivateApDeviceOutcome activateApDevice(const Model::ActivateApDeviceRequest &request)const;
|
ActivateApServiceOutcome activateApService(const Model::ActivateApServiceRequest &request)const;
|
||||||
void activateApDeviceAsync(const Model::ActivateApDeviceRequest& request, const ActivateApDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void activateApServiceAsync(const Model::ActivateApServiceRequest& request, const ActivateApServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ActivateApDeviceOutcomeCallable activateApDeviceCallable(const Model::ActivateApDeviceRequest& request) const;
|
ActivateApServiceOutcomeCallable activateApServiceCallable(const Model::ActivateApServiceRequest& request) const;
|
||||||
AddApDeviceOutcome addApDevice(const Model::AddApDeviceRequest &request)const;
|
ActivateApService2Outcome activateApService2(const Model::ActivateApService2Request &request)const;
|
||||||
void addApDeviceAsync(const Model::AddApDeviceRequest& request, const AddApDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void activateApService2Async(const Model::ActivateApService2Request& request, const ActivateApService2AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
AddApDeviceOutcomeCallable addApDeviceCallable(const Model::AddApDeviceRequest& request) const;
|
ActivateApService2OutcomeCallable activateApService2Callable(const Model::ActivateApService2Request& request) const;
|
||||||
AddPlanogramShelfOutcome addPlanogramShelf(const Model::AddPlanogramShelfRequest &request)const;
|
|
||||||
void addPlanogramShelfAsync(const Model::AddPlanogramShelfRequest& request, const AddPlanogramShelfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
AddPlanogramShelfOutcomeCallable addPlanogramShelfCallable(const Model::AddPlanogramShelfRequest& request) const;
|
|
||||||
AddRoleActionsOutcome addRoleActions(const Model::AddRoleActionsRequest &request)const;
|
|
||||||
void addRoleActionsAsync(const Model::AddRoleActionsRequest& request, const AddRoleActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
AddRoleActionsOutcomeCallable addRoleActionsCallable(const Model::AddRoleActionsRequest& request) const;
|
|
||||||
AddUserOutcome addUser(const Model::AddUserRequest &request)const;
|
|
||||||
void addUserAsync(const Model::AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
AddUserOutcomeCallable addUserCallable(const Model::AddUserRequest& request) const;
|
|
||||||
AssignUserOutcome assignUser(const Model::AssignUserRequest &request)const;
|
|
||||||
void assignUserAsync(const Model::AssignUserRequest& request, const AssignUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
AssignUserOutcomeCallable assignUserCallable(const Model::AssignUserRequest& request) const;
|
|
||||||
AssociatePlanogramRailOutcome associatePlanogramRail(const Model::AssociatePlanogramRailRequest &request)const;
|
|
||||||
void associatePlanogramRailAsync(const Model::AssociatePlanogramRailRequest& request, const AssociatePlanogramRailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
AssociatePlanogramRailOutcomeCallable associatePlanogramRailCallable(const Model::AssociatePlanogramRailRequest& request) const;
|
|
||||||
BatchInsertItemsOutcome batchInsertItems(const Model::BatchInsertItemsRequest &request)const;
|
BatchInsertItemsOutcome batchInsertItems(const Model::BatchInsertItemsRequest &request)const;
|
||||||
void batchInsertItemsAsync(const Model::BatchInsertItemsRequest& request, const BatchInsertItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void batchInsertItemsAsync(const Model::BatchInsertItemsRequest& request, const BatchInsertItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
BatchInsertItemsOutcomeCallable batchInsertItemsCallable(const Model::BatchInsertItemsRequest& request) const;
|
BatchInsertItemsOutcomeCallable batchInsertItemsCallable(const Model::BatchInsertItemsRequest& request) const;
|
||||||
|
BindApStoreServiceOutcome bindApStoreService(const Model::BindApStoreServiceRequest &request)const;
|
||||||
|
void bindApStoreServiceAsync(const Model::BindApStoreServiceRequest& request, const BindApStoreServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
BindApStoreServiceOutcomeCallable bindApStoreServiceCallable(const Model::BindApStoreServiceRequest& request) const;
|
||||||
BindEslDeviceOutcome bindEslDevice(const Model::BindEslDeviceRequest &request)const;
|
BindEslDeviceOutcome bindEslDevice(const Model::BindEslDeviceRequest &request)const;
|
||||||
void bindEslDeviceAsync(const Model::BindEslDeviceRequest& request, const BindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void bindEslDeviceAsync(const Model::BindEslDeviceRequest& request, const BindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
BindEslDeviceOutcomeCallable bindEslDeviceCallable(const Model::BindEslDeviceRequest& request) const;
|
BindEslDeviceOutcomeCallable bindEslDeviceCallable(const Model::BindEslDeviceRequest& request) const;
|
||||||
ComposePlanogramPositionsOutcome composePlanogramPositions(const Model::ComposePlanogramPositionsRequest &request)const;
|
BindEslDeviceShelfOutcome bindEslDeviceShelf(const Model::BindEslDeviceShelfRequest &request)const;
|
||||||
void composePlanogramPositionsAsync(const Model::ComposePlanogramPositionsRequest& request, const ComposePlanogramPositionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void bindEslDeviceShelfAsync(const Model::BindEslDeviceShelfRequest& request, const BindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ComposePlanogramPositionsOutcomeCallable composePlanogramPositionsCallable(const Model::ComposePlanogramPositionsRequest& request) const;
|
BindEslDeviceShelfOutcomeCallable bindEslDeviceShelfCallable(const Model::BindEslDeviceShelfRequest& request) const;
|
||||||
CreateStoreOutcome createStore(const Model::CreateStoreRequest &request)const;
|
CreateStoreOutcome createStore(const Model::CreateStoreRequest &request)const;
|
||||||
void createStoreAsync(const Model::CreateStoreRequest& request, const CreateStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createStoreAsync(const Model::CreateStoreRequest& request, const CreateStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateStoreOutcomeCallable createStoreCallable(const Model::CreateStoreRequest& request) const;
|
CreateStoreOutcomeCallable createStoreCallable(const Model::CreateStoreRequest& request) const;
|
||||||
DeleteApDeviceOutcome deleteApDevice(const Model::DeleteApDeviceRequest &request)const;
|
DeleteApServiceOutcome deleteApService(const Model::DeleteApServiceRequest &request)const;
|
||||||
void deleteApDeviceAsync(const Model::DeleteApDeviceRequest& request, const DeleteApDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteApServiceAsync(const Model::DeleteApServiceRequest& request, const DeleteApServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteApDeviceOutcomeCallable deleteApDeviceCallable(const Model::DeleteApDeviceRequest& request) const;
|
DeleteApServiceOutcomeCallable deleteApServiceCallable(const Model::DeleteApServiceRequest& request) const;
|
||||||
DeletePlanogramShelfOutcome deletePlanogramShelf(const Model::DeletePlanogramShelfRequest &request)const;
|
DeleteEslDeviceOutcome deleteEslDevice(const Model::DeleteEslDeviceRequest &request)const;
|
||||||
void deletePlanogramShelfAsync(const Model::DeletePlanogramShelfRequest& request, const DeletePlanogramShelfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteEslDeviceAsync(const Model::DeleteEslDeviceRequest& request, const DeleteEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeletePlanogramShelfOutcomeCallable deletePlanogramShelfCallable(const Model::DeletePlanogramShelfRequest& request) const;
|
DeleteEslDeviceOutcomeCallable deleteEslDeviceCallable(const Model::DeleteEslDeviceRequest& request) const;
|
||||||
DeleteRoleActionsOutcome deleteRoleActions(const Model::DeleteRoleActionsRequest &request)const;
|
DeleteItemOutcome deleteItem(const Model::DeleteItemRequest &request)const;
|
||||||
void deleteRoleActionsAsync(const Model::DeleteRoleActionsRequest& request, const DeleteRoleActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteItemAsync(const Model::DeleteItemRequest& request, const DeleteItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteRoleActionsOutcomeCallable deleteRoleActionsCallable(const Model::DeleteRoleActionsRequest& request) const;
|
DeleteItemOutcomeCallable deleteItemCallable(const Model::DeleteItemRequest& request) const;
|
||||||
|
DeleteItemBySkuIdOutcome deleteItemBySkuId(const Model::DeleteItemBySkuIdRequest &request)const;
|
||||||
|
void deleteItemBySkuIdAsync(const Model::DeleteItemBySkuIdRequest& request, const DeleteItemBySkuIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteItemBySkuIdOutcomeCallable deleteItemBySkuIdCallable(const Model::DeleteItemBySkuIdRequest& request) const;
|
||||||
DeleteStoreOutcome deleteStore(const Model::DeleteStoreRequest &request)const;
|
DeleteStoreOutcome deleteStore(const Model::DeleteStoreRequest &request)const;
|
||||||
void deleteStoreAsync(const Model::DeleteStoreRequest& request, const DeleteStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteStoreAsync(const Model::DeleteStoreRequest& request, const DeleteStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteStoreOutcomeCallable deleteStoreCallable(const Model::DeleteStoreRequest& request) const;
|
DeleteStoreOutcomeCallable deleteStoreCallable(const Model::DeleteStoreRequest& 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;
|
|
||||||
DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const;
|
DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const;
|
||||||
void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const;
|
DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const;
|
||||||
DescribeApDevicesOutcome describeApDevices(const Model::DescribeApDevicesRequest &request)const;
|
DescribeCompanyOutcome describeCompany(const Model::DescribeCompanyRequest &request)const;
|
||||||
void describeApDevicesAsync(const Model::DescribeApDevicesRequest& request, const DescribeApDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeCompanyAsync(const Model::DescribeCompanyRequest& request, const DescribeCompanyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeApDevicesOutcomeCallable describeApDevicesCallable(const Model::DescribeApDevicesRequest& request) const;
|
DescribeCompanyOutcomeCallable describeCompanyCallable(const Model::DescribeCompanyRequest& request) const;
|
||||||
DescribeBindersOutcome describeBinders(const Model::DescribeBindersRequest &request)const;
|
|
||||||
void describeBindersAsync(const Model::DescribeBindersRequest& request, const DescribeBindersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribeBindersOutcomeCallable describeBindersCallable(const Model::DescribeBindersRequest& request) const;
|
|
||||||
DescribeClientPackageOutcome describeClientPackage(const Model::DescribeClientPackageRequest &request)const;
|
|
||||||
void describeClientPackageAsync(const Model::DescribeClientPackageRequest& request, const DescribeClientPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribeClientPackageOutcomeCallable describeClientPackageCallable(const Model::DescribeClientPackageRequest& request) const;
|
|
||||||
DescribeEslDevicesOutcome describeEslDevices(const Model::DescribeEslDevicesRequest &request)const;
|
DescribeEslDevicesOutcome describeEslDevices(const Model::DescribeEslDevicesRequest &request)const;
|
||||||
void describeEslDevicesAsync(const Model::DescribeEslDevicesRequest& request, const DescribeEslDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeEslDevicesAsync(const Model::DescribeEslDevicesRequest& request, const DescribeEslDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeEslDevicesOutcomeCallable describeEslDevicesCallable(const Model::DescribeEslDevicesRequest& request) const;
|
DescribeEslDevicesOutcomeCallable describeEslDevicesCallable(const Model::DescribeEslDevicesRequest& request) const;
|
||||||
DescribeItemsOutcome describeItems(const Model::DescribeItemsRequest &request)const;
|
DescribeItemsOutcome describeItems(const Model::DescribeItemsRequest &request)const;
|
||||||
void describeItemsAsync(const Model::DescribeItemsRequest& request, const DescribeItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeItemsAsync(const Model::DescribeItemsRequest& request, const DescribeItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeItemsOutcomeCallable describeItemsCallable(const Model::DescribeItemsRequest& request) const;
|
DescribeItemsOutcomeCallable describeItemsCallable(const Model::DescribeItemsRequest& request) const;
|
||||||
DescribePlanogramEslDevicesOutcome describePlanogramEslDevices(const Model::DescribePlanogramEslDevicesRequest &request)const;
|
|
||||||
void describePlanogramEslDevicesAsync(const Model::DescribePlanogramEslDevicesRequest& request, const DescribePlanogramEslDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribePlanogramEslDevicesOutcomeCallable describePlanogramEslDevicesCallable(const Model::DescribePlanogramEslDevicesRequest& request) const;
|
|
||||||
DescribePlanogramPositionsOutcome describePlanogramPositions(const Model::DescribePlanogramPositionsRequest &request)const;
|
|
||||||
void describePlanogramPositionsAsync(const Model::DescribePlanogramPositionsRequest& request, const DescribePlanogramPositionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribePlanogramPositionsOutcomeCallable describePlanogramPositionsCallable(const Model::DescribePlanogramPositionsRequest& request) const;
|
|
||||||
DescribePlanogramRailsOutcome describePlanogramRails(const Model::DescribePlanogramRailsRequest &request)const;
|
|
||||||
void describePlanogramRailsAsync(const Model::DescribePlanogramRailsRequest& request, const DescribePlanogramRailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribePlanogramRailsOutcomeCallable describePlanogramRailsCallable(const Model::DescribePlanogramRailsRequest& request) const;
|
|
||||||
DescribePlanogramShelvesOutcome describePlanogramShelves(const Model::DescribePlanogramShelvesRequest &request)const;
|
|
||||||
void describePlanogramShelvesAsync(const Model::DescribePlanogramShelvesRequest& request, const DescribePlanogramShelvesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribePlanogramShelvesOutcomeCallable describePlanogramShelvesCallable(const Model::DescribePlanogramShelvesRequest& request) const;
|
|
||||||
DescribeRoleActionsOutcome describeRoleActions(const Model::DescribeRoleActionsRequest &request)const;
|
|
||||||
void describeRoleActionsAsync(const Model::DescribeRoleActionsRequest& request, const DescribeRoleActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribeRoleActionsOutcomeCallable describeRoleActionsCallable(const Model::DescribeRoleActionsRequest& request) const;
|
|
||||||
DescribeStoreConfigOutcome describeStoreConfig(const Model::DescribeStoreConfigRequest &request)const;
|
|
||||||
void describeStoreConfigAsync(const Model::DescribeStoreConfigRequest& request, const DescribeStoreConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribeStoreConfigOutcomeCallable describeStoreConfigCallable(const Model::DescribeStoreConfigRequest& request) const;
|
|
||||||
DescribeStoresOutcome describeStores(const Model::DescribeStoresRequest &request)const;
|
DescribeStoresOutcome describeStores(const Model::DescribeStoresRequest &request)const;
|
||||||
void describeStoresAsync(const Model::DescribeStoresRequest& request, const DescribeStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeStoresAsync(const Model::DescribeStoresRequest& request, const DescribeStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeStoresOutcomeCallable describeStoresCallable(const Model::DescribeStoresRequest& request) const;
|
DescribeStoresOutcomeCallable describeStoresCallable(const Model::DescribeStoresRequest& request) const;
|
||||||
DescribeUserLogOutcome describeUserLog(const Model::DescribeUserLogRequest &request)const;
|
DescribeUserOperationLogOutcome describeUserOperationLog(const Model::DescribeUserOperationLogRequest &request)const;
|
||||||
void describeUserLogAsync(const Model::DescribeUserLogRequest& request, const DescribeUserLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeUserOperationLogAsync(const Model::DescribeUserOperationLogRequest& request, const DescribeUserOperationLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeUserLogOutcomeCallable describeUserLogCallable(const Model::DescribeUserLogRequest& request) const;
|
DescribeUserOperationLogOutcomeCallable describeUserOperationLogCallable(const Model::DescribeUserOperationLogRequest& request) const;
|
||||||
DescribeUsersOutcome describeUsers(const Model::DescribeUsersRequest &request)const;
|
DescribeUserRamPolicyOutcome describeUserRamPolicy(const Model::DescribeUserRamPolicyRequest &request)const;
|
||||||
void describeUsersAsync(const Model::DescribeUsersRequest& request, const DescribeUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeUserRamPolicyAsync(const Model::DescribeUserRamPolicyRequest& request, const DescribeUserRamPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeUsersOutcomeCallable describeUsersCallable(const Model::DescribeUsersRequest& request) const;
|
DescribeUserRamPolicyOutcomeCallable describeUserRamPolicyCallable(const Model::DescribeUserRamPolicyRequest& request) const;
|
||||||
DissociatePlanogramRailOutcome dissociatePlanogramRail(const Model::DissociatePlanogramRailRequest &request)const;
|
SearchApServiceOutcome searchApService(const Model::SearchApServiceRequest &request)const;
|
||||||
void dissociatePlanogramRailAsync(const Model::DissociatePlanogramRailRequest& request, const DissociatePlanogramRailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void searchApServiceAsync(const Model::SearchApServiceRequest& request, const SearchApServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DissociatePlanogramRailOutcomeCallable dissociatePlanogramRailCallable(const Model::DissociatePlanogramRailRequest& request) const;
|
SearchApServiceOutcomeCallable searchApServiceCallable(const Model::SearchApServiceRequest& 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;
|
|
||||||
UnassignUserOutcome unassignUser(const Model::UnassignUserRequest &request)const;
|
|
||||||
void unassignUserAsync(const Model::UnassignUserRequest& request, const UnassignUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
UnassignUserOutcomeCallable unassignUserCallable(const Model::UnassignUserRequest& request) const;
|
|
||||||
UnbindEslDeviceOutcome unbindEslDevice(const Model::UnbindEslDeviceRequest &request)const;
|
UnbindEslDeviceOutcome unbindEslDevice(const Model::UnbindEslDeviceRequest &request)const;
|
||||||
void unbindEslDeviceAsync(const Model::UnbindEslDeviceRequest& request, const UnbindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void unbindEslDeviceAsync(const Model::UnbindEslDeviceRequest& request, const UnbindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UnbindEslDeviceOutcomeCallable unbindEslDeviceCallable(const Model::UnbindEslDeviceRequest& request) const;
|
UnbindEslDeviceOutcomeCallable unbindEslDeviceCallable(const Model::UnbindEslDeviceRequest& request) const;
|
||||||
UpdateEslDeviceLightOutcome updateEslDeviceLight(const Model::UpdateEslDeviceLightRequest &request)const;
|
UnbindEslDeviceShelfOutcome unbindEslDeviceShelf(const Model::UnbindEslDeviceShelfRequest &request)const;
|
||||||
void updateEslDeviceLightAsync(const Model::UpdateEslDeviceLightRequest& request, const UpdateEslDeviceLightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void unbindEslDeviceShelfAsync(const Model::UnbindEslDeviceShelfRequest& request, const UnbindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateEslDeviceLightOutcomeCallable updateEslDeviceLightCallable(const Model::UpdateEslDeviceLightRequest& request) const;
|
UnbindEslDeviceShelfOutcomeCallable unbindEslDeviceShelfCallable(const Model::UnbindEslDeviceShelfRequest& request) const;
|
||||||
UpdateStoreOutcome updateStore(const Model::UpdateStoreRequest &request)const;
|
UpdateStoreOutcome updateStore(const Model::UpdateStoreRequest &request)const;
|
||||||
void updateStoreAsync(const Model::UpdateStoreRequest& request, const UpdateStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateStoreAsync(const Model::UpdateStoreRequest& request, const UpdateStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateStoreOutcomeCallable updateStoreCallable(const Model::UpdateStoreRequest& request) const;
|
UpdateStoreOutcomeCallable updateStoreCallable(const Model::UpdateStoreRequest& request) const;
|
||||||
UpdateStoreConfigOutcome updateStoreConfig(const Model::UpdateStoreConfigRequest &request)const;
|
|
||||||
void updateStoreConfigAsync(const Model::UpdateStoreConfigRequest& request, const UpdateStoreConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
UpdateStoreConfigOutcomeCallable updateStoreConfigCallable(const Model::UpdateStoreConfigRequest& request) const;
|
|
||||||
UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const;
|
|
||||||
void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_
|
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_
|
#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,22 +28,19 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApDeviceRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApService2Request : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DeleteApDeviceRequest();
|
ActivateApService2Request();
|
||||||
~DeleteApDeviceRequest();
|
~ActivateApService2Request();
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getApMac()const;
|
std::string getApMac()const;
|
||||||
void setApMac(const std::string& apMac);
|
void setApMac(const std::string& apMac);
|
||||||
std::string getStoreId()const;
|
std::string getStoreId()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setStoreId(const std::string& storeId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string extraParams_;
|
|
||||||
std::string apMac_;
|
std::string apMac_;
|
||||||
std::string storeId_;
|
std::string storeId_;
|
||||||
|
|
||||||
@@ -51,4 +48,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_
|
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_
|
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_
|
#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,19 +29,16 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT AddUserResult : public ServiceResult
|
class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApService2Result : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
AddUserResult();
|
ActivateApService2Result();
|
||||||
explicit AddUserResult(const std::string &payload);
|
explicit ActivateApService2Result(const std::string &payload);
|
||||||
~AddUserResult();
|
~ActivateApService2Result();
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
std::string getDynamicCode()const;
|
|
||||||
std::string getErrorCode()const;
|
std::string getErrorCode()const;
|
||||||
std::string getDynamicMessage()const;
|
|
||||||
std::string getErrorMessage()const;
|
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
@@ -49,10 +46,7 @@ namespace AlibabaCloud
|
|||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
std::string dynamicCode_;
|
|
||||||
std::string errorCode_;
|
std::string errorCode_;
|
||||||
std::string dynamicMessage_;
|
|
||||||
std::string errorMessage_;
|
|
||||||
std::string code_;
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
@@ -60,4 +54,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_
|
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_
|
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_
|
#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,22 +28,19 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApDeviceRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApServiceRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ActivateApDeviceRequest();
|
ActivateApServiceRequest();
|
||||||
~ActivateApDeviceRequest();
|
~ActivateApServiceRequest();
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getApMac()const;
|
std::string getApMac()const;
|
||||||
void setApMac(const std::string& apMac);
|
void setApMac(const std::string& apMac);
|
||||||
std::string getStoreId()const;
|
std::string getStoreId()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setStoreId(const std::string& storeId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string extraParams_;
|
|
||||||
std::string apMac_;
|
std::string apMac_;
|
||||||
std::string storeId_;
|
std::string storeId_;
|
||||||
|
|
||||||
@@ -51,4 +48,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_
|
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_
|
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICERESULT_H_
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_
|
#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICERESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,35 +29,27 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserResult : public ServiceResult
|
class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApServiceResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
AssignUserResult();
|
ActivateApServiceResult();
|
||||||
explicit AssignUserResult(const std::string &payload);
|
explicit ActivateApServiceResult(const std::string &payload);
|
||||||
~AssignUserResult();
|
~ActivateApServiceResult();
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
std::string getDynamicCode()const;
|
|
||||||
std::string getErrorCode()const;
|
std::string getErrorCode()const;
|
||||||
std::string getDynamicMessage()const;
|
|
||||||
std::string getErrorMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
std::string dynamicCode_;
|
|
||||||
std::string errorCode_;
|
std::string errorCode_;
|
||||||
std::string dynamicMessage_;
|
|
||||||
std::string errorMessage_;
|
|
||||||
std::string code_;
|
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_
|
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICERESULT_H_
|
||||||
@@ -1,66 +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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Cloudesl
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT AddPlanogramShelfRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
AddPlanogramShelfRequest();
|
|
||||||
~AddPlanogramShelfRequest();
|
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getClientToken()const;
|
|
||||||
void setClientToken(const std::string& clientToken);
|
|
||||||
std::string getShelfType()const;
|
|
||||||
void setShelfType(const std::string& shelfType);
|
|
||||||
std::string getStoreId()const;
|
|
||||||
void setStoreId(const std::string& storeId);
|
|
||||||
std::string getZone()const;
|
|
||||||
void setZone(const std::string& zone);
|
|
||||||
std::string getShelf()const;
|
|
||||||
void setShelf(const std::string& shelf);
|
|
||||||
std::string getCategory()const;
|
|
||||||
void setCategory(const std::string& category);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string extraParams_;
|
|
||||||
std::string clientToken_;
|
|
||||||
std::string shelfType_;
|
|
||||||
std::string storeId_;
|
|
||||||
std::string zone_;
|
|
||||||
std::string shelf_;
|
|
||||||
std::string category_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_
|
|
||||||
@@ -1,57 +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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Cloudesl
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
AssignUserRequest();
|
|
||||||
~AssignUserRequest();
|
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getStores()const;
|
|
||||||
void setStores(const std::string& stores);
|
|
||||||
std::string getUserType()const;
|
|
||||||
void setUserType(const std::string& userType);
|
|
||||||
std::string getUserId()const;
|
|
||||||
void setUserId(const std::string& userId);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string extraParams_;
|
|
||||||
std::string stores_;
|
|
||||||
std::string userType_;
|
|
||||||
std::string userId_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_
|
|
||||||
@@ -1,60 +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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Cloudesl
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_CLOUDESL_EXPORT AssociatePlanogramRailRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
AssociatePlanogramRailRequest();
|
|
||||||
~AssociatePlanogramRailRequest();
|
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getStoreId()const;
|
|
||||||
void setStoreId(const std::string& storeId);
|
|
||||||
int getLayer()const;
|
|
||||||
void setLayer(int layer);
|
|
||||||
std::string getShelf()const;
|
|
||||||
void setShelf(const std::string& shelf);
|
|
||||||
std::string getRailCode()const;
|
|
||||||
void setRailCode(const std::string& railCode);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string extraParams_;
|
|
||||||
std::string storeId_;
|
|
||||||
int layer_;
|
|
||||||
std::string shelf_;
|
|
||||||
std::string railCode_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_
|
|
||||||
@@ -35,69 +35,57 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
int memberPrice;
|
int memberPrice;
|
||||||
int actionPrice;
|
int actionPrice;
|
||||||
|
std::string productionPlace;
|
||||||
bool beSourceCode;
|
bool beSourceCode;
|
||||||
|
std::string storeId;
|
||||||
std::string brandName;
|
std::string brandName;
|
||||||
std::string promotionStart;
|
std::string promotionStart;
|
||||||
|
std::string sourceCode;
|
||||||
|
long itemId;
|
||||||
|
std::string extraAttribute;
|
||||||
|
std::string companyId;
|
||||||
std::string priceUnit;
|
std::string priceUnit;
|
||||||
std::string rank;
|
std::string rank;
|
||||||
int itemInfoIndex;
|
|
||||||
std::string itemBarCode;
|
std::string itemBarCode;
|
||||||
std::string customizeFeatureK;
|
|
||||||
std::string customizeFeatureL;
|
|
||||||
std::string customizeFeatureM;
|
|
||||||
bool bePromotion;
|
bool bePromotion;
|
||||||
std::string customizeFeatureN;
|
|
||||||
std::string customizeFeatureO;
|
|
||||||
std::string promotionEnd;
|
std::string promotionEnd;
|
||||||
std::string itemTitle;
|
std::string itemTitle;
|
||||||
|
int originalPrice;
|
||||||
|
std::string itemShortTitle;
|
||||||
std::string customizeFeatureC;
|
std::string customizeFeatureC;
|
||||||
std::string customizeFeatureD;
|
|
||||||
std::string itemQrCode;
|
std::string itemQrCode;
|
||||||
std::string customizeFeatureE;
|
std::string customizeFeatureD;
|
||||||
std::string inventoryStatus;
|
|
||||||
std::string promotionReason;
|
std::string promotionReason;
|
||||||
|
std::string customizeFeatureE;
|
||||||
std::string customizeFeatureF;
|
std::string customizeFeatureF;
|
||||||
|
std::string forestSecondId;
|
||||||
std::string customizeFeatureG;
|
std::string customizeFeatureG;
|
||||||
std::string customizeFeatureH;
|
std::string customizeFeatureH;
|
||||||
std::string customizeFeatureI;
|
std::string customizeFeatureI;
|
||||||
std::string customizeFeatureJ;
|
std::string customizeFeatureJ;
|
||||||
|
std::string optionGroups;
|
||||||
|
std::string modelNumber;
|
||||||
|
std::string saleSpec;
|
||||||
std::string customizeFeatureA;
|
std::string customizeFeatureA;
|
||||||
std::string customizeFeatureB;
|
std::string customizeFeatureB;
|
||||||
int suggestPrice;
|
int suggestPrice;
|
||||||
std::string forestFirstId;
|
std::string forestFirstId;
|
||||||
std::string productionPlace;
|
|
||||||
std::string manufacturer;
|
|
||||||
std::string sourceCode;
|
|
||||||
std::string itemId;
|
|
||||||
int salesPrice;
|
|
||||||
int originalPrice;
|
|
||||||
std::string itemShortTitle;
|
|
||||||
std::string forestSecondId;
|
|
||||||
std::string itemPicUrl;
|
|
||||||
std::string supplierName;
|
|
||||||
std::string material;
|
|
||||||
std::string modelNumber;
|
|
||||||
std::string saleSpec;
|
|
||||||
std::string categoryName;
|
std::string categoryName;
|
||||||
std::string taxFee;
|
|
||||||
std::string energyEfficiency;
|
std::string energyEfficiency;
|
||||||
std::string promotionText;
|
|
||||||
std::string skuId;
|
std::string skuId;
|
||||||
|
std::string promotionText;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BatchInsertItemsRequest();
|
BatchInsertItemsRequest();
|
||||||
~BatchInsertItemsRequest();
|
~BatchInsertItemsRequest();
|
||||||
|
|
||||||
std::string getExtraParams()const;
|
|
||||||
void setExtraParams(const std::string& extraParams);
|
|
||||||
std::string getStoreId()const;
|
std::string getStoreId()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setStoreId(const std::string& storeId);
|
||||||
std::vector<ItemInfo> getItemInfo()const;
|
std::vector<ItemInfo> getItemInfo()const;
|
||||||
void setItemInfo(const std::vector<ItemInfo>& itemInfo);
|
void setItemInfo(const std::vector<ItemInfo>& itemInfo);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string extraParams_;
|
|
||||||
std::string storeId_;
|
std::string storeId_;
|
||||||
std::vector<ItemInfo> itemInfo_;
|
std::vector<ItemInfo> itemInfo_;
|
||||||
|
|
||||||
|
|||||||
@@ -45,24 +45,16 @@ namespace AlibabaCloud
|
|||||||
explicit BatchInsertItemsResult(const std::string &payload);
|
explicit BatchInsertItemsResult(const std::string &payload);
|
||||||
~BatchInsertItemsResult();
|
~BatchInsertItemsResult();
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
std::string getDynamicCode()const;
|
|
||||||
std::string getErrorCode()const;
|
std::string getErrorCode()const;
|
||||||
std::string getDynamicMessage()const;
|
|
||||||
std::vector<BatchResult> getBatchResults()const;
|
std::vector<BatchResult> getBatchResults()const;
|
||||||
std::string getErrorMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
std::string dynamicCode_;
|
|
||||||
std::string errorCode_;
|
std::string errorCode_;
|
||||||
std::string dynamicMessage_;
|
|
||||||
std::vector<BatchResult> batchResults_;
|
std::vector<BatchResult> batchResults_;
|
||||||
std::string errorMessage_;
|
|
||||||
std::string code_;
|
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user